Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 68440 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.63 for python 3.1. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # Report bugs to <http://www.python.org/python-bugs>. |
| 7 | # |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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=: |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21 | # Pre-4.2 versions of Zsh do 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+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 25 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 31 | |
| 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 34 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 43 | as_nl=' |
| 44 | ' |
| 45 | export as_nl |
| 46 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 47 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 49 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 50 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 51 | as_echo='printf %s\n' |
| 52 | as_echo_n='printf %s' |
| 53 | else |
| 54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 56 | as_echo_n='/usr/ucb/echo -n' |
| 57 | else |
| 58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 59 | as_echo_n_body='eval |
| 60 | arg=$1; |
| 61 | case $arg in |
| 62 | *"$as_nl"*) |
| 63 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 65 | esac; |
| 66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 67 | ' |
| 68 | export as_echo_n_body |
| 69 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 70 | fi |
| 71 | export as_echo_body |
| 72 | as_echo='sh -c $as_echo_body as_echo' |
| 73 | fi |
| 74 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 75 | # The user is always right. |
| 76 | if test "${PATH_SEPARATOR+set}" != set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 77 | PATH_SEPARATOR=: |
| 78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 | PATH_SEPARATOR=';' |
| 81 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 82 | fi |
| 83 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 84 | # Support unset when possible. |
| 85 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 86 | as_unset=unset |
| 87 | else |
| 88 | as_unset=false |
| 89 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 90 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 91 | |
| 92 | # IFS |
| 93 | # We need space, tab and new line, in precisely that order. Quoting is |
| 94 | # there to prevent editors from complaining about space-tab. |
| 95 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 96 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 97 | IFS=" "" $as_nl" |
| 98 | |
| 99 | # Find who we are. Look in the path if we contain no directory separator. |
| 100 | case $0 in |
| 101 | *[\\/]* ) as_myself=$0 ;; |
| 102 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 103 | for as_dir in $PATH |
| 104 | do |
| 105 | IFS=$as_save_IFS |
| 106 | test -z "$as_dir" && as_dir=. |
| 107 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 108 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 109 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 110 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 111 | ;; |
| 112 | esac |
| 113 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 114 | # in which case we are not to be found in the path. |
| 115 | if test "x$as_myself" = x; then |
| 116 | as_myself=$0 |
| 117 | fi |
| 118 | if test ! -f "$as_myself"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 119 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 120 | { (exit 1); exit 1; } |
| 121 | fi |
| 122 | |
| 123 | # Work around bugs in pre-3.0 UWIN ksh. |
| 124 | for as_var in ENV MAIL MAILPATH |
| 125 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 126 | done |
| 127 | PS1='$ ' |
| 128 | PS2='> ' |
| 129 | PS4='+ ' |
| 130 | |
| 131 | # NLS nuisances. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 132 | LC_ALL=C |
| 133 | export LC_ALL |
| 134 | LANGUAGE=C |
| 135 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 136 | |
| 137 | # Required to use basename. |
| 138 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 139 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 140 | as_expr=expr |
| 141 | else |
| 142 | as_expr=false |
| 143 | fi |
| 144 | |
| 145 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 146 | as_basename=basename |
| 147 | else |
| 148 | as_basename=false |
| 149 | fi |
| 150 | |
| 151 | |
| 152 | # Name of the executable. |
| 153 | as_me=`$as_basename -- "$0" || |
| 154 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 155 | X"$0" : 'X\(//\)$' \| \ |
| 156 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 157 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 158 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 159 | s//\1/ |
| 160 | q |
| 161 | } |
| 162 | /^X\/\(\/\/\)$/{ |
| 163 | s//\1/ |
| 164 | q |
| 165 | } |
| 166 | /^X\/\(\/\).*/{ |
| 167 | s//\1/ |
| 168 | q |
| 169 | } |
| 170 | s/.*/./; q'` |
| 171 | |
| 172 | # CDPATH. |
| 173 | $as_unset CDPATH |
| 174 | |
| 175 | |
| 176 | if test "x$CONFIG_SHELL" = x; then |
| 177 | if (eval ":") 2>/dev/null; then |
| 178 | as_have_required=yes |
| 179 | else |
| 180 | as_have_required=no |
| 181 | fi |
| 182 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 183 | if test $as_have_required = yes && (eval ": |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 184 | (as_func_return () { |
| 185 | (exit \$1) |
| 186 | } |
| 187 | as_func_success () { |
| 188 | as_func_return 0 |
| 189 | } |
| 190 | as_func_failure () { |
| 191 | as_func_return 1 |
| 192 | } |
| 193 | as_func_ret_success () { |
| 194 | return 0 |
| 195 | } |
| 196 | as_func_ret_failure () { |
| 197 | return 1 |
| 198 | } |
| 199 | |
| 200 | exitcode=0 |
| 201 | if as_func_success; then |
| 202 | : |
| 203 | else |
| 204 | exitcode=1 |
| 205 | echo as_func_success failed. |
| 206 | fi |
| 207 | |
| 208 | if as_func_failure; then |
| 209 | exitcode=1 |
| 210 | echo as_func_failure succeeded. |
| 211 | fi |
| 212 | |
| 213 | if as_func_ret_success; then |
| 214 | : |
| 215 | else |
| 216 | exitcode=1 |
| 217 | echo as_func_ret_success failed. |
| 218 | fi |
| 219 | |
| 220 | if as_func_ret_failure; then |
| 221 | exitcode=1 |
| 222 | echo as_func_ret_failure succeeded. |
| 223 | fi |
| 224 | |
| 225 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 226 | : |
| 227 | else |
| 228 | exitcode=1 |
| 229 | echo positional parameters were not saved. |
| 230 | fi |
| 231 | |
| 232 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 233 | |
| 234 | ( |
| 235 | as_lineno_1=\$LINENO |
| 236 | as_lineno_2=\$LINENO |
| 237 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 238 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 239 | ") 2> /dev/null; then |
| 240 | : |
| 241 | else |
| 242 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 244 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 245 | do |
| 246 | IFS=$as_save_IFS |
| 247 | test -z "$as_dir" && as_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 248 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 249 | /*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 250 | for as_base in sh bash ksh sh5; do |
| 251 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 252 | done;; |
| 253 | esac |
| 254 | done |
| 255 | IFS=$as_save_IFS |
| 256 | |
| 257 | |
| 258 | for as_shell in $as_candidate_shells $SHELL; do |
| 259 | # Try only shells that exist, to save several forks. |
| 260 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 261 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 262 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 263 | emulate sh |
| 264 | NULLCMD=: |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 265 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 266 | # is contrary to our usage. Disable this feature. |
| 267 | alias -g '${1+"$@"}'='"$@"' |
| 268 | setopt NO_GLOB_SUBST |
| 269 | else |
| 270 | case `(set -o) 2>/dev/null` in |
| 271 | *posix*) set -o posix ;; |
| 272 | esac |
| 273 | |
| 274 | fi |
| 275 | |
| 276 | |
| 277 | : |
| 278 | _ASEOF |
| 279 | }; then |
| 280 | CONFIG_SHELL=$as_shell |
| 281 | as_have_required=yes |
| 282 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 283 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 284 | emulate sh |
| 285 | NULLCMD=: |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 286 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 287 | # is contrary to our usage. Disable this feature. |
| 288 | alias -g '${1+"$@"}'='"$@"' |
| 289 | setopt NO_GLOB_SUBST |
| 290 | else |
| 291 | case `(set -o) 2>/dev/null` in |
| 292 | *posix*) set -o posix ;; |
| 293 | esac |
| 294 | |
| 295 | fi |
| 296 | |
| 297 | |
| 298 | : |
| 299 | (as_func_return () { |
| 300 | (exit $1) |
| 301 | } |
| 302 | as_func_success () { |
| 303 | as_func_return 0 |
| 304 | } |
| 305 | as_func_failure () { |
| 306 | as_func_return 1 |
| 307 | } |
| 308 | as_func_ret_success () { |
| 309 | return 0 |
| 310 | } |
| 311 | as_func_ret_failure () { |
| 312 | return 1 |
| 313 | } |
| 314 | |
| 315 | exitcode=0 |
| 316 | if as_func_success; then |
| 317 | : |
| 318 | else |
| 319 | exitcode=1 |
| 320 | echo as_func_success failed. |
| 321 | fi |
| 322 | |
| 323 | if as_func_failure; then |
| 324 | exitcode=1 |
| 325 | echo as_func_failure succeeded. |
| 326 | fi |
| 327 | |
| 328 | if as_func_ret_success; then |
| 329 | : |
| 330 | else |
| 331 | exitcode=1 |
| 332 | echo as_func_ret_success failed. |
| 333 | fi |
| 334 | |
| 335 | if as_func_ret_failure; then |
| 336 | exitcode=1 |
| 337 | echo as_func_ret_failure succeeded. |
| 338 | fi |
| 339 | |
| 340 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 341 | : |
| 342 | else |
| 343 | exitcode=1 |
| 344 | echo positional parameters were not saved. |
| 345 | fi |
| 346 | |
| 347 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 348 | |
| 349 | ( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 350 | as_lineno_1=$LINENO |
| 351 | as_lineno_2=$LINENO |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 352 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 353 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 354 | |
| 355 | _ASEOF |
| 356 | }; then |
| 357 | break |
| 358 | fi |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | done |
| 363 | |
| 364 | if test "x$CONFIG_SHELL" != x; then |
| 365 | for as_var in BASH_ENV ENV |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 366 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 367 | done |
| 368 | export CONFIG_SHELL |
| 369 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 370 | fi |
| 371 | |
| 372 | |
| 373 | if test $as_have_required = no; then |
| 374 | echo This script requires a shell more modern than all the |
| 375 | echo shells that I found on your system. Please install a |
| 376 | echo modern shell, or manually run the script under such a |
| 377 | echo shell if you do have one. |
| 378 | { (exit 1); exit 1; } |
| 379 | fi |
| 380 | |
| 381 | |
| 382 | fi |
| 383 | |
| 384 | fi |
| 385 | |
| 386 | |
| 387 | |
| 388 | (eval "as_func_return () { |
| 389 | (exit \$1) |
| 390 | } |
| 391 | as_func_success () { |
| 392 | as_func_return 0 |
| 393 | } |
| 394 | as_func_failure () { |
| 395 | as_func_return 1 |
| 396 | } |
| 397 | as_func_ret_success () { |
| 398 | return 0 |
| 399 | } |
| 400 | as_func_ret_failure () { |
| 401 | return 1 |
| 402 | } |
| 403 | |
| 404 | exitcode=0 |
| 405 | if as_func_success; then |
| 406 | : |
| 407 | else |
| 408 | exitcode=1 |
| 409 | echo as_func_success failed. |
| 410 | fi |
| 411 | |
| 412 | if as_func_failure; then |
| 413 | exitcode=1 |
| 414 | echo as_func_failure succeeded. |
| 415 | fi |
| 416 | |
| 417 | if as_func_ret_success; then |
| 418 | : |
| 419 | else |
| 420 | exitcode=1 |
| 421 | echo as_func_ret_success failed. |
| 422 | fi |
| 423 | |
| 424 | if as_func_ret_failure; then |
| 425 | exitcode=1 |
| 426 | echo as_func_ret_failure succeeded. |
| 427 | fi |
| 428 | |
| 429 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 430 | : |
| 431 | else |
| 432 | exitcode=1 |
| 433 | echo positional parameters were not saved. |
| 434 | fi |
| 435 | |
| 436 | test \$exitcode = 0") || { |
| 437 | echo No shell found that supports shell functions. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 438 | echo Please tell bug-autoconf@gnu.org about your system, |
| 439 | echo including any error possibly output before this message. |
| 440 | echo This can help us improve future autoconf versions. |
| 441 | echo Configuration will now proceed without shell functions. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 442 | } |
| 443 | |
| 444 | |
| 445 | |
| 446 | as_lineno_1=$LINENO |
| 447 | as_lineno_2=$LINENO |
| 448 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 449 | 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] | 450 | |
| 451 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 452 | # uniformly replaced by the line number. The first 'sed' inserts a |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 453 | # line-number line after each line using $LINENO; the second 'sed' |
| 454 | # does the real work. The second script uses 'N' to pair each |
| 455 | # line-number line with the line containing $LINENO, and appends |
| 456 | # trailing '-' during substitution so that $LINENO is not a special |
| 457 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 459 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 460 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 461 | sed -n ' |
| 462 | p |
| 463 | /[$]LINENO/= |
| 464 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 465 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 466 | s/[$]LINENO.*/&-/ |
| 467 | t lineno |
| 468 | b |
| 469 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 470 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 471 | :loop |
| 472 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 473 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 474 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 475 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 476 | chmod +x "$as_me.lineno" || |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 477 | { $as_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] | 478 | { (exit 1); exit 1; }; } |
| 479 | |
| 480 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 481 | # (the dirname of $[0] is not the place where we might find the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 482 | # original and so on. Autoconf is especially sensitive to this). |
| 483 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 484 | # Exit status is that of the last command. |
| 485 | exit |
| 486 | } |
| 487 | |
| 488 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 489 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 490 | as_dirname=dirname |
| 491 | else |
| 492 | as_dirname=false |
| 493 | fi |
| 494 | |
| 495 | ECHO_C= ECHO_N= ECHO_T= |
| 496 | case `echo -n x` in |
| 497 | -n*) |
| 498 | case `echo 'x\c'` in |
| 499 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 500 | *) ECHO_C='\c';; |
| 501 | esac;; |
| 502 | *) |
| 503 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 504 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 505 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 506 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 507 | as_expr=expr |
| 508 | else |
| 509 | as_expr=false |
| 510 | fi |
| 511 | |
| 512 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 513 | if test -d conf$$.dir; then |
| 514 | rm -f conf$$.dir/conf$$.file |
| 515 | else |
| 516 | rm -f conf$$.dir |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 517 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 518 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 519 | if (echo >conf$$.file) 2>/dev/null; then |
| 520 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 521 | as_ln_s='ln -s' |
| 522 | # ... but there are two gotchas: |
| 523 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 524 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 525 | # In both cases, we have to default to `cp -p'. |
| 526 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 527 | as_ln_s='cp -p' |
| 528 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 529 | as_ln_s=ln |
| 530 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 531 | as_ln_s='cp -p' |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 532 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 533 | else |
| 534 | as_ln_s='cp -p' |
| 535 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 536 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 537 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 539 | if mkdir -p . 2>/dev/null; then |
| 540 | as_mkdir_p=: |
| 541 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 542 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 543 | as_mkdir_p=false |
| 544 | fi |
| 545 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 546 | if test -x / >/dev/null 2>&1; then |
| 547 | as_test_x='test -x' |
| 548 | else |
| 549 | if ls -dL / >/dev/null 2>&1; then |
| 550 | as_ls_L_option=L |
| 551 | else |
| 552 | as_ls_L_option= |
| 553 | fi |
| 554 | as_test_x=' |
| 555 | eval sh -c '\'' |
| 556 | if test -d "$1"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 557 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 558 | else |
| 559 | case $1 in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 560 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 561 | esac; |
| 562 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 563 | ???[sx]*):;;*)false;;esac;fi |
| 564 | '\'' sh |
| 565 | ' |
| 566 | fi |
| 567 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 | |
| 569 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 570 | 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] | 571 | |
| 572 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 573 | 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] | 574 | |
| 575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 577 | exec 7<&0 </dev/null 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 578 | |
| 579 | # Name of the host. |
| 580 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 581 | # so uname gets run too. |
| 582 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 584 | # |
| 585 | # Initializations. |
| 586 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 587 | ac_default_prefix=/usr/local |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 588 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 589 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 590 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 591 | cross_compiling=no |
| 592 | subdirs= |
| 593 | MFLAGS= |
| 594 | MAKEFLAGS= |
| 595 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 596 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 598 | PACKAGE_NAME='python' |
| 599 | PACKAGE_TARNAME='python' |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 600 | PACKAGE_VERSION='3.1' |
| 601 | PACKAGE_STRING='python 3.1' |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 602 | PACKAGE_BUGREPORT='http://www.python.org/python-bugs' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | |
| 604 | ac_unique_file="Include/object.h" |
| 605 | # Factoring default headers for most tests. |
| 606 | ac_includes_default="\ |
| 607 | #include <stdio.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 608 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 609 | # include <sys/types.h> |
| 610 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 611 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 612 | # include <sys/stat.h> |
| 613 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 614 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 615 | # include <stdlib.h> |
| 616 | # include <stddef.h> |
| 617 | #else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 618 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 619 | # include <stdlib.h> |
| 620 | # endif |
| 621 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 622 | #ifdef HAVE_STRING_H |
| 623 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 624 | # include <memory.h> |
| 625 | # endif |
| 626 | # include <string.h> |
| 627 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 628 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 629 | # include <strings.h> |
| 630 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 631 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 632 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 633 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 634 | #ifdef HAVE_STDINT_H |
| 635 | # include <stdint.h> |
| 636 | #endif |
| 637 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 638 | # include <unistd.h> |
| 639 | #endif" |
| 640 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 641 | ac_subst_vars='LTLIBOBJS |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 642 | SRCDIRS |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 643 | THREADHEADERS |
| 644 | LIBC |
| 645 | LIBM |
| 646 | HAVE_GETHOSTBYNAME |
| 647 | HAVE_GETHOSTBYNAME_R |
| 648 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 649 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 650 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 651 | LIBOBJS |
| 652 | TRUE |
| 653 | MACHDEP_OBJS |
| 654 | DYNLOADFILE |
| 655 | DLINCLDIR |
| 656 | THREADOBJ |
| 657 | LDLAST |
| 658 | USE_THREAD_MODULE |
| 659 | SIGNAL_OBJS |
| 660 | USE_SIGNAL_MODULE |
| 661 | SHLIBS |
| 662 | CFLAGSFORSHARED |
| 663 | LINKFORSHARED |
| 664 | CCSHARED |
| 665 | BLDSHARED |
| 666 | LDSHARED |
| 667 | SO |
| 668 | LIBTOOL_CRUFT |
| 669 | OTHER_LIBTOOL_OPT |
| 670 | UNIVERSAL_ARCH_FLAGS |
| 671 | BASECFLAGS |
| 672 | OPT |
| 673 | LN |
| 674 | INSTALL_DATA |
| 675 | INSTALL_SCRIPT |
| 676 | INSTALL_PROGRAM |
| 677 | SVNVERSION |
| 678 | AR |
| 679 | RANLIB |
| 680 | LINKCC |
| 681 | RUNSHARED |
| 682 | INSTSONAME |
| 683 | LDLIBRARYDIR |
| 684 | BLDLIBRARY |
| 685 | DLLLIBRARY |
| 686 | LDLIBRARY |
| 687 | LIBRARY |
| 688 | BUILDEXEEXT |
| 689 | EGREP |
| 690 | GREP |
| 691 | CPP |
| 692 | MAINCC |
| 693 | CXX |
| 694 | OBJEXT |
| 695 | EXEEXT |
| 696 | ac_ct_CC |
| 697 | CPPFLAGS |
| 698 | LDFLAGS |
| 699 | CFLAGS |
| 700 | CC |
| 701 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 702 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 703 | SGI_ABI |
| 704 | MACHDEP |
| 705 | FRAMEWORKUNIXTOOLSPREFIX |
| 706 | FRAMEWORKALTINSTALLLAST |
| 707 | FRAMEWORKALTINSTALLFIRST |
| 708 | FRAMEWORKINSTALLLAST |
| 709 | FRAMEWORKINSTALLFIRST |
| 710 | PYTHONFRAMEWORKINSTALLDIR |
| 711 | PYTHONFRAMEWORKPREFIX |
| 712 | PYTHONFRAMEWORKDIR |
| 713 | PYTHONFRAMEWORKIDENTIFIER |
| 714 | PYTHONFRAMEWORK |
| 715 | ARCH_RUN_32BIT |
| 716 | UNIVERSALSDK |
| 717 | CONFIG_ARGS |
| 718 | SOVERSION |
| 719 | VERSION |
| 720 | target_alias |
| 721 | host_alias |
| 722 | build_alias |
| 723 | LIBS |
| 724 | ECHO_T |
| 725 | ECHO_N |
| 726 | ECHO_C |
| 727 | DEFS |
| 728 | mandir |
| 729 | localedir |
| 730 | libdir |
| 731 | psdir |
| 732 | pdfdir |
| 733 | dvidir |
| 734 | htmldir |
| 735 | infodir |
| 736 | docdir |
| 737 | oldincludedir |
| 738 | includedir |
| 739 | localstatedir |
| 740 | sharedstatedir |
| 741 | sysconfdir |
| 742 | datadir |
| 743 | datarootdir |
| 744 | libexecdir |
| 745 | sbindir |
| 746 | bindir |
| 747 | program_transform_name |
| 748 | prefix |
| 749 | exec_prefix |
| 750 | PACKAGE_BUGREPORT |
| 751 | PACKAGE_STRING |
| 752 | PACKAGE_VERSION |
| 753 | PACKAGE_TARNAME |
| 754 | PACKAGE_NAME |
| 755 | PATH_SEPARATOR |
| 756 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 757 | ac_subst_files='' |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 758 | ac_user_opts=' |
| 759 | enable_option_checking |
| 760 | enable_universalsdk |
| 761 | with_universal_archs |
| 762 | with_framework_name |
| 763 | enable_framework |
| 764 | with_gcc |
| 765 | with_cxx_main |
| 766 | with_suffix |
| 767 | enable_shared |
| 768 | enable_profiling |
| 769 | with_pydebug |
| 770 | with_libs |
| 771 | with_system_ffi |
| 772 | with_signal_module |
| 773 | with_dec_threads |
| 774 | with_threads |
| 775 | with_thread |
| 776 | with_pth |
| 777 | enable_ipv6 |
| 778 | with_doc_strings |
| 779 | with_tsc |
| 780 | with_pymalloc |
| 781 | with_wctype_functions |
| 782 | with_fpectl |
| 783 | with_libm |
| 784 | with_libc |
| 785 | with_wide_unicode |
| 786 | with_computed_gotos |
| 787 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 788 | ac_precious_vars='build_alias |
| 789 | host_alias |
| 790 | target_alias |
| 791 | CC |
| 792 | CFLAGS |
| 793 | LDFLAGS |
| 794 | LIBS |
| 795 | CPPFLAGS |
| 796 | CPP' |
| 797 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 798 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 799 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 800 | ac_init_help= |
| 801 | ac_init_version=false |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 802 | ac_unrecognized_opts= |
| 803 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 804 | # The variables have the same names as the options, with |
| 805 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 806 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 807 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 808 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 809 | no_recursion= |
| 810 | prefix=NONE |
| 811 | program_prefix=NONE |
| 812 | program_suffix=NONE |
| 813 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 814 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 815 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 816 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 817 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 818 | x_includes=NONE |
| 819 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 820 | |
| 821 | # Installation directory options. |
| 822 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 823 | # and all the variables that are supposed to be based on exec_prefix |
| 824 | # by default will actually change. |
| 825 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 826 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 827 | bindir='${exec_prefix}/bin' |
| 828 | sbindir='${exec_prefix}/sbin' |
| 829 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 830 | datarootdir='${prefix}/share' |
| 831 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 832 | sysconfdir='${prefix}/etc' |
| 833 | sharedstatedir='${prefix}/com' |
| 834 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 835 | includedir='${prefix}/include' |
| 836 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 837 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 838 | infodir='${datarootdir}/info' |
| 839 | htmldir='${docdir}' |
| 840 | dvidir='${docdir}' |
| 841 | pdfdir='${docdir}' |
| 842 | psdir='${docdir}' |
| 843 | libdir='${exec_prefix}/lib' |
| 844 | localedir='${datarootdir}/locale' |
| 845 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 846 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 847 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 848 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 849 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 850 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 851 | # If the previous option needs an argument, assign it. |
| 852 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 853 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 854 | ac_prev= |
| 855 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 856 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 857 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 858 | case $ac_option in |
| 859 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 860 | *) ac_optarg=yes ;; |
| 861 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 862 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 863 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 864 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 865 | case $ac_dashdash$ac_option in |
| 866 | --) |
| 867 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 868 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 869 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 870 | ac_prev=bindir ;; |
| 871 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 872 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 873 | |
| 874 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 875 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 876 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 877 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 878 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 879 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 880 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 881 | ac_prev=cache_file ;; |
| 882 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 883 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 884 | cache_file=$ac_optarg ;; |
| 885 | |
| 886 | --config-cache | -C) |
| 887 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 888 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 889 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 890 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 891 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 892 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 893 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 894 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 895 | | --dataroo | --dataro | --datar) |
| 896 | ac_prev=datarootdir ;; |
| 897 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 898 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 899 | datarootdir=$ac_optarg ;; |
| 900 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 901 | -disable-* | --disable-*) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 902 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 903 | # Reject names that are not valid shell variable names. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 904 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 905 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 906 | { (exit 1); exit 1; }; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 907 | ac_useropt_orig=$ac_useropt |
| 908 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 909 | case $ac_user_opts in |
| 910 | *" |
| 911 | "enable_$ac_useropt" |
| 912 | "*) ;; |
| 913 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 914 | ac_unrecognized_sep=', ';; |
| 915 | esac |
| 916 | eval enable_$ac_useropt=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 917 | |
| 918 | -docdir | --docdir | --docdi | --doc | --do) |
| 919 | ac_prev=docdir ;; |
| 920 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 921 | docdir=$ac_optarg ;; |
| 922 | |
| 923 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 924 | ac_prev=dvidir ;; |
| 925 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 926 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 927 | |
| 928 | -enable-* | --enable-*) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 929 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 930 | # Reject names that are not valid shell variable names. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 931 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 932 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 933 | { (exit 1); exit 1; }; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 934 | ac_useropt_orig=$ac_useropt |
| 935 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 936 | case $ac_user_opts in |
| 937 | *" |
| 938 | "enable_$ac_useropt" |
| 939 | "*) ;; |
| 940 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 941 | ac_unrecognized_sep=', ';; |
| 942 | esac |
| 943 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 944 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 945 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 946 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 947 | | --exec | --exe | --ex) |
| 948 | ac_prev=exec_prefix ;; |
| 949 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 950 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 951 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 952 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 953 | |
| 954 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 955 | # Obsolete; use --with-gas. |
| 956 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 958 | -help | --help | --hel | --he | -h) |
| 959 | ac_init_help=long ;; |
| 960 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 961 | ac_init_help=recursive ;; |
| 962 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 963 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 964 | |
| 965 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 966 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 967 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 968 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 969 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 970 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 971 | ac_prev=htmldir ;; |
| 972 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 973 | | --ht=*) |
| 974 | htmldir=$ac_optarg ;; |
| 975 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 976 | -includedir | --includedir | --includedi | --included | --include \ |
| 977 | | --includ | --inclu | --incl | --inc) |
| 978 | ac_prev=includedir ;; |
| 979 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 980 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 981 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 982 | |
| 983 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 984 | ac_prev=infodir ;; |
| 985 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 986 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 987 | |
| 988 | -libdir | --libdir | --libdi | --libd) |
| 989 | ac_prev=libdir ;; |
| 990 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 991 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 992 | |
| 993 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 994 | | --libexe | --libex | --libe) |
| 995 | ac_prev=libexecdir ;; |
| 996 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 997 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 998 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 999 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1000 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1001 | ac_prev=localedir ;; |
| 1002 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1003 | localedir=$ac_optarg ;; |
| 1004 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1005 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1006 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1007 | ac_prev=localstatedir ;; |
| 1008 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1009 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1010 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1011 | |
| 1012 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1013 | ac_prev=mandir ;; |
| 1014 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1015 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1016 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1017 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1018 | # Obsolete; use --without-fp. |
| 1019 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1020 | |
| 1021 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1022 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1023 | no_create=yes ;; |
| 1024 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1025 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1026 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1027 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1028 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1029 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1030 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1031 | | --oldin | --oldi | --old | --ol | --o) |
| 1032 | ac_prev=oldincludedir ;; |
| 1033 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1034 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1035 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1036 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1037 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1038 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1039 | ac_prev=prefix ;; |
| 1040 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1041 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1042 | |
| 1043 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1044 | | --program-pre | --program-pr | --program-p) |
| 1045 | ac_prev=program_prefix ;; |
| 1046 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1047 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1048 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1049 | |
| 1050 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1051 | | --program-suf | --program-su | --program-s) |
| 1052 | ac_prev=program_suffix ;; |
| 1053 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1054 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1055 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1056 | |
| 1057 | -program-transform-name | --program-transform-name \ |
| 1058 | | --program-transform-nam | --program-transform-na \ |
| 1059 | | --program-transform-n | --program-transform- \ |
| 1060 | | --program-transform | --program-transfor \ |
| 1061 | | --program-transfo | --program-transf \ |
| 1062 | | --program-trans | --program-tran \ |
| 1063 | | --progr-tra | --program-tr | --program-t) |
| 1064 | ac_prev=program_transform_name ;; |
| 1065 | -program-transform-name=* | --program-transform-name=* \ |
| 1066 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1067 | | --program-transform-n=* | --program-transform-=* \ |
| 1068 | | --program-transform=* | --program-transfor=* \ |
| 1069 | | --program-transfo=* | --program-transf=* \ |
| 1070 | | --program-trans=* | --program-tran=* \ |
| 1071 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1072 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1073 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1074 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1075 | ac_prev=pdfdir ;; |
| 1076 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1077 | pdfdir=$ac_optarg ;; |
| 1078 | |
| 1079 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1080 | ac_prev=psdir ;; |
| 1081 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1082 | psdir=$ac_optarg ;; |
| 1083 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1085 | | -silent | --silent | --silen | --sile | --sil) |
| 1086 | silent=yes ;; |
| 1087 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1088 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1089 | ac_prev=sbindir ;; |
| 1090 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1091 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1092 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1093 | |
| 1094 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1095 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1096 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1097 | | --sha | --sh) |
| 1098 | ac_prev=sharedstatedir ;; |
| 1099 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1100 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1101 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1102 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1103 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1104 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1105 | -site | --site | --sit) |
| 1106 | ac_prev=site ;; |
| 1107 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1108 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1109 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1111 | ac_prev=srcdir ;; |
| 1112 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1113 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1114 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1115 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1116 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1117 | ac_prev=sysconfdir ;; |
| 1118 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1119 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1120 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1121 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1122 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1123 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1124 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1125 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1126 | |
| 1127 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1128 | verbose=yes ;; |
| 1129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | -version | --version | --versio | --versi | --vers | -V) |
| 1131 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1132 | |
| 1133 | -with-* | --with-*) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1134 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1135 | # Reject names that are not valid shell variable names. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1136 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1137 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1138 | { (exit 1); exit 1; }; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1139 | ac_useropt_orig=$ac_useropt |
| 1140 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1141 | case $ac_user_opts in |
| 1142 | *" |
| 1143 | "with_$ac_useropt" |
| 1144 | "*) ;; |
| 1145 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1146 | ac_unrecognized_sep=', ';; |
| 1147 | esac |
| 1148 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1149 | |
| 1150 | -without-* | --without-*) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1151 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1152 | # Reject names that are not valid shell variable names. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1153 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1154 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1155 | { (exit 1); exit 1; }; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1156 | ac_useropt_orig=$ac_useropt |
| 1157 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1158 | case $ac_user_opts in |
| 1159 | *" |
| 1160 | "with_$ac_useropt" |
| 1161 | "*) ;; |
| 1162 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1163 | ac_unrecognized_sep=', ';; |
| 1164 | esac |
| 1165 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1166 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1167 | --x) |
| 1168 | # Obsolete; use --with-x. |
| 1169 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1170 | |
| 1171 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1172 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1173 | ac_prev=x_includes ;; |
| 1174 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1175 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1176 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1177 | |
| 1178 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1179 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1180 | ac_prev=x_libraries ;; |
| 1181 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1182 | | --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] | 1183 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1184 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1185 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1186 | Try \`$0 --help' for more information." >&2 |
| 1187 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1188 | ;; |
| 1189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1190 | *=*) |
| 1191 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1192 | # Reject names that are not valid shell variable names. |
| 1193 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1194 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1195 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1196 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1197 | export $ac_envvar ;; |
| 1198 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1199 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1200 | # FIXME: should be removed in autoconf 3.0. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1201 | $as_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] | 1202 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1203 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1204 | : ${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] | 1205 | ;; |
| 1206 | |
| 1207 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1208 | done |
| 1209 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1210 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1211 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1212 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1213 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1214 | fi |
| 1215 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1216 | if test -n "$ac_unrecognized_opts"; then |
| 1217 | case $enable_option_checking in |
| 1218 | no) ;; |
| 1219 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
| 1220 | { (exit 1); exit 1; }; } ;; |
| 1221 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1222 | esac |
| 1223 | fi |
| 1224 | |
| 1225 | # Check all directory arguments for consistency. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1226 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1227 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1228 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1229 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1230 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1231 | eval ac_val=\$$ac_var |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1232 | # Remove trailing slashes. |
| 1233 | case $ac_val in |
| 1234 | */ ) |
| 1235 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1236 | eval $ac_var=\$ac_val;; |
| 1237 | esac |
| 1238 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1239 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1240 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1241 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1242 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1243 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1244 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1245 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1246 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1247 | # There might be people who depend on the old broken behavior: `$host' |
| 1248 | # used to hold the argument of --host etc. |
| 1249 | # FIXME: To remove some day. |
| 1250 | build=$build_alias |
| 1251 | host=$host_alias |
| 1252 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1254 | # FIXME: To remove some day. |
| 1255 | if test "x$host_alias" != x; then |
| 1256 | if test "x$build_alias" = x; then |
| 1257 | cross_compiling=maybe |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1258 | $as_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] | 1259 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1260 | elif test "x$build_alias" != "x$host_alias"; then |
| 1261 | cross_compiling=yes |
| 1262 | fi |
| 1263 | fi |
| 1264 | |
| 1265 | ac_tool_prefix= |
| 1266 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1267 | |
| 1268 | test "$silent" = yes && exec 6>/dev/null |
| 1269 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1270 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1271 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1272 | ac_ls_di=`ls -di .` && |
| 1273 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1274 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1275 | { (exit 1); exit 1; }; } |
| 1276 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1277 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1278 | { (exit 1); exit 1; }; } |
| 1279 | |
| 1280 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1281 | # Find the source files, if location was not specified. |
| 1282 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1283 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1284 | # Try the directory containing this script, then the parent directory. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1285 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1286 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1287 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1288 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1289 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1290 | $as_echo X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1291 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1292 | s//\1/ |
| 1293 | q |
| 1294 | } |
| 1295 | /^X\(\/\/\)[^/].*/{ |
| 1296 | s//\1/ |
| 1297 | q |
| 1298 | } |
| 1299 | /^X\(\/\/\)$/{ |
| 1300 | s//\1/ |
| 1301 | q |
| 1302 | } |
| 1303 | /^X\(\/\).*/{ |
| 1304 | s//\1/ |
| 1305 | q |
| 1306 | } |
| 1307 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1308 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1309 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1310 | srcdir=.. |
| 1311 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1312 | else |
| 1313 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1314 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1315 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1316 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1317 | { $as_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] | 1318 | { (exit 1); exit 1; }; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1319 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1320 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1321 | ac_abs_confdir=`( |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1322 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1323 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1324 | pwd)` |
| 1325 | # When building in place, set srcdir=. |
| 1326 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1327 | srcdir=. |
| 1328 | fi |
| 1329 | # Remove unnecessary trailing slashes from srcdir. |
| 1330 | # Double slashes in file names in object file debugging info |
| 1331 | # mess up M-x gdb in Emacs. |
| 1332 | case $srcdir in |
| 1333 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1334 | esac |
| 1335 | for ac_var in $ac_precious_vars; do |
| 1336 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1337 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1338 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1339 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1340 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1342 | # |
| 1343 | # Report the --help message. |
| 1344 | # |
| 1345 | if test "$ac_init_help" = "long"; then |
| 1346 | # Omit some internal or obsolete options to make the list less imposing. |
| 1347 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1348 | cat <<_ACEOF |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1349 | \`configure' configures python 3.1 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1350 | |
| 1351 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1352 | |
| 1353 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1354 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1355 | |
| 1356 | Defaults for the options are specified in brackets. |
| 1357 | |
| 1358 | Configuration: |
| 1359 | -h, --help display this help and exit |
| 1360 | --help=short display options specific to this package |
| 1361 | --help=recursive display the short help of all the included packages |
| 1362 | -V, --version display version information and exit |
| 1363 | -q, --quiet, --silent do not print \`checking...' messages |
| 1364 | --cache-file=FILE cache test results in FILE [disabled] |
| 1365 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1366 | -n, --no-create do not create output files |
| 1367 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | Installation directories: |
| 1370 | --prefix=PREFIX install architecture-independent files in PREFIX |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1371 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1372 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1373 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1374 | |
| 1375 | By default, \`make install' will install all the files in |
| 1376 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1377 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1378 | for instance \`--prefix=\$HOME'. |
| 1379 | |
| 1380 | For better control, use the options below. |
| 1381 | |
| 1382 | Fine tuning of the installation directories: |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1383 | --bindir=DIR user executables [EPREFIX/bin] |
| 1384 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1385 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1386 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1387 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1388 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1389 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1390 | --includedir=DIR C header files [PREFIX/include] |
| 1391 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1392 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1393 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1394 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1395 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1396 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1397 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1398 | --htmldir=DIR html documentation [DOCDIR] |
| 1399 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1400 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1401 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1402 | _ACEOF |
| 1403 | |
| 1404 | cat <<\_ACEOF |
| 1405 | _ACEOF |
| 1406 | fi |
| 1407 | |
| 1408 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1409 | case $ac_init_help in |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1410 | short | recursive ) echo "Configuration of python 3.1:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1411 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1412 | cat <<\_ACEOF |
| 1413 | |
| 1414 | Optional Features: |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1415 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1417 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1418 | --enable-universalsdk[=SDKDIR] |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1419 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1420 | --enable-framework[=INSTALLDIR] |
| 1421 | Build (MacOSX|Darwin) framework |
| 1422 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1423 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1424 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1425 | --disable-ipv6 Disable ipv6 support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1426 | |
| 1427 | Optional Packages: |
| 1428 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1429 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1430 | --with-universal-archs=ARCH |
| 1431 | select architectures for universal build ("32-bit", |
| 1432 | "64-bit" or "all") |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1433 | --with-framework-name=FRAMEWORK |
| 1434 | specify an alternate name of the framework built |
| 1435 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1436 | --without-gcc never use gcc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1437 | --with-cxx-main=<compiler> |
| 1438 | compile main() and link python executable with C++ |
| 1439 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1440 | --with-suffix=.exe set executable suffix |
| 1441 | --with-pydebug build with Py_DEBUG defined |
| 1442 | --with-libs='lib1 ...' link against additional libs |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1443 | --with-system-ffi build _ctypes module using an installed ffi library |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1444 | --with-signal-module disable/enable signal module |
| 1445 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1446 | --with(out)-threads[=DIRECTORY] |
| 1447 | disable/enable thread support |
| 1448 | --with(out)-thread[=DIRECTORY] |
| 1449 | deprecated; use --with(out)-threads |
| 1450 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1451 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1452 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1453 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1454 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1455 | --with-fpectl enable SIGFPE catching |
| 1456 | --with-libm=STRING math library |
| 1457 | --with-libc=STRING C library |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1458 | --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1459 | --with-computed-gotos Use computed gotos / threaded dispatch in evaluation |
| 1460 | loop (not available on all compilers) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1461 | |
| 1462 | Some influential environment variables: |
| 1463 | CC C compiler command |
| 1464 | CFLAGS C compiler flags |
| 1465 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1466 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1467 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1468 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1469 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1470 | CPP C preprocessor |
| 1471 | |
| 1472 | Use these variables to override the choices made by `configure' or to help |
| 1473 | it to find libraries and programs with nonstandard names/locations. |
| 1474 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 1475 | Report bugs to <http://www.python.org/python-bugs>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1476 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1477 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1478 | fi |
| 1479 | |
| 1480 | if test "$ac_init_help" = "recursive"; then |
| 1481 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1482 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1483 | test -d "$ac_dir" || |
| 1484 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1485 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1486 | ac_builddir=. |
| 1487 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1488 | case "$ac_dir" in |
| 1489 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1490 | *) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1491 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1492 | # A ".." for each directory in $ac_dir_suffix. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1493 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1494 | case $ac_top_builddir_sub in |
| 1495 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1496 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1497 | esac ;; |
| 1498 | esac |
| 1499 | ac_abs_top_builddir=$ac_pwd |
| 1500 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1501 | # for backward compatibility: |
| 1502 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1503 | |
| 1504 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1505 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1506 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1507 | ac_top_srcdir=$ac_top_builddir_sub |
| 1508 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1509 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1510 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1511 | ac_top_srcdir=$srcdir |
| 1512 | ac_abs_top_srcdir=$srcdir ;; |
| 1513 | *) # Relative name. |
| 1514 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1515 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1516 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1517 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1518 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1519 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1520 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1521 | # Check for guested configure. |
| 1522 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1523 | echo && |
| 1524 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1525 | elif test -f "$ac_srcdir/configure"; then |
| 1526 | echo && |
| 1527 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1528 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1529 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1530 | fi || ac_status=$? |
| 1531 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1532 | done |
| 1533 | fi |
| 1534 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1535 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1536 | if $ac_init_version; then |
| 1537 | cat <<\_ACEOF |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1538 | python configure 3.1 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1539 | generated by GNU Autoconf 2.63 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1540 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1541 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1542 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1543 | This configure script is free software; the Free Software Foundation |
| 1544 | gives unlimited permission to copy, distribute and modify it. |
| 1545 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1546 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1547 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1548 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1549 | This file contains any messages produced by compilers while |
| 1550 | running configure, to aid debugging if configure makes a mistake. |
| 1551 | |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1552 | It was created by python $as_me 3.1, which was |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1553 | generated by GNU Autoconf 2.63. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1554 | |
| 1555 | $ $0 $@ |
| 1556 | |
| 1557 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1558 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1559 | { |
| 1560 | cat <<_ASUNAME |
| 1561 | ## --------- ## |
| 1562 | ## Platform. ## |
| 1563 | ## --------- ## |
| 1564 | |
| 1565 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1566 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1567 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1568 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1569 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1570 | |
| 1571 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1572 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1573 | |
| 1574 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1575 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1576 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1577 | /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] | 1578 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1579 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1580 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1581 | |
| 1582 | _ASUNAME |
| 1583 | |
| 1584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1585 | for as_dir in $PATH |
| 1586 | do |
| 1587 | IFS=$as_save_IFS |
| 1588 | test -z "$as_dir" && as_dir=. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1589 | $as_echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1590 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1591 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1592 | |
| 1593 | } >&5 |
| 1594 | |
| 1595 | cat >&5 <<_ACEOF |
| 1596 | |
| 1597 | |
| 1598 | ## ----------- ## |
| 1599 | ## Core tests. ## |
| 1600 | ## ----------- ## |
| 1601 | |
| 1602 | _ACEOF |
| 1603 | |
| 1604 | |
| 1605 | # Keep a trace of the command line. |
| 1606 | # 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] | 1607 | # 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] | 1608 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1609 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1610 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1611 | ac_configure_args0= |
| 1612 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1613 | ac_must_keep_next=false |
| 1614 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1615 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1616 | for ac_arg |
| 1617 | do |
| 1618 | case $ac_arg in |
| 1619 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1620 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1621 | | -silent | --silent | --silen | --sile | --sil) |
| 1622 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1623 | *\'*) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1624 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1625 | esac |
| 1626 | case $ac_pass in |
| 1627 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1628 | 2) |
| 1629 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1630 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1631 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1632 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1633 | case $ac_arg in |
| 1634 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1635 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1636 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1637 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1638 | case "$ac_configure_args0 " in |
| 1639 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1640 | esac |
| 1641 | ;; |
| 1642 | -* ) ac_must_keep_next=true ;; |
| 1643 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1644 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1645 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1646 | ;; |
| 1647 | esac |
| 1648 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1649 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1650 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1651 | $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] | 1652 | |
| 1653 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1654 | # config.log. We remove comments because anyway the quotes in there |
| 1655 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1656 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1657 | # 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] | 1658 | trap 'exit_status=$? |
| 1659 | # Save into config.log some information that might help in debugging. |
| 1660 | { |
| 1661 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1663 | cat <<\_ASBOX |
| 1664 | ## ---------------- ## |
| 1665 | ## Cache variables. ## |
| 1666 | ## ---------------- ## |
| 1667 | _ASBOX |
| 1668 | echo |
| 1669 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1670 | ( |
| 1671 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1672 | eval ac_val=\$$ac_var |
| 1673 | case $ac_val in #( |
| 1674 | *${as_nl}*) |
| 1675 | case $ac_var in #( |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1676 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1677 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1678 | esac |
| 1679 | case $ac_var in #( |
| 1680 | _ | IFS | as_nl) ;; #( |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1681 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1682 | *) $as_unset $ac_var ;; |
| 1683 | esac ;; |
| 1684 | esac |
| 1685 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1686 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1687 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1688 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1689 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1690 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1691 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1692 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1693 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1694 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1695 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1696 | esac | |
| 1697 | sort |
| 1698 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1699 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1700 | |
| 1701 | cat <<\_ASBOX |
| 1702 | ## ----------------- ## |
| 1703 | ## Output variables. ## |
| 1704 | ## ----------------- ## |
| 1705 | _ASBOX |
| 1706 | echo |
| 1707 | for ac_var in $ac_subst_vars |
| 1708 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1709 | eval ac_val=\$$ac_var |
| 1710 | case $ac_val in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1711 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1712 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1713 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1714 | done | sort |
| 1715 | echo |
| 1716 | |
| 1717 | if test -n "$ac_subst_files"; then |
| 1718 | cat <<\_ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1719 | ## ------------------- ## |
| 1720 | ## File substitutions. ## |
| 1721 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1722 | _ASBOX |
| 1723 | echo |
| 1724 | for ac_var in $ac_subst_files |
| 1725 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1726 | eval ac_val=\$$ac_var |
| 1727 | case $ac_val in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1728 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1729 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1730 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1731 | done | sort |
| 1732 | echo |
| 1733 | fi |
| 1734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1735 | if test -s confdefs.h; then |
| 1736 | cat <<\_ASBOX |
| 1737 | ## ----------- ## |
| 1738 | ## confdefs.h. ## |
| 1739 | ## ----------- ## |
| 1740 | _ASBOX |
| 1741 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1742 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1743 | echo |
| 1744 | fi |
| 1745 | test "$ac_signal" != 0 && |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1746 | $as_echo "$as_me: caught signal $ac_signal" |
| 1747 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1748 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1749 | rm -f core *.core core.conftest.* && |
| 1750 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1751 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1752 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1753 | for ac_signal in 1 2 13 15; do |
| 1754 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1755 | done |
| 1756 | ac_signal=0 |
| 1757 | |
| 1758 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1759 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1760 | |
| 1761 | # Predefined preprocessor variables. |
| 1762 | |
| 1763 | cat >>confdefs.h <<_ACEOF |
| 1764 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1765 | _ACEOF |
| 1766 | |
| 1767 | |
| 1768 | cat >>confdefs.h <<_ACEOF |
| 1769 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1770 | _ACEOF |
| 1771 | |
| 1772 | |
| 1773 | cat >>confdefs.h <<_ACEOF |
| 1774 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1775 | _ACEOF |
| 1776 | |
| 1777 | |
| 1778 | cat >>confdefs.h <<_ACEOF |
| 1779 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1780 | _ACEOF |
| 1781 | |
| 1782 | |
| 1783 | cat >>confdefs.h <<_ACEOF |
| 1784 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1785 | _ACEOF |
| 1786 | |
| 1787 | |
| 1788 | # Let the site file select an alternate cache file if it wants to. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1789 | # Prefer an explicitly selected file to automatically selected ones. |
| 1790 | ac_site_file1=NONE |
| 1791 | ac_site_file2=NONE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1792 | if test -n "$CONFIG_SITE"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1793 | ac_site_file1=$CONFIG_SITE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1794 | elif test "x$prefix" != xNONE; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1795 | ac_site_file1=$prefix/share/config.site |
| 1796 | ac_site_file2=$prefix/etc/config.site |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1797 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1798 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1799 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1800 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1801 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1802 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1803 | test "x$ac_site_file" = xNONE && continue |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1804 | if test -r "$ac_site_file"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1805 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1806 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1807 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1808 | . "$ac_site_file" |
| 1809 | fi |
| 1810 | done |
| 1811 | |
| 1812 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1813 | # Some versions of bash will fail to source /dev/null (special |
| 1814 | # files actually), so we avoid doing that. |
| 1815 | if test -f "$cache_file"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1816 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1817 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1818 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1819 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1820 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1821 | esac |
| 1822 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1823 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1824 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1825 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1826 | >$cache_file |
| 1827 | fi |
| 1828 | |
| 1829 | # Check that the precious variables saved in the cache have kept the same |
| 1830 | # value. |
| 1831 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1832 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1833 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1834 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1835 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1836 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1837 | case $ac_old_set,$ac_new_set in |
| 1838 | set,) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1839 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1840 | $as_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] | 1841 | ac_cache_corrupted=: ;; |
| 1842 | ,set) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1843 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1844 | $as_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] | 1845 | ac_cache_corrupted=: ;; |
| 1846 | ,);; |
| 1847 | *) |
| 1848 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1849 | # differences in whitespace do not lead to failure. |
| 1850 | ac_old_val_w=`echo x $ac_old_val` |
| 1851 | ac_new_val_w=`echo x $ac_new_val` |
| 1852 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1853 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1854 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1855 | ac_cache_corrupted=: |
| 1856 | else |
| 1857 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1858 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1859 | eval $ac_var=\$ac_old_val |
| 1860 | fi |
| 1861 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1862 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1863 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1864 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1865 | fi;; |
| 1866 | esac |
| 1867 | # Pass precious variables to config.status. |
| 1868 | if test "$ac_new_set" = set; then |
| 1869 | case $ac_new_val in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1870 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1871 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1872 | esac |
| 1873 | case " $ac_configure_args " in |
| 1874 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1875 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1876 | esac |
| 1877 | fi |
| 1878 | done |
| 1879 | if $ac_cache_corrupted; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1880 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1881 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1882 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1883 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1884 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1885 | $as_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] | 1886 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1887 | fi |
| 1888 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1913 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1914 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1918 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1919 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1920 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1921 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1922 | |
| 1923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1924 | |
| 1925 | |
| 1926 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1927 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1928 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1929 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1930 | # with other autoconf-based packages that include Python.h |
| 1931 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1932 | rm confdefs.h |
| 1933 | mv confdefs.h.new confdefs.h |
| 1934 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1935 | |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1936 | VERSION=3.1 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1937 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1938 | |
| 1939 | SOVERSION=1.0 |
| 1940 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1941 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1942 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1943 | |
| 1944 | cat >>confdefs.h <<\_ACEOF |
| 1945 | #define _GNU_SOURCE 1 |
| 1946 | _ACEOF |
| 1947 | |
| 1948 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1949 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1950 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1951 | # them. |
| 1952 | |
| 1953 | cat >>confdefs.h <<\_ACEOF |
| 1954 | #define _NETBSD_SOURCE 1 |
| 1955 | _ACEOF |
| 1956 | |
| 1957 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1958 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1959 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1960 | # them. |
| 1961 | |
| 1962 | cat >>confdefs.h <<\_ACEOF |
| 1963 | #define __BSD_VISIBLE 1 |
| 1964 | _ACEOF |
| 1965 | |
| 1966 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1967 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1968 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1969 | |
| 1970 | cat >>confdefs.h <<\_ACEOF |
| 1971 | #define _BSD_TYPES 1 |
| 1972 | _ACEOF |
| 1973 | |
| 1974 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1975 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1976 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1977 | # them. |
| 1978 | |
| 1979 | cat >>confdefs.h <<\_ACEOF |
| 1980 | #define _DARWIN_C_SOURCE 1 |
| 1981 | _ACEOF |
| 1982 | |
| 1983 | |
| 1984 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1985 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1986 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1987 | # Arguments passed to configure. |
| 1988 | |
| 1989 | CONFIG_ARGS="$ac_configure_args" |
| 1990 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1991 | # Check whether --enable-universalsdk was given. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1992 | if test "${enable_universalsdk+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1993 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1994 | case $enableval in |
| 1995 | yes) |
| 1996 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1997 | ;; |
| 1998 | esac |
| 1999 | case $enableval in |
| 2000 | no) |
| 2001 | UNIVERSALSDK= |
| 2002 | enable_universalsdk= |
| 2003 | ;; |
| 2004 | *) |
| 2005 | UNIVERSALSDK=$enableval |
| 2006 | ;; |
| 2007 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2008 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2009 | else |
| 2010 | |
| 2011 | UNIVERSALSDK= |
| 2012 | enable_universalsdk= |
| 2013 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2014 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2015 | |
| 2016 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2017 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 2018 | ARCH_RUN_32BIT= |
| 2019 | |
| 2020 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2021 | UNIVERSAL_ARCHS="32-bit" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2022 | { $as_echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 2023 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2024 | |
| 2025 | # Check whether --with-universal-archs was given. |
| 2026 | if test "${with_universal_archs+set}" = set; then |
| 2027 | withval=$with_universal_archs; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2028 | { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 2029 | $as_echo "$withval" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2030 | UNIVERSAL_ARCHS="$withval" |
| 2031 | |
| 2032 | else |
| 2033 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2034 | { $as_echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 2035 | $as_echo "32-bit" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2036 | |
| 2037 | fi |
| 2038 | |
| 2039 | |
| 2040 | |
| 2041 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2042 | |
| 2043 | # Check whether --with-framework-name was given. |
| 2044 | if test "${with_framework_name+set}" = set; then |
| 2045 | withval=$with_framework_name; |
| 2046 | PYTHONFRAMEWORK=${withval} |
| 2047 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 2048 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 2049 | |
| 2050 | else |
| 2051 | |
| 2052 | PYTHONFRAMEWORK=Python |
| 2053 | PYTHONFRAMEWORKDIR=Python.framework |
| 2054 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 2055 | |
| 2056 | fi |
| 2057 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2058 | # Check whether --enable-framework was given. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2059 | if test "${enable_framework+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2060 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2061 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2062 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2063 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2064 | esac |
| 2065 | case $enableval in |
| 2066 | no) |
| 2067 | PYTHONFRAMEWORK= |
| 2068 | PYTHONFRAMEWORKDIR=no-framework |
| 2069 | PYTHONFRAMEWORKPREFIX= |
| 2070 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2071 | FRAMEWORKINSTALLFIRST= |
| 2072 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2073 | FRAMEWORKALTINSTALLFIRST= |
| 2074 | FRAMEWORKALTINSTALLLAST= |
| 2075 | if test "x${prefix}" = "xNONE"; then |
| 2076 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2077 | else |
| 2078 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2079 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2080 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2081 | ;; |
| 2082 | *) |
| 2083 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2084 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2085 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2086 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
| 2087 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2088 | then |
| 2089 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
| 2090 | else |
| 2091 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 2092 | fi |
| 2093 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2094 | if test "x${prefix}" = "xNONE" ; then |
| 2095 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2096 | else |
| 2097 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2098 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2099 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2100 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2101 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2102 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2103 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2104 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2105 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2106 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2107 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2108 | |
| 2109 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2110 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2111 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2112 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2114 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2115 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2116 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2117 | PYTHONFRAMEWORKPREFIX= |
| 2118 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2119 | FRAMEWORKINSTALLFIRST= |
| 2120 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2121 | FRAMEWORKALTINSTALLFIRST= |
| 2122 | FRAMEWORKALTINSTALLLAST= |
| 2123 | if test "x${prefix}" = "xNONE" ; then |
| 2124 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2125 | else |
| 2126 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2127 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2128 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2129 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2130 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2131 | then |
| 2132 | FRAMEWORKINSTALLLAST=update4wayuniversal |
| 2133 | FRAMEWORKALTINSTALLLAST=update4wayuniversal |
| 2134 | fi |
| 2135 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2136 | fi |
| 2137 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2138 | |
| 2139 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2140 | |
| 2141 | |
| 2142 | |
| 2143 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2144 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2145 | |
| 2146 | |
| 2147 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2148 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2149 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2150 | ## AC_HELP_STRING(--with-dyld, |
| 2151 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2152 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2153 | # Set name for machine-dependent library files |
| 2154 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2155 | { $as_echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2156 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2157 | if test -z "$MACHDEP" |
| 2158 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2159 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2160 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 2161 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2162 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2163 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2164 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2165 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2166 | ac_md_system=`echo $ac_sys_system | |
| 2167 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2168 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2169 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2170 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2171 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2172 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2173 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2174 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2175 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2176 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2177 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2178 | esac |
| 2179 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2180 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2181 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2182 | # disable features if it is defined, without any means to access these |
| 2183 | # features as extensions. For these systems, we skip the definition of |
| 2184 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2185 | # some feature, make sure there is no alternative way to access this |
| 2186 | # feature. Also, when using wildcards, make sure you have verified the |
| 2187 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2188 | # wildcard, and that the wildcard does not include future systems |
| 2189 | # (which may remove their limitations). |
| 2190 | case $ac_sys_system/$ac_sys_release in |
| 2191 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2192 | # 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] | 2193 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 2194 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 2195 | define_xopen_source=no |
| 2196 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2197 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2198 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2199 | |
| 2200 | cat >>confdefs.h <<\_ACEOF |
| 2201 | #define _BSD_SOURCE 1 |
| 2202 | _ACEOF |
| 2203 | |
| 2204 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2205 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2206 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2207 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 2208 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2209 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2210 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2211 | # of union __?sigval. Reported by Stuart Bishop. |
| 2212 | SunOS/5.6) |
| 2213 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2214 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2215 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2216 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2217 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2218 | define_xopen_source=no;; |
| 2219 | # 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] | 2220 | # 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] | 2221 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2222 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 2223 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2224 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2225 | FreeBSD/4.*) |
| 2226 | define_xopen_source=no;; |
| 2227 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2228 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2229 | # identifies itself as Darwin/7.* |
| 2230 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2231 | # disables platform specific features beyond repair. |
| 2232 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2233 | # has no effect, don't bother defining them |
| 2234 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2235 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2236 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2237 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2238 | # 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] | 2239 | AIX/4) |
| 2240 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2241 | AIX/5) |
| 2242 | if test `uname -r` -eq 1; then |
| 2243 | define_xopen_source=no |
| 2244 | fi |
| 2245 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 2246 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2247 | # defining NI_NUMERICHOST. |
| 2248 | QNX/6.3.2) |
| 2249 | define_xopen_source=no |
| 2250 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2251 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2252 | esac |
| 2253 | |
| 2254 | if test $define_xopen_source = yes |
| 2255 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2256 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2257 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2258 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2259 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2260 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2261 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2262 | |
| 2263 | cat >>confdefs.h <<\_ACEOF |
| 2264 | #define _XOPEN_SOURCE 500 |
| 2265 | _ACEOF |
| 2266 | |
| 2267 | ;; |
| 2268 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2269 | |
| 2270 | cat >>confdefs.h <<\_ACEOF |
| 2271 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2272 | _ACEOF |
| 2273 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2274 | ;; |
| 2275 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2276 | |
| 2277 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2278 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2279 | # several APIs are not declared. Since this is also needed in some |
| 2280 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2281 | # except for Solaris 10, where it must not be defined, |
| 2282 | # as it implies XPG4.2 |
| 2283 | case $ac_sys_system/$ac_sys_release in |
| 2284 | SunOS/5.10) |
| 2285 | ;; |
| 2286 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2287 | |
| 2288 | cat >>confdefs.h <<\_ACEOF |
| 2289 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2290 | _ACEOF |
| 2291 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2292 | ;; |
| 2293 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2294 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2295 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2296 | cat >>confdefs.h <<\_ACEOF |
| 2297 | #define _POSIX_C_SOURCE 200112L |
| 2298 | _ACEOF |
| 2299 | |
| 2300 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2301 | fi |
| 2302 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2303 | # |
| 2304 | # SGI compilers allow the specification of the both the ABI and the |
| 2305 | # ISA on the command line. Depending on the values of these switches, |
| 2306 | # different and often incompatable code will be generated. |
| 2307 | # |
| 2308 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2309 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2310 | # variable is also adjusted. |
| 2311 | # |
| 2312 | |
| 2313 | if test ! -z "$SGI_ABI" |
| 2314 | then |
| 2315 | CC="cc $SGI_ABI" |
| 2316 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2317 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2318 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2319 | { $as_echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2320 | $as_echo "$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2321 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2322 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2323 | # it may influence the way we can build extensions, so distutils |
| 2324 | # needs to check it |
| 2325 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2326 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2327 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2328 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2329 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2330 | { $as_echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2331 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 2332 | ac_sys_machine=`uname -m` |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2333 | { $as_echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2334 | $as_echo "$ac_sys_machine" >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 2335 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2336 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2337 | |
| 2338 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2339 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2340 | # just to get things to compile and link. Users are free to override OPT |
| 2341 | # when running configure or make. The build should not break if they do. |
| 2342 | # BASECFLAGS should generally not be messed with, however. |
| 2343 | |
| 2344 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2345 | # on that fiddles with OPT and BASECFLAGS? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2346 | { $as_echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2347 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2348 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2349 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2350 | if test "${with_gcc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2351 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2352 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2353 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2354 | without_gcc=yes;; |
| 2355 | yes) CC=gcc |
| 2356 | without_gcc=no;; |
| 2357 | *) CC=$withval |
| 2358 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2359 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2360 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2361 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2362 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2363 | AIX*) CC=cc_r |
| 2364 | without_gcc=;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2365 | Monterey*) |
| 2366 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2367 | without_gcc=;; |
| 2368 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2369 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2370 | fi |
| 2371 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2372 | { $as_echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2373 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2374 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2375 | # If the user switches compilers, we can't believe the cache |
| 2376 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2377 | then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2378 | { { $as_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] | 2379 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2380 | $as_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] | 2381 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2382 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2383 | fi |
| 2384 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2385 | ac_ext=c |
| 2386 | ac_cpp='$CPP $CPPFLAGS' |
| 2387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2390 | if test -n "$ac_tool_prefix"; then |
| 2391 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2392 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2393 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2394 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2395 | if test "${ac_cv_prog_CC+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2396 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2397 | else |
| 2398 | if test -n "$CC"; then |
| 2399 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2402 | for as_dir in $PATH |
| 2403 | do |
| 2404 | IFS=$as_save_IFS |
| 2405 | test -z "$as_dir" && as_dir=. |
| 2406 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2407 | 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] | 2408 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2409 | $as_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] | 2410 | break 2 |
| 2411 | fi |
| 2412 | done |
| 2413 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2414 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2415 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2416 | fi |
| 2417 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2418 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2419 | if test -n "$CC"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2420 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2421 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2422 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2423 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2424 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2425 | fi |
| 2426 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2427 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2428 | fi |
| 2429 | if test -z "$ac_cv_prog_CC"; then |
| 2430 | ac_ct_CC=$CC |
| 2431 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2432 | set dummy gcc; ac_word=$2 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2433 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2434 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2435 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2436 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2437 | else |
| 2438 | if test -n "$ac_ct_CC"; then |
| 2439 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2440 | else |
| 2441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2442 | for as_dir in $PATH |
| 2443 | do |
| 2444 | IFS=$as_save_IFS |
| 2445 | test -z "$as_dir" && as_dir=. |
| 2446 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2447 | 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] | 2448 | ac_cv_prog_ac_ct_CC="gcc" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2449 | $as_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] | 2450 | break 2 |
| 2451 | fi |
| 2452 | done |
| 2453 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2454 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2455 | |
| 2456 | fi |
| 2457 | fi |
| 2458 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2459 | if test -n "$ac_ct_CC"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2460 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2461 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2462 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2463 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2464 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2465 | fi |
| 2466 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2467 | if test "x$ac_ct_CC" = x; then |
| 2468 | CC="" |
| 2469 | else |
| 2470 | case $cross_compiling:$ac_tool_warned in |
| 2471 | yes:) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2472 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2473 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2474 | ac_tool_warned=yes ;; |
| 2475 | esac |
| 2476 | CC=$ac_ct_CC |
| 2477 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2478 | else |
| 2479 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2480 | fi |
| 2481 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2482 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2483 | if test -n "$ac_tool_prefix"; then |
| 2484 | # 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] | 2485 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2486 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2487 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | if test "${ac_cv_prog_CC+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2489 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2490 | else |
| 2491 | if test -n "$CC"; then |
| 2492 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2493 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2495 | for as_dir in $PATH |
| 2496 | do |
| 2497 | IFS=$as_save_IFS |
| 2498 | test -z "$as_dir" && as_dir=. |
| 2499 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2500 | 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] | 2501 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2502 | $as_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] | 2503 | break 2 |
| 2504 | fi |
| 2505 | done |
| 2506 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2507 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2508 | |
| 2509 | fi |
| 2510 | fi |
| 2511 | CC=$ac_cv_prog_CC |
| 2512 | if test -n "$CC"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2513 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2514 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2515 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2516 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2517 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2518 | fi |
| 2519 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2522 | fi |
| 2523 | if test -z "$CC"; then |
| 2524 | # Extract the first word of "cc", so it can be a program name with args. |
| 2525 | set dummy cc; ac_word=$2 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2526 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2527 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2528 | if test "${ac_cv_prog_CC+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2529 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 | else |
| 2531 | if test -n "$CC"; then |
| 2532 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2533 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2534 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2536 | for as_dir in $PATH |
| 2537 | do |
| 2538 | IFS=$as_save_IFS |
| 2539 | test -z "$as_dir" && as_dir=. |
| 2540 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2541 | 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] | 2542 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2543 | ac_prog_rejected=yes |
| 2544 | continue |
| 2545 | fi |
| 2546 | ac_cv_prog_CC="cc" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2547 | $as_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] | 2548 | break 2 |
| 2549 | fi |
| 2550 | done |
| 2551 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2552 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2553 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2554 | if test $ac_prog_rejected = yes; then |
| 2555 | # We found a bogon in the path, so make sure we never use it. |
| 2556 | set dummy $ac_cv_prog_CC |
| 2557 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2558 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2559 | # We chose a different compiler from the bogus one. |
| 2560 | # However, it has the same basename, so the bogon will be chosen |
| 2561 | # first if we set CC to just the basename; use the full file name. |
| 2562 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2563 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2564 | fi |
| 2565 | fi |
| 2566 | fi |
| 2567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2568 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2569 | if test -n "$CC"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2570 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2571 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2572 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2573 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2574 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2575 | fi |
| 2576 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2577 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 | fi |
| 2579 | if test -z "$CC"; then |
| 2580 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2581 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2582 | do |
| 2583 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2584 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2585 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2586 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2587 | if test "${ac_cv_prog_CC+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2588 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2589 | else |
| 2590 | if test -n "$CC"; then |
| 2591 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2594 | for as_dir in $PATH |
| 2595 | do |
| 2596 | IFS=$as_save_IFS |
| 2597 | test -z "$as_dir" && as_dir=. |
| 2598 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2599 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2600 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2601 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2602 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2603 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2604 | done |
| 2605 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2606 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2607 | |
| 2608 | fi |
| 2609 | fi |
| 2610 | CC=$ac_cv_prog_CC |
| 2611 | if test -n "$CC"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2612 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2613 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2615 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2616 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2617 | fi |
| 2618 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2620 | test -n "$CC" && break |
| 2621 | done |
| 2622 | fi |
| 2623 | if test -z "$CC"; then |
| 2624 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2625 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2626 | do |
| 2627 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2628 | set dummy $ac_prog; ac_word=$2 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2629 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2630 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2631 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2632 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2633 | else |
| 2634 | if test -n "$ac_ct_CC"; then |
| 2635 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2636 | else |
| 2637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2638 | for as_dir in $PATH |
| 2639 | do |
| 2640 | IFS=$as_save_IFS |
| 2641 | test -z "$as_dir" && as_dir=. |
| 2642 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2643 | 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] | 2644 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2645 | $as_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] | 2646 | break 2 |
| 2647 | fi |
| 2648 | done |
| 2649 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2650 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2652 | fi |
| 2653 | fi |
| 2654 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2655 | if test -n "$ac_ct_CC"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2656 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2657 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2658 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2659 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2660 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2661 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2662 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2663 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2664 | test -n "$ac_ct_CC" && break |
| 2665 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2666 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2667 | if test "x$ac_ct_CC" = x; then |
| 2668 | CC="" |
| 2669 | else |
| 2670 | case $cross_compiling:$ac_tool_warned in |
| 2671 | yes:) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2672 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2673 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2674 | ac_tool_warned=yes ;; |
| 2675 | esac |
| 2676 | CC=$ac_ct_CC |
| 2677 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2678 | fi |
| 2679 | |
| 2680 | fi |
| 2681 | |
| 2682 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2683 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2684 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2685 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2686 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2687 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2688 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2689 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2690 | |
| 2691 | # Provide some information about the compiler. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2692 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2693 | set X $ac_compile |
| 2694 | ac_compiler=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2695 | { (ac_try="$ac_compiler --version >&5" |
| 2696 | case "(($ac_try" in |
| 2697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2698 | *) ac_try_echo=$ac_try;; |
| 2699 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2700 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2701 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2702 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2703 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2705 | (exit $ac_status); } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2706 | { (ac_try="$ac_compiler -v >&5" |
| 2707 | case "(($ac_try" in |
| 2708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2709 | *) ac_try_echo=$ac_try;; |
| 2710 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2711 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2712 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2713 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2714 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2715 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2716 | (exit $ac_status); } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2717 | { (ac_try="$ac_compiler -V >&5" |
| 2718 | case "(($ac_try" in |
| 2719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2720 | *) ac_try_echo=$ac_try;; |
| 2721 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2722 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2723 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2724 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2725 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2727 | (exit $ac_status); } |
| 2728 | |
| 2729 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2730 | /* confdefs.h. */ |
| 2731 | _ACEOF |
| 2732 | cat confdefs.h >>conftest.$ac_ext |
| 2733 | cat >>conftest.$ac_ext <<_ACEOF |
| 2734 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2736 | int |
| 2737 | main () |
| 2738 | { |
| 2739 | |
| 2740 | ; |
| 2741 | return 0; |
| 2742 | } |
| 2743 | _ACEOF |
| 2744 | ac_clean_files_save=$ac_clean_files |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2745 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2746 | # Try to create an executable without -o first, disregard a.out. |
| 2747 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2748 | # of exeext. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2749 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2750 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2751 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2752 | |
| 2753 | # The possible output files: |
| 2754 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2755 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2756 | ac_rmfiles= |
| 2757 | for ac_file in $ac_files |
| 2758 | do |
| 2759 | case $ac_file in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2760 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2761 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2762 | esac |
| 2763 | done |
| 2764 | rm -f $ac_rmfiles |
| 2765 | |
| 2766 | if { (ac_try="$ac_link_default" |
| 2767 | case "(($ac_try" in |
| 2768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2769 | *) ac_try_echo=$ac_try;; |
| 2770 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2771 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2772 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2773 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2774 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2775 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2776 | (exit $ac_status); }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2777 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2778 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2779 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2780 | # so that the user can short-circuit this test for compilers unknown to |
| 2781 | # Autoconf. |
| 2782 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2783 | do |
| 2784 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2785 | case $ac_file in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2786 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2787 | ;; |
| 2788 | [ab].out ) |
| 2789 | # We found the default executable, but exeext='' is most |
| 2790 | # certainly right. |
| 2791 | break;; |
| 2792 | *.* ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2793 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2794 | then :; else |
| 2795 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2796 | fi |
| 2797 | # We set ac_cv_exeext here because the later test for it is not |
| 2798 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2799 | # argument, so we may need to know it at that point already. |
| 2800 | # Even if this section looks crufty: it has the advantage of |
| 2801 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2802 | break;; |
| 2803 | * ) |
| 2804 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2805 | esac |
| 2806 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2807 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2808 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2809 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2810 | ac_file='' |
| 2811 | fi |
| 2812 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2813 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2814 | $as_echo "$ac_file" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2815 | if test -z "$ac_file"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2816 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2818 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2819 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2820 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2821 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2822 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2823 | $as_echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2824 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2825 | { (exit 77); exit 77; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2826 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2827 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2828 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2829 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2830 | # 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] | 2831 | # the compiler is broken, or we cross compile. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2832 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2833 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2834 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2835 | # If not cross compiling, check that we can run a simple program. |
| 2836 | if test "$cross_compiling" != yes; then |
| 2837 | if { ac_try='./$ac_file' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2838 | { (case "(($ac_try" in |
| 2839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2840 | *) ac_try_echo=$ac_try;; |
| 2841 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2842 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2843 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2844 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2845 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2846 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2847 | (exit $ac_status); }; }; then |
| 2848 | cross_compiling=no |
| 2849 | else |
| 2850 | if test "$cross_compiling" = maybe; then |
| 2851 | cross_compiling=yes |
| 2852 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2853 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2854 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2855 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2856 | If you meant to cross compile, use \`--host'. |
| 2857 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2858 | $as_echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2859 | If you meant to cross compile, use \`--host'. |
| 2860 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2861 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2862 | fi |
| 2863 | fi |
| 2864 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2865 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2866 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2867 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2868 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2869 | ac_clean_files=$ac_clean_files_save |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2870 | # Check that the compiler produces executables we can run. If not, either |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2871 | # the compiler is broken, or we cross compile. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2872 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2873 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2874 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2875 | $as_echo "$cross_compiling" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2876 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2877 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2878 | $as_echo_n "checking for suffix of executables... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2879 | if { (ac_try="$ac_link" |
| 2880 | case "(($ac_try" in |
| 2881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2882 | *) ac_try_echo=$ac_try;; |
| 2883 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2885 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2886 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2887 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2889 | (exit $ac_status); }; then |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2890 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2891 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2892 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2893 | # `rm'. |
| 2894 | for ac_file in conftest.exe conftest conftest.*; do |
| 2895 | test -f "$ac_file" || continue |
| 2896 | case $ac_file in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2897 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2898 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2899 | break;; |
| 2900 | * ) break;; |
| 2901 | esac |
| 2902 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2903 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2904 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2905 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2906 | { { $as_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] | 2907 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2908 | $as_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] | 2909 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2910 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2911 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2912 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2913 | rm -f conftest$ac_cv_exeext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2914 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2915 | $as_echo "$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2916 | |
| 2917 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | EXEEXT=$ac_cv_exeext |
| 2919 | ac_exeext=$EXEEXT |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2920 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2921 | $as_echo_n "checking for suffix of object files... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2922 | if test "${ac_cv_objext+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2923 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2924 | else |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2925 | cat >conftest.$ac_ext <<_ACEOF |
| 2926 | /* confdefs.h. */ |
| 2927 | _ACEOF |
| 2928 | cat confdefs.h >>conftest.$ac_ext |
| 2929 | cat >>conftest.$ac_ext <<_ACEOF |
| 2930 | /* end confdefs.h. */ |
| 2931 | |
| 2932 | int |
| 2933 | main () |
| 2934 | { |
| 2935 | |
| 2936 | ; |
| 2937 | return 0; |
| 2938 | } |
| 2939 | _ACEOF |
| 2940 | rm -f conftest.o conftest.obj |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2941 | if { (ac_try="$ac_compile" |
| 2942 | case "(($ac_try" in |
| 2943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2944 | *) ac_try_echo=$ac_try;; |
| 2945 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2946 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2947 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2948 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2949 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2951 | (exit $ac_status); }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2952 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2953 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2954 | case $ac_file in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2955 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2956 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2957 | break;; |
| 2958 | esac |
| 2959 | done |
| 2960 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2961 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2963 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2964 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2965 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2966 | { { $as_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] | 2967 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2968 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2969 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2970 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2971 | fi |
| 2972 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2973 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2974 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2975 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2976 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2977 | OBJEXT=$ac_cv_objext |
| 2978 | ac_objext=$OBJEXT |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2979 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2980 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2981 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2982 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2983 | else |
| 2984 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2985 | /* confdefs.h. */ |
| 2986 | _ACEOF |
| 2987 | cat confdefs.h >>conftest.$ac_ext |
| 2988 | cat >>conftest.$ac_ext <<_ACEOF |
| 2989 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2991 | int |
| 2992 | main () |
| 2993 | { |
| 2994 | #ifndef __GNUC__ |
| 2995 | choke me |
| 2996 | #endif |
| 2997 | |
| 2998 | ; |
| 2999 | return 0; |
| 3000 | } |
| 3001 | _ACEOF |
| 3002 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3003 | if { (ac_try="$ac_compile" |
| 3004 | case "(($ac_try" in |
| 3005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3006 | *) ac_try_echo=$ac_try;; |
| 3007 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3008 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3009 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3010 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3011 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3013 | rm -f conftest.er1 |
| 3014 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3015 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3016 | (exit $ac_status); } && { |
| 3017 | test -z "$ac_c_werror_flag" || |
| 3018 | test ! -s conftest.err |
| 3019 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3020 | ac_compiler_gnu=yes |
| 3021 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3022 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3024 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3025 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3026 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3027 | |
| 3028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3029 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3030 | |
| 3031 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3032 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3033 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3034 | if test $ac_compiler_gnu = yes; then |
| 3035 | GCC=yes |
| 3036 | else |
| 3037 | GCC= |
| 3038 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3039 | ac_test_CFLAGS=${CFLAGS+set} |
| 3040 | ac_save_CFLAGS=$CFLAGS |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3041 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3042 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3043 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3044 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3045 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3046 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3047 | ac_c_werror_flag=yes |
| 3048 | ac_cv_prog_cc_g=no |
| 3049 | CFLAGS="-g" |
| 3050 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3051 | /* confdefs.h. */ |
| 3052 | _ACEOF |
| 3053 | cat confdefs.h >>conftest.$ac_ext |
| 3054 | cat >>conftest.$ac_ext <<_ACEOF |
| 3055 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3056 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3057 | int |
| 3058 | main () |
| 3059 | { |
| 3060 | |
| 3061 | ; |
| 3062 | return 0; |
| 3063 | } |
| 3064 | _ACEOF |
| 3065 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3066 | if { (ac_try="$ac_compile" |
| 3067 | case "(($ac_try" in |
| 3068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3069 | *) ac_try_echo=$ac_try;; |
| 3070 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3071 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3072 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3073 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3074 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3076 | rm -f conftest.er1 |
| 3077 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3078 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3079 | (exit $ac_status); } && { |
| 3080 | test -z "$ac_c_werror_flag" || |
| 3081 | test ! -s conftest.err |
| 3082 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3083 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3084 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3085 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3087 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3088 | CFLAGS="" |
| 3089 | cat >conftest.$ac_ext <<_ACEOF |
| 3090 | /* confdefs.h. */ |
| 3091 | _ACEOF |
| 3092 | cat confdefs.h >>conftest.$ac_ext |
| 3093 | cat >>conftest.$ac_ext <<_ACEOF |
| 3094 | /* end confdefs.h. */ |
| 3095 | |
| 3096 | int |
| 3097 | main () |
| 3098 | { |
| 3099 | |
| 3100 | ; |
| 3101 | return 0; |
| 3102 | } |
| 3103 | _ACEOF |
| 3104 | rm -f conftest.$ac_objext |
| 3105 | if { (ac_try="$ac_compile" |
| 3106 | case "(($ac_try" in |
| 3107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3108 | *) ac_try_echo=$ac_try;; |
| 3109 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3110 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3111 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3112 | (eval "$ac_compile") 2>conftest.er1 |
| 3113 | ac_status=$? |
| 3114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3115 | rm -f conftest.er1 |
| 3116 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3117 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3118 | (exit $ac_status); } && { |
| 3119 | test -z "$ac_c_werror_flag" || |
| 3120 | test ! -s conftest.err |
| 3121 | } && test -s conftest.$ac_objext; then |
| 3122 | : |
| 3123 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3124 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3126 | |
| 3127 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3128 | CFLAGS="-g" |
| 3129 | cat >conftest.$ac_ext <<_ACEOF |
| 3130 | /* confdefs.h. */ |
| 3131 | _ACEOF |
| 3132 | cat confdefs.h >>conftest.$ac_ext |
| 3133 | cat >>conftest.$ac_ext <<_ACEOF |
| 3134 | /* end confdefs.h. */ |
| 3135 | |
| 3136 | int |
| 3137 | main () |
| 3138 | { |
| 3139 | |
| 3140 | ; |
| 3141 | return 0; |
| 3142 | } |
| 3143 | _ACEOF |
| 3144 | rm -f conftest.$ac_objext |
| 3145 | if { (ac_try="$ac_compile" |
| 3146 | case "(($ac_try" in |
| 3147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3148 | *) ac_try_echo=$ac_try;; |
| 3149 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3150 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3151 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3152 | (eval "$ac_compile") 2>conftest.er1 |
| 3153 | ac_status=$? |
| 3154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3155 | rm -f conftest.er1 |
| 3156 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3157 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3158 | (exit $ac_status); } && { |
| 3159 | test -z "$ac_c_werror_flag" || |
| 3160 | test ! -s conftest.err |
| 3161 | } && test -s conftest.$ac_objext; then |
| 3162 | ac_cv_prog_cc_g=yes |
| 3163 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3164 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3166 | |
| 3167 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3168 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3169 | |
| 3170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3171 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3172 | |
| 3173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3174 | fi |
| 3175 | |
| 3176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3177 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3178 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3179 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3180 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3181 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3182 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3183 | elif test $ac_cv_prog_cc_g = yes; then |
| 3184 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3185 | CFLAGS="-g -O2" |
| 3186 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3187 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3188 | fi |
| 3189 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3190 | if test "$GCC" = yes; then |
| 3191 | CFLAGS="-O2" |
| 3192 | else |
| 3193 | CFLAGS= |
| 3194 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3195 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3196 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3197 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3198 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3199 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3200 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3201 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3202 | ac_save_CC=$CC |
| 3203 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3204 | /* confdefs.h. */ |
| 3205 | _ACEOF |
| 3206 | cat confdefs.h >>conftest.$ac_ext |
| 3207 | cat >>conftest.$ac_ext <<_ACEOF |
| 3208 | /* end confdefs.h. */ |
| 3209 | #include <stdarg.h> |
| 3210 | #include <stdio.h> |
| 3211 | #include <sys/types.h> |
| 3212 | #include <sys/stat.h> |
| 3213 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3214 | struct buf { int x; }; |
| 3215 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3216 | static char *e (p, i) |
| 3217 | char **p; |
| 3218 | int i; |
| 3219 | { |
| 3220 | return p[i]; |
| 3221 | } |
| 3222 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3223 | { |
| 3224 | char *s; |
| 3225 | va_list v; |
| 3226 | va_start (v,p); |
| 3227 | s = g (p, va_arg (v,int)); |
| 3228 | va_end (v); |
| 3229 | return s; |
| 3230 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3231 | |
| 3232 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3233 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3234 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3235 | 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] | 3236 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3237 | array size at least. It's necessary to write '\x00'==0 to get something |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3238 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3239 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3240 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3241 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3242 | inside strings and character constants. */ |
| 3243 | #define FOO(x) 'x' |
| 3244 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3245 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3246 | int test (int i, double x); |
| 3247 | struct s1 {int (*f) (int a);}; |
| 3248 | struct s2 {int (*f) (double a);}; |
| 3249 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3250 | int argc; |
| 3251 | char **argv; |
| 3252 | int |
| 3253 | main () |
| 3254 | { |
| 3255 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3256 | ; |
| 3257 | return 0; |
| 3258 | } |
| 3259 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3260 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3261 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3262 | do |
| 3263 | CC="$ac_save_CC $ac_arg" |
| 3264 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3265 | if { (ac_try="$ac_compile" |
| 3266 | case "(($ac_try" in |
| 3267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3268 | *) ac_try_echo=$ac_try;; |
| 3269 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3270 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3271 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3272 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3273 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3275 | rm -f conftest.er1 |
| 3276 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3277 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3278 | (exit $ac_status); } && { |
| 3279 | test -z "$ac_c_werror_flag" || |
| 3280 | test ! -s conftest.err |
| 3281 | } && test -s conftest.$ac_objext; then |
| 3282 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3283 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3284 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3286 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3287 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3288 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3289 | |
| 3290 | rm -f core conftest.err conftest.$ac_objext |
| 3291 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3292 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3293 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3294 | CC=$ac_save_CC |
| 3295 | |
| 3296 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3297 | # AC_CACHE_VAL |
| 3298 | case "x$ac_cv_prog_cc_c89" in |
| 3299 | x) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3300 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 3301 | $as_echo "none needed" >&6; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3302 | xno) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3303 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3304 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3305 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3306 | CC="$CC $ac_cv_prog_cc_c89" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3307 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3308 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3309 | esac |
| 3310 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3312 | ac_ext=c |
| 3313 | ac_cpp='$CPP $CPPFLAGS' |
| 3314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3317 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3318 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3319 | |
| 3320 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3321 | { $as_echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3322 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3323 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3324 | # Check whether --with-cxx_main was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3325 | if test "${with_cxx_main+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3326 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3327 | |
| 3328 | case $withval in |
| 3329 | no) with_cxx_main=no |
| 3330 | MAINCC='$(CC)';; |
| 3331 | yes) with_cxx_main=yes |
| 3332 | MAINCC='$(CXX)';; |
| 3333 | *) with_cxx_main=yes |
| 3334 | MAINCC=$withval |
| 3335 | if test -z "$CXX" |
| 3336 | then |
| 3337 | CXX=$withval |
| 3338 | fi;; |
| 3339 | esac |
| 3340 | else |
| 3341 | |
| 3342 | with_cxx_main=no |
| 3343 | MAINCC='$(CC)' |
| 3344 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3345 | fi |
| 3346 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3347 | { $as_echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3348 | $as_echo "$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3349 | |
| 3350 | preset_cxx="$CXX" |
| 3351 | if test -z "$CXX" |
| 3352 | then |
| 3353 | case "$CC" in |
| 3354 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3355 | set dummy g++; ac_word=$2 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3356 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3357 | $as_echo_n "checking for $ac_word... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3358 | if test "${ac_cv_path_CXX+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3359 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3360 | else |
| 3361 | case $CXX in |
| 3362 | [\\/]* | ?:[\\/]*) |
| 3363 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3364 | ;; |
| 3365 | *) |
| 3366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3367 | for as_dir in notfound |
| 3368 | do |
| 3369 | IFS=$as_save_IFS |
| 3370 | test -z "$as_dir" && as_dir=. |
| 3371 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3373 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3374 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3375 | break 2 |
| 3376 | fi |
| 3377 | done |
| 3378 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3379 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3380 | |
| 3381 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3382 | ;; |
| 3383 | esac |
| 3384 | fi |
| 3385 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3386 | if test -n "$CXX"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3387 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3388 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3389 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3390 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3391 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3392 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3393 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3394 | ;; |
| 3395 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3396 | set dummy c++; ac_word=$2 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3397 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3398 | $as_echo_n "checking for $ac_word... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3399 | if test "${ac_cv_path_CXX+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3400 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3401 | else |
| 3402 | case $CXX in |
| 3403 | [\\/]* | ?:[\\/]*) |
| 3404 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3405 | ;; |
| 3406 | *) |
| 3407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3408 | for as_dir in notfound |
| 3409 | do |
| 3410 | IFS=$as_save_IFS |
| 3411 | test -z "$as_dir" && as_dir=. |
| 3412 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3414 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3415 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3416 | break 2 |
| 3417 | fi |
| 3418 | done |
| 3419 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3420 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3421 | |
| 3422 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3423 | ;; |
| 3424 | esac |
| 3425 | fi |
| 3426 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3427 | if test -n "$CXX"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3428 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3429 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3430 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3431 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3432 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3433 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3434 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3435 | ;; |
| 3436 | esac |
| 3437 | if test "$CXX" = "notfound" |
| 3438 | then |
| 3439 | CXX="" |
| 3440 | fi |
| 3441 | fi |
| 3442 | if test -z "$CXX" |
| 3443 | then |
| 3444 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3445 | do |
| 3446 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3447 | set dummy $ac_prog; ac_word=$2 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3448 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3449 | $as_echo_n "checking for $ac_word... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3450 | if test "${ac_cv_prog_CXX+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3451 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3452 | else |
| 3453 | if test -n "$CXX"; then |
| 3454 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3455 | else |
| 3456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3457 | for as_dir in $PATH |
| 3458 | do |
| 3459 | IFS=$as_save_IFS |
| 3460 | test -z "$as_dir" && as_dir=. |
| 3461 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3462 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3463 | ac_cv_prog_CXX="$ac_prog" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3464 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3465 | break 2 |
| 3466 | fi |
| 3467 | done |
| 3468 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3469 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3470 | |
| 3471 | fi |
| 3472 | fi |
| 3473 | CXX=$ac_cv_prog_CXX |
| 3474 | if test -n "$CXX"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3475 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3476 | $as_echo "$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3477 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3478 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3479 | $as_echo "no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3480 | fi |
| 3481 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3482 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3483 | test -n "$CXX" && break |
| 3484 | done |
| 3485 | test -n "$CXX" || CXX="notfound" |
| 3486 | |
| 3487 | if test "$CXX" = "notfound" |
| 3488 | then |
| 3489 | CXX="" |
| 3490 | fi |
| 3491 | fi |
| 3492 | if test "$preset_cxx" != "$CXX" |
| 3493 | then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3494 | { $as_echo "$as_me:$LINENO: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3495 | |
| 3496 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3497 | If this is not intended, then set CXX on the configure command line. |
| 3498 | " >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3499 | $as_echo "$as_me: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3500 | |
| 3501 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3502 | If this is not intended, then set CXX on the configure command line. |
| 3503 | " >&2;} |
| 3504 | fi |
| 3505 | |
| 3506 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3507 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3508 | |
| 3509 | ac_ext=c |
| 3510 | ac_cpp='$CPP $CPPFLAGS' |
| 3511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3514 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3515 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3516 | # On Suns, sometimes $CPP names a directory. |
| 3517 | if test -n "$CPP" && test -d "$CPP"; then |
| 3518 | CPP= |
| 3519 | fi |
| 3520 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3521 | if test "${ac_cv_prog_CPP+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3522 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3523 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3524 | # Double quotes because CPP needs to be expanded |
| 3525 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3526 | do |
| 3527 | ac_preproc_ok=false |
| 3528 | for ac_c_preproc_warn_flag in '' yes |
| 3529 | do |
| 3530 | # Use a header file that comes with gcc, so configuring glibc |
| 3531 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3532 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3533 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3534 | # 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] | 3535 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3536 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3537 | /* confdefs.h. */ |
| 3538 | _ACEOF |
| 3539 | cat confdefs.h >>conftest.$ac_ext |
| 3540 | cat >>conftest.$ac_ext <<_ACEOF |
| 3541 | /* end confdefs.h. */ |
| 3542 | #ifdef __STDC__ |
| 3543 | # include <limits.h> |
| 3544 | #else |
| 3545 | # include <assert.h> |
| 3546 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3547 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3548 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3549 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3550 | case "(($ac_try" in |
| 3551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3552 | *) ac_try_echo=$ac_try;; |
| 3553 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3555 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3556 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3557 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3558 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3559 | rm -f conftest.er1 |
| 3560 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3562 | (exit $ac_status); } >/dev/null && { |
| 3563 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3564 | test ! -s conftest.err |
| 3565 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3566 | : |
| 3567 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3568 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3570 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3571 | # Broken: fails on valid input. |
| 3572 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3573 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3575 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3576 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3577 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3578 | # can be detected and how. |
| 3579 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3580 | /* confdefs.h. */ |
| 3581 | _ACEOF |
| 3582 | cat confdefs.h >>conftest.$ac_ext |
| 3583 | cat >>conftest.$ac_ext <<_ACEOF |
| 3584 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3585 | #include <ac_nonexistent.h> |
| 3586 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3587 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3588 | case "(($ac_try" in |
| 3589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3590 | *) ac_try_echo=$ac_try;; |
| 3591 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3593 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3594 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3595 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3596 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3597 | rm -f conftest.er1 |
| 3598 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3599 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3600 | (exit $ac_status); } >/dev/null && { |
| 3601 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3602 | test ! -s conftest.err |
| 3603 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3604 | # Broken: success on invalid input. |
| 3605 | continue |
| 3606 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3607 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3610 | # Passes both tests. |
| 3611 | ac_preproc_ok=: |
| 3612 | break |
| 3613 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3615 | rm -f conftest.err conftest.$ac_ext |
| 3616 | |
| 3617 | done |
| 3618 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3619 | rm -f conftest.err conftest.$ac_ext |
| 3620 | if $ac_preproc_ok; then |
| 3621 | break |
| 3622 | fi |
| 3623 | |
| 3624 | done |
| 3625 | ac_cv_prog_CPP=$CPP |
| 3626 | |
| 3627 | fi |
| 3628 | CPP=$ac_cv_prog_CPP |
| 3629 | else |
| 3630 | ac_cv_prog_CPP=$CPP |
| 3631 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3632 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3633 | $as_echo "$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3634 | ac_preproc_ok=false |
| 3635 | for ac_c_preproc_warn_flag in '' yes |
| 3636 | do |
| 3637 | # Use a header file that comes with gcc, so configuring glibc |
| 3638 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3639 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3640 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3641 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3642 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3643 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3644 | /* confdefs.h. */ |
| 3645 | _ACEOF |
| 3646 | cat confdefs.h >>conftest.$ac_ext |
| 3647 | cat >>conftest.$ac_ext <<_ACEOF |
| 3648 | /* end confdefs.h. */ |
| 3649 | #ifdef __STDC__ |
| 3650 | # include <limits.h> |
| 3651 | #else |
| 3652 | # include <assert.h> |
| 3653 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3654 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3655 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3656 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3657 | case "(($ac_try" in |
| 3658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3659 | *) ac_try_echo=$ac_try;; |
| 3660 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3661 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3662 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3663 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3664 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3665 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3666 | rm -f conftest.er1 |
| 3667 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3669 | (exit $ac_status); } >/dev/null && { |
| 3670 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3671 | test ! -s conftest.err |
| 3672 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3673 | : |
| 3674 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3675 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3678 | # Broken: fails on valid input. |
| 3679 | continue |
| 3680 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3682 | rm -f conftest.err conftest.$ac_ext |
| 3683 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3684 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3685 | # can be detected and how. |
| 3686 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3687 | /* confdefs.h. */ |
| 3688 | _ACEOF |
| 3689 | cat confdefs.h >>conftest.$ac_ext |
| 3690 | cat >>conftest.$ac_ext <<_ACEOF |
| 3691 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3692 | #include <ac_nonexistent.h> |
| 3693 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3694 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3695 | case "(($ac_try" in |
| 3696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3697 | *) ac_try_echo=$ac_try;; |
| 3698 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3700 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3701 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3703 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3704 | rm -f conftest.er1 |
| 3705 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3707 | (exit $ac_status); } >/dev/null && { |
| 3708 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3709 | test ! -s conftest.err |
| 3710 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3711 | # Broken: success on invalid input. |
| 3712 | continue |
| 3713 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3714 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3717 | # Passes both tests. |
| 3718 | ac_preproc_ok=: |
| 3719 | break |
| 3720 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 | rm -f conftest.err conftest.$ac_ext |
| 3723 | |
| 3724 | done |
| 3725 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3726 | rm -f conftest.err conftest.$ac_ext |
| 3727 | if $ac_preproc_ok; then |
| 3728 | : |
| 3729 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3730 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3731 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3732 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3733 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3734 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3735 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3736 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3737 | fi |
| 3738 | |
| 3739 | ac_ext=c |
| 3740 | ac_cpp='$CPP $CPPFLAGS' |
| 3741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3744 | |
| 3745 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3746 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3747 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3748 | if test "${ac_cv_path_GREP+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3749 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3750 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3751 | if test -z "$GREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3752 | ac_path_GREP_found=false |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3753 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3755 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3756 | do |
| 3757 | IFS=$as_save_IFS |
| 3758 | test -z "$as_dir" && as_dir=. |
| 3759 | for ac_prog in grep ggrep; do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3760 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3761 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3762 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3763 | # Check for GNU ac_path_GREP and select it if it is found. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3764 | # Check for GNU $ac_path_GREP |
| 3765 | case `"$ac_path_GREP" --version 2>&1` in |
| 3766 | *GNU*) |
| 3767 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3768 | *) |
| 3769 | ac_count=0 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3770 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3771 | while : |
| 3772 | do |
| 3773 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3774 | mv "conftest.tmp" "conftest.in" |
| 3775 | cp "conftest.in" "conftest.nl" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3776 | $as_echo 'GREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3777 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3778 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3779 | ac_count=`expr $ac_count + 1` |
| 3780 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3781 | # Best one so far, save it but keep looking for a better one |
| 3782 | ac_cv_path_GREP="$ac_path_GREP" |
| 3783 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3784 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3785 | # 10*(2^10) chars as input seems more than enough |
| 3786 | test $ac_count -gt 10 && break |
| 3787 | done |
| 3788 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3789 | esac |
| 3790 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3791 | $ac_path_GREP_found && break 3 |
| 3792 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3793 | done |
| 3794 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3795 | IFS=$as_save_IFS |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3796 | if test -z "$ac_cv_path_GREP"; then |
| 3797 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3798 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3799 | { (exit 1); exit 1; }; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3800 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3801 | else |
| 3802 | ac_cv_path_GREP=$GREP |
| 3803 | fi |
| 3804 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3805 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3806 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3807 | $as_echo "$ac_cv_path_GREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3808 | GREP="$ac_cv_path_GREP" |
| 3809 | |
| 3810 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3811 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3812 | $as_echo_n "checking for egrep... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3813 | if test "${ac_cv_path_EGREP+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3814 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3815 | else |
| 3816 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3817 | then ac_cv_path_EGREP="$GREP -E" |
| 3818 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3819 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3820 | ac_path_EGREP_found=false |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3821 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3823 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3824 | do |
| 3825 | IFS=$as_save_IFS |
| 3826 | test -z "$as_dir" && as_dir=. |
| 3827 | for ac_prog in egrep; do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3828 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3829 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3830 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3831 | # Check for GNU ac_path_EGREP and select it if it is found. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3832 | # Check for GNU $ac_path_EGREP |
| 3833 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3834 | *GNU*) |
| 3835 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3836 | *) |
| 3837 | ac_count=0 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3838 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3839 | while : |
| 3840 | do |
| 3841 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3842 | mv "conftest.tmp" "conftest.in" |
| 3843 | cp "conftest.in" "conftest.nl" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3844 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3845 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3846 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3847 | ac_count=`expr $ac_count + 1` |
| 3848 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3849 | # Best one so far, save it but keep looking for a better one |
| 3850 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3851 | ac_path_EGREP_max=$ac_count |
| 3852 | fi |
| 3853 | # 10*(2^10) chars as input seems more than enough |
| 3854 | test $ac_count -gt 10 && break |
| 3855 | done |
| 3856 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3857 | esac |
| 3858 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3859 | $ac_path_EGREP_found && break 3 |
| 3860 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3861 | done |
| 3862 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3863 | IFS=$as_save_IFS |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3864 | if test -z "$ac_cv_path_EGREP"; then |
| 3865 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3866 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3867 | { (exit 1); exit 1; }; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3868 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3869 | else |
| 3870 | ac_cv_path_EGREP=$EGREP |
| 3871 | fi |
| 3872 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3873 | fi |
| 3874 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3875 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3876 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3877 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3878 | |
| 3879 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3880 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3881 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3882 | if test "${ac_cv_header_stdc+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3883 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3885 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3886 | /* confdefs.h. */ |
| 3887 | _ACEOF |
| 3888 | cat confdefs.h >>conftest.$ac_ext |
| 3889 | cat >>conftest.$ac_ext <<_ACEOF |
| 3890 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3891 | #include <stdlib.h> |
| 3892 | #include <stdarg.h> |
| 3893 | #include <string.h> |
| 3894 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3895 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3896 | int |
| 3897 | main () |
| 3898 | { |
| 3899 | |
| 3900 | ; |
| 3901 | return 0; |
| 3902 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3903 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3904 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3905 | if { (ac_try="$ac_compile" |
| 3906 | case "(($ac_try" in |
| 3907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3908 | *) ac_try_echo=$ac_try;; |
| 3909 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3911 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3912 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3913 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3915 | rm -f conftest.er1 |
| 3916 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3918 | (exit $ac_status); } && { |
| 3919 | test -z "$ac_c_werror_flag" || |
| 3920 | test ! -s conftest.err |
| 3921 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3922 | ac_cv_header_stdc=yes |
| 3923 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3924 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3926 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3927 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3928 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3929 | |
| 3930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3931 | |
| 3932 | if test $ac_cv_header_stdc = yes; then |
| 3933 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3934 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3935 | /* confdefs.h. */ |
| 3936 | _ACEOF |
| 3937 | cat confdefs.h >>conftest.$ac_ext |
| 3938 | cat >>conftest.$ac_ext <<_ACEOF |
| 3939 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3940 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3941 | |
| 3942 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3943 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3944 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3945 | : |
| 3946 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3947 | ac_cv_header_stdc=no |
| 3948 | fi |
| 3949 | rm -f conftest* |
| 3950 | |
| 3951 | fi |
| 3952 | |
| 3953 | if test $ac_cv_header_stdc = yes; then |
| 3954 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3955 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3956 | /* confdefs.h. */ |
| 3957 | _ACEOF |
| 3958 | cat confdefs.h >>conftest.$ac_ext |
| 3959 | cat >>conftest.$ac_ext <<_ACEOF |
| 3960 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3961 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3962 | |
| 3963 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3964 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3965 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3966 | : |
| 3967 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3968 | ac_cv_header_stdc=no |
| 3969 | fi |
| 3970 | rm -f conftest* |
| 3971 | |
| 3972 | fi |
| 3973 | |
| 3974 | if test $ac_cv_header_stdc = yes; then |
| 3975 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3976 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3977 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3978 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3979 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3980 | /* confdefs.h. */ |
| 3981 | _ACEOF |
| 3982 | cat confdefs.h >>conftest.$ac_ext |
| 3983 | cat >>conftest.$ac_ext <<_ACEOF |
| 3984 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3985 | #include <ctype.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3986 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3987 | #if ((' ' & 0x0FF) == 0x020) |
| 3988 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3989 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3990 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3991 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3992 | (('a' <= (c) && (c) <= 'i') \ |
| 3993 | || ('j' <= (c) && (c) <= 'r') \ |
| 3994 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3995 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3996 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3998 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3999 | int |
| 4000 | main () |
| 4001 | { |
| 4002 | int i; |
| 4003 | for (i = 0; i < 256; i++) |
| 4004 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4005 | || toupper (i) != TOUPPER (i)) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4006 | return 2; |
| 4007 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4008 | } |
| 4009 | _ACEOF |
| 4010 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4011 | if { (ac_try="$ac_link" |
| 4012 | case "(($ac_try" in |
| 4013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4014 | *) ac_try_echo=$ac_try;; |
| 4015 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4016 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4017 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4018 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4019 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4020 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4021 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4022 | { (case "(($ac_try" in |
| 4023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4024 | *) ac_try_echo=$ac_try;; |
| 4025 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4026 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4027 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4028 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4029 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4031 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4032 | : |
| 4033 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4034 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 4035 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4038 | ( exit $ac_status ) |
| 4039 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4040 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4041 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4042 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4043 | fi |
| 4044 | |
| 4045 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4046 | fi |
| 4047 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4048 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4049 | $as_echo "$ac_cv_header_stdc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4050 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4051 | |
| 4052 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4053 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4054 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4055 | |
| 4056 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4057 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4058 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4059 | |
| 4060 | |
| 4061 | |
| 4062 | |
| 4063 | |
| 4064 | |
| 4065 | |
| 4066 | |
| 4067 | |
| 4068 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4069 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4070 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4071 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4072 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4073 | $as_echo_n "checking for $ac_header... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4074 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4075 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4076 | else |
| 4077 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4078 | /* confdefs.h. */ |
| 4079 | _ACEOF |
| 4080 | cat confdefs.h >>conftest.$ac_ext |
| 4081 | cat >>conftest.$ac_ext <<_ACEOF |
| 4082 | /* end confdefs.h. */ |
| 4083 | $ac_includes_default |
| 4084 | |
| 4085 | #include <$ac_header> |
| 4086 | _ACEOF |
| 4087 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4088 | if { (ac_try="$ac_compile" |
| 4089 | case "(($ac_try" in |
| 4090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4091 | *) ac_try_echo=$ac_try;; |
| 4092 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4094 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4095 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4096 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4098 | rm -f conftest.er1 |
| 4099 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4101 | (exit $ac_status); } && { |
| 4102 | test -z "$ac_c_werror_flag" || |
| 4103 | test ! -s conftest.err |
| 4104 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4105 | eval "$as_ac_Header=yes" |
| 4106 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4107 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4109 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4110 | eval "$as_ac_Header=no" |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4111 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4112 | |
| 4113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4114 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4115 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 4116 | $as_echo "$as_val"'` |
| 4117 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4118 | $as_echo "$ac_res" >&6; } |
| 4119 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 4120 | $as_echo "$as_val"'` |
| 4121 | if test "x$as_val" = x""yes; then |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4122 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4123 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4124 | _ACEOF |
| 4125 | |
| 4126 | fi |
| 4127 | |
| 4128 | done |
| 4129 | |
| 4130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4131 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4132 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 4133 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 4134 | $as_echo_n "checking for minix/config.h... " >&6; } |
| 4135 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 4136 | $as_echo_n "(cached) " >&6 |
| 4137 | fi |
| 4138 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 4139 | $as_echo "$ac_cv_header_minix_config_h" >&6; } |
| 4140 | else |
| 4141 | # Is the header compilable? |
| 4142 | { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 4143 | $as_echo_n "checking minix/config.h usability... " >&6; } |
| 4144 | cat >conftest.$ac_ext <<_ACEOF |
| 4145 | /* confdefs.h. */ |
| 4146 | _ACEOF |
| 4147 | cat confdefs.h >>conftest.$ac_ext |
| 4148 | cat >>conftest.$ac_ext <<_ACEOF |
| 4149 | /* end confdefs.h. */ |
| 4150 | $ac_includes_default |
| 4151 | #include <minix/config.h> |
| 4152 | _ACEOF |
| 4153 | rm -f conftest.$ac_objext |
| 4154 | if { (ac_try="$ac_compile" |
| 4155 | case "(($ac_try" in |
| 4156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4157 | *) ac_try_echo=$ac_try;; |
| 4158 | esac |
| 4159 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4160 | $as_echo "$ac_try_echo") >&5 |
| 4161 | (eval "$ac_compile") 2>conftest.er1 |
| 4162 | ac_status=$? |
| 4163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4164 | rm -f conftest.er1 |
| 4165 | cat conftest.err >&5 |
| 4166 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4167 | (exit $ac_status); } && { |
| 4168 | test -z "$ac_c_werror_flag" || |
| 4169 | test ! -s conftest.err |
| 4170 | } && test -s conftest.$ac_objext; then |
| 4171 | ac_header_compiler=yes |
| 4172 | else |
| 4173 | $as_echo "$as_me: failed program was:" >&5 |
| 4174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4175 | |
| 4176 | ac_header_compiler=no |
| 4177 | fi |
| 4178 | |
| 4179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4180 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4181 | $as_echo "$ac_header_compiler" >&6; } |
| 4182 | |
| 4183 | # Is the header present? |
| 4184 | { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 4185 | $as_echo_n "checking minix/config.h presence... " >&6; } |
| 4186 | cat >conftest.$ac_ext <<_ACEOF |
| 4187 | /* confdefs.h. */ |
| 4188 | _ACEOF |
| 4189 | cat confdefs.h >>conftest.$ac_ext |
| 4190 | cat >>conftest.$ac_ext <<_ACEOF |
| 4191 | /* end confdefs.h. */ |
| 4192 | #include <minix/config.h> |
| 4193 | _ACEOF |
| 4194 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4195 | case "(($ac_try" in |
| 4196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4197 | *) ac_try_echo=$ac_try;; |
| 4198 | esac |
| 4199 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4200 | $as_echo "$ac_try_echo") >&5 |
| 4201 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4202 | ac_status=$? |
| 4203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4204 | rm -f conftest.er1 |
| 4205 | cat conftest.err >&5 |
| 4206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4207 | (exit $ac_status); } >/dev/null && { |
| 4208 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4209 | test ! -s conftest.err |
| 4210 | }; then |
| 4211 | ac_header_preproc=yes |
| 4212 | else |
| 4213 | $as_echo "$as_me: failed program was:" >&5 |
| 4214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4215 | |
| 4216 | ac_header_preproc=no |
| 4217 | fi |
| 4218 | |
| 4219 | rm -f conftest.err conftest.$ac_ext |
| 4220 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4221 | $as_echo "$ac_header_preproc" >&6; } |
| 4222 | |
| 4223 | # So? What about this header? |
| 4224 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4225 | yes:no: ) |
| 4226 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4227 | $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4228 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 |
| 4229 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} |
| 4230 | ac_header_preproc=yes |
| 4231 | ;; |
| 4232 | no:yes:* ) |
| 4233 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 4234 | $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 4235 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 4236 | $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 4237 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 |
| 4238 | $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} |
| 4239 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4240 | $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4241 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 4242 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 4243 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 |
| 4244 | $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} |
| 4245 | ( cat <<\_ASBOX |
| 4246 | ## ------------------------------------------------ ## |
| 4247 | ## Report this to http://www.python.org/python-bugs ## |
| 4248 | ## ------------------------------------------------ ## |
| 4249 | _ASBOX |
| 4250 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 4251 | ;; |
| 4252 | esac |
| 4253 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 4254 | $as_echo_n "checking for minix/config.h... " >&6; } |
| 4255 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 4256 | $as_echo_n "(cached) " >&6 |
| 4257 | else |
| 4258 | ac_cv_header_minix_config_h=$ac_header_preproc |
| 4259 | fi |
| 4260 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 4261 | $as_echo "$ac_cv_header_minix_config_h" >&6; } |
| 4262 | |
| 4263 | fi |
| 4264 | if test "x$ac_cv_header_minix_config_h" = x""yes; then |
| 4265 | MINIX=yes |
| 4266 | else |
| 4267 | MINIX= |
| 4268 | fi |
| 4269 | |
| 4270 | |
| 4271 | if test "$MINIX" = yes; then |
| 4272 | |
| 4273 | cat >>confdefs.h <<\_ACEOF |
| 4274 | #define _POSIX_SOURCE 1 |
| 4275 | _ACEOF |
| 4276 | |
| 4277 | |
| 4278 | cat >>confdefs.h <<\_ACEOF |
| 4279 | #define _POSIX_1_SOURCE 2 |
| 4280 | _ACEOF |
| 4281 | |
| 4282 | |
| 4283 | cat >>confdefs.h <<\_ACEOF |
| 4284 | #define _MINIX 1 |
| 4285 | _ACEOF |
| 4286 | |
| 4287 | fi |
| 4288 | |
| 4289 | |
| 4290 | |
| 4291 | { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4292 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 4293 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then |
| 4294 | $as_echo_n "(cached) " >&6 |
| 4295 | else |
| 4296 | cat >conftest.$ac_ext <<_ACEOF |
| 4297 | /* confdefs.h. */ |
| 4298 | _ACEOF |
| 4299 | cat confdefs.h >>conftest.$ac_ext |
| 4300 | cat >>conftest.$ac_ext <<_ACEOF |
| 4301 | /* end confdefs.h. */ |
| 4302 | |
| 4303 | # define __EXTENSIONS__ 1 |
| 4304 | $ac_includes_default |
| 4305 | int |
| 4306 | main () |
| 4307 | { |
| 4308 | |
| 4309 | ; |
| 4310 | return 0; |
| 4311 | } |
| 4312 | _ACEOF |
| 4313 | rm -f conftest.$ac_objext |
| 4314 | if { (ac_try="$ac_compile" |
| 4315 | case "(($ac_try" in |
| 4316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4317 | *) ac_try_echo=$ac_try;; |
| 4318 | esac |
| 4319 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4320 | $as_echo "$ac_try_echo") >&5 |
| 4321 | (eval "$ac_compile") 2>conftest.er1 |
| 4322 | ac_status=$? |
| 4323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4324 | rm -f conftest.er1 |
| 4325 | cat conftest.err >&5 |
| 4326 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4327 | (exit $ac_status); } && { |
| 4328 | test -z "$ac_c_werror_flag" || |
| 4329 | test ! -s conftest.err |
| 4330 | } && test -s conftest.$ac_objext; then |
| 4331 | ac_cv_safe_to_define___extensions__=yes |
| 4332 | else |
| 4333 | $as_echo "$as_me: failed program was:" >&5 |
| 4334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4335 | |
| 4336 | ac_cv_safe_to_define___extensions__=no |
| 4337 | fi |
| 4338 | |
| 4339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4340 | fi |
| 4341 | { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4342 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4343 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4344 | cat >>confdefs.h <<\_ACEOF |
| 4345 | #define __EXTENSIONS__ 1 |
| 4346 | _ACEOF |
| 4347 | |
| 4348 | cat >>confdefs.h <<\_ACEOF |
| 4349 | #define _ALL_SOURCE 1 |
| 4350 | _ACEOF |
| 4351 | |
| 4352 | cat >>confdefs.h <<\_ACEOF |
| 4353 | #define _GNU_SOURCE 1 |
| 4354 | _ACEOF |
| 4355 | |
| 4356 | cat >>confdefs.h <<\_ACEOF |
| 4357 | #define _POSIX_PTHREAD_SEMANTICS 1 |
| 4358 | _ACEOF |
| 4359 | |
| 4360 | cat >>confdefs.h <<\_ACEOF |
| 4361 | #define _TANDEM_SOURCE 1 |
| 4362 | _ACEOF |
| 4363 | |
| 4364 | |
| 4365 | |
| 4366 | # Check for unsupported systems |
| 4367 | case $ac_sys_system/$ac_sys_release in |
| 4368 | atheos*|Linux*/1*) |
| 4369 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 4370 | echo See README for details. |
| 4371 | exit 1;; |
| 4372 | esac |
| 4373 | |
| 4374 | |
| 4375 | { $as_echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 4376 | $as_echo_n "checking for --with-suffix... " >&6; } |
| 4377 | |
| 4378 | # Check whether --with-suffix was given. |
| 4379 | if test "${with_suffix+set}" = set; then |
| 4380 | withval=$with_suffix; |
| 4381 | case $withval in |
| 4382 | no) EXEEXT=;; |
| 4383 | yes) EXEEXT=.exe;; |
| 4384 | *) EXEEXT=$withval;; |
| 4385 | esac |
| 4386 | fi |
| 4387 | |
| 4388 | { $as_echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 4389 | $as_echo "$EXEEXT" >&6; } |
| 4390 | |
| 4391 | # Test whether we're running on a non-case-sensitive system, in which |
| 4392 | # case we give a warning if no ext is given |
| 4393 | |
| 4394 | { $as_echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 4395 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
| 4396 | if test ! -d CaseSensitiveTestDir; then |
| 4397 | mkdir CaseSensitiveTestDir |
| 4398 | fi |
| 4399 | |
| 4400 | if test -d casesensitivetestdir |
| 4401 | then |
| 4402 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4403 | $as_echo "yes" >&6; } |
| 4404 | BUILDEXEEXT=.exe |
| 4405 | else |
| 4406 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4407 | $as_echo "no" >&6; } |
| 4408 | BUILDEXEEXT=$EXEEXT |
| 4409 | fi |
| 4410 | rmdir CaseSensitiveTestDir |
| 4411 | |
| 4412 | case $MACHDEP in |
| 4413 | bsdos*) |
| 4414 | case $CC in |
| 4415 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 4416 | esac;; |
| 4417 | esac |
| 4418 | |
| 4419 | case $ac_sys_system in |
| 4420 | hp*|HP*) |
| 4421 | case $CC in |
| 4422 | cc|*/cc) CC="$CC -Ae";; |
| 4423 | esac;; |
| 4424 | Monterey*) |
| 4425 | case $CC in |
| 4426 | cc) CC="$CC -Wl,-Bexport";; |
| 4427 | esac;; |
| 4428 | SunOS*) |
| 4429 | # Some functions have a prototype only with that define, e.g. confstr |
| 4430 | |
| 4431 | cat >>confdefs.h <<\_ACEOF |
| 4432 | #define __EXTENSIONS__ 1 |
| 4433 | _ACEOF |
| 4434 | |
| 4435 | ;; |
| 4436 | esac |
| 4437 | |
| 4438 | |
| 4439 | |
| 4440 | { $as_echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 4441 | $as_echo_n "checking LIBRARY... " >&6; } |
| 4442 | if test -z "$LIBRARY" |
| 4443 | then |
| 4444 | LIBRARY='libpython$(VERSION).a' |
| 4445 | fi |
| 4446 | { $as_echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 4447 | $as_echo "$LIBRARY" >&6; } |
| 4448 | |
| 4449 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 4450 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 4451 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 4452 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 4453 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 4454 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 4455 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 4456 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 4457 | # |
| 4458 | # RUNSHARED is used to run shared python without installed libraries |
| 4459 | # |
| 4460 | # INSTSONAME is the name of the shared library that will be use to install |
| 4461 | # on the system - some systems like version suffix, others don't |
| 4462 | |
| 4463 | |
| 4464 | |
| 4465 | |
| 4466 | |
| 4467 | |
| 4468 | LDLIBRARY="$LIBRARY" |
| 4469 | BLDLIBRARY='$(LDLIBRARY)' |
| 4470 | INSTSONAME='$(LDLIBRARY)' |
| 4471 | DLLLIBRARY='' |
| 4472 | LDLIBRARYDIR='' |
| 4473 | RUNSHARED='' |
| 4474 | |
| 4475 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4476 | # If CXX is set, and if it is needed to link a main function that was |
| 4477 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4478 | # python might then depend on the C++ runtime |
| 4479 | # This is altered for AIX in order to build the export list before |
| 4480 | # linking. |
| 4481 | |
| 4482 | { $as_echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 4483 | $as_echo_n "checking LINKCC... " >&6; } |
| 4484 | if test -z "$LINKCC" |
| 4485 | then |
| 4486 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4487 | case $ac_sys_system in |
| 4488 | AIX*) |
| 4489 | exp_extra="\"\"" |
| 4490 | if test $ac_sys_release -ge 5 -o \ |
| 4491 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4492 | exp_extra="." |
| 4493 | fi |
| 4494 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
| 4495 | Monterey64*) |
| 4496 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
| 4497 | QNX*) |
| 4498 | # qcc must be used because the other compilers do not |
| 4499 | # support -N. |
| 4500 | LINKCC=qcc;; |
| 4501 | esac |
| 4502 | fi |
| 4503 | { $as_echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 4504 | $as_echo "$LINKCC" >&6; } |
| 4505 | |
| 4506 | { $as_echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4507 | $as_echo_n "checking for --enable-shared... " >&6; } |
| 4508 | # Check whether --enable-shared was given. |
| 4509 | if test "${enable_shared+set}" = set; then |
| 4510 | enableval=$enable_shared; |
| 4511 | fi |
| 4512 | |
| 4513 | |
| 4514 | if test -z "$enable_shared" |
| 4515 | then |
| 4516 | case $ac_sys_system in |
| 4517 | CYGWIN* | atheos*) |
| 4518 | enable_shared="yes";; |
| 4519 | *) |
| 4520 | enable_shared="no";; |
| 4521 | esac |
| 4522 | fi |
| 4523 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4524 | $as_echo "$enable_shared" >&6; } |
| 4525 | |
| 4526 | { $as_echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4527 | $as_echo_n "checking for --enable-profiling... " >&6; } |
| 4528 | # Check whether --enable-profiling was given. |
| 4529 | if test "${enable_profiling+set}" = set; then |
| 4530 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4531 | CC="$CC -pg" |
| 4532 | if test "$cross_compiling" = yes; then |
| 4533 | ac_enable_profiling="no" |
| 4534 | else |
| 4535 | cat >conftest.$ac_ext <<_ACEOF |
| 4536 | /* confdefs.h. */ |
| 4537 | _ACEOF |
| 4538 | cat confdefs.h >>conftest.$ac_ext |
| 4539 | cat >>conftest.$ac_ext <<_ACEOF |
| 4540 | /* end confdefs.h. */ |
| 4541 | int main() { return 0; } |
| 4542 | _ACEOF |
| 4543 | rm -f conftest$ac_exeext |
| 4544 | if { (ac_try="$ac_link" |
| 4545 | case "(($ac_try" in |
| 4546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4547 | *) ac_try_echo=$ac_try;; |
| 4548 | esac |
| 4549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4550 | $as_echo "$ac_try_echo") >&5 |
| 4551 | (eval "$ac_link") 2>&5 |
| 4552 | ac_status=$? |
| 4553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4554 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4555 | { (case "(($ac_try" in |
| 4556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4557 | *) ac_try_echo=$ac_try;; |
| 4558 | esac |
| 4559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4560 | $as_echo "$ac_try_echo") >&5 |
| 4561 | (eval "$ac_try") 2>&5 |
| 4562 | ac_status=$? |
| 4563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4564 | (exit $ac_status); }; }; then |
| 4565 | ac_enable_profiling="yes" |
| 4566 | else |
| 4567 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 4568 | $as_echo "$as_me: failed program was:" >&5 |
| 4569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4570 | |
| 4571 | ( exit $ac_status ) |
| 4572 | ac_enable_profiling="no" |
| 4573 | fi |
| 4574 | rm -rf conftest.dSYM |
| 4575 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4576 | fi |
| 4577 | |
| 4578 | |
| 4579 | CC="$ac_save_cc" |
| 4580 | fi |
| 4581 | |
| 4582 | { $as_echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4583 | $as_echo "$ac_enable_profiling" >&6; } |
| 4584 | |
| 4585 | case "$ac_enable_profiling" in |
| 4586 | "yes") |
| 4587 | BASECFLAGS="-pg $BASECFLAGS" |
| 4588 | LDFLAGS="-pg $LDFLAGS" |
| 4589 | ;; |
| 4590 | esac |
| 4591 | |
| 4592 | { $as_echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4593 | $as_echo_n "checking LDLIBRARY... " >&6; } |
| 4594 | |
| 4595 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4596 | # library that we build, but we do not want to link against it (we |
| 4597 | # will find it with a -framework option). For this reason there is an |
| 4598 | # extra variable BLDLIBRARY against which Python and the extension |
| 4599 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4600 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4601 | if test "$enable_framework" |
| 4602 | then |
| 4603 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4604 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4605 | BLDLIBRARY='' |
| 4606 | else |
| 4607 | BLDLIBRARY='$(LDLIBRARY)' |
| 4608 | fi |
| 4609 | |
| 4610 | # Other platforms follow |
| 4611 | if test $enable_shared = "yes"; then |
| 4612 | |
| 4613 | cat >>confdefs.h <<\_ACEOF |
| 4614 | #define Py_ENABLE_SHARED 1 |
| 4615 | _ACEOF |
| 4616 | |
| 4617 | case $ac_sys_system in |
| 4618 | CYGWIN*) |
| 4619 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4620 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4621 | ;; |
| 4622 | SunOS*) |
| 4623 | LDLIBRARY='libpython$(VERSION).so' |
| 4624 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4625 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4626 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4627 | ;; |
| 4628 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4629 | LDLIBRARY='libpython$(VERSION).so' |
| 4630 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4631 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4632 | case $ac_sys_system in |
| 4633 | FreeBSD*) |
| 4634 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4635 | ;; |
| 4636 | esac |
| 4637 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4638 | ;; |
| 4639 | hp*|HP*) |
| 4640 | case `uname -m` in |
| 4641 | ia64) |
| 4642 | LDLIBRARY='libpython$(VERSION).so' |
| 4643 | ;; |
| 4644 | *) |
| 4645 | LDLIBRARY='libpython$(VERSION).sl' |
| 4646 | ;; |
| 4647 | esac |
| 4648 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4649 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4650 | ;; |
| 4651 | OSF*) |
| 4652 | LDLIBRARY='libpython$(VERSION).so' |
| 4653 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4654 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4655 | ;; |
| 4656 | atheos*) |
| 4657 | LDLIBRARY='libpython$(VERSION).so' |
| 4658 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4659 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4660 | ;; |
| 4661 | Darwin*) |
| 4662 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4663 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4664 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4665 | ;; |
| 4666 | |
| 4667 | esac |
| 4668 | else # shared is disabled |
| 4669 | case $ac_sys_system in |
| 4670 | CYGWIN*) |
| 4671 | BLDLIBRARY='$(LIBRARY)' |
| 4672 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4673 | ;; |
| 4674 | esac |
| 4675 | fi |
| 4676 | |
| 4677 | { $as_echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4678 | $as_echo "$LDLIBRARY" >&6; } |
| 4679 | |
| 4680 | if test -n "$ac_tool_prefix"; then |
| 4681 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4682 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4683 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4684 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4685 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4686 | $as_echo_n "(cached) " >&6 |
| 4687 | else |
| 4688 | if test -n "$RANLIB"; then |
| 4689 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4690 | else |
| 4691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4692 | for as_dir in $PATH |
| 4693 | do |
| 4694 | IFS=$as_save_IFS |
| 4695 | test -z "$as_dir" && as_dir=. |
| 4696 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4697 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4698 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4699 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4700 | break 2 |
| 4701 | fi |
| 4702 | done |
| 4703 | done |
| 4704 | IFS=$as_save_IFS |
| 4705 | |
| 4706 | fi |
| 4707 | fi |
| 4708 | RANLIB=$ac_cv_prog_RANLIB |
| 4709 | if test -n "$RANLIB"; then |
| 4710 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4711 | $as_echo "$RANLIB" >&6; } |
| 4712 | else |
| 4713 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4714 | $as_echo "no" >&6; } |
| 4715 | fi |
| 4716 | |
| 4717 | |
| 4718 | fi |
| 4719 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4720 | ac_ct_RANLIB=$RANLIB |
| 4721 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4722 | set dummy ranlib; ac_word=$2 |
| 4723 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4724 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4725 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4726 | $as_echo_n "(cached) " >&6 |
| 4727 | else |
| 4728 | if test -n "$ac_ct_RANLIB"; then |
| 4729 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4730 | else |
| 4731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4732 | for as_dir in $PATH |
| 4733 | do |
| 4734 | IFS=$as_save_IFS |
| 4735 | test -z "$as_dir" && as_dir=. |
| 4736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4738 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4739 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4740 | break 2 |
| 4741 | fi |
| 4742 | done |
| 4743 | done |
| 4744 | IFS=$as_save_IFS |
| 4745 | |
| 4746 | fi |
| 4747 | fi |
| 4748 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4749 | if test -n "$ac_ct_RANLIB"; then |
| 4750 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4751 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 4752 | else |
| 4753 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4754 | $as_echo "no" >&6; } |
| 4755 | fi |
| 4756 | |
| 4757 | if test "x$ac_ct_RANLIB" = x; then |
| 4758 | RANLIB=":" |
| 4759 | else |
| 4760 | case $cross_compiling:$ac_tool_warned in |
| 4761 | yes:) |
| 4762 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4763 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4764 | ac_tool_warned=yes ;; |
| 4765 | esac |
| 4766 | RANLIB=$ac_ct_RANLIB |
| 4767 | fi |
| 4768 | else |
| 4769 | RANLIB="$ac_cv_prog_RANLIB" |
| 4770 | fi |
| 4771 | |
| 4772 | |
| 4773 | for ac_prog in ar aal |
| 4774 | do |
| 4775 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4776 | set dummy $ac_prog; ac_word=$2 |
| 4777 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4778 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4779 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4780 | $as_echo_n "(cached) " >&6 |
| 4781 | else |
| 4782 | if test -n "$AR"; then |
| 4783 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4784 | else |
| 4785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4786 | for as_dir in $PATH |
| 4787 | do |
| 4788 | IFS=$as_save_IFS |
| 4789 | test -z "$as_dir" && as_dir=. |
| 4790 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4792 | ac_cv_prog_AR="$ac_prog" |
| 4793 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4794 | break 2 |
| 4795 | fi |
| 4796 | done |
| 4797 | done |
| 4798 | IFS=$as_save_IFS |
| 4799 | |
| 4800 | fi |
| 4801 | fi |
| 4802 | AR=$ac_cv_prog_AR |
| 4803 | if test -n "$AR"; then |
| 4804 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
| 4805 | $as_echo "$AR" >&6; } |
| 4806 | else |
| 4807 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4808 | $as_echo "no" >&6; } |
| 4809 | fi |
| 4810 | |
| 4811 | |
| 4812 | test -n "$AR" && break |
| 4813 | done |
| 4814 | test -n "$AR" || AR="ar" |
| 4815 | |
| 4816 | |
| 4817 | |
| 4818 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4819 | set dummy svnversion; ac_word=$2 |
| 4820 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4821 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4822 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 4823 | $as_echo_n "(cached) " >&6 |
| 4824 | else |
| 4825 | if test -n "$SVNVERSION"; then |
| 4826 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4827 | else |
| 4828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4829 | for as_dir in $PATH |
| 4830 | do |
| 4831 | IFS=$as_save_IFS |
| 4832 | test -z "$as_dir" && as_dir=. |
| 4833 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4834 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4835 | ac_cv_prog_SVNVERSION="found" |
| 4836 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4837 | break 2 |
| 4838 | fi |
| 4839 | done |
| 4840 | done |
| 4841 | IFS=$as_save_IFS |
| 4842 | |
| 4843 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4844 | fi |
| 4845 | fi |
| 4846 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4847 | if test -n "$SVNVERSION"; then |
| 4848 | { $as_echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4849 | $as_echo "$SVNVERSION" >&6; } |
| 4850 | else |
| 4851 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4852 | $as_echo "no" >&6; } |
| 4853 | fi |
| 4854 | |
| 4855 | |
| 4856 | if test $SVNVERSION = found |
| 4857 | then |
| 4858 | SVNVERSION="svnversion \$(srcdir)" |
| 4859 | else |
| 4860 | SVNVERSION="echo exported" |
| 4861 | fi |
| 4862 | |
| 4863 | case $MACHDEP in |
| 4864 | bsdos*|hp*|HP*) |
| 4865 | # install -d does not work on BSDI or HP-UX |
| 4866 | if test -z "$INSTALL" |
| 4867 | then |
| 4868 | INSTALL="${srcdir}/install-sh -c" |
| 4869 | fi |
| 4870 | esac |
| 4871 | ac_aux_dir= |
| 4872 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4873 | if test -f "$ac_dir/install-sh"; then |
| 4874 | ac_aux_dir=$ac_dir |
| 4875 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4876 | break |
| 4877 | elif test -f "$ac_dir/install.sh"; then |
| 4878 | ac_aux_dir=$ac_dir |
| 4879 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4880 | break |
| 4881 | elif test -f "$ac_dir/shtool"; then |
| 4882 | ac_aux_dir=$ac_dir |
| 4883 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4884 | break |
| 4885 | fi |
| 4886 | done |
| 4887 | if test -z "$ac_aux_dir"; then |
| 4888 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4889 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
| 4890 | { (exit 1); exit 1; }; } |
| 4891 | fi |
| 4892 | |
| 4893 | # These three variables are undocumented and unsupported, |
| 4894 | # and are intended to be withdrawn in a future Autoconf release. |
| 4895 | # They can cause serious problems if a builder's source tree is in a directory |
| 4896 | # whose full name contains unusual characters. |
| 4897 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4898 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4899 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4900 | |
| 4901 | |
| 4902 | # Find a good install program. We prefer a C program (faster), |
| 4903 | # so one script is as good as another. But avoid the broken or |
| 4904 | # incompatible versions: |
| 4905 | # SysV /etc/install, /usr/sbin/install |
| 4906 | # SunOS /usr/etc/install |
| 4907 | # IRIX /sbin/install |
| 4908 | # AIX /bin/install |
| 4909 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4910 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4911 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4912 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4913 | # OS/2's system install, which has a completely different semantic |
| 4914 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4915 | # Reject install programs that cannot install multiple files. |
| 4916 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4917 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 4918 | if test -z "$INSTALL"; then |
| 4919 | if test "${ac_cv_path_install+set}" = set; then |
| 4920 | $as_echo_n "(cached) " >&6 |
| 4921 | else |
| 4922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4923 | for as_dir in $PATH |
| 4924 | do |
| 4925 | IFS=$as_save_IFS |
| 4926 | test -z "$as_dir" && as_dir=. |
| 4927 | # Account for people who put trailing slashes in PATH elements. |
| 4928 | case $as_dir/ in |
| 4929 | ./ | .// | /cC/* | \ |
| 4930 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4931 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4932 | /usr/ucb/* ) ;; |
| 4933 | *) |
| 4934 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4935 | # Don't use installbsd from OSF since it installs stuff as root |
| 4936 | # by default. |
| 4937 | for ac_prog in ginstall scoinst install; do |
| 4938 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4939 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4940 | if test $ac_prog = install && |
| 4941 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4942 | # AIX install. It has an incompatible calling convention. |
| 4943 | : |
| 4944 | elif test $ac_prog = install && |
| 4945 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4946 | # program-specific install script used by HP pwplus--don't use. |
| 4947 | : |
| 4948 | else |
| 4949 | rm -rf conftest.one conftest.two conftest.dir |
| 4950 | echo one > conftest.one |
| 4951 | echo two > conftest.two |
| 4952 | mkdir conftest.dir |
| 4953 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4954 | test -s conftest.one && test -s conftest.two && |
| 4955 | test -s conftest.dir/conftest.one && |
| 4956 | test -s conftest.dir/conftest.two |
| 4957 | then |
| 4958 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4959 | break 3 |
| 4960 | fi |
| 4961 | fi |
| 4962 | fi |
| 4963 | done |
| 4964 | done |
| 4965 | ;; |
| 4966 | esac |
| 4967 | |
| 4968 | done |
| 4969 | IFS=$as_save_IFS |
| 4970 | |
| 4971 | rm -rf conftest.one conftest.two conftest.dir |
| 4972 | |
| 4973 | fi |
| 4974 | if test "${ac_cv_path_install+set}" = set; then |
| 4975 | INSTALL=$ac_cv_path_install |
| 4976 | else |
| 4977 | # As a last resort, use the slow shell script. Don't cache a |
| 4978 | # value for INSTALL within a source directory, because that will |
| 4979 | # break other packages using the cache if that directory is |
| 4980 | # removed, or if the value is a relative name. |
| 4981 | INSTALL=$ac_install_sh |
| 4982 | fi |
| 4983 | fi |
| 4984 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4985 | $as_echo "$INSTALL" >&6; } |
| 4986 | |
| 4987 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4988 | # It thinks the first close brace ends the variable substitution. |
| 4989 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4990 | |
| 4991 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4992 | |
| 4993 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4994 | |
| 4995 | |
| 4996 | # Not every filesystem supports hard links |
| 4997 | |
| 4998 | if test -z "$LN" ; then |
| 4999 | case $ac_sys_system in |
| 5000 | CYGWIN*) LN="ln -s";; |
| 5001 | atheos*) LN="ln -s";; |
| 5002 | *) LN=ln;; |
| 5003 | esac |
| 5004 | fi |
| 5005 | |
| 5006 | # Check for --with-pydebug |
| 5007 | { $as_echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 5008 | $as_echo_n "checking for --with-pydebug... " >&6; } |
| 5009 | |
| 5010 | # Check whether --with-pydebug was given. |
| 5011 | if test "${with_pydebug+set}" = set; then |
| 5012 | withval=$with_pydebug; |
| 5013 | if test "$withval" != no |
| 5014 | then |
| 5015 | |
| 5016 | cat >>confdefs.h <<\_ACEOF |
| 5017 | #define Py_DEBUG 1 |
| 5018 | _ACEOF |
| 5019 | |
| 5020 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5021 | $as_echo "yes" >&6; }; |
| 5022 | Py_DEBUG='true' |
| 5023 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5024 | $as_echo "no" >&6; }; Py_DEBUG='false' |
| 5025 | fi |
| 5026 | else |
| 5027 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5028 | $as_echo "no" >&6; } |
| 5029 | fi |
| 5030 | |
| 5031 | |
| 5032 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 5033 | # merged with this chunk of code? |
| 5034 | |
| 5035 | # Optimizer/debugger flags |
| 5036 | # ------------------------ |
| 5037 | # (The following bit of code is complicated enough - please keep things |
| 5038 | # indented properly. Just pretend you're editing Python code. ;-) |
| 5039 | |
| 5040 | # There are two parallel sets of case statements below, one that checks to |
| 5041 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 5042 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 5043 | # user set OPT. |
| 5044 | |
| 5045 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 5046 | # it on the command line |
| 5047 | |
| 5048 | if test -z "$OPT" |
| 5049 | then |
| 5050 | case $GCC in |
| 5051 | yes) |
| 5052 | if test "$CC" != 'g++' ; then |
| 5053 | STRICT_PROTO="-Wstrict-prototypes" |
| 5054 | fi |
| 5055 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 5056 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 5057 | WRAP="-fwrapv" |
| 5058 | fi |
| 5059 | case $ac_cv_prog_cc_g in |
| 5060 | yes) |
| 5061 | if test "$Py_DEBUG" = 'true' ; then |
| 5062 | # Optimization messes up debuggers, so turn it off for |
| 5063 | # debug builds. |
| 5064 | OPT="-g -Wall $STRICT_PROTO" |
| 5065 | else |
| 5066 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 5067 | fi |
| 5068 | ;; |
| 5069 | *) |
| 5070 | OPT="-O3 -Wall $STRICT_PROTO" |
| 5071 | ;; |
| 5072 | esac |
| 5073 | case $ac_sys_system in |
| 5074 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 5075 | ;; |
| 5076 | esac |
| 5077 | ;; |
| 5078 | |
| 5079 | *) |
| 5080 | OPT="-O" |
| 5081 | ;; |
| 5082 | esac |
| 5083 | |
| 5084 | # The current (beta) Monterey compiler dies with optimizations |
| 5085 | # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
| 5086 | case $ac_sys_system in |
| 5087 | Monterey*) |
| 5088 | OPT="" |
| 5089 | ;; |
| 5090 | esac |
| 5091 | |
| 5092 | fi |
| 5093 | |
| 5094 | |
| 5095 | |
| 5096 | # The -arch flags for universal builds on OSX |
| 5097 | UNIVERSAL_ARCH_FLAGS= |
| 5098 | |
| 5099 | |
| 5100 | # tweak BASECFLAGS based on compiler and platform |
| 5101 | case $GCC in |
| 5102 | yes) |
| 5103 | # Python violates C99 rules, by casting between incompatible |
| 5104 | # pointer types. GCC may generate bad code as a result of that, |
| 5105 | # so use -fno-strict-aliasing if supported. |
| 5106 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 5107 | $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } |
| 5108 | ac_save_cc="$CC" |
| 5109 | CC="$CC -fno-strict-aliasing" |
| 5110 | if test "$cross_compiling" = yes; then |
| 5111 | ac_cv_no_strict_aliasing_ok=no |
| 5112 | else |
| 5113 | cat >conftest.$ac_ext <<_ACEOF |
| 5114 | /* confdefs.h. */ |
| 5115 | _ACEOF |
| 5116 | cat confdefs.h >>conftest.$ac_ext |
| 5117 | cat >>conftest.$ac_ext <<_ACEOF |
| 5118 | /* end confdefs.h. */ |
| 5119 | int main() { return 0; } |
| 5120 | _ACEOF |
| 5121 | rm -f conftest$ac_exeext |
| 5122 | if { (ac_try="$ac_link" |
| 5123 | case "(($ac_try" in |
| 5124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5125 | *) ac_try_echo=$ac_try;; |
| 5126 | esac |
| 5127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5128 | $as_echo "$ac_try_echo") >&5 |
| 5129 | (eval "$ac_link") 2>&5 |
| 5130 | ac_status=$? |
| 5131 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5132 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5133 | { (case "(($ac_try" in |
| 5134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5135 | *) ac_try_echo=$ac_try;; |
| 5136 | esac |
| 5137 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5138 | $as_echo "$ac_try_echo") >&5 |
| 5139 | (eval "$ac_try") 2>&5 |
| 5140 | ac_status=$? |
| 5141 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5142 | (exit $ac_status); }; }; then |
| 5143 | ac_cv_no_strict_aliasing_ok=yes |
| 5144 | else |
| 5145 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5146 | $as_echo "$as_me: failed program was:" >&5 |
| 5147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5148 | |
| 5149 | ( exit $ac_status ) |
| 5150 | ac_cv_no_strict_aliasing_ok=no |
| 5151 | fi |
| 5152 | rm -rf conftest.dSYM |
| 5153 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5154 | fi |
| 5155 | |
| 5156 | |
| 5157 | CC="$ac_save_cc" |
| 5158 | { $as_echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 5159 | $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } |
| 5160 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 5161 | then |
| 5162 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 5163 | fi |
| 5164 | |
| 5165 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 5166 | # support. Without this, treatment of subnormals doesn't follow |
| 5167 | # the standard. |
| 5168 | case $ac_sys_machine in |
| 5169 | alpha*) |
| 5170 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5171 | ;; |
| 5172 | esac |
| 5173 | |
| 5174 | case $ac_sys_system in |
| 5175 | SCO_SV*) |
| 5176 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 5177 | ;; |
| 5178 | # is there any other compiler on Darwin besides gcc? |
| 5179 | Darwin*) |
| 5180 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 5181 | # used to be here, but non-Apple gcc doesn't accept them. |
| 5182 | |
| 5183 | |
| 5184 | if test "${enable_universalsdk}"; then |
| 5185 | UNIVERSAL_ARCH_FLAGS="" |
| 5186 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 5187 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 5188 | ARCH_RUN_32BIT="" |
| 5189 | |
| 5190 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 5191 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 5192 | |
| 5193 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 5194 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 5195 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 5196 | |
| 5197 | else |
| 5198 | { { $as_echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5 |
| 5199 | $as_echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;} |
| 5200 | { (exit 1); exit 1; }; } |
| 5201 | |
| 5202 | fi |
| 5203 | |
| 5204 | |
| 5205 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 5206 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 5207 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 5208 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 5209 | fi |
| 5210 | fi |
| 5211 | |
| 5212 | # Calculate the right deployment target for this build. |
| 5213 | # |
| 5214 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 5215 | if test ${cur_target} '>' 10.2; then |
| 5216 | cur_target=10.3 |
| 5217 | fi |
| 5218 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 5219 | # Ensure that the default platform for a 4-way |
| 5220 | # universal build is OSX 10.5, that's the first |
| 5221 | # OS release where 4-way builds make sense. |
| 5222 | cur_target='10.5' |
| 5223 | fi |
| 5224 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 5225 | |
| 5226 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 5227 | # environment with a value that is the same as what we'll use |
| 5228 | # in the Makefile to ensure that we'll get the same compiler |
| 5229 | # environment during configure and build time. |
| 5230 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 5231 | export MACOSX_DEPLOYMENT_TARGET |
| 5232 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 5233 | |
| 5234 | ;; |
| 5235 | OSF*) |
| 5236 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5237 | ;; |
| 5238 | esac |
| 5239 | ;; |
| 5240 | |
| 5241 | *) |
| 5242 | case $ac_sys_system in |
| 5243 | OpenUNIX*|UnixWare*) |
| 5244 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 5245 | ;; |
| 5246 | OSF*) |
| 5247 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 5248 | ;; |
| 5249 | SCO_SV*) |
| 5250 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 5251 | ;; |
| 5252 | esac |
| 5253 | ;; |
| 5254 | esac |
| 5255 | |
| 5256 | if test "$Py_DEBUG" = 'true'; then |
| 5257 | : |
| 5258 | else |
| 5259 | OPT="-DNDEBUG $OPT" |
| 5260 | fi |
| 5261 | |
| 5262 | if test "$ac_arch_flags" |
| 5263 | then |
| 5264 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 5265 | fi |
| 5266 | |
| 5267 | # disable check for icc since it seems to pass, but generates a warning |
| 5268 | if test "$CC" = icc |
| 5269 | then |
| 5270 | ac_cv_opt_olimit_ok=no |
| 5271 | fi |
| 5272 | |
| 5273 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 5274 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } |
| 5275 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 5276 | $as_echo_n "(cached) " >&6 |
| 5277 | else |
| 5278 | ac_save_cc="$CC" |
| 5279 | CC="$CC -OPT:Olimit=0" |
| 5280 | if test "$cross_compiling" = yes; then |
| 5281 | ac_cv_opt_olimit_ok=no |
| 5282 | else |
| 5283 | cat >conftest.$ac_ext <<_ACEOF |
| 5284 | /* confdefs.h. */ |
| 5285 | _ACEOF |
| 5286 | cat confdefs.h >>conftest.$ac_ext |
| 5287 | cat >>conftest.$ac_ext <<_ACEOF |
| 5288 | /* end confdefs.h. */ |
| 5289 | int main() { return 0; } |
| 5290 | _ACEOF |
| 5291 | rm -f conftest$ac_exeext |
| 5292 | if { (ac_try="$ac_link" |
| 5293 | case "(($ac_try" in |
| 5294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5295 | *) ac_try_echo=$ac_try;; |
| 5296 | esac |
| 5297 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5298 | $as_echo "$ac_try_echo") >&5 |
| 5299 | (eval "$ac_link") 2>&5 |
| 5300 | ac_status=$? |
| 5301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5302 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5303 | { (case "(($ac_try" in |
| 5304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5305 | *) ac_try_echo=$ac_try;; |
| 5306 | esac |
| 5307 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5308 | $as_echo "$ac_try_echo") >&5 |
| 5309 | (eval "$ac_try") 2>&5 |
| 5310 | ac_status=$? |
| 5311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5312 | (exit $ac_status); }; }; then |
| 5313 | ac_cv_opt_olimit_ok=yes |
| 5314 | else |
| 5315 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5316 | $as_echo "$as_me: failed program was:" >&5 |
| 5317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5318 | |
| 5319 | ( exit $ac_status ) |
| 5320 | ac_cv_opt_olimit_ok=no |
| 5321 | fi |
| 5322 | rm -rf conftest.dSYM |
| 5323 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5324 | fi |
| 5325 | |
| 5326 | |
| 5327 | CC="$ac_save_cc" |
| 5328 | fi |
| 5329 | |
| 5330 | { $as_echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 5331 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } |
| 5332 | if test $ac_cv_opt_olimit_ok = yes; then |
| 5333 | case $ac_sys_system in |
| 5334 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 5335 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 5336 | # environment? |
| 5337 | Darwin*) |
| 5338 | ;; |
| 5339 | *) |
| 5340 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 5341 | ;; |
| 5342 | esac |
| 5343 | else |
| 5344 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 5345 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } |
| 5346 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 5347 | $as_echo_n "(cached) " >&6 |
| 5348 | else |
| 5349 | ac_save_cc="$CC" |
| 5350 | CC="$CC -Olimit 1500" |
| 5351 | if test "$cross_compiling" = yes; then |
| 5352 | ac_cv_olimit_ok=no |
| 5353 | else |
| 5354 | cat >conftest.$ac_ext <<_ACEOF |
| 5355 | /* confdefs.h. */ |
| 5356 | _ACEOF |
| 5357 | cat confdefs.h >>conftest.$ac_ext |
| 5358 | cat >>conftest.$ac_ext <<_ACEOF |
| 5359 | /* end confdefs.h. */ |
| 5360 | int main() { return 0; } |
| 5361 | _ACEOF |
| 5362 | rm -f conftest$ac_exeext |
| 5363 | if { (ac_try="$ac_link" |
| 5364 | case "(($ac_try" in |
| 5365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5366 | *) ac_try_echo=$ac_try;; |
| 5367 | esac |
| 5368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5369 | $as_echo "$ac_try_echo") >&5 |
| 5370 | (eval "$ac_link") 2>&5 |
| 5371 | ac_status=$? |
| 5372 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5373 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5374 | { (case "(($ac_try" in |
| 5375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5376 | *) ac_try_echo=$ac_try;; |
| 5377 | esac |
| 5378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5379 | $as_echo "$ac_try_echo") >&5 |
| 5380 | (eval "$ac_try") 2>&5 |
| 5381 | ac_status=$? |
| 5382 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5383 | (exit $ac_status); }; }; then |
| 5384 | ac_cv_olimit_ok=yes |
| 5385 | else |
| 5386 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5387 | $as_echo "$as_me: failed program was:" >&5 |
| 5388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5389 | |
| 5390 | ( exit $ac_status ) |
| 5391 | ac_cv_olimit_ok=no |
| 5392 | fi |
| 5393 | rm -rf conftest.dSYM |
| 5394 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5395 | fi |
| 5396 | |
| 5397 | |
| 5398 | CC="$ac_save_cc" |
| 5399 | fi |
| 5400 | |
| 5401 | { $as_echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 5402 | $as_echo "$ac_cv_olimit_ok" >&6; } |
| 5403 | if test $ac_cv_olimit_ok = yes; then |
| 5404 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 5405 | fi |
| 5406 | fi |
| 5407 | |
| 5408 | # Check whether GCC supports PyArg_ParseTuple format |
| 5409 | if test "$GCC" = "yes" |
| 5410 | then |
| 5411 | { $as_echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 5412 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } |
| 5413 | save_CFLAGS=$CFLAGS |
| 5414 | CFLAGS="$CFLAGS -Werror" |
| 5415 | cat >conftest.$ac_ext <<_ACEOF |
| 5416 | /* confdefs.h. */ |
| 5417 | _ACEOF |
| 5418 | cat confdefs.h >>conftest.$ac_ext |
| 5419 | cat >>conftest.$ac_ext <<_ACEOF |
| 5420 | /* end confdefs.h. */ |
| 5421 | |
| 5422 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 5423 | |
| 5424 | int |
| 5425 | main () |
| 5426 | { |
| 5427 | |
| 5428 | ; |
| 5429 | return 0; |
| 5430 | } |
| 5431 | _ACEOF |
| 5432 | rm -f conftest.$ac_objext |
| 5433 | if { (ac_try="$ac_compile" |
| 5434 | case "(($ac_try" in |
| 5435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5436 | *) ac_try_echo=$ac_try;; |
| 5437 | esac |
| 5438 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5439 | $as_echo "$ac_try_echo") >&5 |
| 5440 | (eval "$ac_compile") 2>conftest.er1 |
| 5441 | ac_status=$? |
| 5442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5443 | rm -f conftest.er1 |
| 5444 | cat conftest.err >&5 |
| 5445 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5446 | (exit $ac_status); } && { |
| 5447 | test -z "$ac_c_werror_flag" || |
| 5448 | test ! -s conftest.err |
| 5449 | } && test -s conftest.$ac_objext; then |
| 5450 | |
| 5451 | cat >>confdefs.h <<\_ACEOF |
| 5452 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 5453 | _ACEOF |
| 5454 | |
| 5455 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5456 | $as_echo "yes" >&6; } |
| 5457 | else |
| 5458 | $as_echo "$as_me: failed program was:" >&5 |
| 5459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5460 | |
| 5461 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5462 | $as_echo "no" >&6; } |
| 5463 | |
| 5464 | fi |
| 5465 | |
| 5466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5467 | CFLAGS=$save_CFLAGS |
| 5468 | fi |
| 5469 | |
| 5470 | # On some compilers, pthreads are available without further options |
| 5471 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5472 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5473 | # So we have to see first whether pthreads are available without |
| 5474 | # options before we can check whether -Kpthread improves anything. |
| 5475 | { $as_echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 5476 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
| 5477 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 5478 | $as_echo_n "(cached) " >&6 |
| 5479 | else |
| 5480 | if test "$cross_compiling" = yes; then |
| 5481 | ac_cv_pthread_is_default=no |
| 5482 | else |
| 5483 | cat >conftest.$ac_ext <<_ACEOF |
| 5484 | /* confdefs.h. */ |
| 5485 | _ACEOF |
| 5486 | cat confdefs.h >>conftest.$ac_ext |
| 5487 | cat >>conftest.$ac_ext <<_ACEOF |
| 5488 | /* end confdefs.h. */ |
| 5489 | |
| 5490 | #include <pthread.h> |
| 5491 | |
| 5492 | void* routine(void* p){return NULL;} |
| 5493 | |
| 5494 | int main(){ |
| 5495 | pthread_t p; |
| 5496 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5497 | return 1; |
| 5498 | (void)pthread_detach(p); |
| 5499 | return 0; |
| 5500 | } |
| 5501 | |
| 5502 | _ACEOF |
| 5503 | rm -f conftest$ac_exeext |
| 5504 | if { (ac_try="$ac_link" |
| 5505 | case "(($ac_try" in |
| 5506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5507 | *) ac_try_echo=$ac_try;; |
| 5508 | esac |
| 5509 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5510 | $as_echo "$ac_try_echo") >&5 |
| 5511 | (eval "$ac_link") 2>&5 |
| 5512 | ac_status=$? |
| 5513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5514 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5515 | { (case "(($ac_try" in |
| 5516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5517 | *) ac_try_echo=$ac_try;; |
| 5518 | esac |
| 5519 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5520 | $as_echo "$ac_try_echo") >&5 |
| 5521 | (eval "$ac_try") 2>&5 |
| 5522 | ac_status=$? |
| 5523 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5524 | (exit $ac_status); }; }; then |
| 5525 | |
| 5526 | ac_cv_pthread_is_default=yes |
| 5527 | ac_cv_kthread=no |
| 5528 | ac_cv_pthread=no |
| 5529 | |
| 5530 | else |
| 5531 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5532 | $as_echo "$as_me: failed program was:" >&5 |
| 5533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5534 | |
| 5535 | ( exit $ac_status ) |
| 5536 | ac_cv_pthread_is_default=no |
| 5537 | fi |
| 5538 | rm -rf conftest.dSYM |
| 5539 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5540 | fi |
| 5541 | |
| 5542 | |
| 5543 | |
| 5544 | fi |
| 5545 | |
| 5546 | { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5547 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
| 5548 | |
| 5549 | |
| 5550 | if test $ac_cv_pthread_is_default = yes |
| 5551 | then |
| 5552 | ac_cv_kpthread=no |
| 5553 | else |
| 5554 | # -Kpthread, if available, provides the right #defines |
| 5555 | # and linker options to make pthread_create available |
| 5556 | # Some compilers won't report that they do not support -Kpthread, |
| 5557 | # so we need to run a program to see whether it really made the |
| 5558 | # function available. |
| 5559 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5560 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
| 5561 | if test "${ac_cv_kpthread+set}" = set; then |
| 5562 | $as_echo_n "(cached) " >&6 |
| 5563 | else |
| 5564 | ac_save_cc="$CC" |
| 5565 | CC="$CC -Kpthread" |
| 5566 | if test "$cross_compiling" = yes; then |
| 5567 | ac_cv_kpthread=no |
| 5568 | else |
| 5569 | cat >conftest.$ac_ext <<_ACEOF |
| 5570 | /* confdefs.h. */ |
| 5571 | _ACEOF |
| 5572 | cat confdefs.h >>conftest.$ac_ext |
| 5573 | cat >>conftest.$ac_ext <<_ACEOF |
| 5574 | /* end confdefs.h. */ |
| 5575 | |
| 5576 | #include <pthread.h> |
| 5577 | |
| 5578 | void* routine(void* p){return NULL;} |
| 5579 | |
| 5580 | int main(){ |
| 5581 | pthread_t p; |
| 5582 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5583 | return 1; |
| 5584 | (void)pthread_detach(p); |
| 5585 | return 0; |
| 5586 | } |
| 5587 | |
| 5588 | _ACEOF |
| 5589 | rm -f conftest$ac_exeext |
| 5590 | if { (ac_try="$ac_link" |
| 5591 | case "(($ac_try" in |
| 5592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5593 | *) ac_try_echo=$ac_try;; |
| 5594 | esac |
| 5595 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5596 | $as_echo "$ac_try_echo") >&5 |
| 5597 | (eval "$ac_link") 2>&5 |
| 5598 | ac_status=$? |
| 5599 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5601 | { (case "(($ac_try" in |
| 5602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5603 | *) ac_try_echo=$ac_try;; |
| 5604 | esac |
| 5605 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5606 | $as_echo "$ac_try_echo") >&5 |
| 5607 | (eval "$ac_try") 2>&5 |
| 5608 | ac_status=$? |
| 5609 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5610 | (exit $ac_status); }; }; then |
| 5611 | ac_cv_kpthread=yes |
| 5612 | else |
| 5613 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5614 | $as_echo "$as_me: failed program was:" >&5 |
| 5615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5616 | |
| 5617 | ( exit $ac_status ) |
| 5618 | ac_cv_kpthread=no |
| 5619 | fi |
| 5620 | rm -rf conftest.dSYM |
| 5621 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5622 | fi |
| 5623 | |
| 5624 | |
| 5625 | CC="$ac_save_cc" |
| 5626 | fi |
| 5627 | |
| 5628 | { $as_echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5629 | $as_echo "$ac_cv_kpthread" >&6; } |
| 5630 | fi |
| 5631 | |
| 5632 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5633 | then |
| 5634 | # -Kthread, if available, provides the right #defines |
| 5635 | # and linker options to make pthread_create available |
| 5636 | # Some compilers won't report that they do not support -Kthread, |
| 5637 | # so we need to run a program to see whether it really made the |
| 5638 | # function available. |
| 5639 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5640 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
| 5641 | if test "${ac_cv_kthread+set}" = set; then |
| 5642 | $as_echo_n "(cached) " >&6 |
| 5643 | else |
| 5644 | ac_save_cc="$CC" |
| 5645 | CC="$CC -Kthread" |
| 5646 | if test "$cross_compiling" = yes; then |
| 5647 | ac_cv_kthread=no |
| 5648 | else |
| 5649 | cat >conftest.$ac_ext <<_ACEOF |
| 5650 | /* confdefs.h. */ |
| 5651 | _ACEOF |
| 5652 | cat confdefs.h >>conftest.$ac_ext |
| 5653 | cat >>conftest.$ac_ext <<_ACEOF |
| 5654 | /* end confdefs.h. */ |
| 5655 | |
| 5656 | #include <pthread.h> |
| 5657 | |
| 5658 | void* routine(void* p){return NULL;} |
| 5659 | |
| 5660 | int main(){ |
| 5661 | pthread_t p; |
| 5662 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5663 | return 1; |
| 5664 | (void)pthread_detach(p); |
| 5665 | return 0; |
| 5666 | } |
| 5667 | |
| 5668 | _ACEOF |
| 5669 | rm -f conftest$ac_exeext |
| 5670 | if { (ac_try="$ac_link" |
| 5671 | case "(($ac_try" in |
| 5672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5673 | *) ac_try_echo=$ac_try;; |
| 5674 | esac |
| 5675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5676 | $as_echo "$ac_try_echo") >&5 |
| 5677 | (eval "$ac_link") 2>&5 |
| 5678 | ac_status=$? |
| 5679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5680 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5681 | { (case "(($ac_try" in |
| 5682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5683 | *) ac_try_echo=$ac_try;; |
| 5684 | esac |
| 5685 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5686 | $as_echo "$ac_try_echo") >&5 |
| 5687 | (eval "$ac_try") 2>&5 |
| 5688 | ac_status=$? |
| 5689 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5690 | (exit $ac_status); }; }; then |
| 5691 | ac_cv_kthread=yes |
| 5692 | else |
| 5693 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5694 | $as_echo "$as_me: failed program was:" >&5 |
| 5695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5696 | |
| 5697 | ( exit $ac_status ) |
| 5698 | ac_cv_kthread=no |
| 5699 | fi |
| 5700 | rm -rf conftest.dSYM |
| 5701 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5702 | fi |
| 5703 | |
| 5704 | |
| 5705 | CC="$ac_save_cc" |
| 5706 | fi |
| 5707 | |
| 5708 | { $as_echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5709 | $as_echo "$ac_cv_kthread" >&6; } |
| 5710 | fi |
| 5711 | |
| 5712 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5713 | then |
| 5714 | # -pthread, if available, provides the right #defines |
| 5715 | # and linker options to make pthread_create available |
| 5716 | # Some compilers won't report that they do not support -pthread, |
| 5717 | # so we need to run a program to see whether it really made the |
| 5718 | # function available. |
| 5719 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5720 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
| 5721 | if test "${ac_cv_thread+set}" = set; then |
| 5722 | $as_echo_n "(cached) " >&6 |
| 5723 | else |
| 5724 | ac_save_cc="$CC" |
| 5725 | CC="$CC -pthread" |
| 5726 | if test "$cross_compiling" = yes; then |
| 5727 | ac_cv_pthread=no |
| 5728 | else |
| 5729 | cat >conftest.$ac_ext <<_ACEOF |
| 5730 | /* confdefs.h. */ |
| 5731 | _ACEOF |
| 5732 | cat confdefs.h >>conftest.$ac_ext |
| 5733 | cat >>conftest.$ac_ext <<_ACEOF |
| 5734 | /* end confdefs.h. */ |
| 5735 | |
| 5736 | #include <pthread.h> |
| 5737 | |
| 5738 | void* routine(void* p){return NULL;} |
| 5739 | |
| 5740 | int main(){ |
| 5741 | pthread_t p; |
| 5742 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5743 | return 1; |
| 5744 | (void)pthread_detach(p); |
| 5745 | return 0; |
| 5746 | } |
| 5747 | |
| 5748 | _ACEOF |
| 5749 | rm -f conftest$ac_exeext |
| 5750 | if { (ac_try="$ac_link" |
| 5751 | case "(($ac_try" in |
| 5752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5753 | *) ac_try_echo=$ac_try;; |
| 5754 | esac |
| 5755 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5756 | $as_echo "$ac_try_echo") >&5 |
| 5757 | (eval "$ac_link") 2>&5 |
| 5758 | ac_status=$? |
| 5759 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5760 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5761 | { (case "(($ac_try" in |
| 5762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5763 | *) ac_try_echo=$ac_try;; |
| 5764 | esac |
| 5765 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5766 | $as_echo "$ac_try_echo") >&5 |
| 5767 | (eval "$ac_try") 2>&5 |
| 5768 | ac_status=$? |
| 5769 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5770 | (exit $ac_status); }; }; then |
| 5771 | ac_cv_pthread=yes |
| 5772 | else |
| 5773 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5774 | $as_echo "$as_me: failed program was:" >&5 |
| 5775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5776 | |
| 5777 | ( exit $ac_status ) |
| 5778 | ac_cv_pthread=no |
| 5779 | fi |
| 5780 | rm -rf conftest.dSYM |
| 5781 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5782 | fi |
| 5783 | |
| 5784 | |
| 5785 | CC="$ac_save_cc" |
| 5786 | fi |
| 5787 | |
| 5788 | { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5789 | $as_echo "$ac_cv_pthread" >&6; } |
| 5790 | fi |
| 5791 | |
| 5792 | # If we have set a CC compiler flag for thread support then |
| 5793 | # check if it works for CXX, too. |
| 5794 | ac_cv_cxx_thread=no |
| 5795 | if test ! -z "$CXX" |
| 5796 | then |
| 5797 | { $as_echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5798 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } |
| 5799 | ac_save_cxx="$CXX" |
| 5800 | |
| 5801 | if test "$ac_cv_kpthread" = "yes" |
| 5802 | then |
| 5803 | CXX="$CXX -Kpthread" |
| 5804 | ac_cv_cxx_thread=yes |
| 5805 | elif test "$ac_cv_kthread" = "yes" |
| 5806 | then |
| 5807 | CXX="$CXX -Kthread" |
| 5808 | ac_cv_cxx_thread=yes |
| 5809 | elif test "$ac_cv_pthread" = "yes" |
| 5810 | then |
| 5811 | CXX="$CXX -pthread" |
| 5812 | ac_cv_cxx_thread=yes |
| 5813 | fi |
| 5814 | |
| 5815 | if test $ac_cv_cxx_thread = yes |
| 5816 | then |
| 5817 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5818 | $CXX -c conftest.$ac_ext 2>&5 |
| 5819 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5820 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5821 | then |
| 5822 | ac_cv_cxx_thread=yes |
| 5823 | else |
| 5824 | ac_cv_cxx_thread=no |
| 5825 | fi |
| 5826 | rm -fr conftest* |
| 5827 | fi |
| 5828 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5829 | $as_echo "$ac_cv_cxx_thread" >&6; } |
| 5830 | fi |
| 5831 | CXX="$ac_save_cxx" |
| 5832 | |
| 5833 | |
| 5834 | # checks for header files |
| 5835 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5836 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 5837 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5838 | $as_echo_n "(cached) " >&6 |
| 5839 | else |
| 5840 | cat >conftest.$ac_ext <<_ACEOF |
| 5841 | /* confdefs.h. */ |
| 5842 | _ACEOF |
| 5843 | cat confdefs.h >>conftest.$ac_ext |
| 5844 | cat >>conftest.$ac_ext <<_ACEOF |
| 5845 | /* end confdefs.h. */ |
| 5846 | #include <stdlib.h> |
| 5847 | #include <stdarg.h> |
| 5848 | #include <string.h> |
| 5849 | #include <float.h> |
| 5850 | |
| 5851 | int |
| 5852 | main () |
| 5853 | { |
| 5854 | |
| 5855 | ; |
| 5856 | return 0; |
| 5857 | } |
| 5858 | _ACEOF |
| 5859 | rm -f conftest.$ac_objext |
| 5860 | if { (ac_try="$ac_compile" |
| 5861 | case "(($ac_try" in |
| 5862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5863 | *) ac_try_echo=$ac_try;; |
| 5864 | esac |
| 5865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5866 | $as_echo "$ac_try_echo") >&5 |
| 5867 | (eval "$ac_compile") 2>conftest.er1 |
| 5868 | ac_status=$? |
| 5869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5870 | rm -f conftest.er1 |
| 5871 | cat conftest.err >&5 |
| 5872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5873 | (exit $ac_status); } && { |
| 5874 | test -z "$ac_c_werror_flag" || |
| 5875 | test ! -s conftest.err |
| 5876 | } && test -s conftest.$ac_objext; then |
| 5877 | ac_cv_header_stdc=yes |
| 5878 | else |
| 5879 | $as_echo "$as_me: failed program was:" >&5 |
| 5880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5881 | |
| 5882 | ac_cv_header_stdc=no |
| 5883 | fi |
| 5884 | |
| 5885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5886 | |
| 5887 | if test $ac_cv_header_stdc = yes; then |
| 5888 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5889 | cat >conftest.$ac_ext <<_ACEOF |
| 5890 | /* confdefs.h. */ |
| 5891 | _ACEOF |
| 5892 | cat confdefs.h >>conftest.$ac_ext |
| 5893 | cat >>conftest.$ac_ext <<_ACEOF |
| 5894 | /* end confdefs.h. */ |
| 5895 | #include <string.h> |
| 5896 | |
| 5897 | _ACEOF |
| 5898 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5899 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5900 | : |
| 5901 | else |
| 5902 | ac_cv_header_stdc=no |
| 5903 | fi |
| 5904 | rm -f conftest* |
| 5905 | |
| 5906 | fi |
| 5907 | |
| 5908 | if test $ac_cv_header_stdc = yes; then |
| 5909 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5910 | cat >conftest.$ac_ext <<_ACEOF |
| 5911 | /* confdefs.h. */ |
| 5912 | _ACEOF |
| 5913 | cat confdefs.h >>conftest.$ac_ext |
| 5914 | cat >>conftest.$ac_ext <<_ACEOF |
| 5915 | /* end confdefs.h. */ |
| 5916 | #include <stdlib.h> |
| 5917 | |
| 5918 | _ACEOF |
| 5919 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5920 | $EGREP "free" >/dev/null 2>&1; then |
| 5921 | : |
| 5922 | else |
| 5923 | ac_cv_header_stdc=no |
| 5924 | fi |
| 5925 | rm -f conftest* |
| 5926 | |
| 5927 | fi |
| 5928 | |
| 5929 | if test $ac_cv_header_stdc = yes; then |
| 5930 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5931 | if test "$cross_compiling" = yes; then |
| 5932 | : |
| 5933 | else |
| 5934 | cat >conftest.$ac_ext <<_ACEOF |
| 5935 | /* confdefs.h. */ |
| 5936 | _ACEOF |
| 5937 | cat confdefs.h >>conftest.$ac_ext |
| 5938 | cat >>conftest.$ac_ext <<_ACEOF |
| 5939 | /* end confdefs.h. */ |
| 5940 | #include <ctype.h> |
| 5941 | #include <stdlib.h> |
| 5942 | #if ((' ' & 0x0FF) == 0x020) |
| 5943 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5944 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5945 | #else |
| 5946 | # define ISLOWER(c) \ |
| 5947 | (('a' <= (c) && (c) <= 'i') \ |
| 5948 | || ('j' <= (c) && (c) <= 'r') \ |
| 5949 | || ('s' <= (c) && (c) <= 'z')) |
| 5950 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5951 | #endif |
| 5952 | |
| 5953 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5954 | int |
| 5955 | main () |
| 5956 | { |
| 5957 | int i; |
| 5958 | for (i = 0; i < 256; i++) |
| 5959 | if (XOR (islower (i), ISLOWER (i)) |
| 5960 | || toupper (i) != TOUPPER (i)) |
| 5961 | return 2; |
| 5962 | return 0; |
| 5963 | } |
| 5964 | _ACEOF |
| 5965 | rm -f conftest$ac_exeext |
| 5966 | if { (ac_try="$ac_link" |
| 5967 | case "(($ac_try" in |
| 5968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5969 | *) ac_try_echo=$ac_try;; |
| 5970 | esac |
| 5971 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5972 | $as_echo "$ac_try_echo") >&5 |
| 5973 | (eval "$ac_link") 2>&5 |
| 5974 | ac_status=$? |
| 5975 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5976 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5977 | { (case "(($ac_try" in |
| 5978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5979 | *) ac_try_echo=$ac_try;; |
| 5980 | esac |
| 5981 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5982 | $as_echo "$ac_try_echo") >&5 |
| 5983 | (eval "$ac_try") 2>&5 |
| 5984 | ac_status=$? |
| 5985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5986 | (exit $ac_status); }; }; then |
| 5987 | : |
| 5988 | else |
| 5989 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5990 | $as_echo "$as_me: failed program was:" >&5 |
| 5991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5992 | |
| 5993 | ( exit $ac_status ) |
| 5994 | ac_cv_header_stdc=no |
| 5995 | fi |
| 5996 | rm -rf conftest.dSYM |
| 5997 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5998 | fi |
| 5999 | |
| 6000 | |
| 6001 | fi |
| 6002 | fi |
| 6003 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6004 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6005 | if test $ac_cv_header_stdc = yes; then |
| 6006 | |
| 6007 | cat >>confdefs.h <<\_ACEOF |
| 6008 | #define STDC_HEADERS 1 |
| 6009 | _ACEOF |
| 6010 | |
| 6011 | fi |
| 6012 | |
| 6013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6014 | |
| 6015 | |
| 6016 | |
| 6017 | |
| 6018 | |
| 6019 | |
| 6020 | |
| 6021 | |
| 6022 | |
| 6023 | |
| 6024 | |
| 6025 | |
| 6026 | |
| 6027 | |
| 6028 | |
| 6029 | |
| 6030 | |
| 6031 | |
| 6032 | |
| 6033 | |
| 6034 | |
| 6035 | |
| 6036 | |
| 6037 | |
| 6038 | |
| 6039 | |
| 6040 | |
| 6041 | |
| 6042 | |
| 6043 | |
| 6044 | |
| 6045 | |
| 6046 | |
| 6047 | |
| 6048 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 6049 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 6050 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6051 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6052 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6053 | |
| 6054 | |
| 6055 | |
| 6056 | |
| 6057 | |
| 6058 | |
| 6059 | |
| 6060 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6061 | |
Christian Heimes | 043d6f6 | 2008-01-07 17:19:16 +0000 | [diff] [blame] | 6062 | |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 6063 | |
| 6064 | |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 6065 | |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 6066 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6067 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 6068 | fcntl.h grp.h \ |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 6069 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6070 | 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] | 6071 | unistd.h utime.h \ |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 6072 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 6073 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6074 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 6075 | sys/termio.h sys/time.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6076 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 6077 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | 043d6f6 | 2008-01-07 17:19:16 +0000 | [diff] [blame] | 6078 | bluetooth/bluetooth.h linux/tipc.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6079 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6080 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6081 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6082 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6083 | $as_echo_n "checking for $ac_header... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6084 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6085 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6086 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6087 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6088 | $as_echo "$as_val"'` |
| 6089 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6090 | $as_echo "$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6092 | # Is the header compilable? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6093 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6094 | $as_echo_n "checking $ac_header usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6095 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6096 | /* confdefs.h. */ |
| 6097 | _ACEOF |
| 6098 | cat confdefs.h >>conftest.$ac_ext |
| 6099 | cat >>conftest.$ac_ext <<_ACEOF |
| 6100 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6101 | $ac_includes_default |
| 6102 | #include <$ac_header> |
| 6103 | _ACEOF |
| 6104 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6105 | if { (ac_try="$ac_compile" |
| 6106 | case "(($ac_try" in |
| 6107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6108 | *) ac_try_echo=$ac_try;; |
| 6109 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6110 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6111 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6112 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6113 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6115 | rm -f conftest.er1 |
| 6116 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6117 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6118 | (exit $ac_status); } && { |
| 6119 | test -z "$ac_c_werror_flag" || |
| 6120 | test ! -s conftest.err |
| 6121 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6122 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6123 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6124 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6126 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6127 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6128 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6129 | |
| 6130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6131 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6132 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6133 | |
| 6134 | # Is the header present? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6135 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6136 | $as_echo_n "checking $ac_header presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6137 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6138 | /* confdefs.h. */ |
| 6139 | _ACEOF |
| 6140 | cat confdefs.h >>conftest.$ac_ext |
| 6141 | cat >>conftest.$ac_ext <<_ACEOF |
| 6142 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6143 | #include <$ac_header> |
| 6144 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6145 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6146 | case "(($ac_try" in |
| 6147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6148 | *) ac_try_echo=$ac_try;; |
| 6149 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6150 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6151 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6152 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6153 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6154 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6155 | rm -f conftest.er1 |
| 6156 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6157 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6158 | (exit $ac_status); } >/dev/null && { |
| 6159 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6160 | test ! -s conftest.err |
| 6161 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6162 | ac_header_preproc=yes |
| 6163 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6164 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6166 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6167 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6168 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6170 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6171 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6172 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6173 | |
| 6174 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6175 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6176 | yes:no: ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6177 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6178 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6179 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6180 | $as_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] | 6181 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6182 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6183 | no:yes:* ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6184 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6185 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6186 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6187 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6188 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6189 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6190 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6191 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6192 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6193 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6194 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6195 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6196 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6197 | ## ------------------------------------------------ ## |
| 6198 | ## Report this to http://www.python.org/python-bugs ## |
| 6199 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6200 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6201 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6202 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6203 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6204 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6205 | $as_echo_n "checking for $ac_header... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6206 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6207 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6208 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6209 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6210 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6211 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6212 | $as_echo "$as_val"'` |
| 6213 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6214 | $as_echo "$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6215 | |
| 6216 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6217 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 6218 | $as_echo "$as_val"'` |
| 6219 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6220 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6221 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6222 | _ACEOF |
| 6223 | |
| 6224 | fi |
| 6225 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6226 | done |
| 6227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6228 | |
| 6229 | |
| 6230 | |
| 6231 | |
| 6232 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6233 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6234 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6235 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6236 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 6237 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6238 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6239 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6240 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6241 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6242 | /* confdefs.h. */ |
| 6243 | _ACEOF |
| 6244 | cat confdefs.h >>conftest.$ac_ext |
| 6245 | cat >>conftest.$ac_ext <<_ACEOF |
| 6246 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6247 | #include <sys/types.h> |
| 6248 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6250 | int |
| 6251 | main () |
| 6252 | { |
| 6253 | if ((DIR *) 0) |
| 6254 | return 0; |
| 6255 | ; |
| 6256 | return 0; |
| 6257 | } |
| 6258 | _ACEOF |
| 6259 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6260 | if { (ac_try="$ac_compile" |
| 6261 | case "(($ac_try" in |
| 6262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6263 | *) ac_try_echo=$ac_try;; |
| 6264 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6265 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6266 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6267 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6268 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6270 | rm -f conftest.er1 |
| 6271 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6272 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6273 | (exit $ac_status); } && { |
| 6274 | test -z "$ac_c_werror_flag" || |
| 6275 | test ! -s conftest.err |
| 6276 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6277 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6278 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6279 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6281 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6282 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6283 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6284 | |
| 6285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6286 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6287 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6288 | $as_echo "$as_val"'` |
| 6289 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6290 | $as_echo "$ac_res" >&6; } |
| 6291 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 6292 | $as_echo "$as_val"'` |
| 6293 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6294 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6295 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6296 | _ACEOF |
| 6297 | |
| 6298 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6299 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6300 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6301 | done |
| 6302 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6303 | if test $ac_header_dirent = dirent.h; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6304 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6305 | $as_echo_n "checking for library containing opendir... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6306 | if test "${ac_cv_search_opendir+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6307 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6308 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6309 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6310 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6311 | /* confdefs.h. */ |
| 6312 | _ACEOF |
| 6313 | cat confdefs.h >>conftest.$ac_ext |
| 6314 | cat >>conftest.$ac_ext <<_ACEOF |
| 6315 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6316 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6317 | /* Override any GCC internal prototype to avoid an error. |
| 6318 | Use char because int might match the return type of a GCC |
| 6319 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6320 | #ifdef __cplusplus |
| 6321 | extern "C" |
| 6322 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6323 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6324 | int |
| 6325 | main () |
| 6326 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6327 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6328 | ; |
| 6329 | return 0; |
| 6330 | } |
| 6331 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6332 | for ac_lib in '' dir; do |
| 6333 | if test -z "$ac_lib"; then |
| 6334 | ac_res="none required" |
| 6335 | else |
| 6336 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6337 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6338 | fi |
| 6339 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6340 | if { (ac_try="$ac_link" |
| 6341 | case "(($ac_try" in |
| 6342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6343 | *) ac_try_echo=$ac_try;; |
| 6344 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6345 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6346 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6347 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6348 | ac_status=$? |
| 6349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6350 | rm -f conftest.er1 |
| 6351 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6352 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6353 | (exit $ac_status); } && { |
| 6354 | test -z "$ac_c_werror_flag" || |
| 6355 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6356 | } && test -s conftest$ac_exeext && { |
| 6357 | test "$cross_compiling" = yes || |
| 6358 | $as_test_x conftest$ac_exeext |
| 6359 | }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6360 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6361 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6362 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6364 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6365 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6366 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6367 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6368 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6369 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6370 | conftest$ac_exeext |
| 6371 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6372 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6373 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6374 | done |
| 6375 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6376 | : |
| 6377 | else |
| 6378 | ac_cv_search_opendir=no |
| 6379 | fi |
| 6380 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6381 | LIBS=$ac_func_search_save_LIBS |
| 6382 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6383 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6384 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6385 | ac_res=$ac_cv_search_opendir |
| 6386 | if test "$ac_res" != no; then |
| 6387 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6388 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6389 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6390 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6391 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6392 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6393 | $as_echo_n "checking for library containing opendir... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6394 | if test "${ac_cv_search_opendir+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6395 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6396 | else |
| 6397 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6398 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6404 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6405 | /* Override any GCC internal prototype to avoid an error. |
| 6406 | Use char because int might match the return type of a GCC |
| 6407 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6408 | #ifdef __cplusplus |
| 6409 | extern "C" |
| 6410 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6411 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6412 | int |
| 6413 | main () |
| 6414 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6415 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6416 | ; |
| 6417 | return 0; |
| 6418 | } |
| 6419 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6420 | for ac_lib in '' x; do |
| 6421 | if test -z "$ac_lib"; then |
| 6422 | ac_res="none required" |
| 6423 | else |
| 6424 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6425 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6426 | fi |
| 6427 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6428 | if { (ac_try="$ac_link" |
| 6429 | case "(($ac_try" in |
| 6430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6431 | *) ac_try_echo=$ac_try;; |
| 6432 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6433 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6434 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6435 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6436 | ac_status=$? |
| 6437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6438 | rm -f conftest.er1 |
| 6439 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6440 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6441 | (exit $ac_status); } && { |
| 6442 | test -z "$ac_c_werror_flag" || |
| 6443 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6444 | } && test -s conftest$ac_exeext && { |
| 6445 | test "$cross_compiling" = yes || |
| 6446 | $as_test_x conftest$ac_exeext |
| 6447 | }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6448 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6449 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6450 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6452 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6453 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6454 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6455 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6456 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6457 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6458 | conftest$ac_exeext |
| 6459 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6460 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6461 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6462 | done |
| 6463 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6464 | : |
| 6465 | else |
| 6466 | ac_cv_search_opendir=no |
| 6467 | fi |
| 6468 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6469 | LIBS=$ac_func_search_save_LIBS |
| 6470 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6471 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6472 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6473 | ac_res=$ac_cv_search_opendir |
| 6474 | if test "$ac_res" != no; then |
| 6475 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6476 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6477 | fi |
| 6478 | |
| 6479 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6480 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6481 | { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6482 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6483 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6484 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6485 | else |
| 6486 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6487 | /* confdefs.h. */ |
| 6488 | _ACEOF |
| 6489 | cat confdefs.h >>conftest.$ac_ext |
| 6490 | cat >>conftest.$ac_ext <<_ACEOF |
| 6491 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6492 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6493 | int |
| 6494 | main () |
| 6495 | { |
| 6496 | return makedev(0, 0); |
| 6497 | ; |
| 6498 | return 0; |
| 6499 | } |
| 6500 | _ACEOF |
| 6501 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6502 | if { (ac_try="$ac_link" |
| 6503 | case "(($ac_try" in |
| 6504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6505 | *) ac_try_echo=$ac_try;; |
| 6506 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6508 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6509 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6510 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6512 | rm -f conftest.er1 |
| 6513 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6515 | (exit $ac_status); } && { |
| 6516 | test -z "$ac_c_werror_flag" || |
| 6517 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6518 | } && test -s conftest$ac_exeext && { |
| 6519 | test "$cross_compiling" = yes || |
| 6520 | $as_test_x conftest$ac_exeext |
| 6521 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6522 | ac_cv_header_sys_types_h_makedev=yes |
| 6523 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6524 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6526 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6527 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6528 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6529 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6530 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6531 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6532 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6533 | |
| 6534 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6535 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6536 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6537 | |
| 6538 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6539 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6540 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6541 | $as_echo_n "checking for sys/mkdev.h... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6542 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6543 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6544 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6545 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6546 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6547 | else |
| 6548 | # Is the header compilable? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6549 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6550 | $as_echo_n "checking sys/mkdev.h usability... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6551 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6552 | /* confdefs.h. */ |
| 6553 | _ACEOF |
| 6554 | cat confdefs.h >>conftest.$ac_ext |
| 6555 | cat >>conftest.$ac_ext <<_ACEOF |
| 6556 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6557 | $ac_includes_default |
| 6558 | #include <sys/mkdev.h> |
| 6559 | _ACEOF |
| 6560 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6561 | if { (ac_try="$ac_compile" |
| 6562 | case "(($ac_try" in |
| 6563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6564 | *) ac_try_echo=$ac_try;; |
| 6565 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6566 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6567 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6568 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6569 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6571 | rm -f conftest.er1 |
| 6572 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6573 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6574 | (exit $ac_status); } && { |
| 6575 | test -z "$ac_c_werror_flag" || |
| 6576 | test ! -s conftest.err |
| 6577 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6578 | ac_header_compiler=yes |
| 6579 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6580 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6582 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6583 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6584 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6585 | |
| 6586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6587 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6588 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6589 | |
| 6590 | # Is the header present? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6591 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6592 | $as_echo_n "checking sys/mkdev.h presence... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6594 | /* confdefs.h. */ |
| 6595 | _ACEOF |
| 6596 | cat confdefs.h >>conftest.$ac_ext |
| 6597 | cat >>conftest.$ac_ext <<_ACEOF |
| 6598 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6599 | #include <sys/mkdev.h> |
| 6600 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6601 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6602 | case "(($ac_try" in |
| 6603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6604 | *) ac_try_echo=$ac_try;; |
| 6605 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6606 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6607 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6608 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6609 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6610 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6611 | rm -f conftest.er1 |
| 6612 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6614 | (exit $ac_status); } >/dev/null && { |
| 6615 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6616 | test ! -s conftest.err |
| 6617 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6618 | ac_header_preproc=yes |
| 6619 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6620 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6622 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6623 | ac_header_preproc=no |
| 6624 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6625 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6626 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6627 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6628 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6629 | |
| 6630 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6631 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6632 | yes:no: ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6633 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6634 | $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6635 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6636 | $as_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] | 6637 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6638 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6639 | no:yes:* ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6640 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6641 | $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6642 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6643 | $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6644 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6645 | $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6646 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6647 | $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6648 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6649 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6650 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6651 | $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6652 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6653 | ## ------------------------------------------------ ## |
| 6654 | ## Report this to http://www.python.org/python-bugs ## |
| 6655 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6656 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6657 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6658 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6659 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6660 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6661 | $as_echo_n "checking for sys/mkdev.h... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6662 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6663 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6664 | else |
| 6665 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6666 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6667 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6668 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6669 | |
| 6670 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6671 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6672 | |
| 6673 | cat >>confdefs.h <<\_ACEOF |
| 6674 | #define MAJOR_IN_MKDEV 1 |
| 6675 | _ACEOF |
| 6676 | |
| 6677 | fi |
| 6678 | |
| 6679 | |
| 6680 | |
| 6681 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6682 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6683 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6684 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6685 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6686 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6687 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6688 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6689 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6690 | else |
| 6691 | # Is the header compilable? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6692 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6693 | $as_echo_n "checking sys/sysmacros.h usability... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6694 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6695 | /* confdefs.h. */ |
| 6696 | _ACEOF |
| 6697 | cat confdefs.h >>conftest.$ac_ext |
| 6698 | cat >>conftest.$ac_ext <<_ACEOF |
| 6699 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6700 | $ac_includes_default |
| 6701 | #include <sys/sysmacros.h> |
| 6702 | _ACEOF |
| 6703 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6704 | if { (ac_try="$ac_compile" |
| 6705 | case "(($ac_try" in |
| 6706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6707 | *) ac_try_echo=$ac_try;; |
| 6708 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6709 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6710 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6711 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6712 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6714 | rm -f conftest.er1 |
| 6715 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6717 | (exit $ac_status); } && { |
| 6718 | test -z "$ac_c_werror_flag" || |
| 6719 | test ! -s conftest.err |
| 6720 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6721 | ac_header_compiler=yes |
| 6722 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6723 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6725 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6726 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6727 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6728 | |
| 6729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6730 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6731 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6732 | |
| 6733 | # Is the header present? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6734 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6735 | $as_echo_n "checking sys/sysmacros.h presence... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6736 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6737 | /* confdefs.h. */ |
| 6738 | _ACEOF |
| 6739 | cat confdefs.h >>conftest.$ac_ext |
| 6740 | cat >>conftest.$ac_ext <<_ACEOF |
| 6741 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6742 | #include <sys/sysmacros.h> |
| 6743 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6744 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6745 | case "(($ac_try" in |
| 6746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6747 | *) ac_try_echo=$ac_try;; |
| 6748 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6749 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6750 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6751 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6752 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6753 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6754 | rm -f conftest.er1 |
| 6755 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6756 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6757 | (exit $ac_status); } >/dev/null && { |
| 6758 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6759 | test ! -s conftest.err |
| 6760 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6761 | ac_header_preproc=yes |
| 6762 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6763 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6765 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6766 | ac_header_preproc=no |
| 6767 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6768 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6769 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6770 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6771 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6772 | |
| 6773 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6774 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6775 | yes:no: ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6776 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6777 | $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6778 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6779 | $as_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] | 6780 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6781 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6782 | no:yes:* ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6783 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6784 | $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6785 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6786 | $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6787 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6788 | $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6789 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6790 | $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6791 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6792 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6793 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6794 | $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6795 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6796 | ## ------------------------------------------------ ## |
| 6797 | ## Report this to http://www.python.org/python-bugs ## |
| 6798 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6799 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6800 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6801 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6802 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6803 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6804 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6805 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6806 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6807 | else |
| 6808 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6809 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6810 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6811 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6812 | |
| 6813 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6814 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6815 | |
| 6816 | cat >>confdefs.h <<\_ACEOF |
| 6817 | #define MAJOR_IN_SYSMACROS 1 |
| 6818 | _ACEOF |
| 6819 | |
| 6820 | fi |
| 6821 | |
| 6822 | |
| 6823 | fi |
| 6824 | fi |
| 6825 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6826 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6827 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6828 | |
| 6829 | for ac_header in term.h |
| 6830 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6831 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6832 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6833 | $as_echo_n "checking for $ac_header... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6834 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6835 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6836 | else |
| 6837 | cat >conftest.$ac_ext <<_ACEOF |
| 6838 | /* confdefs.h. */ |
| 6839 | _ACEOF |
| 6840 | cat confdefs.h >>conftest.$ac_ext |
| 6841 | cat >>conftest.$ac_ext <<_ACEOF |
| 6842 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6843 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6844 | #ifdef HAVE_CURSES_H |
| 6845 | #include <curses.h> |
| 6846 | #endif |
| 6847 | |
| 6848 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6849 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6850 | _ACEOF |
| 6851 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6852 | if { (ac_try="$ac_compile" |
| 6853 | case "(($ac_try" in |
| 6854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6855 | *) ac_try_echo=$ac_try;; |
| 6856 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6857 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6858 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6859 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6860 | ac_status=$? |
| 6861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6862 | rm -f conftest.er1 |
| 6863 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6865 | (exit $ac_status); } && { |
| 6866 | test -z "$ac_c_werror_flag" || |
| 6867 | test ! -s conftest.err |
| 6868 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6869 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6870 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6871 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6873 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6874 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6875 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6876 | |
| 6877 | 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] | 6878 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6879 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6880 | $as_echo "$as_val"'` |
| 6881 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6882 | $as_echo "$ac_res" >&6; } |
| 6883 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 6884 | $as_echo "$as_val"'` |
| 6885 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6886 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6887 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6888 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6889 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6890 | fi |
| 6891 | |
| 6892 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6893 | |
| 6894 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6895 | # On Linux, netlink.h requires asm/types.h |
| 6896 | |
| 6897 | for ac_header in linux/netlink.h |
| 6898 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6899 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6900 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6901 | $as_echo_n "checking for $ac_header... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6902 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6903 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6904 | else |
| 6905 | cat >conftest.$ac_ext <<_ACEOF |
| 6906 | /* confdefs.h. */ |
| 6907 | _ACEOF |
| 6908 | cat confdefs.h >>conftest.$ac_ext |
| 6909 | cat >>conftest.$ac_ext <<_ACEOF |
| 6910 | /* end confdefs.h. */ |
| 6911 | |
| 6912 | #ifdef HAVE_ASM_TYPES_H |
| 6913 | #include <asm/types.h> |
| 6914 | #endif |
| 6915 | #ifdef HAVE_SYS_SOCKET_H |
| 6916 | #include <sys/socket.h> |
| 6917 | #endif |
| 6918 | |
| 6919 | |
| 6920 | #include <$ac_header> |
| 6921 | _ACEOF |
| 6922 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6923 | if { (ac_try="$ac_compile" |
| 6924 | case "(($ac_try" in |
| 6925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6926 | *) ac_try_echo=$ac_try;; |
| 6927 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6928 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6929 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6930 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6931 | ac_status=$? |
| 6932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6933 | rm -f conftest.er1 |
| 6934 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6935 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6936 | (exit $ac_status); } && { |
| 6937 | test -z "$ac_c_werror_flag" || |
| 6938 | test ! -s conftest.err |
| 6939 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6940 | eval "$as_ac_Header=yes" |
| 6941 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6942 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6944 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6945 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6946 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6947 | |
| 6948 | 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] | 6949 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6950 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6951 | $as_echo "$as_val"'` |
| 6952 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6953 | $as_echo "$ac_res" >&6; } |
| 6954 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 6955 | $as_echo "$as_val"'` |
| 6956 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6957 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6958 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6959 | _ACEOF |
| 6960 | |
| 6961 | fi |
| 6962 | |
| 6963 | done |
| 6964 | |
| 6965 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6966 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6967 | was_it_defined=no |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6968 | { $as_echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6969 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6970 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6971 | /* confdefs.h. */ |
| 6972 | _ACEOF |
| 6973 | cat confdefs.h >>conftest.$ac_ext |
| 6974 | cat >>conftest.$ac_ext <<_ACEOF |
| 6975 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6976 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6977 | |
| 6978 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6979 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6980 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6981 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6982 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6983 | |
| 6984 | |
| 6985 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6986 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6987 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6988 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6989 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6990 | fi |
| 6991 | rm -f conftest* |
| 6992 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6993 | { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6994 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6995 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6996 | # Check whether using makedev requires defining _OSF_SOURCE |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 6997 | { $as_echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6998 | $as_echo_n "checking for makedev... " >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6999 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7000 | /* confdefs.h. */ |
| 7001 | _ACEOF |
| 7002 | cat confdefs.h >>conftest.$ac_ext |
| 7003 | cat >>conftest.$ac_ext <<_ACEOF |
| 7004 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 7005 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7006 | int |
| 7007 | main () |
| 7008 | { |
| 7009 | makedev(0, 0) |
| 7010 | ; |
| 7011 | return 0; |
| 7012 | } |
| 7013 | _ACEOF |
| 7014 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7015 | if { (ac_try="$ac_link" |
| 7016 | case "(($ac_try" in |
| 7017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7018 | *) ac_try_echo=$ac_try;; |
| 7019 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7020 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7021 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7022 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7023 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7025 | rm -f conftest.er1 |
| 7026 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7027 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7028 | (exit $ac_status); } && { |
| 7029 | test -z "$ac_c_werror_flag" || |
| 7030 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7031 | } && test -s conftest$ac_exeext && { |
| 7032 | test "$cross_compiling" = yes || |
| 7033 | $as_test_x conftest$ac_exeext |
| 7034 | }; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7035 | ac_cv_has_makedev=yes |
| 7036 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7037 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7039 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7040 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7041 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7042 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7043 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7044 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7045 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7046 | if test "$ac_cv_has_makedev" = "no"; then |
| 7047 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 7048 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7049 | /* confdefs.h. */ |
| 7050 | _ACEOF |
| 7051 | cat confdefs.h >>conftest.$ac_ext |
| 7052 | cat >>conftest.$ac_ext <<_ACEOF |
| 7053 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7054 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 7055 | #define _OSF_SOURCE 1 |
| 7056 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7057 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7058 | int |
| 7059 | main () |
| 7060 | { |
| 7061 | makedev(0, 0) |
| 7062 | ; |
| 7063 | return 0; |
| 7064 | } |
| 7065 | _ACEOF |
| 7066 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7067 | if { (ac_try="$ac_link" |
| 7068 | case "(($ac_try" in |
| 7069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7070 | *) ac_try_echo=$ac_try;; |
| 7071 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7072 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7073 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7074 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7075 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7077 | rm -f conftest.er1 |
| 7078 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7079 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7080 | (exit $ac_status); } && { |
| 7081 | test -z "$ac_c_werror_flag" || |
| 7082 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7083 | } && test -s conftest$ac_exeext && { |
| 7084 | test "$cross_compiling" = yes || |
| 7085 | $as_test_x conftest$ac_exeext |
| 7086 | }; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7087 | ac_cv_has_makedev=yes |
| 7088 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7089 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7091 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7092 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7093 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7094 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7095 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7096 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7097 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7098 | if test "$ac_cv_has_makedev" = "yes"; then |
| 7099 | |
| 7100 | cat >>confdefs.h <<\_ACEOF |
| 7101 | #define _OSF_SOURCE 1 |
| 7102 | _ACEOF |
| 7103 | |
| 7104 | fi |
| 7105 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7106 | { $as_echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 7107 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7108 | if test "$ac_cv_has_makedev" = "yes"; then |
| 7109 | |
| 7110 | cat >>confdefs.h <<\_ACEOF |
| 7111 | #define HAVE_MAKEDEV 1 |
| 7112 | _ACEOF |
| 7113 | |
| 7114 | fi |
| 7115 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7116 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 7117 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 7118 | # defined, but the compiler does not support pragma redefine_extname, |
| 7119 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 7120 | # structures (such as rlimit64) without declaring them. As a |
| 7121 | # work-around, disable LFS on such configurations |
| 7122 | |
| 7123 | use_lfs=yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7124 | { $as_echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 7125 | $as_echo_n "checking Solaris LFS bug... " >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7126 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7127 | /* confdefs.h. */ |
| 7128 | _ACEOF |
| 7129 | cat confdefs.h >>conftest.$ac_ext |
| 7130 | cat >>conftest.$ac_ext <<_ACEOF |
| 7131 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7132 | |
| 7133 | #define _LARGEFILE_SOURCE 1 |
| 7134 | #define _FILE_OFFSET_BITS 64 |
| 7135 | #include <sys/resource.h> |
| 7136 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7137 | int |
| 7138 | main () |
| 7139 | { |
| 7140 | struct rlimit foo; |
| 7141 | ; |
| 7142 | return 0; |
| 7143 | } |
| 7144 | _ACEOF |
| 7145 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7146 | if { (ac_try="$ac_compile" |
| 7147 | case "(($ac_try" in |
| 7148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7149 | *) ac_try_echo=$ac_try;; |
| 7150 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7151 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7152 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7153 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7154 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7156 | rm -f conftest.er1 |
| 7157 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7158 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7159 | (exit $ac_status); } && { |
| 7160 | test -z "$ac_c_werror_flag" || |
| 7161 | test ! -s conftest.err |
| 7162 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7163 | sol_lfs_bug=no |
| 7164 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7165 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7167 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7168 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7169 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7170 | |
| 7171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7172 | { $as_echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 7173 | $as_echo "$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7174 | if test "$sol_lfs_bug" = "yes"; then |
| 7175 | use_lfs=no |
| 7176 | fi |
| 7177 | |
| 7178 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7179 | # Two defines needed to enable largefile support on various platforms |
| 7180 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7182 | cat >>confdefs.h <<\_ACEOF |
| 7183 | #define _LARGEFILE_SOURCE 1 |
| 7184 | _ACEOF |
| 7185 | |
| 7186 | |
| 7187 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7188 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7189 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7190 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7191 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7192 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 7193 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 7194 | cat >> confdefs.h <<\EOF |
| 7195 | #if defined(SCO_DS) |
| 7196 | #undef _OFF_T |
| 7197 | #endif |
| 7198 | EOF |
| 7199 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7200 | # Type availability checks |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7201 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 7202 | $as_echo_n "checking for mode_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7203 | if test "${ac_cv_type_mode_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7204 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7205 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7206 | ac_cv_type_mode_t=no |
| 7207 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7208 | /* confdefs.h. */ |
| 7209 | _ACEOF |
| 7210 | cat confdefs.h >>conftest.$ac_ext |
| 7211 | cat >>conftest.$ac_ext <<_ACEOF |
| 7212 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7213 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7214 | int |
| 7215 | main () |
| 7216 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7217 | if (sizeof (mode_t)) |
| 7218 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7219 | ; |
| 7220 | return 0; |
| 7221 | } |
| 7222 | _ACEOF |
| 7223 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7224 | if { (ac_try="$ac_compile" |
| 7225 | case "(($ac_try" in |
| 7226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7227 | *) ac_try_echo=$ac_try;; |
| 7228 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7229 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7230 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7231 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7232 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7234 | rm -f conftest.er1 |
| 7235 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7236 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7237 | (exit $ac_status); } && { |
| 7238 | test -z "$ac_c_werror_flag" || |
| 7239 | test ! -s conftest.err |
| 7240 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7241 | cat >conftest.$ac_ext <<_ACEOF |
| 7242 | /* confdefs.h. */ |
| 7243 | _ACEOF |
| 7244 | cat confdefs.h >>conftest.$ac_ext |
| 7245 | cat >>conftest.$ac_ext <<_ACEOF |
| 7246 | /* end confdefs.h. */ |
| 7247 | $ac_includes_default |
| 7248 | int |
| 7249 | main () |
| 7250 | { |
| 7251 | if (sizeof ((mode_t))) |
| 7252 | return 0; |
| 7253 | ; |
| 7254 | return 0; |
| 7255 | } |
| 7256 | _ACEOF |
| 7257 | rm -f conftest.$ac_objext |
| 7258 | if { (ac_try="$ac_compile" |
| 7259 | case "(($ac_try" in |
| 7260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7261 | *) ac_try_echo=$ac_try;; |
| 7262 | esac |
| 7263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7264 | $as_echo "$ac_try_echo") >&5 |
| 7265 | (eval "$ac_compile") 2>conftest.er1 |
| 7266 | ac_status=$? |
| 7267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7268 | rm -f conftest.er1 |
| 7269 | cat conftest.err >&5 |
| 7270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7271 | (exit $ac_status); } && { |
| 7272 | test -z "$ac_c_werror_flag" || |
| 7273 | test ! -s conftest.err |
| 7274 | } && test -s conftest.$ac_objext; then |
| 7275 | : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7276 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7277 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7279 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7280 | ac_cv_type_mode_t=yes |
| 7281 | fi |
| 7282 | |
| 7283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7284 | else |
| 7285 | $as_echo "$as_me: failed program was:" >&5 |
| 7286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7287 | |
| 7288 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7289 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7290 | |
| 7291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7292 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7293 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 7294 | $as_echo "$ac_cv_type_mode_t" >&6; } |
| 7295 | if test "x$ac_cv_type_mode_t" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7296 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7298 | |
| 7299 | cat >>confdefs.h <<_ACEOF |
| 7300 | #define mode_t int |
| 7301 | _ACEOF |
| 7302 | |
| 7303 | fi |
| 7304 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7305 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
| 7306 | $as_echo_n "checking for off_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7307 | if test "${ac_cv_type_off_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7308 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7309 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7310 | ac_cv_type_off_t=no |
| 7311 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7312 | /* confdefs.h. */ |
| 7313 | _ACEOF |
| 7314 | cat confdefs.h >>conftest.$ac_ext |
| 7315 | cat >>conftest.$ac_ext <<_ACEOF |
| 7316 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7317 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7318 | int |
| 7319 | main () |
| 7320 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7321 | if (sizeof (off_t)) |
| 7322 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7323 | ; |
| 7324 | return 0; |
| 7325 | } |
| 7326 | _ACEOF |
| 7327 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7328 | if { (ac_try="$ac_compile" |
| 7329 | case "(($ac_try" in |
| 7330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7331 | *) ac_try_echo=$ac_try;; |
| 7332 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7334 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7335 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7336 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7338 | rm -f conftest.er1 |
| 7339 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7341 | (exit $ac_status); } && { |
| 7342 | test -z "$ac_c_werror_flag" || |
| 7343 | test ! -s conftest.err |
| 7344 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7345 | cat >conftest.$ac_ext <<_ACEOF |
| 7346 | /* confdefs.h. */ |
| 7347 | _ACEOF |
| 7348 | cat confdefs.h >>conftest.$ac_ext |
| 7349 | cat >>conftest.$ac_ext <<_ACEOF |
| 7350 | /* end confdefs.h. */ |
| 7351 | $ac_includes_default |
| 7352 | int |
| 7353 | main () |
| 7354 | { |
| 7355 | if (sizeof ((off_t))) |
| 7356 | return 0; |
| 7357 | ; |
| 7358 | return 0; |
| 7359 | } |
| 7360 | _ACEOF |
| 7361 | rm -f conftest.$ac_objext |
| 7362 | if { (ac_try="$ac_compile" |
| 7363 | case "(($ac_try" in |
| 7364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7365 | *) ac_try_echo=$ac_try;; |
| 7366 | esac |
| 7367 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7368 | $as_echo "$ac_try_echo") >&5 |
| 7369 | (eval "$ac_compile") 2>conftest.er1 |
| 7370 | ac_status=$? |
| 7371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7372 | rm -f conftest.er1 |
| 7373 | cat conftest.err >&5 |
| 7374 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7375 | (exit $ac_status); } && { |
| 7376 | test -z "$ac_c_werror_flag" || |
| 7377 | test ! -s conftest.err |
| 7378 | } && test -s conftest.$ac_objext; then |
| 7379 | : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7380 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7381 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7383 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7384 | ac_cv_type_off_t=yes |
| 7385 | fi |
| 7386 | |
| 7387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7388 | else |
| 7389 | $as_echo "$as_me: failed program was:" >&5 |
| 7390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7391 | |
| 7392 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7393 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7394 | |
| 7395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7396 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7397 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 7398 | $as_echo "$ac_cv_type_off_t" >&6; } |
| 7399 | if test "x$ac_cv_type_off_t" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7400 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7401 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7402 | |
| 7403 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7404 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7405 | _ACEOF |
| 7406 | |
| 7407 | fi |
| 7408 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7409 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 7410 | $as_echo_n "checking for pid_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7411 | if test "${ac_cv_type_pid_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7412 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7413 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7414 | ac_cv_type_pid_t=no |
| 7415 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7416 | /* confdefs.h. */ |
| 7417 | _ACEOF |
| 7418 | cat confdefs.h >>conftest.$ac_ext |
| 7419 | cat >>conftest.$ac_ext <<_ACEOF |
| 7420 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7421 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7422 | int |
| 7423 | main () |
| 7424 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7425 | if (sizeof (pid_t)) |
| 7426 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7427 | ; |
| 7428 | return 0; |
| 7429 | } |
| 7430 | _ACEOF |
| 7431 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7432 | if { (ac_try="$ac_compile" |
| 7433 | case "(($ac_try" in |
| 7434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7435 | *) ac_try_echo=$ac_try;; |
| 7436 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7437 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7438 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7439 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7440 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7442 | rm -f conftest.er1 |
| 7443 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7445 | (exit $ac_status); } && { |
| 7446 | test -z "$ac_c_werror_flag" || |
| 7447 | test ! -s conftest.err |
| 7448 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7449 | cat >conftest.$ac_ext <<_ACEOF |
| 7450 | /* confdefs.h. */ |
| 7451 | _ACEOF |
| 7452 | cat confdefs.h >>conftest.$ac_ext |
| 7453 | cat >>conftest.$ac_ext <<_ACEOF |
| 7454 | /* end confdefs.h. */ |
| 7455 | $ac_includes_default |
| 7456 | int |
| 7457 | main () |
| 7458 | { |
| 7459 | if (sizeof ((pid_t))) |
| 7460 | return 0; |
| 7461 | ; |
| 7462 | return 0; |
| 7463 | } |
| 7464 | _ACEOF |
| 7465 | rm -f conftest.$ac_objext |
| 7466 | if { (ac_try="$ac_compile" |
| 7467 | case "(($ac_try" in |
| 7468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7469 | *) ac_try_echo=$ac_try;; |
| 7470 | esac |
| 7471 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7472 | $as_echo "$ac_try_echo") >&5 |
| 7473 | (eval "$ac_compile") 2>conftest.er1 |
| 7474 | ac_status=$? |
| 7475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7476 | rm -f conftest.er1 |
| 7477 | cat conftest.err >&5 |
| 7478 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7479 | (exit $ac_status); } && { |
| 7480 | test -z "$ac_c_werror_flag" || |
| 7481 | test ! -s conftest.err |
| 7482 | } && test -s conftest.$ac_objext; then |
| 7483 | : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7484 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7485 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7487 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7488 | ac_cv_type_pid_t=yes |
| 7489 | fi |
| 7490 | |
| 7491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7492 | else |
| 7493 | $as_echo "$as_me: failed program was:" >&5 |
| 7494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7495 | |
| 7496 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7497 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7498 | |
| 7499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7500 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7501 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 7502 | $as_echo "$ac_cv_type_pid_t" >&6; } |
| 7503 | if test "x$ac_cv_type_pid_t" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7504 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7505 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7506 | |
| 7507 | cat >>confdefs.h <<_ACEOF |
| 7508 | #define pid_t int |
| 7509 | _ACEOF |
| 7510 | |
| 7511 | fi |
| 7512 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7513 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 7514 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7515 | if test "${ac_cv_type_signal+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7516 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7517 | else |
| 7518 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7519 | /* confdefs.h. */ |
| 7520 | _ACEOF |
| 7521 | cat confdefs.h >>conftest.$ac_ext |
| 7522 | cat >>conftest.$ac_ext <<_ACEOF |
| 7523 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7524 | #include <sys/types.h> |
| 7525 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7527 | int |
| 7528 | main () |
| 7529 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7530 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7531 | ; |
| 7532 | return 0; |
| 7533 | } |
| 7534 | _ACEOF |
| 7535 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7536 | if { (ac_try="$ac_compile" |
| 7537 | case "(($ac_try" in |
| 7538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7539 | *) ac_try_echo=$ac_try;; |
| 7540 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7541 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7542 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7543 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7544 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7546 | rm -f conftest.er1 |
| 7547 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7548 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7549 | (exit $ac_status); } && { |
| 7550 | test -z "$ac_c_werror_flag" || |
| 7551 | test ! -s conftest.err |
| 7552 | } && test -s conftest.$ac_objext; then |
| 7553 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7554 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7555 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7557 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7558 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7559 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7560 | |
| 7561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7562 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7563 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 7564 | $as_echo "$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7565 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7566 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7567 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7568 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7569 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7570 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7571 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
| 7572 | $as_echo_n "checking for size_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7573 | if test "${ac_cv_type_size_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7574 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7575 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7576 | ac_cv_type_size_t=no |
| 7577 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7578 | /* confdefs.h. */ |
| 7579 | _ACEOF |
| 7580 | cat confdefs.h >>conftest.$ac_ext |
| 7581 | cat >>conftest.$ac_ext <<_ACEOF |
| 7582 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7583 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7584 | int |
| 7585 | main () |
| 7586 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7587 | if (sizeof (size_t)) |
| 7588 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7589 | ; |
| 7590 | return 0; |
| 7591 | } |
| 7592 | _ACEOF |
| 7593 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7594 | if { (ac_try="$ac_compile" |
| 7595 | case "(($ac_try" in |
| 7596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7597 | *) ac_try_echo=$ac_try;; |
| 7598 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7600 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7601 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7602 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7604 | rm -f conftest.er1 |
| 7605 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7607 | (exit $ac_status); } && { |
| 7608 | test -z "$ac_c_werror_flag" || |
| 7609 | test ! -s conftest.err |
| 7610 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7611 | cat >conftest.$ac_ext <<_ACEOF |
| 7612 | /* confdefs.h. */ |
| 7613 | _ACEOF |
| 7614 | cat confdefs.h >>conftest.$ac_ext |
| 7615 | cat >>conftest.$ac_ext <<_ACEOF |
| 7616 | /* end confdefs.h. */ |
| 7617 | $ac_includes_default |
| 7618 | int |
| 7619 | main () |
| 7620 | { |
| 7621 | if (sizeof ((size_t))) |
| 7622 | return 0; |
| 7623 | ; |
| 7624 | return 0; |
| 7625 | } |
| 7626 | _ACEOF |
| 7627 | rm -f conftest.$ac_objext |
| 7628 | if { (ac_try="$ac_compile" |
| 7629 | case "(($ac_try" in |
| 7630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7631 | *) ac_try_echo=$ac_try;; |
| 7632 | esac |
| 7633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7634 | $as_echo "$ac_try_echo") >&5 |
| 7635 | (eval "$ac_compile") 2>conftest.er1 |
| 7636 | ac_status=$? |
| 7637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7638 | rm -f conftest.er1 |
| 7639 | cat conftest.err >&5 |
| 7640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7641 | (exit $ac_status); } && { |
| 7642 | test -z "$ac_c_werror_flag" || |
| 7643 | test ! -s conftest.err |
| 7644 | } && test -s conftest.$ac_objext; then |
| 7645 | : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7646 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7647 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7649 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7650 | ac_cv_type_size_t=yes |
| 7651 | fi |
| 7652 | |
| 7653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7654 | else |
| 7655 | $as_echo "$as_me: failed program was:" >&5 |
| 7656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7657 | |
| 7658 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7659 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7660 | |
| 7661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7662 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7663 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7664 | $as_echo "$ac_cv_type_size_t" >&6; } |
| 7665 | if test "x$ac_cv_type_size_t" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7666 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7668 | |
| 7669 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7670 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7671 | _ACEOF |
| 7672 | |
| 7673 | fi |
| 7674 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7675 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7676 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7677 | if test "${ac_cv_type_uid_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7678 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7679 | else |
| 7680 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7681 | /* confdefs.h. */ |
| 7682 | _ACEOF |
| 7683 | cat confdefs.h >>conftest.$ac_ext |
| 7684 | cat >>conftest.$ac_ext <<_ACEOF |
| 7685 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7686 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7687 | |
| 7688 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7690 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7691 | ac_cv_type_uid_t=yes |
| 7692 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7693 | ac_cv_type_uid_t=no |
| 7694 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7695 | rm -f conftest* |
| 7696 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7697 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7698 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7699 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7700 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7702 | cat >>confdefs.h <<\_ACEOF |
| 7703 | #define uid_t int |
| 7704 | _ACEOF |
| 7705 | |
| 7706 | |
| 7707 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7708 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7709 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7710 | |
| 7711 | fi |
| 7712 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7713 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7714 | $as_echo_n "checking for ssize_t... " >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7715 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7716 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7717 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7718 | ac_cv_type_ssize_t=no |
| 7719 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7720 | /* confdefs.h. */ |
| 7721 | _ACEOF |
| 7722 | cat confdefs.h >>conftest.$ac_ext |
| 7723 | cat >>conftest.$ac_ext <<_ACEOF |
| 7724 | /* end confdefs.h. */ |
| 7725 | $ac_includes_default |
| 7726 | int |
| 7727 | main () |
| 7728 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7729 | if (sizeof (ssize_t)) |
| 7730 | return 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7731 | ; |
| 7732 | return 0; |
| 7733 | } |
| 7734 | _ACEOF |
| 7735 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7736 | if { (ac_try="$ac_compile" |
| 7737 | case "(($ac_try" in |
| 7738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7739 | *) ac_try_echo=$ac_try;; |
| 7740 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7741 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7742 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7743 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7744 | ac_status=$? |
| 7745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7746 | rm -f conftest.er1 |
| 7747 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7748 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7749 | (exit $ac_status); } && { |
| 7750 | test -z "$ac_c_werror_flag" || |
| 7751 | test ! -s conftest.err |
| 7752 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7753 | cat >conftest.$ac_ext <<_ACEOF |
| 7754 | /* confdefs.h. */ |
| 7755 | _ACEOF |
| 7756 | cat confdefs.h >>conftest.$ac_ext |
| 7757 | cat >>conftest.$ac_ext <<_ACEOF |
| 7758 | /* end confdefs.h. */ |
| 7759 | $ac_includes_default |
| 7760 | int |
| 7761 | main () |
| 7762 | { |
| 7763 | if (sizeof ((ssize_t))) |
| 7764 | return 0; |
| 7765 | ; |
| 7766 | return 0; |
| 7767 | } |
| 7768 | _ACEOF |
| 7769 | rm -f conftest.$ac_objext |
| 7770 | if { (ac_try="$ac_compile" |
| 7771 | case "(($ac_try" in |
| 7772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7773 | *) ac_try_echo=$ac_try;; |
| 7774 | esac |
| 7775 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7776 | $as_echo "$ac_try_echo") >&5 |
| 7777 | (eval "$ac_compile") 2>conftest.er1 |
| 7778 | ac_status=$? |
| 7779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7780 | rm -f conftest.er1 |
| 7781 | cat conftest.err >&5 |
| 7782 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7783 | (exit $ac_status); } && { |
| 7784 | test -z "$ac_c_werror_flag" || |
| 7785 | test ! -s conftest.err |
| 7786 | } && test -s conftest.$ac_objext; then |
| 7787 | : |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7788 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7789 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7791 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7792 | ac_cv_type_ssize_t=yes |
| 7793 | fi |
| 7794 | |
| 7795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7796 | else |
| 7797 | $as_echo "$as_me: failed program was:" >&5 |
| 7798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7799 | |
| 7800 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7801 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7802 | |
| 7803 | 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] | 7804 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7805 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7806 | $as_echo "$ac_cv_type_ssize_t" >&6; } |
| 7807 | if test "x$ac_cv_type_ssize_t" = x""yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7808 | |
| 7809 | cat >>confdefs.h <<\_ACEOF |
| 7810 | #define HAVE_SSIZE_T 1 |
| 7811 | _ACEOF |
| 7812 | |
| 7813 | fi |
| 7814 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7815 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7816 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7817 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7818 | # The cast to long int works around a bug in the HP C Compiler |
| 7819 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7820 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7821 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7822 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
| 7823 | $as_echo_n "checking size of int... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7824 | if test "${ac_cv_sizeof_int+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7825 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7826 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7827 | if test "$cross_compiling" = yes; then |
| 7828 | # Depending upon the size, compute the lo and hi bounds. |
| 7829 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7830 | /* confdefs.h. */ |
| 7831 | _ACEOF |
| 7832 | cat confdefs.h >>conftest.$ac_ext |
| 7833 | cat >>conftest.$ac_ext <<_ACEOF |
| 7834 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7835 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7836 | int |
| 7837 | main () |
| 7838 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7839 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7840 | test_array [0] = 0 |
| 7841 | |
| 7842 | ; |
| 7843 | return 0; |
| 7844 | } |
| 7845 | _ACEOF |
| 7846 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7847 | if { (ac_try="$ac_compile" |
| 7848 | case "(($ac_try" in |
| 7849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7850 | *) ac_try_echo=$ac_try;; |
| 7851 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7853 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7854 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7855 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7857 | rm -f conftest.er1 |
| 7858 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7860 | (exit $ac_status); } && { |
| 7861 | test -z "$ac_c_werror_flag" || |
| 7862 | test ! -s conftest.err |
| 7863 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7864 | ac_lo=0 ac_mid=0 |
| 7865 | while :; do |
| 7866 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7867 | /* confdefs.h. */ |
| 7868 | _ACEOF |
| 7869 | cat confdefs.h >>conftest.$ac_ext |
| 7870 | cat >>conftest.$ac_ext <<_ACEOF |
| 7871 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7872 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7873 | int |
| 7874 | main () |
| 7875 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7876 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7877 | test_array [0] = 0 |
| 7878 | |
| 7879 | ; |
| 7880 | return 0; |
| 7881 | } |
| 7882 | _ACEOF |
| 7883 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7884 | if { (ac_try="$ac_compile" |
| 7885 | case "(($ac_try" in |
| 7886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7887 | *) ac_try_echo=$ac_try;; |
| 7888 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7889 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7890 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7891 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7892 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7894 | rm -f conftest.er1 |
| 7895 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7897 | (exit $ac_status); } && { |
| 7898 | test -z "$ac_c_werror_flag" || |
| 7899 | test ! -s conftest.err |
| 7900 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7901 | ac_hi=$ac_mid; break |
| 7902 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7903 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7905 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7906 | ac_lo=`expr $ac_mid + 1` |
| 7907 | if test $ac_lo -le $ac_mid; then |
| 7908 | ac_lo= ac_hi= |
| 7909 | break |
| 7910 | fi |
| 7911 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7912 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7913 | |
| 7914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7915 | done |
| 7916 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7917 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7919 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7920 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7921 | /* confdefs.h. */ |
| 7922 | _ACEOF |
| 7923 | cat confdefs.h >>conftest.$ac_ext |
| 7924 | cat >>conftest.$ac_ext <<_ACEOF |
| 7925 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7926 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7927 | int |
| 7928 | main () |
| 7929 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7930 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7931 | test_array [0] = 0 |
| 7932 | |
| 7933 | ; |
| 7934 | return 0; |
| 7935 | } |
| 7936 | _ACEOF |
| 7937 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7938 | if { (ac_try="$ac_compile" |
| 7939 | case "(($ac_try" in |
| 7940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7941 | *) ac_try_echo=$ac_try;; |
| 7942 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7943 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7944 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7945 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7948 | rm -f conftest.er1 |
| 7949 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7951 | (exit $ac_status); } && { |
| 7952 | test -z "$ac_c_werror_flag" || |
| 7953 | test ! -s conftest.err |
| 7954 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7955 | ac_hi=-1 ac_mid=-1 |
| 7956 | while :; do |
| 7957 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7958 | /* confdefs.h. */ |
| 7959 | _ACEOF |
| 7960 | cat confdefs.h >>conftest.$ac_ext |
| 7961 | cat >>conftest.$ac_ext <<_ACEOF |
| 7962 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7963 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7964 | int |
| 7965 | main () |
| 7966 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7967 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7968 | test_array [0] = 0 |
| 7969 | |
| 7970 | ; |
| 7971 | return 0; |
| 7972 | } |
| 7973 | _ACEOF |
| 7974 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7975 | if { (ac_try="$ac_compile" |
| 7976 | case "(($ac_try" in |
| 7977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7978 | *) ac_try_echo=$ac_try;; |
| 7979 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7980 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7981 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7982 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7983 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7985 | rm -f conftest.er1 |
| 7986 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7988 | (exit $ac_status); } && { |
| 7989 | test -z "$ac_c_werror_flag" || |
| 7990 | test ! -s conftest.err |
| 7991 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7992 | ac_lo=$ac_mid; break |
| 7993 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7994 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7996 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7997 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7998 | if test $ac_mid -le $ac_hi; then |
| 7999 | ac_lo= ac_hi= |
| 8000 | break |
| 8001 | fi |
| 8002 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8003 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8004 | |
| 8005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8006 | done |
| 8007 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8008 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8010 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8011 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8012 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8013 | |
| 8014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8015 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8016 | |
| 8017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8018 | # Binary search between lo and hi bounds. |
| 8019 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8020 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8021 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8022 | /* confdefs.h. */ |
| 8023 | _ACEOF |
| 8024 | cat confdefs.h >>conftest.$ac_ext |
| 8025 | cat >>conftest.$ac_ext <<_ACEOF |
| 8026 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8027 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8028 | int |
| 8029 | main () |
| 8030 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8031 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8032 | test_array [0] = 0 |
| 8033 | |
| 8034 | ; |
| 8035 | return 0; |
| 8036 | } |
| 8037 | _ACEOF |
| 8038 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8039 | if { (ac_try="$ac_compile" |
| 8040 | case "(($ac_try" in |
| 8041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8042 | *) ac_try_echo=$ac_try;; |
| 8043 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8045 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8046 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8047 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8049 | rm -f conftest.er1 |
| 8050 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8052 | (exit $ac_status); } && { |
| 8053 | test -z "$ac_c_werror_flag" || |
| 8054 | test ! -s conftest.err |
| 8055 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8056 | ac_hi=$ac_mid |
| 8057 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8058 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8060 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8061 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8062 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8063 | |
| 8064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | done |
| 8066 | case $ac_lo in |
| 8067 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8068 | '') if test "$ac_cv_type_int" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8069 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8070 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8071 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8072 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8073 | $as_echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8074 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8075 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8076 | else |
| 8077 | ac_cv_sizeof_int=0 |
| 8078 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8079 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8082 | /* confdefs.h. */ |
| 8083 | _ACEOF |
| 8084 | cat confdefs.h >>conftest.$ac_ext |
| 8085 | cat >>conftest.$ac_ext <<_ACEOF |
| 8086 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8087 | $ac_includes_default |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8088 | static long int longval () { return (long int) (sizeof (int)); } |
| 8089 | static unsigned long int ulongval () { return (long int) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8090 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8091 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 | int |
| 8093 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8094 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8095 | |
| 8096 | FILE *f = fopen ("conftest.val", "w"); |
| 8097 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8098 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8099 | if (((long int) (sizeof (int))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8101 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8102 | if (i != ((long int) (sizeof (int)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8103 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8104 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8105 | } |
| 8106 | else |
| 8107 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8108 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8109 | if (i != ((long int) (sizeof (int)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8110 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8111 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8112 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8113 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8114 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8115 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8116 | |
| 8117 | ; |
| 8118 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8119 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8120 | _ACEOF |
| 8121 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8122 | if { (ac_try="$ac_link" |
| 8123 | case "(($ac_try" in |
| 8124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8125 | *) ac_try_echo=$ac_try;; |
| 8126 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8128 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8129 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8130 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8131 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8132 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8133 | { (case "(($ac_try" in |
| 8134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8135 | *) ac_try_echo=$ac_try;; |
| 8136 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8137 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8138 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8139 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8140 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8141 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8142 | (exit $ac_status); }; }; then |
| 8143 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8144 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8145 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8146 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8149 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8150 | if test "$ac_cv_type_int" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8151 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8152 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8153 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8154 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8155 | $as_echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8156 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8157 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8158 | else |
| 8159 | ac_cv_sizeof_int=0 |
| 8160 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8161 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8162 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8163 | 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] | 8164 | fi |
| 8165 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8166 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8167 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 8168 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8169 | |
| 8170 | |
| 8171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8172 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8173 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8174 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8175 | |
| 8176 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8177 | # The cast to long int works around a bug in the HP C Compiler |
| 8178 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8179 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8180 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8181 | { $as_echo "$as_me:$LINENO: checking size of long" >&5 |
| 8182 | $as_echo_n "checking size of long... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8183 | if test "${ac_cv_sizeof_long+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8184 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8185 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8186 | if test "$cross_compiling" = yes; then |
| 8187 | # Depending upon the size, compute the lo and hi bounds. |
| 8188 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8189 | /* confdefs.h. */ |
| 8190 | _ACEOF |
| 8191 | cat confdefs.h >>conftest.$ac_ext |
| 8192 | cat >>conftest.$ac_ext <<_ACEOF |
| 8193 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8194 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8195 | int |
| 8196 | main () |
| 8197 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8198 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8199 | test_array [0] = 0 |
| 8200 | |
| 8201 | ; |
| 8202 | return 0; |
| 8203 | } |
| 8204 | _ACEOF |
| 8205 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8206 | if { (ac_try="$ac_compile" |
| 8207 | case "(($ac_try" in |
| 8208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8209 | *) ac_try_echo=$ac_try;; |
| 8210 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8211 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8212 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8213 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8214 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8216 | rm -f conftest.er1 |
| 8217 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8218 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8219 | (exit $ac_status); } && { |
| 8220 | test -z "$ac_c_werror_flag" || |
| 8221 | test ! -s conftest.err |
| 8222 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8223 | ac_lo=0 ac_mid=0 |
| 8224 | while :; do |
| 8225 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8226 | /* confdefs.h. */ |
| 8227 | _ACEOF |
| 8228 | cat confdefs.h >>conftest.$ac_ext |
| 8229 | cat >>conftest.$ac_ext <<_ACEOF |
| 8230 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8231 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | int |
| 8233 | main () |
| 8234 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8235 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8236 | test_array [0] = 0 |
| 8237 | |
| 8238 | ; |
| 8239 | return 0; |
| 8240 | } |
| 8241 | _ACEOF |
| 8242 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8243 | if { (ac_try="$ac_compile" |
| 8244 | case "(($ac_try" in |
| 8245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8246 | *) ac_try_echo=$ac_try;; |
| 8247 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8248 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8249 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8250 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8251 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8253 | rm -f conftest.er1 |
| 8254 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8255 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8256 | (exit $ac_status); } && { |
| 8257 | test -z "$ac_c_werror_flag" || |
| 8258 | test ! -s conftest.err |
| 8259 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8260 | ac_hi=$ac_mid; break |
| 8261 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8262 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8264 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8265 | ac_lo=`expr $ac_mid + 1` |
| 8266 | if test $ac_lo -le $ac_mid; then |
| 8267 | ac_lo= ac_hi= |
| 8268 | break |
| 8269 | fi |
| 8270 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8271 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8272 | |
| 8273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8274 | done |
| 8275 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8276 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8278 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8279 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8280 | /* confdefs.h. */ |
| 8281 | _ACEOF |
| 8282 | cat confdefs.h >>conftest.$ac_ext |
| 8283 | cat >>conftest.$ac_ext <<_ACEOF |
| 8284 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | int |
| 8287 | main () |
| 8288 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8289 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8290 | test_array [0] = 0 |
| 8291 | |
| 8292 | ; |
| 8293 | return 0; |
| 8294 | } |
| 8295 | _ACEOF |
| 8296 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8297 | if { (ac_try="$ac_compile" |
| 8298 | case "(($ac_try" in |
| 8299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8300 | *) ac_try_echo=$ac_try;; |
| 8301 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8302 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8303 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8304 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8305 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8307 | rm -f conftest.er1 |
| 8308 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8310 | (exit $ac_status); } && { |
| 8311 | test -z "$ac_c_werror_flag" || |
| 8312 | test ! -s conftest.err |
| 8313 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8314 | ac_hi=-1 ac_mid=-1 |
| 8315 | while :; do |
| 8316 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8317 | /* confdefs.h. */ |
| 8318 | _ACEOF |
| 8319 | cat confdefs.h >>conftest.$ac_ext |
| 8320 | cat >>conftest.$ac_ext <<_ACEOF |
| 8321 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8322 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8323 | int |
| 8324 | main () |
| 8325 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8326 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8327 | test_array [0] = 0 |
| 8328 | |
| 8329 | ; |
| 8330 | return 0; |
| 8331 | } |
| 8332 | _ACEOF |
| 8333 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8334 | if { (ac_try="$ac_compile" |
| 8335 | case "(($ac_try" in |
| 8336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8337 | *) ac_try_echo=$ac_try;; |
| 8338 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8339 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8340 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8341 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8342 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8344 | rm -f conftest.er1 |
| 8345 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8346 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8347 | (exit $ac_status); } && { |
| 8348 | test -z "$ac_c_werror_flag" || |
| 8349 | test ! -s conftest.err |
| 8350 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8351 | ac_lo=$ac_mid; break |
| 8352 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8353 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8355 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8356 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8357 | if test $ac_mid -le $ac_hi; then |
| 8358 | ac_lo= ac_hi= |
| 8359 | break |
| 8360 | fi |
| 8361 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8362 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8363 | |
| 8364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8365 | done |
| 8366 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8367 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8369 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8370 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8371 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8372 | |
| 8373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8374 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8375 | |
| 8376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8377 | # Binary search between lo and hi bounds. |
| 8378 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8379 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8380 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8381 | /* confdefs.h. */ |
| 8382 | _ACEOF |
| 8383 | cat confdefs.h >>conftest.$ac_ext |
| 8384 | cat >>conftest.$ac_ext <<_ACEOF |
| 8385 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8386 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8387 | int |
| 8388 | main () |
| 8389 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8390 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8391 | test_array [0] = 0 |
| 8392 | |
| 8393 | ; |
| 8394 | return 0; |
| 8395 | } |
| 8396 | _ACEOF |
| 8397 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8398 | if { (ac_try="$ac_compile" |
| 8399 | case "(($ac_try" in |
| 8400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8401 | *) ac_try_echo=$ac_try;; |
| 8402 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8403 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8404 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8405 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8406 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8408 | rm -f conftest.er1 |
| 8409 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8410 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8411 | (exit $ac_status); } && { |
| 8412 | test -z "$ac_c_werror_flag" || |
| 8413 | test ! -s conftest.err |
| 8414 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | ac_hi=$ac_mid |
| 8416 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8417 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8419 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8420 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8421 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8422 | |
| 8423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | done |
| 8425 | case $ac_lo in |
| 8426 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8427 | '') if test "$ac_cv_type_long" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8428 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8429 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8430 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8431 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8432 | $as_echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8433 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8434 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8435 | else |
| 8436 | ac_cv_sizeof_long=0 |
| 8437 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8438 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8439 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8440 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8441 | /* confdefs.h. */ |
| 8442 | _ACEOF |
| 8443 | cat confdefs.h >>conftest.$ac_ext |
| 8444 | cat >>conftest.$ac_ext <<_ACEOF |
| 8445 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8446 | $ac_includes_default |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8447 | static long int longval () { return (long int) (sizeof (long)); } |
| 8448 | static unsigned long int ulongval () { return (long int) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8449 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8450 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8451 | int |
| 8452 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8453 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8454 | |
| 8455 | FILE *f = fopen ("conftest.val", "w"); |
| 8456 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8457 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8458 | if (((long int) (sizeof (long))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8459 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8460 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8461 | if (i != ((long int) (sizeof (long)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8462 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8463 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8464 | } |
| 8465 | else |
| 8466 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8467 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8468 | if (i != ((long int) (sizeof (long)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8469 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8470 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8472 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8473 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8474 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8475 | |
| 8476 | ; |
| 8477 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8478 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | _ACEOF |
| 8480 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8481 | if { (ac_try="$ac_link" |
| 8482 | case "(($ac_try" in |
| 8483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8484 | *) ac_try_echo=$ac_try;; |
| 8485 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8487 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8488 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8491 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8492 | { (case "(($ac_try" in |
| 8493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8494 | *) ac_try_echo=$ac_try;; |
| 8495 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8497 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8498 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8499 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8501 | (exit $ac_status); }; }; then |
| 8502 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8503 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8504 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8505 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8508 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8509 | if test "$ac_cv_type_long" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8510 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8511 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8512 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8513 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8514 | $as_echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8515 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8516 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8517 | else |
| 8518 | ac_cv_sizeof_long=0 |
| 8519 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8520 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8521 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8522 | 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] | 8523 | fi |
| 8524 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8525 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8526 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8527 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8528 | |
| 8529 | |
| 8530 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8532 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8533 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8534 | |
| 8535 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8536 | # The cast to long int works around a bug in the HP C Compiler |
| 8537 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8538 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8539 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8540 | { $as_echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8541 | $as_echo_n "checking size of void *... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8542 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8543 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8544 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8545 | if test "$cross_compiling" = yes; then |
| 8546 | # Depending upon the size, compute the lo and hi bounds. |
| 8547 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8548 | /* confdefs.h. */ |
| 8549 | _ACEOF |
| 8550 | cat confdefs.h >>conftest.$ac_ext |
| 8551 | cat >>conftest.$ac_ext <<_ACEOF |
| 8552 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8553 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | int |
| 8555 | main () |
| 8556 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8557 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8558 | test_array [0] = 0 |
| 8559 | |
| 8560 | ; |
| 8561 | return 0; |
| 8562 | } |
| 8563 | _ACEOF |
| 8564 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8565 | if { (ac_try="$ac_compile" |
| 8566 | case "(($ac_try" in |
| 8567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8568 | *) ac_try_echo=$ac_try;; |
| 8569 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8571 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8572 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8575 | rm -f conftest.er1 |
| 8576 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8578 | (exit $ac_status); } && { |
| 8579 | test -z "$ac_c_werror_flag" || |
| 8580 | test ! -s conftest.err |
| 8581 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8582 | ac_lo=0 ac_mid=0 |
| 8583 | while :; do |
| 8584 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8585 | /* confdefs.h. */ |
| 8586 | _ACEOF |
| 8587 | cat confdefs.h >>conftest.$ac_ext |
| 8588 | cat >>conftest.$ac_ext <<_ACEOF |
| 8589 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8590 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8591 | int |
| 8592 | main () |
| 8593 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8594 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8595 | test_array [0] = 0 |
| 8596 | |
| 8597 | ; |
| 8598 | return 0; |
| 8599 | } |
| 8600 | _ACEOF |
| 8601 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8602 | if { (ac_try="$ac_compile" |
| 8603 | case "(($ac_try" in |
| 8604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8605 | *) ac_try_echo=$ac_try;; |
| 8606 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8607 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8608 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8609 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8610 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8612 | rm -f conftest.er1 |
| 8613 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8615 | (exit $ac_status); } && { |
| 8616 | test -z "$ac_c_werror_flag" || |
| 8617 | test ! -s conftest.err |
| 8618 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8619 | ac_hi=$ac_mid; break |
| 8620 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8621 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8623 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8624 | ac_lo=`expr $ac_mid + 1` |
| 8625 | if test $ac_lo -le $ac_mid; then |
| 8626 | ac_lo= ac_hi= |
| 8627 | break |
| 8628 | fi |
| 8629 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8631 | |
| 8632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8633 | done |
| 8634 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8635 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8637 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8638 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8639 | /* confdefs.h. */ |
| 8640 | _ACEOF |
| 8641 | cat confdefs.h >>conftest.$ac_ext |
| 8642 | cat >>conftest.$ac_ext <<_ACEOF |
| 8643 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8644 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | int |
| 8646 | main () |
| 8647 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8648 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8649 | test_array [0] = 0 |
| 8650 | |
| 8651 | ; |
| 8652 | return 0; |
| 8653 | } |
| 8654 | _ACEOF |
| 8655 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8656 | if { (ac_try="$ac_compile" |
| 8657 | case "(($ac_try" in |
| 8658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8659 | *) ac_try_echo=$ac_try;; |
| 8660 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8661 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8662 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8663 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8664 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8666 | rm -f conftest.er1 |
| 8667 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8669 | (exit $ac_status); } && { |
| 8670 | test -z "$ac_c_werror_flag" || |
| 8671 | test ! -s conftest.err |
| 8672 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8673 | ac_hi=-1 ac_mid=-1 |
| 8674 | while :; do |
| 8675 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8676 | /* confdefs.h. */ |
| 8677 | _ACEOF |
| 8678 | cat confdefs.h >>conftest.$ac_ext |
| 8679 | cat >>conftest.$ac_ext <<_ACEOF |
| 8680 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8681 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8682 | int |
| 8683 | main () |
| 8684 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8685 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8686 | test_array [0] = 0 |
| 8687 | |
| 8688 | ; |
| 8689 | return 0; |
| 8690 | } |
| 8691 | _ACEOF |
| 8692 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8693 | if { (ac_try="$ac_compile" |
| 8694 | case "(($ac_try" in |
| 8695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8696 | *) ac_try_echo=$ac_try;; |
| 8697 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8698 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8699 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8700 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8701 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8703 | rm -f conftest.er1 |
| 8704 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8705 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8706 | (exit $ac_status); } && { |
| 8707 | test -z "$ac_c_werror_flag" || |
| 8708 | test ! -s conftest.err |
| 8709 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 | ac_lo=$ac_mid; break |
| 8711 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8712 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8714 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8715 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8716 | if test $ac_mid -le $ac_hi; then |
| 8717 | ac_lo= ac_hi= |
| 8718 | break |
| 8719 | fi |
| 8720 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8721 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8722 | |
| 8723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8724 | done |
| 8725 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8726 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8728 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8729 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8730 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8731 | |
| 8732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8733 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8734 | |
| 8735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8736 | # Binary search between lo and hi bounds. |
| 8737 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8738 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8739 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8740 | /* confdefs.h. */ |
| 8741 | _ACEOF |
| 8742 | cat confdefs.h >>conftest.$ac_ext |
| 8743 | cat >>conftest.$ac_ext <<_ACEOF |
| 8744 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8745 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8746 | int |
| 8747 | main () |
| 8748 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8749 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8750 | test_array [0] = 0 |
| 8751 | |
| 8752 | ; |
| 8753 | return 0; |
| 8754 | } |
| 8755 | _ACEOF |
| 8756 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8757 | if { (ac_try="$ac_compile" |
| 8758 | case "(($ac_try" in |
| 8759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8760 | *) ac_try_echo=$ac_try;; |
| 8761 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8762 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8763 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8764 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8765 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8767 | rm -f conftest.er1 |
| 8768 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8769 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8770 | (exit $ac_status); } && { |
| 8771 | test -z "$ac_c_werror_flag" || |
| 8772 | test ! -s conftest.err |
| 8773 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | ac_hi=$ac_mid |
| 8775 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8776 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8778 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8779 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8780 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8781 | |
| 8782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | done |
| 8784 | case $ac_lo in |
| 8785 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8786 | '') if test "$ac_cv_type_void_p" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8787 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8788 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8789 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8790 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8791 | $as_echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8792 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8793 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8794 | else |
| 8795 | ac_cv_sizeof_void_p=0 |
| 8796 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8797 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8799 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8800 | /* confdefs.h. */ |
| 8801 | _ACEOF |
| 8802 | cat confdefs.h >>conftest.$ac_ext |
| 8803 | cat >>conftest.$ac_ext <<_ACEOF |
| 8804 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8805 | $ac_includes_default |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8806 | static long int longval () { return (long int) (sizeof (void *)); } |
| 8807 | static unsigned long int ulongval () { return (long int) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8808 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8809 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8810 | int |
| 8811 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8812 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8813 | |
| 8814 | FILE *f = fopen ("conftest.val", "w"); |
| 8815 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8816 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8817 | if (((long int) (sizeof (void *))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8818 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8819 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8820 | if (i != ((long int) (sizeof (void *)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8821 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8822 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 | } |
| 8824 | else |
| 8825 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8826 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8827 | if (i != ((long int) (sizeof (void *)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8828 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8829 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8830 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8831 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8832 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8833 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8834 | |
| 8835 | ; |
| 8836 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8837 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8838 | _ACEOF |
| 8839 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8840 | if { (ac_try="$ac_link" |
| 8841 | case "(($ac_try" in |
| 8842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8843 | *) ac_try_echo=$ac_try;; |
| 8844 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8846 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8847 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8848 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8850 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8851 | { (case "(($ac_try" in |
| 8852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8853 | *) ac_try_echo=$ac_try;; |
| 8854 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8855 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8856 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8857 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8858 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8860 | (exit $ac_status); }; }; then |
| 8861 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8862 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8863 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8864 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8867 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8868 | if test "$ac_cv_type_void_p" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8869 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8870 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8871 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8872 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8873 | $as_echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8874 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8875 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8876 | else |
| 8877 | ac_cv_sizeof_void_p=0 |
| 8878 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8879 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8880 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8881 | 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] | 8882 | fi |
| 8883 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8884 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8885 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8886 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8887 | |
| 8888 | |
| 8889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8890 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8891 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8893 | |
| 8894 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8895 | # The cast to long int works around a bug in the HP C Compiler |
| 8896 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8897 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8898 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8899 | { $as_echo "$as_me:$LINENO: checking size of short" >&5 |
| 8900 | $as_echo_n "checking size of short... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8901 | if test "${ac_cv_sizeof_short+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8902 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8903 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8904 | if test "$cross_compiling" = yes; then |
| 8905 | # Depending upon the size, compute the lo and hi bounds. |
| 8906 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8907 | /* confdefs.h. */ |
| 8908 | _ACEOF |
| 8909 | cat confdefs.h >>conftest.$ac_ext |
| 8910 | cat >>conftest.$ac_ext <<_ACEOF |
| 8911 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8912 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8913 | int |
| 8914 | main () |
| 8915 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8916 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8917 | test_array [0] = 0 |
| 8918 | |
| 8919 | ; |
| 8920 | return 0; |
| 8921 | } |
| 8922 | _ACEOF |
| 8923 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8924 | if { (ac_try="$ac_compile" |
| 8925 | case "(($ac_try" in |
| 8926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8927 | *) ac_try_echo=$ac_try;; |
| 8928 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8929 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8930 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8931 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8932 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8934 | rm -f conftest.er1 |
| 8935 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8936 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8937 | (exit $ac_status); } && { |
| 8938 | test -z "$ac_c_werror_flag" || |
| 8939 | test ! -s conftest.err |
| 8940 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8941 | ac_lo=0 ac_mid=0 |
| 8942 | while :; do |
| 8943 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8944 | /* confdefs.h. */ |
| 8945 | _ACEOF |
| 8946 | cat confdefs.h >>conftest.$ac_ext |
| 8947 | cat >>conftest.$ac_ext <<_ACEOF |
| 8948 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8949 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8950 | int |
| 8951 | main () |
| 8952 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8953 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8954 | test_array [0] = 0 |
| 8955 | |
| 8956 | ; |
| 8957 | return 0; |
| 8958 | } |
| 8959 | _ACEOF |
| 8960 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8961 | if { (ac_try="$ac_compile" |
| 8962 | case "(($ac_try" in |
| 8963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8964 | *) ac_try_echo=$ac_try;; |
| 8965 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8966 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8967 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8968 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8969 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8971 | rm -f conftest.er1 |
| 8972 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8974 | (exit $ac_status); } && { |
| 8975 | test -z "$ac_c_werror_flag" || |
| 8976 | test ! -s conftest.err |
| 8977 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8978 | ac_hi=$ac_mid; break |
| 8979 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8980 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8982 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8983 | ac_lo=`expr $ac_mid + 1` |
| 8984 | if test $ac_lo -le $ac_mid; then |
| 8985 | ac_lo= ac_hi= |
| 8986 | break |
| 8987 | fi |
| 8988 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8990 | |
| 8991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8992 | done |
| 8993 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8994 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8996 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8997 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8998 | /* confdefs.h. */ |
| 8999 | _ACEOF |
| 9000 | cat confdefs.h >>conftest.$ac_ext |
| 9001 | cat >>conftest.$ac_ext <<_ACEOF |
| 9002 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9003 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9004 | int |
| 9005 | main () |
| 9006 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9007 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9008 | test_array [0] = 0 |
| 9009 | |
| 9010 | ; |
| 9011 | return 0; |
| 9012 | } |
| 9013 | _ACEOF |
| 9014 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9015 | if { (ac_try="$ac_compile" |
| 9016 | case "(($ac_try" in |
| 9017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9018 | *) ac_try_echo=$ac_try;; |
| 9019 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9020 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9021 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9022 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9023 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9025 | rm -f conftest.er1 |
| 9026 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9027 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9028 | (exit $ac_status); } && { |
| 9029 | test -z "$ac_c_werror_flag" || |
| 9030 | test ! -s conftest.err |
| 9031 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9032 | ac_hi=-1 ac_mid=-1 |
| 9033 | while :; do |
| 9034 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9035 | /* confdefs.h. */ |
| 9036 | _ACEOF |
| 9037 | cat confdefs.h >>conftest.$ac_ext |
| 9038 | cat >>conftest.$ac_ext <<_ACEOF |
| 9039 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9040 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9041 | int |
| 9042 | main () |
| 9043 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9044 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9045 | test_array [0] = 0 |
| 9046 | |
| 9047 | ; |
| 9048 | return 0; |
| 9049 | } |
| 9050 | _ACEOF |
| 9051 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9052 | if { (ac_try="$ac_compile" |
| 9053 | case "(($ac_try" in |
| 9054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9055 | *) ac_try_echo=$ac_try;; |
| 9056 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9058 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9059 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9060 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9062 | rm -f conftest.er1 |
| 9063 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9065 | (exit $ac_status); } && { |
| 9066 | test -z "$ac_c_werror_flag" || |
| 9067 | test ! -s conftest.err |
| 9068 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9069 | ac_lo=$ac_mid; break |
| 9070 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9071 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9073 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9074 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9075 | if test $ac_mid -le $ac_hi; then |
| 9076 | ac_lo= ac_hi= |
| 9077 | break |
| 9078 | fi |
| 9079 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9080 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9081 | |
| 9082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9083 | done |
| 9084 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9085 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9087 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9088 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9089 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9090 | |
| 9091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9092 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9093 | |
| 9094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9095 | # Binary search between lo and hi bounds. |
| 9096 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9097 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9098 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9099 | /* confdefs.h. */ |
| 9100 | _ACEOF |
| 9101 | cat confdefs.h >>conftest.$ac_ext |
| 9102 | cat >>conftest.$ac_ext <<_ACEOF |
| 9103 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9104 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | int |
| 9106 | main () |
| 9107 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9108 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9109 | test_array [0] = 0 |
| 9110 | |
| 9111 | ; |
| 9112 | return 0; |
| 9113 | } |
| 9114 | _ACEOF |
| 9115 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9116 | if { (ac_try="$ac_compile" |
| 9117 | case "(($ac_try" in |
| 9118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9119 | *) ac_try_echo=$ac_try;; |
| 9120 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9121 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9122 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9123 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9126 | rm -f conftest.er1 |
| 9127 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9129 | (exit $ac_status); } && { |
| 9130 | test -z "$ac_c_werror_flag" || |
| 9131 | test ! -s conftest.err |
| 9132 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9133 | ac_hi=$ac_mid |
| 9134 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9135 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9137 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9138 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9139 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9140 | |
| 9141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | done |
| 9143 | case $ac_lo in |
| 9144 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9145 | '') if test "$ac_cv_type_short" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9146 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9147 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9148 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9149 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9150 | $as_echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9151 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9152 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9153 | else |
| 9154 | ac_cv_sizeof_short=0 |
| 9155 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9156 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9158 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9159 | /* confdefs.h. */ |
| 9160 | _ACEOF |
| 9161 | cat confdefs.h >>conftest.$ac_ext |
| 9162 | cat >>conftest.$ac_ext <<_ACEOF |
| 9163 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9164 | $ac_includes_default |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9165 | static long int longval () { return (long int) (sizeof (short)); } |
| 9166 | static unsigned long int ulongval () { return (long int) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9167 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9168 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9169 | int |
| 9170 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9171 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9172 | |
| 9173 | FILE *f = fopen ("conftest.val", "w"); |
| 9174 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9175 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9176 | if (((long int) (sizeof (short))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9177 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9178 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9179 | if (i != ((long int) (sizeof (short)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9180 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9181 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 | } |
| 9183 | else |
| 9184 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9185 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9186 | if (i != ((long int) (sizeof (short)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9187 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9188 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9189 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9190 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 9191 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9192 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9193 | |
| 9194 | ; |
| 9195 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9196 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9197 | _ACEOF |
| 9198 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9199 | if { (ac_try="$ac_link" |
| 9200 | case "(($ac_try" in |
| 9201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9202 | *) ac_try_echo=$ac_try;; |
| 9203 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9204 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9205 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9206 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9207 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9208 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9209 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9210 | { (case "(($ac_try" in |
| 9211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9212 | *) ac_try_echo=$ac_try;; |
| 9213 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9214 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9215 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9216 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9218 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | (exit $ac_status); }; }; then |
| 9220 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9221 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9222 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 9223 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9225 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9226 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9227 | if test "$ac_cv_type_short" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9228 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9229 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9230 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9231 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9232 | $as_echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9233 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9234 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9235 | else |
| 9236 | ac_cv_sizeof_short=0 |
| 9237 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9238 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9239 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9240 | 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] | 9241 | fi |
| 9242 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9243 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9244 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9245 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9246 | |
| 9247 | |
| 9248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9249 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9250 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9251 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9252 | |
| 9253 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9254 | # The cast to long int works around a bug in the HP C Compiler |
| 9255 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9256 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9257 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9258 | { $as_echo "$as_me:$LINENO: checking size of float" >&5 |
| 9259 | $as_echo_n "checking size of float... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9260 | if test "${ac_cv_sizeof_float+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9261 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9263 | if test "$cross_compiling" = yes; then |
| 9264 | # Depending upon the size, compute the lo and hi bounds. |
| 9265 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9266 | /* confdefs.h. */ |
| 9267 | _ACEOF |
| 9268 | cat confdefs.h >>conftest.$ac_ext |
| 9269 | cat >>conftest.$ac_ext <<_ACEOF |
| 9270 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9271 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9272 | int |
| 9273 | main () |
| 9274 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9275 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9276 | test_array [0] = 0 |
| 9277 | |
| 9278 | ; |
| 9279 | return 0; |
| 9280 | } |
| 9281 | _ACEOF |
| 9282 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9283 | if { (ac_try="$ac_compile" |
| 9284 | case "(($ac_try" in |
| 9285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9286 | *) ac_try_echo=$ac_try;; |
| 9287 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9288 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9289 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9290 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9291 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9293 | rm -f conftest.er1 |
| 9294 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9295 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9296 | (exit $ac_status); } && { |
| 9297 | test -z "$ac_c_werror_flag" || |
| 9298 | test ! -s conftest.err |
| 9299 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9300 | ac_lo=0 ac_mid=0 |
| 9301 | while :; do |
| 9302 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9303 | /* confdefs.h. */ |
| 9304 | _ACEOF |
| 9305 | cat confdefs.h >>conftest.$ac_ext |
| 9306 | cat >>conftest.$ac_ext <<_ACEOF |
| 9307 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9308 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9309 | int |
| 9310 | main () |
| 9311 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9312 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9313 | test_array [0] = 0 |
| 9314 | |
| 9315 | ; |
| 9316 | return 0; |
| 9317 | } |
| 9318 | _ACEOF |
| 9319 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9320 | if { (ac_try="$ac_compile" |
| 9321 | case "(($ac_try" in |
| 9322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9323 | *) ac_try_echo=$ac_try;; |
| 9324 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9325 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9326 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9327 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9328 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9330 | rm -f conftest.er1 |
| 9331 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9332 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9333 | (exit $ac_status); } && { |
| 9334 | test -z "$ac_c_werror_flag" || |
| 9335 | test ! -s conftest.err |
| 9336 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9337 | ac_hi=$ac_mid; break |
| 9338 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9339 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9341 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9342 | ac_lo=`expr $ac_mid + 1` |
| 9343 | if test $ac_lo -le $ac_mid; then |
| 9344 | ac_lo= ac_hi= |
| 9345 | break |
| 9346 | fi |
| 9347 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9348 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9349 | |
| 9350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9351 | done |
| 9352 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9353 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9355 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9356 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9357 | /* confdefs.h. */ |
| 9358 | _ACEOF |
| 9359 | cat confdefs.h >>conftest.$ac_ext |
| 9360 | cat >>conftest.$ac_ext <<_ACEOF |
| 9361 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9362 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9363 | int |
| 9364 | main () |
| 9365 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9366 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9367 | test_array [0] = 0 |
| 9368 | |
| 9369 | ; |
| 9370 | return 0; |
| 9371 | } |
| 9372 | _ACEOF |
| 9373 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9374 | if { (ac_try="$ac_compile" |
| 9375 | case "(($ac_try" in |
| 9376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9377 | *) ac_try_echo=$ac_try;; |
| 9378 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9379 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9380 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9381 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9382 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9384 | rm -f conftest.er1 |
| 9385 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9386 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9387 | (exit $ac_status); } && { |
| 9388 | test -z "$ac_c_werror_flag" || |
| 9389 | test ! -s conftest.err |
| 9390 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9391 | ac_hi=-1 ac_mid=-1 |
| 9392 | while :; do |
| 9393 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9394 | /* confdefs.h. */ |
| 9395 | _ACEOF |
| 9396 | cat confdefs.h >>conftest.$ac_ext |
| 9397 | cat >>conftest.$ac_ext <<_ACEOF |
| 9398 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9399 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9400 | int |
| 9401 | main () |
| 9402 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9403 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9404 | test_array [0] = 0 |
| 9405 | |
| 9406 | ; |
| 9407 | return 0; |
| 9408 | } |
| 9409 | _ACEOF |
| 9410 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9411 | if { (ac_try="$ac_compile" |
| 9412 | case "(($ac_try" in |
| 9413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9414 | *) ac_try_echo=$ac_try;; |
| 9415 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9416 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9417 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9418 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9419 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9421 | rm -f conftest.er1 |
| 9422 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9423 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9424 | (exit $ac_status); } && { |
| 9425 | test -z "$ac_c_werror_flag" || |
| 9426 | test ! -s conftest.err |
| 9427 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9428 | ac_lo=$ac_mid; break |
| 9429 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9430 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9432 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9433 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9434 | if test $ac_mid -le $ac_hi; then |
| 9435 | ac_lo= ac_hi= |
| 9436 | break |
| 9437 | fi |
| 9438 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9440 | |
| 9441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9442 | done |
| 9443 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9444 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9446 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9447 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9448 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9449 | |
| 9450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9451 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9452 | |
| 9453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9454 | # Binary search between lo and hi bounds. |
| 9455 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9456 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9457 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9458 | /* confdefs.h. */ |
| 9459 | _ACEOF |
| 9460 | cat confdefs.h >>conftest.$ac_ext |
| 9461 | cat >>conftest.$ac_ext <<_ACEOF |
| 9462 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9463 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9464 | int |
| 9465 | main () |
| 9466 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9467 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 | test_array [0] = 0 |
| 9469 | |
| 9470 | ; |
| 9471 | return 0; |
| 9472 | } |
| 9473 | _ACEOF |
| 9474 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9475 | if { (ac_try="$ac_compile" |
| 9476 | case "(($ac_try" in |
| 9477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9478 | *) ac_try_echo=$ac_try;; |
| 9479 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9480 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9481 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9482 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9483 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9485 | rm -f conftest.er1 |
| 9486 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9487 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9488 | (exit $ac_status); } && { |
| 9489 | test -z "$ac_c_werror_flag" || |
| 9490 | test ! -s conftest.err |
| 9491 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9492 | ac_hi=$ac_mid |
| 9493 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9494 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9496 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9497 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9498 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9499 | |
| 9500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 | done |
| 9502 | case $ac_lo in |
| 9503 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9504 | '') if test "$ac_cv_type_float" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9505 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9506 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9507 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9508 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9509 | $as_echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9510 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9511 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9512 | else |
| 9513 | ac_cv_sizeof_float=0 |
| 9514 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9515 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9516 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9517 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9518 | /* confdefs.h. */ |
| 9519 | _ACEOF |
| 9520 | cat confdefs.h >>conftest.$ac_ext |
| 9521 | cat >>conftest.$ac_ext <<_ACEOF |
| 9522 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9523 | $ac_includes_default |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9524 | static long int longval () { return (long int) (sizeof (float)); } |
| 9525 | static unsigned long int ulongval () { return (long int) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9526 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9527 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9528 | int |
| 9529 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9530 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9531 | |
| 9532 | FILE *f = fopen ("conftest.val", "w"); |
| 9533 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9534 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9535 | if (((long int) (sizeof (float))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9536 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9537 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9538 | if (i != ((long int) (sizeof (float)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9539 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9540 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9541 | } |
| 9542 | else |
| 9543 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9544 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9545 | if (i != ((long int) (sizeof (float)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9546 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9547 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9548 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9549 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 9550 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9551 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9552 | |
| 9553 | ; |
| 9554 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9555 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9556 | _ACEOF |
| 9557 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9558 | if { (ac_try="$ac_link" |
| 9559 | case "(($ac_try" in |
| 9560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9561 | *) ac_try_echo=$ac_try;; |
| 9562 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9563 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9564 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9565 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9566 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9567 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9568 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9569 | { (case "(($ac_try" in |
| 9570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9571 | *) ac_try_echo=$ac_try;; |
| 9572 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9573 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9574 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9575 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9576 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9578 | (exit $ac_status); }; }; then |
| 9579 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9580 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9581 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 9582 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9585 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9586 | if test "$ac_cv_type_float" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9587 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9588 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9589 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9590 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9591 | $as_echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9592 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9593 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9594 | else |
| 9595 | ac_cv_sizeof_float=0 |
| 9596 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9597 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9598 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9599 | 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] | 9600 | fi |
| 9601 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9602 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9603 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9604 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9605 | |
| 9606 | |
| 9607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9608 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9609 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9610 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9611 | |
| 9612 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9613 | # The cast to long int works around a bug in the HP C Compiler |
| 9614 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9615 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9616 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9617 | { $as_echo "$as_me:$LINENO: checking size of double" >&5 |
| 9618 | $as_echo_n "checking size of double... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9619 | if test "${ac_cv_sizeof_double+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9620 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9621 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9622 | if test "$cross_compiling" = yes; then |
| 9623 | # Depending upon the size, compute the lo and hi bounds. |
| 9624 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9625 | /* confdefs.h. */ |
| 9626 | _ACEOF |
| 9627 | cat confdefs.h >>conftest.$ac_ext |
| 9628 | cat >>conftest.$ac_ext <<_ACEOF |
| 9629 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9630 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9631 | int |
| 9632 | main () |
| 9633 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9634 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9635 | test_array [0] = 0 |
| 9636 | |
| 9637 | ; |
| 9638 | return 0; |
| 9639 | } |
| 9640 | _ACEOF |
| 9641 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9642 | if { (ac_try="$ac_compile" |
| 9643 | case "(($ac_try" in |
| 9644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9645 | *) ac_try_echo=$ac_try;; |
| 9646 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9647 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9648 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9649 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9650 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9652 | rm -f conftest.er1 |
| 9653 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9654 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9655 | (exit $ac_status); } && { |
| 9656 | test -z "$ac_c_werror_flag" || |
| 9657 | test ! -s conftest.err |
| 9658 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9659 | ac_lo=0 ac_mid=0 |
| 9660 | while :; do |
| 9661 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9662 | /* confdefs.h. */ |
| 9663 | _ACEOF |
| 9664 | cat confdefs.h >>conftest.$ac_ext |
| 9665 | cat >>conftest.$ac_ext <<_ACEOF |
| 9666 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9667 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9668 | int |
| 9669 | main () |
| 9670 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9671 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9672 | test_array [0] = 0 |
| 9673 | |
| 9674 | ; |
| 9675 | return 0; |
| 9676 | } |
| 9677 | _ACEOF |
| 9678 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9679 | if { (ac_try="$ac_compile" |
| 9680 | case "(($ac_try" in |
| 9681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9682 | *) ac_try_echo=$ac_try;; |
| 9683 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9684 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9685 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9686 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9687 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9689 | rm -f conftest.er1 |
| 9690 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9691 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9692 | (exit $ac_status); } && { |
| 9693 | test -z "$ac_c_werror_flag" || |
| 9694 | test ! -s conftest.err |
| 9695 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9696 | ac_hi=$ac_mid; break |
| 9697 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9698 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9700 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9701 | ac_lo=`expr $ac_mid + 1` |
| 9702 | if test $ac_lo -le $ac_mid; then |
| 9703 | ac_lo= ac_hi= |
| 9704 | break |
| 9705 | fi |
| 9706 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9707 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9708 | |
| 9709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9710 | done |
| 9711 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9712 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9714 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9715 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9716 | /* confdefs.h. */ |
| 9717 | _ACEOF |
| 9718 | cat confdefs.h >>conftest.$ac_ext |
| 9719 | cat >>conftest.$ac_ext <<_ACEOF |
| 9720 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9721 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9722 | int |
| 9723 | main () |
| 9724 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9725 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9726 | test_array [0] = 0 |
| 9727 | |
| 9728 | ; |
| 9729 | return 0; |
| 9730 | } |
| 9731 | _ACEOF |
| 9732 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9733 | if { (ac_try="$ac_compile" |
| 9734 | case "(($ac_try" in |
| 9735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9736 | *) ac_try_echo=$ac_try;; |
| 9737 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9738 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9739 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9740 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9741 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9743 | rm -f conftest.er1 |
| 9744 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9746 | (exit $ac_status); } && { |
| 9747 | test -z "$ac_c_werror_flag" || |
| 9748 | test ! -s conftest.err |
| 9749 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9750 | ac_hi=-1 ac_mid=-1 |
| 9751 | while :; do |
| 9752 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9753 | /* confdefs.h. */ |
| 9754 | _ACEOF |
| 9755 | cat confdefs.h >>conftest.$ac_ext |
| 9756 | cat >>conftest.$ac_ext <<_ACEOF |
| 9757 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9758 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9759 | int |
| 9760 | main () |
| 9761 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9762 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9763 | test_array [0] = 0 |
| 9764 | |
| 9765 | ; |
| 9766 | return 0; |
| 9767 | } |
| 9768 | _ACEOF |
| 9769 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9770 | if { (ac_try="$ac_compile" |
| 9771 | case "(($ac_try" in |
| 9772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9773 | *) ac_try_echo=$ac_try;; |
| 9774 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9775 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9776 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9777 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9778 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9780 | rm -f conftest.er1 |
| 9781 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9782 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9783 | (exit $ac_status); } && { |
| 9784 | test -z "$ac_c_werror_flag" || |
| 9785 | test ! -s conftest.err |
| 9786 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9787 | ac_lo=$ac_mid; break |
| 9788 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9789 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9791 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9792 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9793 | if test $ac_mid -le $ac_hi; then |
| 9794 | ac_lo= ac_hi= |
| 9795 | break |
| 9796 | fi |
| 9797 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9798 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9799 | |
| 9800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9801 | done |
| 9802 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9803 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9805 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9806 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9807 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9808 | |
| 9809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9810 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9811 | |
| 9812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9813 | # Binary search between lo and hi bounds. |
| 9814 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9815 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9816 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9817 | /* confdefs.h. */ |
| 9818 | _ACEOF |
| 9819 | cat confdefs.h >>conftest.$ac_ext |
| 9820 | cat >>conftest.$ac_ext <<_ACEOF |
| 9821 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9822 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9823 | int |
| 9824 | main () |
| 9825 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9826 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9827 | test_array [0] = 0 |
| 9828 | |
| 9829 | ; |
| 9830 | return 0; |
| 9831 | } |
| 9832 | _ACEOF |
| 9833 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9834 | if { (ac_try="$ac_compile" |
| 9835 | case "(($ac_try" in |
| 9836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9837 | *) ac_try_echo=$ac_try;; |
| 9838 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9839 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9840 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9841 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9842 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9844 | rm -f conftest.er1 |
| 9845 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9846 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9847 | (exit $ac_status); } && { |
| 9848 | test -z "$ac_c_werror_flag" || |
| 9849 | test ! -s conftest.err |
| 9850 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9851 | ac_hi=$ac_mid |
| 9852 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9853 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9855 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9856 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9857 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9858 | |
| 9859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9860 | done |
| 9861 | case $ac_lo in |
| 9862 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9863 | '') if test "$ac_cv_type_double" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9864 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9865 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9866 | { { $as_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 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9868 | $as_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;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9870 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9883 | static long int longval () { return (long int) (sizeof (double)); } |
| 9884 | static unsigned long int ulongval () { return (long int) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9885 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9886 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9887 | int |
| 9888 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9889 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9890 | |
| 9891 | FILE *f = fopen ("conftest.val", "w"); |
| 9892 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9893 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9894 | if (((long int) (sizeof (double))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9895 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9896 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9897 | if (i != ((long int) (sizeof (double)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9898 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9899 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | } |
| 9901 | else |
| 9902 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9903 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9904 | if (i != ((long int) (sizeof (double)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9905 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9906 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9907 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9908 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 9909 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9910 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9911 | |
| 9912 | ; |
| 9913 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9914 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9915 | _ACEOF |
| 9916 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9917 | if { (ac_try="$ac_link" |
| 9918 | case "(($ac_try" in |
| 9919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9920 | *) ac_try_echo=$ac_try;; |
| 9921 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9923 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9924 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9925 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9927 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9928 | { (case "(($ac_try" in |
| 9929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9930 | *) ac_try_echo=$ac_try;; |
| 9931 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9932 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9933 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9934 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9935 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9936 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9937 | (exit $ac_status); }; }; then |
| 9938 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9939 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9940 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 9941 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9944 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9945 | if test "$ac_cv_type_double" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9946 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9947 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9948 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9949 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9950 | $as_echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9951 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9952 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9953 | else |
| 9954 | ac_cv_sizeof_double=0 |
| 9955 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9956 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9957 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9958 | 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] | 9959 | fi |
| 9960 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9961 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9962 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9963 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9964 | |
| 9965 | |
| 9966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9967 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9968 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9969 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9970 | |
| 9971 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9972 | # The cast to long int works around a bug in the HP C Compiler |
| 9973 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9974 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9975 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9976 | { $as_echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 9977 | $as_echo_n "checking size of fpos_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9978 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9979 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9980 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | if test "$cross_compiling" = yes; then |
| 9982 | # Depending upon the size, compute the lo and hi bounds. |
| 9983 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9984 | /* confdefs.h. */ |
| 9985 | _ACEOF |
| 9986 | cat confdefs.h >>conftest.$ac_ext |
| 9987 | cat >>conftest.$ac_ext <<_ACEOF |
| 9988 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9989 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9990 | int |
| 9991 | main () |
| 9992 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 9993 | static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9994 | test_array [0] = 0 |
| 9995 | |
| 9996 | ; |
| 9997 | return 0; |
| 9998 | } |
| 9999 | _ACEOF |
| 10000 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10001 | if { (ac_try="$ac_compile" |
| 10002 | case "(($ac_try" in |
| 10003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10004 | *) ac_try_echo=$ac_try;; |
| 10005 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10006 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10007 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10008 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10009 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10011 | rm -f conftest.er1 |
| 10012 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10014 | (exit $ac_status); } && { |
| 10015 | test -z "$ac_c_werror_flag" || |
| 10016 | test ! -s conftest.err |
| 10017 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10018 | ac_lo=0 ac_mid=0 |
| 10019 | while :; do |
| 10020 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10021 | /* confdefs.h. */ |
| 10022 | _ACEOF |
| 10023 | cat confdefs.h >>conftest.$ac_ext |
| 10024 | cat >>conftest.$ac_ext <<_ACEOF |
| 10025 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10026 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10027 | int |
| 10028 | main () |
| 10029 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10030 | static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10031 | test_array [0] = 0 |
| 10032 | |
| 10033 | ; |
| 10034 | return 0; |
| 10035 | } |
| 10036 | _ACEOF |
| 10037 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10038 | if { (ac_try="$ac_compile" |
| 10039 | case "(($ac_try" in |
| 10040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10041 | *) ac_try_echo=$ac_try;; |
| 10042 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10043 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10044 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10045 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10046 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10048 | rm -f conftest.er1 |
| 10049 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10050 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10051 | (exit $ac_status); } && { |
| 10052 | test -z "$ac_c_werror_flag" || |
| 10053 | test ! -s conftest.err |
| 10054 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10055 | ac_hi=$ac_mid; break |
| 10056 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10057 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10059 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10060 | ac_lo=`expr $ac_mid + 1` |
| 10061 | if test $ac_lo -le $ac_mid; then |
| 10062 | ac_lo= ac_hi= |
| 10063 | break |
| 10064 | fi |
| 10065 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10066 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10067 | |
| 10068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10069 | done |
| 10070 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10071 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10073 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10074 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10075 | /* confdefs.h. */ |
| 10076 | _ACEOF |
| 10077 | cat confdefs.h >>conftest.$ac_ext |
| 10078 | cat >>conftest.$ac_ext <<_ACEOF |
| 10079 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10080 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10081 | int |
| 10082 | main () |
| 10083 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10084 | static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10085 | test_array [0] = 0 |
| 10086 | |
| 10087 | ; |
| 10088 | return 0; |
| 10089 | } |
| 10090 | _ACEOF |
| 10091 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10092 | if { (ac_try="$ac_compile" |
| 10093 | case "(($ac_try" in |
| 10094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10095 | *) ac_try_echo=$ac_try;; |
| 10096 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10098 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10099 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10100 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10102 | rm -f conftest.er1 |
| 10103 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10105 | (exit $ac_status); } && { |
| 10106 | test -z "$ac_c_werror_flag" || |
| 10107 | test ! -s conftest.err |
| 10108 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10109 | ac_hi=-1 ac_mid=-1 |
| 10110 | while :; do |
| 10111 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10112 | /* confdefs.h. */ |
| 10113 | _ACEOF |
| 10114 | cat confdefs.h >>conftest.$ac_ext |
| 10115 | cat >>conftest.$ac_ext <<_ACEOF |
| 10116 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10117 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10118 | int |
| 10119 | main () |
| 10120 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10121 | static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10122 | test_array [0] = 0 |
| 10123 | |
| 10124 | ; |
| 10125 | return 0; |
| 10126 | } |
| 10127 | _ACEOF |
| 10128 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10129 | if { (ac_try="$ac_compile" |
| 10130 | case "(($ac_try" in |
| 10131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10132 | *) ac_try_echo=$ac_try;; |
| 10133 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10134 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10135 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10136 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10137 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10139 | rm -f conftest.er1 |
| 10140 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10141 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10142 | (exit $ac_status); } && { |
| 10143 | test -z "$ac_c_werror_flag" || |
| 10144 | test ! -s conftest.err |
| 10145 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10146 | ac_lo=$ac_mid; break |
| 10147 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10148 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10150 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10151 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10152 | if test $ac_mid -le $ac_hi; then |
| 10153 | ac_lo= ac_hi= |
| 10154 | break |
| 10155 | fi |
| 10156 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10157 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10158 | |
| 10159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10160 | done |
| 10161 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10162 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10164 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10165 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10166 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10167 | |
| 10168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10169 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10170 | |
| 10171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10172 | # Binary search between lo and hi bounds. |
| 10173 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10174 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10175 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10176 | /* confdefs.h. */ |
| 10177 | _ACEOF |
| 10178 | cat confdefs.h >>conftest.$ac_ext |
| 10179 | cat >>conftest.$ac_ext <<_ACEOF |
| 10180 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10182 | int |
| 10183 | main () |
| 10184 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10185 | static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10186 | test_array [0] = 0 |
| 10187 | |
| 10188 | ; |
| 10189 | return 0; |
| 10190 | } |
| 10191 | _ACEOF |
| 10192 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10193 | if { (ac_try="$ac_compile" |
| 10194 | case "(($ac_try" in |
| 10195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10196 | *) ac_try_echo=$ac_try;; |
| 10197 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10199 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10200 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10201 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10203 | rm -f conftest.er1 |
| 10204 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10206 | (exit $ac_status); } && { |
| 10207 | test -z "$ac_c_werror_flag" || |
| 10208 | test ! -s conftest.err |
| 10209 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10210 | ac_hi=$ac_mid |
| 10211 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10212 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10214 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10215 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10217 | |
| 10218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10219 | done |
| 10220 | case $ac_lo in |
| 10221 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10222 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10223 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10224 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10225 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10226 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10227 | $as_echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10228 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10229 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10230 | else |
| 10231 | ac_cv_sizeof_fpos_t=0 |
| 10232 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10233 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10234 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10235 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10236 | /* confdefs.h. */ |
| 10237 | _ACEOF |
| 10238 | cat confdefs.h >>conftest.$ac_ext |
| 10239 | cat >>conftest.$ac_ext <<_ACEOF |
| 10240 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10241 | $ac_includes_default |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10242 | static long int longval () { return (long int) (sizeof (fpos_t)); } |
| 10243 | static unsigned long int ulongval () { return (long int) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10244 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10245 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10246 | int |
| 10247 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10248 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10249 | |
| 10250 | FILE *f = fopen ("conftest.val", "w"); |
| 10251 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10252 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10253 | if (((long int) (sizeof (fpos_t))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10255 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10256 | if (i != ((long int) (sizeof (fpos_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10257 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10258 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10259 | } |
| 10260 | else |
| 10261 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10262 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10263 | if (i != ((long int) (sizeof (fpos_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10264 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10265 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10266 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10267 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 10268 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10269 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10270 | |
| 10271 | ; |
| 10272 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10273 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10274 | _ACEOF |
| 10275 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10276 | if { (ac_try="$ac_link" |
| 10277 | case "(($ac_try" in |
| 10278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10279 | *) ac_try_echo=$ac_try;; |
| 10280 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10281 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10282 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10283 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10284 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10285 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10286 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10287 | { (case "(($ac_try" in |
| 10288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10289 | *) ac_try_echo=$ac_try;; |
| 10290 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10292 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10293 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10294 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10295 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | (exit $ac_status); }; }; then |
| 10297 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10298 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10299 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10300 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10303 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10304 | if test "$ac_cv_type_fpos_t" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10305 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10306 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10307 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10308 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10309 | $as_echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10310 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10311 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10312 | else |
| 10313 | ac_cv_sizeof_fpos_t=0 |
| 10314 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10316 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10317 | 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] | 10318 | fi |
| 10319 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10320 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10321 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10322 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10323 | |
| 10324 | |
| 10325 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10327 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10329 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10330 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10331 | # The cast to long int works around a bug in the HP C Compiler |
| 10332 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10333 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10334 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10335 | { $as_echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10336 | $as_echo_n "checking size of size_t... " >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10337 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10338 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10339 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10340 | if test "$cross_compiling" = yes; then |
| 10341 | # Depending upon the size, compute the lo and hi bounds. |
| 10342 | cat >conftest.$ac_ext <<_ACEOF |
| 10343 | /* confdefs.h. */ |
| 10344 | _ACEOF |
| 10345 | cat confdefs.h >>conftest.$ac_ext |
| 10346 | cat >>conftest.$ac_ext <<_ACEOF |
| 10347 | /* end confdefs.h. */ |
| 10348 | $ac_includes_default |
| 10349 | int |
| 10350 | main () |
| 10351 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10352 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10353 | test_array [0] = 0 |
| 10354 | |
| 10355 | ; |
| 10356 | return 0; |
| 10357 | } |
| 10358 | _ACEOF |
| 10359 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10360 | if { (ac_try="$ac_compile" |
| 10361 | case "(($ac_try" in |
| 10362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10363 | *) ac_try_echo=$ac_try;; |
| 10364 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10365 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10366 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10367 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10368 | ac_status=$? |
| 10369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10370 | rm -f conftest.er1 |
| 10371 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10372 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10373 | (exit $ac_status); } && { |
| 10374 | test -z "$ac_c_werror_flag" || |
| 10375 | test ! -s conftest.err |
| 10376 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10377 | ac_lo=0 ac_mid=0 |
| 10378 | while :; do |
| 10379 | cat >conftest.$ac_ext <<_ACEOF |
| 10380 | /* confdefs.h. */ |
| 10381 | _ACEOF |
| 10382 | cat confdefs.h >>conftest.$ac_ext |
| 10383 | cat >>conftest.$ac_ext <<_ACEOF |
| 10384 | /* end confdefs.h. */ |
| 10385 | $ac_includes_default |
| 10386 | int |
| 10387 | main () |
| 10388 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10389 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10390 | test_array [0] = 0 |
| 10391 | |
| 10392 | ; |
| 10393 | return 0; |
| 10394 | } |
| 10395 | _ACEOF |
| 10396 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10397 | if { (ac_try="$ac_compile" |
| 10398 | case "(($ac_try" in |
| 10399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10400 | *) ac_try_echo=$ac_try;; |
| 10401 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10402 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10403 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10404 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10405 | ac_status=$? |
| 10406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10407 | rm -f conftest.er1 |
| 10408 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10410 | (exit $ac_status); } && { |
| 10411 | test -z "$ac_c_werror_flag" || |
| 10412 | test ! -s conftest.err |
| 10413 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10414 | ac_hi=$ac_mid; break |
| 10415 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10416 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10418 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10419 | ac_lo=`expr $ac_mid + 1` |
| 10420 | if test $ac_lo -le $ac_mid; then |
| 10421 | ac_lo= ac_hi= |
| 10422 | break |
| 10423 | fi |
| 10424 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10425 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10426 | |
| 10427 | 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] | 10428 | done |
| 10429 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10430 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10432 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10433 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10434 | /* confdefs.h. */ |
| 10435 | _ACEOF |
| 10436 | cat confdefs.h >>conftest.$ac_ext |
| 10437 | cat >>conftest.$ac_ext <<_ACEOF |
| 10438 | /* end confdefs.h. */ |
| 10439 | $ac_includes_default |
| 10440 | int |
| 10441 | main () |
| 10442 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10443 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10444 | test_array [0] = 0 |
| 10445 | |
| 10446 | ; |
| 10447 | return 0; |
| 10448 | } |
| 10449 | _ACEOF |
| 10450 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10451 | if { (ac_try="$ac_compile" |
| 10452 | case "(($ac_try" in |
| 10453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10454 | *) ac_try_echo=$ac_try;; |
| 10455 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10456 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10457 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10458 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10459 | ac_status=$? |
| 10460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10461 | rm -f conftest.er1 |
| 10462 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10463 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10464 | (exit $ac_status); } && { |
| 10465 | test -z "$ac_c_werror_flag" || |
| 10466 | test ! -s conftest.err |
| 10467 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10468 | ac_hi=-1 ac_mid=-1 |
| 10469 | while :; do |
| 10470 | cat >conftest.$ac_ext <<_ACEOF |
| 10471 | /* confdefs.h. */ |
| 10472 | _ACEOF |
| 10473 | cat confdefs.h >>conftest.$ac_ext |
| 10474 | cat >>conftest.$ac_ext <<_ACEOF |
| 10475 | /* end confdefs.h. */ |
| 10476 | $ac_includes_default |
| 10477 | int |
| 10478 | main () |
| 10479 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10480 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10481 | test_array [0] = 0 |
| 10482 | |
| 10483 | ; |
| 10484 | return 0; |
| 10485 | } |
| 10486 | _ACEOF |
| 10487 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10488 | if { (ac_try="$ac_compile" |
| 10489 | case "(($ac_try" in |
| 10490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10491 | *) ac_try_echo=$ac_try;; |
| 10492 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10494 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10495 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10496 | ac_status=$? |
| 10497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10498 | rm -f conftest.er1 |
| 10499 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10501 | (exit $ac_status); } && { |
| 10502 | test -z "$ac_c_werror_flag" || |
| 10503 | test ! -s conftest.err |
| 10504 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10505 | ac_lo=$ac_mid; break |
| 10506 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10507 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10509 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10510 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10511 | if test $ac_mid -le $ac_hi; then |
| 10512 | ac_lo= ac_hi= |
| 10513 | break |
| 10514 | fi |
| 10515 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10516 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10517 | |
| 10518 | 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] | 10519 | done |
| 10520 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10521 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10523 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10524 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10525 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10526 | |
| 10527 | 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] | 10528 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10529 | |
| 10530 | 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] | 10531 | # Binary search between lo and hi bounds. |
| 10532 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10533 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10534 | cat >conftest.$ac_ext <<_ACEOF |
| 10535 | /* confdefs.h. */ |
| 10536 | _ACEOF |
| 10537 | cat confdefs.h >>conftest.$ac_ext |
| 10538 | cat >>conftest.$ac_ext <<_ACEOF |
| 10539 | /* end confdefs.h. */ |
| 10540 | $ac_includes_default |
| 10541 | int |
| 10542 | main () |
| 10543 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10544 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10545 | test_array [0] = 0 |
| 10546 | |
| 10547 | ; |
| 10548 | return 0; |
| 10549 | } |
| 10550 | _ACEOF |
| 10551 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10552 | if { (ac_try="$ac_compile" |
| 10553 | case "(($ac_try" in |
| 10554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10555 | *) ac_try_echo=$ac_try;; |
| 10556 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10557 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10558 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10559 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10560 | ac_status=$? |
| 10561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10562 | rm -f conftest.er1 |
| 10563 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10564 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10565 | (exit $ac_status); } && { |
| 10566 | test -z "$ac_c_werror_flag" || |
| 10567 | test ! -s conftest.err |
| 10568 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10569 | ac_hi=$ac_mid |
| 10570 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10571 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10573 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10574 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10575 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10576 | |
| 10577 | 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] | 10578 | done |
| 10579 | case $ac_lo in |
| 10580 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10581 | '') if test "$ac_cv_type_size_t" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10582 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10583 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10584 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10585 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10586 | $as_echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10587 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10588 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10589 | else |
| 10590 | ac_cv_sizeof_size_t=0 |
| 10591 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10592 | esac |
| 10593 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10594 | cat >conftest.$ac_ext <<_ACEOF |
| 10595 | /* confdefs.h. */ |
| 10596 | _ACEOF |
| 10597 | cat confdefs.h >>conftest.$ac_ext |
| 10598 | cat >>conftest.$ac_ext <<_ACEOF |
| 10599 | /* end confdefs.h. */ |
| 10600 | $ac_includes_default |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10601 | static long int longval () { return (long int) (sizeof (size_t)); } |
| 10602 | static unsigned long int ulongval () { return (long int) (sizeof (size_t)); } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10603 | #include <stdio.h> |
| 10604 | #include <stdlib.h> |
| 10605 | int |
| 10606 | main () |
| 10607 | { |
| 10608 | |
| 10609 | FILE *f = fopen ("conftest.val", "w"); |
| 10610 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10611 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10612 | if (((long int) (sizeof (size_t))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10613 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10614 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10615 | if (i != ((long int) (sizeof (size_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10616 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10617 | fprintf (f, "%ld", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10618 | } |
| 10619 | else |
| 10620 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10621 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10622 | if (i != ((long int) (sizeof (size_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10623 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10624 | fprintf (f, "%lu", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10625 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10626 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 10627 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10628 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10629 | |
| 10630 | ; |
| 10631 | return 0; |
| 10632 | } |
| 10633 | _ACEOF |
| 10634 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10635 | if { (ac_try="$ac_link" |
| 10636 | case "(($ac_try" in |
| 10637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10638 | *) ac_try_echo=$ac_try;; |
| 10639 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10640 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10641 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10642 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10643 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10644 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10645 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10646 | { (case "(($ac_try" in |
| 10647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10648 | *) ac_try_echo=$ac_try;; |
| 10649 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10651 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10652 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10653 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10654 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10655 | (exit $ac_status); }; }; then |
| 10656 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10657 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10658 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10659 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10661 | |
| 10662 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10663 | if test "$ac_cv_type_size_t" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10664 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10665 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10666 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10667 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10668 | $as_echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10669 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10670 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10671 | else |
| 10672 | ac_cv_sizeof_size_t=0 |
| 10673 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10674 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10675 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10676 | 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] | 10677 | fi |
| 10678 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10679 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10680 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10681 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10682 | |
| 10683 | |
| 10684 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10685 | cat >>confdefs.h <<_ACEOF |
| 10686 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10687 | _ACEOF |
| 10688 | |
| 10689 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10690 | # The cast to long int works around a bug in the HP C Compiler |
| 10691 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10692 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10693 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10694 | { $as_echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10695 | $as_echo_n "checking size of pid_t... " >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10696 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10697 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10698 | else |
| 10699 | if test "$cross_compiling" = yes; then |
| 10700 | # Depending upon the size, compute the lo and hi bounds. |
| 10701 | cat >conftest.$ac_ext <<_ACEOF |
| 10702 | /* confdefs.h. */ |
| 10703 | _ACEOF |
| 10704 | cat confdefs.h >>conftest.$ac_ext |
| 10705 | cat >>conftest.$ac_ext <<_ACEOF |
| 10706 | /* end confdefs.h. */ |
| 10707 | $ac_includes_default |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10708 | int |
| 10709 | main () |
| 10710 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10711 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= 0)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10712 | test_array [0] = 0 |
| 10713 | |
| 10714 | ; |
| 10715 | return 0; |
| 10716 | } |
| 10717 | _ACEOF |
| 10718 | rm -f conftest.$ac_objext |
| 10719 | if { (ac_try="$ac_compile" |
| 10720 | case "(($ac_try" in |
| 10721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10722 | *) ac_try_echo=$ac_try;; |
| 10723 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10725 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10726 | (eval "$ac_compile") 2>conftest.er1 |
| 10727 | ac_status=$? |
| 10728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10729 | rm -f conftest.er1 |
| 10730 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10732 | (exit $ac_status); } && { |
| 10733 | test -z "$ac_c_werror_flag" || |
| 10734 | test ! -s conftest.err |
| 10735 | } && test -s conftest.$ac_objext; then |
| 10736 | ac_lo=0 ac_mid=0 |
| 10737 | while :; do |
| 10738 | cat >conftest.$ac_ext <<_ACEOF |
| 10739 | /* confdefs.h. */ |
| 10740 | _ACEOF |
| 10741 | cat confdefs.h >>conftest.$ac_ext |
| 10742 | cat >>conftest.$ac_ext <<_ACEOF |
| 10743 | /* end confdefs.h. */ |
| 10744 | $ac_includes_default |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10745 | int |
| 10746 | main () |
| 10747 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10748 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10749 | test_array [0] = 0 |
| 10750 | |
| 10751 | ; |
| 10752 | return 0; |
| 10753 | } |
| 10754 | _ACEOF |
| 10755 | rm -f conftest.$ac_objext |
| 10756 | if { (ac_try="$ac_compile" |
| 10757 | case "(($ac_try" in |
| 10758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10759 | *) ac_try_echo=$ac_try;; |
| 10760 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10762 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10763 | (eval "$ac_compile") 2>conftest.er1 |
| 10764 | ac_status=$? |
| 10765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10766 | rm -f conftest.er1 |
| 10767 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10769 | (exit $ac_status); } && { |
| 10770 | test -z "$ac_c_werror_flag" || |
| 10771 | test ! -s conftest.err |
| 10772 | } && test -s conftest.$ac_objext; then |
| 10773 | ac_hi=$ac_mid; break |
| 10774 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10775 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10777 | |
| 10778 | ac_lo=`expr $ac_mid + 1` |
| 10779 | if test $ac_lo -le $ac_mid; then |
| 10780 | ac_lo= ac_hi= |
| 10781 | break |
| 10782 | fi |
| 10783 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10784 | fi |
| 10785 | |
| 10786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10787 | done |
| 10788 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10789 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10791 | |
| 10792 | cat >conftest.$ac_ext <<_ACEOF |
| 10793 | /* confdefs.h. */ |
| 10794 | _ACEOF |
| 10795 | cat confdefs.h >>conftest.$ac_ext |
| 10796 | cat >>conftest.$ac_ext <<_ACEOF |
| 10797 | /* end confdefs.h. */ |
| 10798 | $ac_includes_default |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10799 | int |
| 10800 | main () |
| 10801 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10802 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) < 0)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10803 | test_array [0] = 0 |
| 10804 | |
| 10805 | ; |
| 10806 | return 0; |
| 10807 | } |
| 10808 | _ACEOF |
| 10809 | rm -f conftest.$ac_objext |
| 10810 | if { (ac_try="$ac_compile" |
| 10811 | case "(($ac_try" in |
| 10812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10813 | *) ac_try_echo=$ac_try;; |
| 10814 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10815 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10816 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10817 | (eval "$ac_compile") 2>conftest.er1 |
| 10818 | ac_status=$? |
| 10819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10820 | rm -f conftest.er1 |
| 10821 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10822 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10823 | (exit $ac_status); } && { |
| 10824 | test -z "$ac_c_werror_flag" || |
| 10825 | test ! -s conftest.err |
| 10826 | } && test -s conftest.$ac_objext; then |
| 10827 | ac_hi=-1 ac_mid=-1 |
| 10828 | while :; do |
| 10829 | cat >conftest.$ac_ext <<_ACEOF |
| 10830 | /* confdefs.h. */ |
| 10831 | _ACEOF |
| 10832 | cat confdefs.h >>conftest.$ac_ext |
| 10833 | cat >>conftest.$ac_ext <<_ACEOF |
| 10834 | /* end confdefs.h. */ |
| 10835 | $ac_includes_default |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10836 | int |
| 10837 | main () |
| 10838 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10839 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= $ac_mid)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10840 | test_array [0] = 0 |
| 10841 | |
| 10842 | ; |
| 10843 | return 0; |
| 10844 | } |
| 10845 | _ACEOF |
| 10846 | rm -f conftest.$ac_objext |
| 10847 | if { (ac_try="$ac_compile" |
| 10848 | case "(($ac_try" in |
| 10849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10850 | *) ac_try_echo=$ac_try;; |
| 10851 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10853 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10854 | (eval "$ac_compile") 2>conftest.er1 |
| 10855 | ac_status=$? |
| 10856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10857 | rm -f conftest.er1 |
| 10858 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10860 | (exit $ac_status); } && { |
| 10861 | test -z "$ac_c_werror_flag" || |
| 10862 | test ! -s conftest.err |
| 10863 | } && test -s conftest.$ac_objext; then |
| 10864 | ac_lo=$ac_mid; break |
| 10865 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10866 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10868 | |
| 10869 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10870 | if test $ac_mid -le $ac_hi; then |
| 10871 | ac_lo= ac_hi= |
| 10872 | break |
| 10873 | fi |
| 10874 | ac_mid=`expr 2 '*' $ac_mid` |
| 10875 | fi |
| 10876 | |
| 10877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10878 | done |
| 10879 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10880 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10882 | |
| 10883 | ac_lo= ac_hi= |
| 10884 | fi |
| 10885 | |
| 10886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10887 | fi |
| 10888 | |
| 10889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10890 | # Binary search between lo and hi bounds. |
| 10891 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10892 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10893 | cat >conftest.$ac_ext <<_ACEOF |
| 10894 | /* confdefs.h. */ |
| 10895 | _ACEOF |
| 10896 | cat confdefs.h >>conftest.$ac_ext |
| 10897 | cat >>conftest.$ac_ext <<_ACEOF |
| 10898 | /* end confdefs.h. */ |
| 10899 | $ac_includes_default |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10900 | int |
| 10901 | main () |
| 10902 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10903 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10904 | test_array [0] = 0 |
| 10905 | |
| 10906 | ; |
| 10907 | return 0; |
| 10908 | } |
| 10909 | _ACEOF |
| 10910 | rm -f conftest.$ac_objext |
| 10911 | if { (ac_try="$ac_compile" |
| 10912 | case "(($ac_try" in |
| 10913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10914 | *) ac_try_echo=$ac_try;; |
| 10915 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10916 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10917 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10918 | (eval "$ac_compile") 2>conftest.er1 |
| 10919 | ac_status=$? |
| 10920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10921 | rm -f conftest.er1 |
| 10922 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10923 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10924 | (exit $ac_status); } && { |
| 10925 | test -z "$ac_c_werror_flag" || |
| 10926 | test ! -s conftest.err |
| 10927 | } && test -s conftest.$ac_objext; then |
| 10928 | ac_hi=$ac_mid |
| 10929 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10930 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10932 | |
| 10933 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 10934 | fi |
| 10935 | |
| 10936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10937 | done |
| 10938 | case $ac_lo in |
| 10939 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 10940 | '') if test "$ac_cv_type_pid_t" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10941 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10942 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10943 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10944 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10945 | $as_echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10946 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10947 | { (exit 77); exit 77; }; }; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10948 | else |
| 10949 | ac_cv_sizeof_pid_t=0 |
| 10950 | fi ;; |
| 10951 | esac |
| 10952 | else |
| 10953 | cat >conftest.$ac_ext <<_ACEOF |
| 10954 | /* confdefs.h. */ |
| 10955 | _ACEOF |
| 10956 | cat confdefs.h >>conftest.$ac_ext |
| 10957 | cat >>conftest.$ac_ext <<_ACEOF |
| 10958 | /* end confdefs.h. */ |
| 10959 | $ac_includes_default |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10960 | static long int longval () { return (long int) (sizeof (pid_t)); } |
| 10961 | static unsigned long int ulongval () { return (long int) (sizeof (pid_t)); } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10962 | #include <stdio.h> |
| 10963 | #include <stdlib.h> |
| 10964 | int |
| 10965 | main () |
| 10966 | { |
| 10967 | |
| 10968 | FILE *f = fopen ("conftest.val", "w"); |
| 10969 | if (! f) |
| 10970 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10971 | if (((long int) (sizeof (pid_t))) < 0) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10972 | { |
| 10973 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10974 | if (i != ((long int) (sizeof (pid_t)))) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10975 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10976 | fprintf (f, "%ld", i); |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10977 | } |
| 10978 | else |
| 10979 | { |
| 10980 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10981 | if (i != ((long int) (sizeof (pid_t)))) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10982 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10983 | fprintf (f, "%lu", i); |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10984 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10985 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 10986 | on some platforms. */ |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10987 | return ferror (f) || fclose (f) != 0; |
| 10988 | |
| 10989 | ; |
| 10990 | return 0; |
| 10991 | } |
| 10992 | _ACEOF |
| 10993 | rm -f conftest$ac_exeext |
| 10994 | if { (ac_try="$ac_link" |
| 10995 | case "(($ac_try" in |
| 10996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10997 | *) ac_try_echo=$ac_try;; |
| 10998 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 10999 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11000 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11001 | (eval "$ac_link") 2>&5 |
| 11002 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11003 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11004 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11005 | { (case "(($ac_try" in |
| 11006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11007 | *) ac_try_echo=$ac_try;; |
| 11008 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11010 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11011 | (eval "$ac_try") 2>&5 |
| 11012 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11014 | (exit $ac_status); }; }; then |
| 11015 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11016 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11017 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 11018 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11020 | |
| 11021 | ( exit $ac_status ) |
| 11022 | if test "$ac_cv_type_pid_t" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11023 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11024 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11025 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11026 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11027 | $as_echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11028 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11029 | { (exit 77); exit 77; }; }; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11030 | else |
| 11031 | ac_cv_sizeof_pid_t=0 |
| 11032 | fi |
| 11033 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11034 | rm -rf conftest.dSYM |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11035 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11036 | fi |
| 11037 | rm -f conftest.val |
| 11038 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11039 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11040 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11041 | |
| 11042 | |
| 11043 | |
| 11044 | cat >>confdefs.h <<_ACEOF |
| 11045 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11046 | _ACEOF |
| 11047 | |
| 11048 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11049 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11050 | { $as_echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11051 | $as_echo_n "checking for long long support... " >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11052 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11053 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11054 | /* confdefs.h. */ |
| 11055 | _ACEOF |
| 11056 | cat confdefs.h >>conftest.$ac_ext |
| 11057 | cat >>conftest.$ac_ext <<_ACEOF |
| 11058 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11060 | int |
| 11061 | main () |
| 11062 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11063 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11064 | ; |
| 11065 | return 0; |
| 11066 | } |
| 11067 | _ACEOF |
| 11068 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11069 | if { (ac_try="$ac_compile" |
| 11070 | case "(($ac_try" in |
| 11071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11072 | *) ac_try_echo=$ac_try;; |
| 11073 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11074 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11075 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11076 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11077 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11079 | rm -f conftest.er1 |
| 11080 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11081 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11082 | (exit $ac_status); } && { |
| 11083 | test -z "$ac_c_werror_flag" || |
| 11084 | test ! -s conftest.err |
| 11085 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11086 | |
| 11087 | |
| 11088 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11089 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11090 | _ACEOF |
| 11091 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11092 | have_long_long=yes |
| 11093 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11094 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11095 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11097 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11098 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11099 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11100 | |
| 11101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11102 | { $as_echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11103 | $as_echo "$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11104 | if test "$have_long_long" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11105 | # The cast to long int works around a bug in the HP C Compiler |
| 11106 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11107 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11108 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11109 | { $as_echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11110 | $as_echo_n "checking size of long long... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11111 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11112 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11114 | if test "$cross_compiling" = yes; then |
| 11115 | # Depending upon the size, compute the lo and hi bounds. |
| 11116 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11117 | /* confdefs.h. */ |
| 11118 | _ACEOF |
| 11119 | cat confdefs.h >>conftest.$ac_ext |
| 11120 | cat >>conftest.$ac_ext <<_ACEOF |
| 11121 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11122 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11123 | int |
| 11124 | main () |
| 11125 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11126 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11127 | test_array [0] = 0 |
| 11128 | |
| 11129 | ; |
| 11130 | return 0; |
| 11131 | } |
| 11132 | _ACEOF |
| 11133 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11134 | if { (ac_try="$ac_compile" |
| 11135 | case "(($ac_try" in |
| 11136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11137 | *) ac_try_echo=$ac_try;; |
| 11138 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11139 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11140 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11141 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11144 | rm -f conftest.er1 |
| 11145 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11146 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11147 | (exit $ac_status); } && { |
| 11148 | test -z "$ac_c_werror_flag" || |
| 11149 | test ! -s conftest.err |
| 11150 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11151 | ac_lo=0 ac_mid=0 |
| 11152 | while :; do |
| 11153 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11154 | /* confdefs.h. */ |
| 11155 | _ACEOF |
| 11156 | cat confdefs.h >>conftest.$ac_ext |
| 11157 | cat >>conftest.$ac_ext <<_ACEOF |
| 11158 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11159 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11160 | int |
| 11161 | main () |
| 11162 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11163 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11164 | test_array [0] = 0 |
| 11165 | |
| 11166 | ; |
| 11167 | return 0; |
| 11168 | } |
| 11169 | _ACEOF |
| 11170 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11171 | if { (ac_try="$ac_compile" |
| 11172 | case "(($ac_try" in |
| 11173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11174 | *) ac_try_echo=$ac_try;; |
| 11175 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11177 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11178 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11179 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11181 | rm -f conftest.er1 |
| 11182 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11184 | (exit $ac_status); } && { |
| 11185 | test -z "$ac_c_werror_flag" || |
| 11186 | test ! -s conftest.err |
| 11187 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11188 | ac_hi=$ac_mid; break |
| 11189 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11190 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11192 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11193 | ac_lo=`expr $ac_mid + 1` |
| 11194 | if test $ac_lo -le $ac_mid; then |
| 11195 | ac_lo= ac_hi= |
| 11196 | break |
| 11197 | fi |
| 11198 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11199 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11200 | |
| 11201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11202 | done |
| 11203 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11204 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11206 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11207 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11208 | /* confdefs.h. */ |
| 11209 | _ACEOF |
| 11210 | cat confdefs.h >>conftest.$ac_ext |
| 11211 | cat >>conftest.$ac_ext <<_ACEOF |
| 11212 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11213 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | int |
| 11215 | main () |
| 11216 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11217 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11218 | test_array [0] = 0 |
| 11219 | |
| 11220 | ; |
| 11221 | return 0; |
| 11222 | } |
| 11223 | _ACEOF |
| 11224 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11225 | if { (ac_try="$ac_compile" |
| 11226 | case "(($ac_try" in |
| 11227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11228 | *) ac_try_echo=$ac_try;; |
| 11229 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11230 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11231 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11232 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11235 | rm -f conftest.er1 |
| 11236 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11237 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11238 | (exit $ac_status); } && { |
| 11239 | test -z "$ac_c_werror_flag" || |
| 11240 | test ! -s conftest.err |
| 11241 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11242 | ac_hi=-1 ac_mid=-1 |
| 11243 | while :; do |
| 11244 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11245 | /* confdefs.h. */ |
| 11246 | _ACEOF |
| 11247 | cat confdefs.h >>conftest.$ac_ext |
| 11248 | cat >>conftest.$ac_ext <<_ACEOF |
| 11249 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11250 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11251 | int |
| 11252 | main () |
| 11253 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11254 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11255 | test_array [0] = 0 |
| 11256 | |
| 11257 | ; |
| 11258 | return 0; |
| 11259 | } |
| 11260 | _ACEOF |
| 11261 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11262 | if { (ac_try="$ac_compile" |
| 11263 | case "(($ac_try" in |
| 11264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11265 | *) ac_try_echo=$ac_try;; |
| 11266 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11267 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11268 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11269 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11270 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11272 | rm -f conftest.er1 |
| 11273 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11275 | (exit $ac_status); } && { |
| 11276 | test -z "$ac_c_werror_flag" || |
| 11277 | test ! -s conftest.err |
| 11278 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11279 | ac_lo=$ac_mid; break |
| 11280 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11281 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11283 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11284 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11285 | if test $ac_mid -le $ac_hi; then |
| 11286 | ac_lo= ac_hi= |
| 11287 | break |
| 11288 | fi |
| 11289 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11290 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11291 | |
| 11292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11293 | done |
| 11294 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11295 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11297 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11298 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11299 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11300 | |
| 11301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11302 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11303 | |
| 11304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11305 | # Binary search between lo and hi bounds. |
| 11306 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11307 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11308 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11309 | /* confdefs.h. */ |
| 11310 | _ACEOF |
| 11311 | cat confdefs.h >>conftest.$ac_ext |
| 11312 | cat >>conftest.$ac_ext <<_ACEOF |
| 11313 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11314 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11315 | int |
| 11316 | main () |
| 11317 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11318 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11319 | test_array [0] = 0 |
| 11320 | |
| 11321 | ; |
| 11322 | return 0; |
| 11323 | } |
| 11324 | _ACEOF |
| 11325 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11326 | if { (ac_try="$ac_compile" |
| 11327 | case "(($ac_try" in |
| 11328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11329 | *) ac_try_echo=$ac_try;; |
| 11330 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11331 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11332 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11333 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11334 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11336 | rm -f conftest.er1 |
| 11337 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11338 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11339 | (exit $ac_status); } && { |
| 11340 | test -z "$ac_c_werror_flag" || |
| 11341 | test ! -s conftest.err |
| 11342 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11343 | ac_hi=$ac_mid |
| 11344 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11345 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11347 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11348 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11349 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11350 | |
| 11351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11352 | done |
| 11353 | case $ac_lo in |
| 11354 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11355 | '') if test "$ac_cv_type_long_long" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11356 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11357 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11358 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11359 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11360 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11361 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11362 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11363 | else |
| 11364 | ac_cv_sizeof_long_long=0 |
| 11365 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11366 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11368 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11369 | /* confdefs.h. */ |
| 11370 | _ACEOF |
| 11371 | cat confdefs.h >>conftest.$ac_ext |
| 11372 | cat >>conftest.$ac_ext <<_ACEOF |
| 11373 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11374 | $ac_includes_default |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11375 | static long int longval () { return (long int) (sizeof (long long)); } |
| 11376 | static unsigned long int ulongval () { return (long int) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11377 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11378 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11379 | int |
| 11380 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11381 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11382 | |
| 11383 | FILE *f = fopen ("conftest.val", "w"); |
| 11384 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11385 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11386 | if (((long int) (sizeof (long long))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11387 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11388 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11389 | if (i != ((long int) (sizeof (long long)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11390 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11391 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11392 | } |
| 11393 | else |
| 11394 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11395 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11396 | if (i != ((long int) (sizeof (long long)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11397 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11398 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11399 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11400 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 11401 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11402 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11403 | |
| 11404 | ; |
| 11405 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11406 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11407 | _ACEOF |
| 11408 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11409 | if { (ac_try="$ac_link" |
| 11410 | case "(($ac_try" in |
| 11411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11412 | *) ac_try_echo=$ac_try;; |
| 11413 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11414 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11415 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11416 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11417 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11419 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11420 | { (case "(($ac_try" in |
| 11421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11422 | *) ac_try_echo=$ac_try;; |
| 11423 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11424 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11425 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11426 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11427 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11428 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11429 | (exit $ac_status); }; }; then |
| 11430 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11431 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11432 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 11433 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11436 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11437 | if test "$ac_cv_type_long_long" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11438 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11439 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11440 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11441 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11442 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11443 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11444 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11445 | else |
| 11446 | ac_cv_sizeof_long_long=0 |
| 11447 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11448 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11449 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11450 | 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] | 11451 | fi |
| 11452 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11453 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11454 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11455 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11456 | |
| 11457 | |
| 11458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11459 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11460 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11462 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11463 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11464 | fi |
| 11465 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11466 | { $as_echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11467 | $as_echo_n "checking for long double support... " >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11468 | have_long_double=no |
| 11469 | cat >conftest.$ac_ext <<_ACEOF |
| 11470 | /* confdefs.h. */ |
| 11471 | _ACEOF |
| 11472 | cat confdefs.h >>conftest.$ac_ext |
| 11473 | cat >>conftest.$ac_ext <<_ACEOF |
| 11474 | /* end confdefs.h. */ |
| 11475 | |
| 11476 | int |
| 11477 | main () |
| 11478 | { |
| 11479 | long double x; x = (long double)0; |
| 11480 | ; |
| 11481 | return 0; |
| 11482 | } |
| 11483 | _ACEOF |
| 11484 | rm -f conftest.$ac_objext |
| 11485 | if { (ac_try="$ac_compile" |
| 11486 | case "(($ac_try" in |
| 11487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11488 | *) ac_try_echo=$ac_try;; |
| 11489 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11490 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11491 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11492 | (eval "$ac_compile") 2>conftest.er1 |
| 11493 | ac_status=$? |
| 11494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11495 | rm -f conftest.er1 |
| 11496 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11497 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11498 | (exit $ac_status); } && { |
| 11499 | test -z "$ac_c_werror_flag" || |
| 11500 | test ! -s conftest.err |
| 11501 | } && test -s conftest.$ac_objext; then |
| 11502 | |
| 11503 | |
| 11504 | cat >>confdefs.h <<\_ACEOF |
| 11505 | #define HAVE_LONG_DOUBLE 1 |
| 11506 | _ACEOF |
| 11507 | |
| 11508 | have_long_double=yes |
| 11509 | |
| 11510 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11511 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11513 | |
| 11514 | |
| 11515 | fi |
| 11516 | |
| 11517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11518 | { $as_echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11519 | $as_echo "$have_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11520 | if test "$have_long_double" = yes ; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11521 | # The cast to long int works around a bug in the HP C Compiler |
| 11522 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11523 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11524 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11525 | { $as_echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11526 | $as_echo_n "checking size of long double... " >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11527 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11528 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11529 | else |
| 11530 | if test "$cross_compiling" = yes; then |
| 11531 | # Depending upon the size, compute the lo and hi bounds. |
| 11532 | cat >conftest.$ac_ext <<_ACEOF |
| 11533 | /* confdefs.h. */ |
| 11534 | _ACEOF |
| 11535 | cat confdefs.h >>conftest.$ac_ext |
| 11536 | cat >>conftest.$ac_ext <<_ACEOF |
| 11537 | /* end confdefs.h. */ |
| 11538 | $ac_includes_default |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11539 | int |
| 11540 | main () |
| 11541 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11542 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11543 | test_array [0] = 0 |
| 11544 | |
| 11545 | ; |
| 11546 | return 0; |
| 11547 | } |
| 11548 | _ACEOF |
| 11549 | rm -f conftest.$ac_objext |
| 11550 | if { (ac_try="$ac_compile" |
| 11551 | case "(($ac_try" in |
| 11552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11553 | *) ac_try_echo=$ac_try;; |
| 11554 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11556 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11557 | (eval "$ac_compile") 2>conftest.er1 |
| 11558 | ac_status=$? |
| 11559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11560 | rm -f conftest.er1 |
| 11561 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11563 | (exit $ac_status); } && { |
| 11564 | test -z "$ac_c_werror_flag" || |
| 11565 | test ! -s conftest.err |
| 11566 | } && test -s conftest.$ac_objext; then |
| 11567 | ac_lo=0 ac_mid=0 |
| 11568 | while :; do |
| 11569 | cat >conftest.$ac_ext <<_ACEOF |
| 11570 | /* confdefs.h. */ |
| 11571 | _ACEOF |
| 11572 | cat confdefs.h >>conftest.$ac_ext |
| 11573 | cat >>conftest.$ac_ext <<_ACEOF |
| 11574 | /* end confdefs.h. */ |
| 11575 | $ac_includes_default |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11576 | int |
| 11577 | main () |
| 11578 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11579 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11580 | test_array [0] = 0 |
| 11581 | |
| 11582 | ; |
| 11583 | return 0; |
| 11584 | } |
| 11585 | _ACEOF |
| 11586 | rm -f conftest.$ac_objext |
| 11587 | if { (ac_try="$ac_compile" |
| 11588 | case "(($ac_try" in |
| 11589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11590 | *) ac_try_echo=$ac_try;; |
| 11591 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11593 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11594 | (eval "$ac_compile") 2>conftest.er1 |
| 11595 | ac_status=$? |
| 11596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11597 | rm -f conftest.er1 |
| 11598 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11599 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11600 | (exit $ac_status); } && { |
| 11601 | test -z "$ac_c_werror_flag" || |
| 11602 | test ! -s conftest.err |
| 11603 | } && test -s conftest.$ac_objext; then |
| 11604 | ac_hi=$ac_mid; break |
| 11605 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11606 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11608 | |
| 11609 | ac_lo=`expr $ac_mid + 1` |
| 11610 | if test $ac_lo -le $ac_mid; then |
| 11611 | ac_lo= ac_hi= |
| 11612 | break |
| 11613 | fi |
| 11614 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11615 | fi |
| 11616 | |
| 11617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11618 | done |
| 11619 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11620 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11622 | |
| 11623 | cat >conftest.$ac_ext <<_ACEOF |
| 11624 | /* confdefs.h. */ |
| 11625 | _ACEOF |
| 11626 | cat confdefs.h >>conftest.$ac_ext |
| 11627 | cat >>conftest.$ac_ext <<_ACEOF |
| 11628 | /* end confdefs.h. */ |
| 11629 | $ac_includes_default |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11630 | int |
| 11631 | main () |
| 11632 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11633 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11634 | test_array [0] = 0 |
| 11635 | |
| 11636 | ; |
| 11637 | return 0; |
| 11638 | } |
| 11639 | _ACEOF |
| 11640 | rm -f conftest.$ac_objext |
| 11641 | if { (ac_try="$ac_compile" |
| 11642 | case "(($ac_try" in |
| 11643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11644 | *) ac_try_echo=$ac_try;; |
| 11645 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11646 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11647 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11648 | (eval "$ac_compile") 2>conftest.er1 |
| 11649 | ac_status=$? |
| 11650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11651 | rm -f conftest.er1 |
| 11652 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11653 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11654 | (exit $ac_status); } && { |
| 11655 | test -z "$ac_c_werror_flag" || |
| 11656 | test ! -s conftest.err |
| 11657 | } && test -s conftest.$ac_objext; then |
| 11658 | ac_hi=-1 ac_mid=-1 |
| 11659 | while :; do |
| 11660 | cat >conftest.$ac_ext <<_ACEOF |
| 11661 | /* confdefs.h. */ |
| 11662 | _ACEOF |
| 11663 | cat confdefs.h >>conftest.$ac_ext |
| 11664 | cat >>conftest.$ac_ext <<_ACEOF |
| 11665 | /* end confdefs.h. */ |
| 11666 | $ac_includes_default |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11667 | int |
| 11668 | main () |
| 11669 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11670 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11671 | test_array [0] = 0 |
| 11672 | |
| 11673 | ; |
| 11674 | return 0; |
| 11675 | } |
| 11676 | _ACEOF |
| 11677 | rm -f conftest.$ac_objext |
| 11678 | if { (ac_try="$ac_compile" |
| 11679 | case "(($ac_try" in |
| 11680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11681 | *) ac_try_echo=$ac_try;; |
| 11682 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11683 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11684 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11685 | (eval "$ac_compile") 2>conftest.er1 |
| 11686 | ac_status=$? |
| 11687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11688 | rm -f conftest.er1 |
| 11689 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11691 | (exit $ac_status); } && { |
| 11692 | test -z "$ac_c_werror_flag" || |
| 11693 | test ! -s conftest.err |
| 11694 | } && test -s conftest.$ac_objext; then |
| 11695 | ac_lo=$ac_mid; break |
| 11696 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11697 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11699 | |
| 11700 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11701 | if test $ac_mid -le $ac_hi; then |
| 11702 | ac_lo= ac_hi= |
| 11703 | break |
| 11704 | fi |
| 11705 | ac_mid=`expr 2 '*' $ac_mid` |
| 11706 | fi |
| 11707 | |
| 11708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11709 | done |
| 11710 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11711 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11713 | |
| 11714 | ac_lo= ac_hi= |
| 11715 | fi |
| 11716 | |
| 11717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11718 | fi |
| 11719 | |
| 11720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11721 | # Binary search between lo and hi bounds. |
| 11722 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11723 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11724 | cat >conftest.$ac_ext <<_ACEOF |
| 11725 | /* confdefs.h. */ |
| 11726 | _ACEOF |
| 11727 | cat confdefs.h >>conftest.$ac_ext |
| 11728 | cat >>conftest.$ac_ext <<_ACEOF |
| 11729 | /* end confdefs.h. */ |
| 11730 | $ac_includes_default |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11731 | int |
| 11732 | main () |
| 11733 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11734 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11735 | test_array [0] = 0 |
| 11736 | |
| 11737 | ; |
| 11738 | return 0; |
| 11739 | } |
| 11740 | _ACEOF |
| 11741 | rm -f conftest.$ac_objext |
| 11742 | if { (ac_try="$ac_compile" |
| 11743 | case "(($ac_try" in |
| 11744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11745 | *) ac_try_echo=$ac_try;; |
| 11746 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11747 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11748 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11749 | (eval "$ac_compile") 2>conftest.er1 |
| 11750 | ac_status=$? |
| 11751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11752 | rm -f conftest.er1 |
| 11753 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11754 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11755 | (exit $ac_status); } && { |
| 11756 | test -z "$ac_c_werror_flag" || |
| 11757 | test ! -s conftest.err |
| 11758 | } && test -s conftest.$ac_objext; then |
| 11759 | ac_hi=$ac_mid |
| 11760 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11761 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11763 | |
| 11764 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11765 | fi |
| 11766 | |
| 11767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11768 | done |
| 11769 | case $ac_lo in |
| 11770 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 11771 | '') if test "$ac_cv_type_long_double" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11772 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11773 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11774 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11775 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11776 | $as_echo "$as_me: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11777 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11778 | { (exit 77); exit 77; }; }; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11779 | else |
| 11780 | ac_cv_sizeof_long_double=0 |
| 11781 | fi ;; |
| 11782 | esac |
| 11783 | else |
| 11784 | cat >conftest.$ac_ext <<_ACEOF |
| 11785 | /* confdefs.h. */ |
| 11786 | _ACEOF |
| 11787 | cat confdefs.h >>conftest.$ac_ext |
| 11788 | cat >>conftest.$ac_ext <<_ACEOF |
| 11789 | /* end confdefs.h. */ |
| 11790 | $ac_includes_default |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11791 | static long int longval () { return (long int) (sizeof (long double)); } |
| 11792 | static unsigned long int ulongval () { return (long int) (sizeof (long double)); } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11793 | #include <stdio.h> |
| 11794 | #include <stdlib.h> |
| 11795 | int |
| 11796 | main () |
| 11797 | { |
| 11798 | |
| 11799 | FILE *f = fopen ("conftest.val", "w"); |
| 11800 | if (! f) |
| 11801 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11802 | if (((long int) (sizeof (long double))) < 0) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11803 | { |
| 11804 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11805 | if (i != ((long int) (sizeof (long double)))) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11806 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11807 | fprintf (f, "%ld", i); |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11808 | } |
| 11809 | else |
| 11810 | { |
| 11811 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11812 | if (i != ((long int) (sizeof (long double)))) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11813 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11814 | fprintf (f, "%lu", i); |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11815 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11816 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 11817 | on some platforms. */ |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11818 | return ferror (f) || fclose (f) != 0; |
| 11819 | |
| 11820 | ; |
| 11821 | return 0; |
| 11822 | } |
| 11823 | _ACEOF |
| 11824 | rm -f conftest$ac_exeext |
| 11825 | if { (ac_try="$ac_link" |
| 11826 | case "(($ac_try" in |
| 11827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11828 | *) ac_try_echo=$ac_try;; |
| 11829 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11830 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11831 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11832 | (eval "$ac_link") 2>&5 |
| 11833 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11834 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11835 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11836 | { (case "(($ac_try" in |
| 11837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11838 | *) ac_try_echo=$ac_try;; |
| 11839 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11841 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11842 | (eval "$ac_try") 2>&5 |
| 11843 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11844 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11845 | (exit $ac_status); }; }; then |
| 11846 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 11847 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11848 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 11849 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11851 | |
| 11852 | ( exit $ac_status ) |
| 11853 | if test "$ac_cv_type_long_double" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11854 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11855 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11856 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11857 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11858 | $as_echo "$as_me: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11859 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11860 | { (exit 77); exit 77; }; }; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11861 | else |
| 11862 | ac_cv_sizeof_long_double=0 |
| 11863 | fi |
| 11864 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11865 | rm -rf conftest.dSYM |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11866 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11867 | fi |
| 11868 | rm -f conftest.val |
| 11869 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11870 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 11871 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11872 | |
| 11873 | |
| 11874 | |
| 11875 | cat >>confdefs.h <<_ACEOF |
| 11876 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 11877 | _ACEOF |
| 11878 | |
| 11879 | |
| 11880 | fi |
| 11881 | |
| 11882 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11883 | { $as_echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 11884 | $as_echo_n "checking for _Bool support... " >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11885 | have_c99_bool=no |
| 11886 | cat >conftest.$ac_ext <<_ACEOF |
| 11887 | /* confdefs.h. */ |
| 11888 | _ACEOF |
| 11889 | cat confdefs.h >>conftest.$ac_ext |
| 11890 | cat >>conftest.$ac_ext <<_ACEOF |
| 11891 | /* end confdefs.h. */ |
| 11892 | |
| 11893 | int |
| 11894 | main () |
| 11895 | { |
| 11896 | _Bool x; x = (_Bool)0; |
| 11897 | ; |
| 11898 | return 0; |
| 11899 | } |
| 11900 | _ACEOF |
| 11901 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11902 | if { (ac_try="$ac_compile" |
| 11903 | case "(($ac_try" in |
| 11904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11905 | *) ac_try_echo=$ac_try;; |
| 11906 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11908 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11909 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11910 | ac_status=$? |
| 11911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11912 | rm -f conftest.er1 |
| 11913 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11915 | (exit $ac_status); } && { |
| 11916 | test -z "$ac_c_werror_flag" || |
| 11917 | test ! -s conftest.err |
| 11918 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11919 | |
| 11920 | |
| 11921 | cat >>confdefs.h <<\_ACEOF |
| 11922 | #define HAVE_C99_BOOL 1 |
| 11923 | _ACEOF |
| 11924 | |
| 11925 | have_c99_bool=yes |
| 11926 | |
| 11927 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11928 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11930 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11931 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11932 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11933 | |
| 11934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11935 | { $as_echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 11936 | $as_echo "$have_c99_bool" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11937 | if test "$have_c99_bool" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11938 | # The cast to long int works around a bug in the HP C Compiler |
| 11939 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11940 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11941 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11942 | { $as_echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 11943 | $as_echo_n "checking size of _Bool... " >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11944 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11945 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11946 | else |
| 11947 | if test "$cross_compiling" = yes; then |
| 11948 | # Depending upon the size, compute the lo and hi bounds. |
| 11949 | cat >conftest.$ac_ext <<_ACEOF |
| 11950 | /* confdefs.h. */ |
| 11951 | _ACEOF |
| 11952 | cat confdefs.h >>conftest.$ac_ext |
| 11953 | cat >>conftest.$ac_ext <<_ACEOF |
| 11954 | /* end confdefs.h. */ |
| 11955 | $ac_includes_default |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11956 | int |
| 11957 | main () |
| 11958 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11959 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= 0)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11960 | test_array [0] = 0 |
| 11961 | |
| 11962 | ; |
| 11963 | return 0; |
| 11964 | } |
| 11965 | _ACEOF |
| 11966 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11967 | if { (ac_try="$ac_compile" |
| 11968 | case "(($ac_try" in |
| 11969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11970 | *) ac_try_echo=$ac_try;; |
| 11971 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11972 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11973 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11974 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11975 | ac_status=$? |
| 11976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11977 | rm -f conftest.er1 |
| 11978 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11980 | (exit $ac_status); } && { |
| 11981 | test -z "$ac_c_werror_flag" || |
| 11982 | test ! -s conftest.err |
| 11983 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11984 | ac_lo=0 ac_mid=0 |
| 11985 | while :; do |
| 11986 | cat >conftest.$ac_ext <<_ACEOF |
| 11987 | /* confdefs.h. */ |
| 11988 | _ACEOF |
| 11989 | cat confdefs.h >>conftest.$ac_ext |
| 11990 | cat >>conftest.$ac_ext <<_ACEOF |
| 11991 | /* end confdefs.h. */ |
| 11992 | $ac_includes_default |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11993 | int |
| 11994 | main () |
| 11995 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 11996 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11997 | test_array [0] = 0 |
| 11998 | |
| 11999 | ; |
| 12000 | return 0; |
| 12001 | } |
| 12002 | _ACEOF |
| 12003 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12004 | if { (ac_try="$ac_compile" |
| 12005 | case "(($ac_try" in |
| 12006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12007 | *) ac_try_echo=$ac_try;; |
| 12008 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12010 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12011 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12012 | ac_status=$? |
| 12013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12014 | rm -f conftest.er1 |
| 12015 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12017 | (exit $ac_status); } && { |
| 12018 | test -z "$ac_c_werror_flag" || |
| 12019 | test ! -s conftest.err |
| 12020 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12021 | ac_hi=$ac_mid; break |
| 12022 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12023 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12025 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12026 | ac_lo=`expr $ac_mid + 1` |
| 12027 | if test $ac_lo -le $ac_mid; then |
| 12028 | ac_lo= ac_hi= |
| 12029 | break |
| 12030 | fi |
| 12031 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12032 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12033 | |
| 12034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12035 | done |
| 12036 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12037 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12039 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12040 | cat >conftest.$ac_ext <<_ACEOF |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12041 | /* confdefs.h. */ |
| 12042 | _ACEOF |
| 12043 | cat confdefs.h >>conftest.$ac_ext |
| 12044 | cat >>conftest.$ac_ext <<_ACEOF |
| 12045 | /* end confdefs.h. */ |
| 12046 | $ac_includes_default |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12047 | int |
| 12048 | main () |
| 12049 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12050 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) < 0)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12051 | test_array [0] = 0 |
| 12052 | |
| 12053 | ; |
| 12054 | return 0; |
| 12055 | } |
| 12056 | _ACEOF |
| 12057 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12058 | if { (ac_try="$ac_compile" |
| 12059 | case "(($ac_try" in |
| 12060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12061 | *) ac_try_echo=$ac_try;; |
| 12062 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12063 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12064 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12065 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12066 | ac_status=$? |
| 12067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12068 | rm -f conftest.er1 |
| 12069 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12070 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12071 | (exit $ac_status); } && { |
| 12072 | test -z "$ac_c_werror_flag" || |
| 12073 | test ! -s conftest.err |
| 12074 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12075 | ac_hi=-1 ac_mid=-1 |
| 12076 | while :; do |
| 12077 | cat >conftest.$ac_ext <<_ACEOF |
| 12078 | /* confdefs.h. */ |
| 12079 | _ACEOF |
| 12080 | cat confdefs.h >>conftest.$ac_ext |
| 12081 | cat >>conftest.$ac_ext <<_ACEOF |
| 12082 | /* end confdefs.h. */ |
| 12083 | $ac_includes_default |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12084 | int |
| 12085 | main () |
| 12086 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12087 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12088 | test_array [0] = 0 |
| 12089 | |
| 12090 | ; |
| 12091 | return 0; |
| 12092 | } |
| 12093 | _ACEOF |
| 12094 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12095 | if { (ac_try="$ac_compile" |
| 12096 | case "(($ac_try" in |
| 12097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12098 | *) ac_try_echo=$ac_try;; |
| 12099 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12101 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12102 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12103 | ac_status=$? |
| 12104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12105 | rm -f conftest.er1 |
| 12106 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12108 | (exit $ac_status); } && { |
| 12109 | test -z "$ac_c_werror_flag" || |
| 12110 | test ! -s conftest.err |
| 12111 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12112 | ac_lo=$ac_mid; break |
| 12113 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12114 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12116 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12117 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12118 | if test $ac_mid -le $ac_hi; then |
| 12119 | ac_lo= ac_hi= |
| 12120 | break |
| 12121 | fi |
| 12122 | ac_mid=`expr 2 '*' $ac_mid` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12123 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12124 | |
| 12125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12126 | done |
| 12127 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12128 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12130 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12131 | ac_lo= ac_hi= |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12132 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12133 | |
| 12134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12135 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12136 | |
| 12137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12138 | # Binary search between lo and hi bounds. |
| 12139 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12140 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12141 | cat >conftest.$ac_ext <<_ACEOF |
| 12142 | /* confdefs.h. */ |
| 12143 | _ACEOF |
| 12144 | cat confdefs.h >>conftest.$ac_ext |
| 12145 | cat >>conftest.$ac_ext <<_ACEOF |
| 12146 | /* end confdefs.h. */ |
| 12147 | $ac_includes_default |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12148 | int |
| 12149 | main () |
| 12150 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12151 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12152 | test_array [0] = 0 |
| 12153 | |
| 12154 | ; |
| 12155 | return 0; |
| 12156 | } |
| 12157 | _ACEOF |
| 12158 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12159 | if { (ac_try="$ac_compile" |
| 12160 | case "(($ac_try" in |
| 12161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12162 | *) ac_try_echo=$ac_try;; |
| 12163 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12164 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12165 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12166 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12167 | ac_status=$? |
| 12168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12169 | rm -f conftest.er1 |
| 12170 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12171 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12172 | (exit $ac_status); } && { |
| 12173 | test -z "$ac_c_werror_flag" || |
| 12174 | test ! -s conftest.err |
| 12175 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12176 | ac_hi=$ac_mid |
| 12177 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12178 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12180 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12181 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12182 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12183 | |
| 12184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12185 | done |
| 12186 | case $ac_lo in |
| 12187 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12188 | '') if test "$ac_cv_type__Bool" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12189 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 12190 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12191 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12192 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12193 | $as_echo "$as_me: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12194 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12195 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12196 | else |
| 12197 | ac_cv_sizeof__Bool=0 |
| 12198 | fi ;; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12199 | esac |
| 12200 | else |
| 12201 | cat >conftest.$ac_ext <<_ACEOF |
| 12202 | /* confdefs.h. */ |
| 12203 | _ACEOF |
| 12204 | cat confdefs.h >>conftest.$ac_ext |
| 12205 | cat >>conftest.$ac_ext <<_ACEOF |
| 12206 | /* end confdefs.h. */ |
| 12207 | $ac_includes_default |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12208 | static long int longval () { return (long int) (sizeof (_Bool)); } |
| 12209 | static unsigned long int ulongval () { return (long int) (sizeof (_Bool)); } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12210 | #include <stdio.h> |
| 12211 | #include <stdlib.h> |
| 12212 | int |
| 12213 | main () |
| 12214 | { |
| 12215 | |
| 12216 | FILE *f = fopen ("conftest.val", "w"); |
| 12217 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12218 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12219 | if (((long int) (sizeof (_Bool))) < 0) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12220 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12221 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12222 | if (i != ((long int) (sizeof (_Bool)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12223 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12224 | fprintf (f, "%ld", i); |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12225 | } |
| 12226 | else |
| 12227 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12228 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12229 | if (i != ((long int) (sizeof (_Bool)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12230 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12231 | fprintf (f, "%lu", i); |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12232 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12233 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 12234 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12235 | return ferror (f) || fclose (f) != 0; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12236 | |
| 12237 | ; |
| 12238 | return 0; |
| 12239 | } |
| 12240 | _ACEOF |
| 12241 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12242 | if { (ac_try="$ac_link" |
| 12243 | case "(($ac_try" in |
| 12244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12245 | *) ac_try_echo=$ac_try;; |
| 12246 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12247 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12248 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12249 | (eval "$ac_link") 2>&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12250 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12251 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12252 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12253 | { (case "(($ac_try" in |
| 12254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12255 | *) ac_try_echo=$ac_try;; |
| 12256 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12257 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12258 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12259 | (eval "$ac_try") 2>&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12260 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12262 | (exit $ac_status); }; }; then |
| 12263 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12264 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12265 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12266 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12268 | |
| 12269 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12270 | if test "$ac_cv_type__Bool" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12271 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 12272 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12273 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12274 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12275 | $as_echo "$as_me: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12276 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12277 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12278 | else |
| 12279 | ac_cv_sizeof__Bool=0 |
| 12280 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12281 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12282 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12283 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12284 | fi |
| 12285 | rm -f conftest.val |
| 12286 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12287 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12288 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12289 | |
| 12290 | |
| 12291 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12292 | cat >>confdefs.h <<_ACEOF |
| 12293 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12294 | _ACEOF |
| 12295 | |
| 12296 | |
| 12297 | fi |
| 12298 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12299 | { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12300 | $as_echo_n "checking for uintptr_t... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12301 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12302 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12303 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12304 | ac_cv_type_uintptr_t=no |
| 12305 | cat >conftest.$ac_ext <<_ACEOF |
| 12306 | /* confdefs.h. */ |
| 12307 | _ACEOF |
| 12308 | cat confdefs.h >>conftest.$ac_ext |
| 12309 | cat >>conftest.$ac_ext <<_ACEOF |
| 12310 | /* end confdefs.h. */ |
| 12311 | #ifdef HAVE_STDINT_H |
| 12312 | #include <stdint.h> |
| 12313 | #endif |
| 12314 | |
| 12315 | int |
| 12316 | main () |
| 12317 | { |
| 12318 | if (sizeof (uintptr_t)) |
| 12319 | return 0; |
| 12320 | ; |
| 12321 | return 0; |
| 12322 | } |
| 12323 | _ACEOF |
| 12324 | rm -f conftest.$ac_objext |
| 12325 | if { (ac_try="$ac_compile" |
| 12326 | case "(($ac_try" in |
| 12327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12328 | *) ac_try_echo=$ac_try;; |
| 12329 | esac |
| 12330 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12331 | $as_echo "$ac_try_echo") >&5 |
| 12332 | (eval "$ac_compile") 2>conftest.er1 |
| 12333 | ac_status=$? |
| 12334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12335 | rm -f conftest.er1 |
| 12336 | cat conftest.err >&5 |
| 12337 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12338 | (exit $ac_status); } && { |
| 12339 | test -z "$ac_c_werror_flag" || |
| 12340 | test ! -s conftest.err |
| 12341 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12342 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12343 | /* confdefs.h. */ |
| 12344 | _ACEOF |
| 12345 | cat confdefs.h >>conftest.$ac_ext |
| 12346 | cat >>conftest.$ac_ext <<_ACEOF |
| 12347 | /* end confdefs.h. */ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12348 | #ifdef HAVE_STDINT_H |
| 12349 | #include <stdint.h> |
| 12350 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12351 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12352 | int |
| 12353 | main () |
| 12354 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12355 | if (sizeof ((uintptr_t))) |
| 12356 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12357 | ; |
| 12358 | return 0; |
| 12359 | } |
| 12360 | _ACEOF |
| 12361 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12362 | if { (ac_try="$ac_compile" |
| 12363 | case "(($ac_try" in |
| 12364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12365 | *) ac_try_echo=$ac_try;; |
| 12366 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12367 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12368 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12369 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12370 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12372 | rm -f conftest.er1 |
| 12373 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12374 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12375 | (exit $ac_status); } && { |
| 12376 | test -z "$ac_c_werror_flag" || |
| 12377 | test ! -s conftest.err |
| 12378 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12379 | : |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12380 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12381 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12383 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12384 | ac_cv_type_uintptr_t=yes |
| 12385 | fi |
| 12386 | |
| 12387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12388 | else |
| 12389 | $as_echo "$as_me: failed program was:" >&5 |
| 12390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12391 | |
| 12392 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12393 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12394 | |
| 12395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12396 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12397 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12398 | $as_echo "$ac_cv_type_uintptr_t" >&6; } |
| 12399 | if test "x$ac_cv_type_uintptr_t" = x""yes; then |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12400 | |
| 12401 | cat >>confdefs.h <<_ACEOF |
| 12402 | #define HAVE_UINTPTR_T 1 |
| 12403 | _ACEOF |
| 12404 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12405 | # The cast to long int works around a bug in the HP C Compiler |
| 12406 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12407 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12408 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12409 | { $as_echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12410 | $as_echo_n "checking size of uintptr_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12411 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12412 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12414 | if test "$cross_compiling" = yes; then |
| 12415 | # Depending upon the size, compute the lo and hi bounds. |
| 12416 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12417 | /* confdefs.h. */ |
| 12418 | _ACEOF |
| 12419 | cat confdefs.h >>conftest.$ac_ext |
| 12420 | cat >>conftest.$ac_ext <<_ACEOF |
| 12421 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12422 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12423 | int |
| 12424 | main () |
| 12425 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12426 | static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12427 | test_array [0] = 0 |
| 12428 | |
| 12429 | ; |
| 12430 | return 0; |
| 12431 | } |
| 12432 | _ACEOF |
| 12433 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12439 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12440 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12441 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12442 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12444 | rm -f conftest.er1 |
| 12445 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12446 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12447 | (exit $ac_status); } && { |
| 12448 | test -z "$ac_c_werror_flag" || |
| 12449 | test ! -s conftest.err |
| 12450 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12451 | ac_lo=0 ac_mid=0 |
| 12452 | while :; do |
| 12453 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12454 | /* confdefs.h. */ |
| 12455 | _ACEOF |
| 12456 | cat confdefs.h >>conftest.$ac_ext |
| 12457 | cat >>conftest.$ac_ext <<_ACEOF |
| 12458 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12459 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12460 | int |
| 12461 | main () |
| 12462 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12463 | static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12464 | test_array [0] = 0 |
| 12465 | |
| 12466 | ; |
| 12467 | return 0; |
| 12468 | } |
| 12469 | _ACEOF |
| 12470 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12471 | if { (ac_try="$ac_compile" |
| 12472 | case "(($ac_try" in |
| 12473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12474 | *) ac_try_echo=$ac_try;; |
| 12475 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12476 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12477 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12478 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12479 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12481 | rm -f conftest.er1 |
| 12482 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12483 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12484 | (exit $ac_status); } && { |
| 12485 | test -z "$ac_c_werror_flag" || |
| 12486 | test ! -s conftest.err |
| 12487 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12488 | ac_hi=$ac_mid; break |
| 12489 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12490 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12492 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12493 | ac_lo=`expr $ac_mid + 1` |
| 12494 | if test $ac_lo -le $ac_mid; then |
| 12495 | ac_lo= ac_hi= |
| 12496 | break |
| 12497 | fi |
| 12498 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12499 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12500 | |
| 12501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12502 | done |
| 12503 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12504 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12506 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12507 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12508 | /* confdefs.h. */ |
| 12509 | _ACEOF |
| 12510 | cat confdefs.h >>conftest.$ac_ext |
| 12511 | cat >>conftest.$ac_ext <<_ACEOF |
| 12512 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12513 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12514 | int |
| 12515 | main () |
| 12516 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12517 | static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12518 | test_array [0] = 0 |
| 12519 | |
| 12520 | ; |
| 12521 | return 0; |
| 12522 | } |
| 12523 | _ACEOF |
| 12524 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12525 | if { (ac_try="$ac_compile" |
| 12526 | case "(($ac_try" in |
| 12527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12528 | *) ac_try_echo=$ac_try;; |
| 12529 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12530 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12531 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12532 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12533 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12535 | rm -f conftest.er1 |
| 12536 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12537 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12538 | (exit $ac_status); } && { |
| 12539 | test -z "$ac_c_werror_flag" || |
| 12540 | test ! -s conftest.err |
| 12541 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12542 | ac_hi=-1 ac_mid=-1 |
| 12543 | while :; do |
| 12544 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12545 | /* confdefs.h. */ |
| 12546 | _ACEOF |
| 12547 | cat confdefs.h >>conftest.$ac_ext |
| 12548 | cat >>conftest.$ac_ext <<_ACEOF |
| 12549 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12550 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12551 | int |
| 12552 | main () |
| 12553 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12554 | static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12555 | test_array [0] = 0 |
| 12556 | |
| 12557 | ; |
| 12558 | return 0; |
| 12559 | } |
| 12560 | _ACEOF |
| 12561 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12562 | if { (ac_try="$ac_compile" |
| 12563 | case "(($ac_try" in |
| 12564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12565 | *) ac_try_echo=$ac_try;; |
| 12566 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12568 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12569 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12570 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12572 | rm -f conftest.er1 |
| 12573 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12575 | (exit $ac_status); } && { |
| 12576 | test -z "$ac_c_werror_flag" || |
| 12577 | test ! -s conftest.err |
| 12578 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12579 | ac_lo=$ac_mid; break |
| 12580 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12581 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12583 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12584 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12585 | if test $ac_mid -le $ac_hi; then |
| 12586 | ac_lo= ac_hi= |
| 12587 | break |
| 12588 | fi |
| 12589 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12590 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12591 | |
| 12592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12593 | done |
| 12594 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12595 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12597 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12598 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12599 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12600 | |
| 12601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12602 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12603 | |
| 12604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12605 | # Binary search between lo and hi bounds. |
| 12606 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12607 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12608 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12609 | /* confdefs.h. */ |
| 12610 | _ACEOF |
| 12611 | cat confdefs.h >>conftest.$ac_ext |
| 12612 | cat >>conftest.$ac_ext <<_ACEOF |
| 12613 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12614 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12615 | int |
| 12616 | main () |
| 12617 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12618 | static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12619 | test_array [0] = 0 |
| 12620 | |
| 12621 | ; |
| 12622 | return 0; |
| 12623 | } |
| 12624 | _ACEOF |
| 12625 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12626 | if { (ac_try="$ac_compile" |
| 12627 | case "(($ac_try" in |
| 12628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12629 | *) ac_try_echo=$ac_try;; |
| 12630 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12632 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12633 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12634 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12636 | rm -f conftest.er1 |
| 12637 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12638 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12639 | (exit $ac_status); } && { |
| 12640 | test -z "$ac_c_werror_flag" || |
| 12641 | test ! -s conftest.err |
| 12642 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12643 | ac_hi=$ac_mid |
| 12644 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12645 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12647 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12648 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12649 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12650 | |
| 12651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12652 | done |
| 12653 | case $ac_lo in |
| 12654 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12655 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12656 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 12657 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12658 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12659 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12660 | $as_echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12661 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12662 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12663 | else |
| 12664 | ac_cv_sizeof_uintptr_t=0 |
| 12665 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12666 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12668 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12669 | /* confdefs.h. */ |
| 12670 | _ACEOF |
| 12671 | cat confdefs.h >>conftest.$ac_ext |
| 12672 | cat >>conftest.$ac_ext <<_ACEOF |
| 12673 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12674 | $ac_includes_default |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12675 | static long int longval () { return (long int) (sizeof (uintptr_t)); } |
| 12676 | static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12677 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12678 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12679 | int |
| 12680 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12681 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12682 | |
| 12683 | FILE *f = fopen ("conftest.val", "w"); |
| 12684 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12685 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12686 | if (((long int) (sizeof (uintptr_t))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12687 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12688 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12689 | if (i != ((long int) (sizeof (uintptr_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12690 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12691 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12692 | } |
| 12693 | else |
| 12694 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12695 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12696 | if (i != ((long int) (sizeof (uintptr_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12697 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12698 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12699 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12700 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 12701 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12702 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12703 | |
| 12704 | ; |
| 12705 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12706 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12707 | _ACEOF |
| 12708 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12709 | if { (ac_try="$ac_link" |
| 12710 | case "(($ac_try" in |
| 12711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12712 | *) ac_try_echo=$ac_try;; |
| 12713 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12714 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12715 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12716 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12717 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12718 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12719 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12720 | { (case "(($ac_try" in |
| 12721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12722 | *) ac_try_echo=$ac_try;; |
| 12723 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12725 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12726 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12727 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12729 | (exit $ac_status); }; }; then |
| 12730 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12731 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12732 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12733 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12736 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12737 | if test "$ac_cv_type_uintptr_t" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12738 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 12739 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12740 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12741 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12742 | $as_echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12743 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12744 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12745 | else |
| 12746 | ac_cv_sizeof_uintptr_t=0 |
| 12747 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12748 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12749 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12750 | 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] | 12751 | fi |
| 12752 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12753 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12754 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 12755 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12756 | |
| 12757 | |
| 12758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12759 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12760 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12761 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12762 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12763 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12764 | fi |
| 12765 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12766 | |
| 12767 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12768 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12769 | { $as_echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 12770 | $as_echo_n "checking size of off_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12771 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12772 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12773 | else |
| 12774 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12775 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12776 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12777 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12778 | /* confdefs.h. */ |
| 12779 | _ACEOF |
| 12780 | cat confdefs.h >>conftest.$ac_ext |
| 12781 | cat >>conftest.$ac_ext <<_ACEOF |
| 12782 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12783 | #include <stdio.h> |
| 12784 | #include <sys/types.h> |
| 12785 | main() |
| 12786 | { |
| 12787 | FILE *f=fopen("conftestval", "w"); |
| 12788 | if (!f) exit(1); |
| 12789 | fprintf(f, "%d\n", sizeof(off_t)); |
| 12790 | exit(0); |
| 12791 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12792 | _ACEOF |
| 12793 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12794 | if { (ac_try="$ac_link" |
| 12795 | case "(($ac_try" in |
| 12796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12797 | *) ac_try_echo=$ac_try;; |
| 12798 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12800 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12801 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12802 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12805 | { (case "(($ac_try" in |
| 12806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12807 | *) ac_try_echo=$ac_try;; |
| 12808 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12809 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12810 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12811 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12812 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12813 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12814 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12815 | ac_cv_sizeof_off_t=`cat conftestval` |
| 12816 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12817 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12818 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12821 | ( exit $ac_status ) |
| 12822 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12823 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12824 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12825 | 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] | 12826 | fi |
| 12827 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12828 | |
| 12829 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12830 | fi |
| 12831 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12832 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 12833 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12834 | |
| 12835 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12836 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12837 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12838 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12839 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12840 | { $as_echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 12841 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 12842 | if test "$have_long_long" = yes -a \ |
| 12843 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 12844 | "$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] | 12845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 | cat >>confdefs.h <<\_ACEOF |
| 12847 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 12848 | _ACEOF |
| 12849 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12850 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12851 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12852 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12853 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12854 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12855 | fi |
| 12856 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12857 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12858 | { $as_echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 12859 | $as_echo_n "checking size of time_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12860 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12861 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12862 | else |
| 12863 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12864 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12866 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12867 | /* confdefs.h. */ |
| 12868 | _ACEOF |
| 12869 | cat confdefs.h >>conftest.$ac_ext |
| 12870 | cat >>conftest.$ac_ext <<_ACEOF |
| 12871 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12872 | #include <stdio.h> |
| 12873 | #include <time.h> |
| 12874 | main() |
| 12875 | { |
| 12876 | FILE *f=fopen("conftestval", "w"); |
| 12877 | if (!f) exit(1); |
| 12878 | fprintf(f, "%d\n", sizeof(time_t)); |
| 12879 | exit(0); |
| 12880 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12881 | _ACEOF |
| 12882 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12883 | if { (ac_try="$ac_link" |
| 12884 | case "(($ac_try" in |
| 12885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12886 | *) ac_try_echo=$ac_try;; |
| 12887 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12888 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12889 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12890 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12891 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12892 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12893 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12894 | { (case "(($ac_try" in |
| 12895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12896 | *) ac_try_echo=$ac_try;; |
| 12897 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12898 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12899 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12900 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12903 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12904 | ac_cv_sizeof_time_t=`cat conftestval` |
| 12905 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12906 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12907 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12910 | ( exit $ac_status ) |
| 12911 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12912 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12913 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12914 | 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] | 12915 | fi |
| 12916 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12917 | |
| 12918 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12919 | fi |
| 12920 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12921 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 12922 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12923 | |
| 12924 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12925 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12926 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12927 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12928 | |
| 12929 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12930 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 12931 | ac_save_cc="$CC" |
| 12932 | if test "$ac_cv_kpthread" = "yes" |
| 12933 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 12934 | elif test "$ac_cv_kthread" = "yes" |
| 12935 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12936 | elif test "$ac_cv_pthread" = "yes" |
| 12937 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 12938 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12939 | { $as_echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 12940 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12941 | have_pthread_t=no |
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. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12948 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12949 | int |
| 12950 | main () |
| 12951 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 12952 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12953 | ; |
| 12954 | return 0; |
| 12955 | } |
| 12956 | _ACEOF |
| 12957 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12958 | if { (ac_try="$ac_compile" |
| 12959 | case "(($ac_try" in |
| 12960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12961 | *) ac_try_echo=$ac_try;; |
| 12962 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12963 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12964 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12965 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12968 | rm -f conftest.er1 |
| 12969 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12970 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12971 | (exit $ac_status); } && { |
| 12972 | test -z "$ac_c_werror_flag" || |
| 12973 | test ! -s conftest.err |
| 12974 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12975 | have_pthread_t=yes |
| 12976 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12977 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12979 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12980 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12981 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12982 | |
| 12983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12984 | { $as_echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 12985 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12986 | if test "$have_pthread_t" = yes ; then |
| 12987 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12988 | { $as_echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 12989 | $as_echo_n "checking size of pthread_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12990 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 12991 | $as_echo_n "(cached) " >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12992 | else |
| 12993 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12994 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12995 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12996 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12997 | /* confdefs.h. */ |
| 12998 | _ACEOF |
| 12999 | cat confdefs.h >>conftest.$ac_ext |
| 13000 | cat >>conftest.$ac_ext <<_ACEOF |
| 13001 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13002 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13003 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13004 | main() |
| 13005 | { |
| 13006 | FILE *f=fopen("conftestval", "w"); |
| 13007 | if (!f) exit(1); |
| 13008 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 13009 | exit(0); |
| 13010 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13011 | _ACEOF |
| 13012 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13013 | if { (ac_try="$ac_link" |
| 13014 | case "(($ac_try" in |
| 13015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13016 | *) ac_try_echo=$ac_try;; |
| 13017 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13018 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13019 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13020 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13021 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13022 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13023 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13024 | { (case "(($ac_try" in |
| 13025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13026 | *) ac_try_echo=$ac_try;; |
| 13027 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13028 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13029 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13030 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13031 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13032 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13033 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13034 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 13035 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13036 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13037 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13040 | ( exit $ac_status ) |
| 13041 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13042 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13043 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13044 | 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] | 13045 | fi |
| 13046 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13047 | |
| 13048 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13049 | fi |
| 13050 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13051 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 13052 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13053 | |
| 13054 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13055 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13056 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13057 | |
| 13058 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13059 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13060 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13061 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13062 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 13063 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13064 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13065 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 13066 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 13067 | ;; |
| 13068 | Darwin/*) |
| 13069 | OTHER_LIBTOOL_OPT="" |
| 13070 | ;; |
| 13071 | esac |
| 13072 | |
| 13073 | |
| 13074 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13075 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13076 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 13077 | if test "${enable_universalsdk}"; then |
| 13078 | : |
| 13079 | else |
| 13080 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 13081 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 13082 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13083 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 13084 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 13085 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 13086 | if test ${gcc_version} '<' 4.0 |
| 13087 | then |
| 13088 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 13089 | else |
| 13090 | LIBTOOL_CRUFT="" |
| 13091 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 13092 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 13093 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13094 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13095 | esac |
| 13096 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13097 | { $as_echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 13098 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13099 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13100 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13101 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13102 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13103 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | cat >>confdefs.h <<\_ACEOF |
| 13106 | #define WITH_NEXT_FRAMEWORK 1 |
| 13107 | _ACEOF |
| 13108 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13109 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13110 | $as_echo "yes" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13111 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13112 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13113 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13114 | fi |
| 13115 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13116 | { $as_echo "$as_me:$LINENO: checking for dyld" >&5 |
| 13117 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13118 | case $ac_sys_system/$ac_sys_release in |
| 13119 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13121 | cat >>confdefs.h <<\_ACEOF |
| 13122 | #define WITH_DYLD 1 |
| 13123 | _ACEOF |
| 13124 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13125 | { $as_echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 13126 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13127 | ;; |
| 13128 | *) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13129 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13130 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13131 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13132 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13133 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13134 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13135 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13136 | |
| 13137 | |
| 13138 | |
| 13139 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13140 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13141 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13142 | { $as_echo "$as_me:$LINENO: checking SO" >&5 |
| 13143 | $as_echo_n "checking SO... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13144 | if test -z "$SO" |
| 13145 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13146 | case $ac_sys_system in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13147 | hp*|HP*) |
| 13148 | case `uname -m` in |
| 13149 | ia64) SO=.so;; |
| 13150 | *) SO=.sl;; |
| 13151 | esac |
| 13152 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13153 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13154 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13155 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 13156 | else |
| 13157 | # this might also be a termcap variable, see #610332 |
| 13158 | echo |
| 13159 | echo '=====================================================================' |
| 13160 | echo '+ +' |
| 13161 | echo '+ WARNING: You have set SO in your environment. +' |
| 13162 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 13163 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 13164 | echo '+ +' |
| 13165 | echo '=====================================================================' |
| 13166 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13167 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13168 | { $as_echo "$as_me:$LINENO: result: $SO" >&5 |
| 13169 | $as_echo "$SO" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13170 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 13171 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13172 | cat >>confdefs.h <<_ACEOF |
| 13173 | #define SHLIB_EXT "$SO" |
| 13174 | _ACEOF |
| 13175 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13176 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 13177 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13178 | # (Shared libraries in this instance are shared modules to be loaded into |
| 13179 | # Python, as opposed to building Python itself as a shared library.) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13180 | { $as_echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 13181 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13182 | if test -z "$LDSHARED" |
| 13183 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13184 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13185 | AIX*) |
| 13186 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 13187 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13188 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13189 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 13190 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13191 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 13192 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 13193 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 13194 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 13195 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 13196 | hp*|HP*) |
| 13197 | if test "$GCC" = "yes" |
| 13198 | then LDSHARED='$(CC) -shared' |
| 13199 | else LDSHARED='ld -b'; |
| 13200 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13201 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 13202 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13203 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13204 | if test "$enable_framework" ; then |
| 13205 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13206 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13207 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13208 | else |
| 13209 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 13210 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13211 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13212 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13213 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13214 | if test "$enable_framework" ; then |
| 13215 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13216 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13217 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13218 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 13219 | # No framework, use the Python app as bundle-loader |
| 13220 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 13221 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13222 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13223 | Darwin/*) |
| 13224 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 13225 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13226 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 13227 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13228 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13229 | if test "${enable_universalsdk}"; then |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 13230 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13231 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13232 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 13233 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13234 | else |
| 13235 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13236 | if test "$enable_framework" ; then |
| 13237 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13238 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13239 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13240 | else |
| 13241 | # No framework, use the Python app as bundle-loader |
| 13242 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 13243 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 13244 | fi |
| 13245 | fi |
| 13246 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 13247 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 13248 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13249 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 13250 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 13251 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 13252 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 13253 | else |
| 13254 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 13255 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13256 | OpenBSD*) |
| 13257 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 13258 | then |
| 13259 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 13260 | else |
| 13261 | case `uname -r` in |
| 13262 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 13263 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 13264 | ;; |
| 13265 | *) |
| 13266 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 13267 | ;; |
| 13268 | esac |
| 13269 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13270 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13271 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13272 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 13273 | then LDSHARED='$(CC) -shared' |
| 13274 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13275 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 13276 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13277 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13278 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13279 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13280 | *) LDSHARED="ld";; |
| 13281 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13282 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13283 | { $as_echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 13284 | $as_echo "$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13285 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13286 | # 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] | 13287 | # library (module) -- this is only needed for a few systems |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13288 | { $as_echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 13289 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13290 | if test -z "$CCSHARED" |
| 13291 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13292 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 13293 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13294 | then CCSHARED="-fPIC"; |
| 13295 | elif test `uname -p` = sparc; |
| 13296 | then CCSHARED="-xcode=pic32"; |
| 13297 | else CCSHARED="-Kpic"; |
| 13298 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 13299 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 13300 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 13301 | else CCSHARED="+z"; |
| 13302 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13303 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 13304 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13305 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13306 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13307 | if test "$GCC" = "yes" |
| 13308 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13309 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13310 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 13311 | SCO_SV*) |
| 13312 | if test "$GCC" = "yes" |
| 13313 | then CCSHARED="-fPIC" |
| 13314 | else CCSHARED="-Kpic -belf" |
| 13315 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13316 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13317 | IRIX*/6*) case $CC in |
| 13318 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 13319 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13320 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13321 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13322 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13323 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13324 | { $as_echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 13325 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13326 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13327 | # the python executable -- this is only needed for a few systems |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13328 | { $as_echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 13329 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13330 | if test -z "$LINKFORSHARED" |
| 13331 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13332 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13333 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 13334 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13335 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 13336 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 13337 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13338 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13339 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13340 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13341 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 13342 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13343 | # not used by the core itself but which needs to be in the core so |
| 13344 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 13345 | # -prebind is no longer used, because it actually seems to give a |
| 13346 | # slowdown in stead of a speedup, maybe due to the large number of |
| 13347 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13348 | |
| 13349 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13350 | if test "$enable_framework" |
| 13351 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13352 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13353 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13354 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13355 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 13356 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 13357 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13358 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 13359 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 13360 | then |
| 13361 | LINKFORSHARED="-Wl,--export-dynamic" |
| 13362 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13363 | SunOS/5*) case $CC in |
| 13364 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 13365 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 13366 | then |
| 13367 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13368 | fi;; |
| 13369 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 13370 | CYGWIN*) |
| 13371 | if test $enable_shared = "no" |
| 13372 | then |
| 13373 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 13374 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 13375 | QNX*) |
| 13376 | # -Wl,-E causes the symbols to be added to the dynamic |
| 13377 | # symbol table so that they can be found when a module |
| 13378 | # is loaded. -N 2048K causes the stack size to be set |
| 13379 | # to 2048 kilobytes so that the stack doesn't overflow |
| 13380 | # when running test_compile.py. |
| 13381 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13382 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13383 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13384 | { $as_echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 13385 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13386 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13387 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 13388 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13389 | { $as_echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 13390 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13391 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 13392 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 13393 | case $ac_sys_system in |
| 13394 | CYGWIN*) |
| 13395 | # Cygwin needs CCSHARED when building extension DLLs |
| 13396 | # but not when building the interpreter DLL. |
| 13397 | CFLAGSFORSHARED='';; |
| 13398 | *) |
| 13399 | CFLAGSFORSHARED='$(CCSHARED)' |
| 13400 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13401 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13402 | { $as_echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 13403 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13404 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13405 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 13406 | # library (with --enable-shared). |
| 13407 | # 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] | 13408 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 13409 | # if it is not required, since it creates a dependency of the shared library |
| 13410 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 13411 | # don't need to link LIBS explicitly. The default should be only changed |
| 13412 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13413 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13414 | { $as_echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 13415 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13416 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13417 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 13418 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13419 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13420 | { $as_echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 13421 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13422 | |
| 13423 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13424 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13425 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13426 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13427 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13428 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13429 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13430 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13431 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13432 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13433 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13434 | /* confdefs.h. */ |
| 13435 | _ACEOF |
| 13436 | cat confdefs.h >>conftest.$ac_ext |
| 13437 | cat >>conftest.$ac_ext <<_ACEOF |
| 13438 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13439 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13440 | /* Override any GCC internal prototype to avoid an error. |
| 13441 | Use char because int might match the return type of a GCC |
| 13442 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13443 | #ifdef __cplusplus |
| 13444 | extern "C" |
| 13445 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13446 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13447 | int |
| 13448 | main () |
| 13449 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13450 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13451 | ; |
| 13452 | return 0; |
| 13453 | } |
| 13454 | _ACEOF |
| 13455 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13456 | if { (ac_try="$ac_link" |
| 13457 | case "(($ac_try" in |
| 13458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13459 | *) ac_try_echo=$ac_try;; |
| 13460 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13461 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13462 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13463 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13464 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13466 | rm -f conftest.er1 |
| 13467 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13468 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13469 | (exit $ac_status); } && { |
| 13470 | test -z "$ac_c_werror_flag" || |
| 13471 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13472 | } && test -s conftest$ac_exeext && { |
| 13473 | test "$cross_compiling" = yes || |
| 13474 | $as_test_x conftest$ac_exeext |
| 13475 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13476 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13477 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13478 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13480 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13481 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13482 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13483 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13484 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13485 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13486 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13487 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13488 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13489 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13490 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 13491 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13492 | cat >>confdefs.h <<_ACEOF |
| 13493 | #define HAVE_LIBDL 1 |
| 13494 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13495 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13496 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13497 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13498 | fi |
| 13499 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13500 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13501 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 13502 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13503 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13504 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13505 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13506 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13507 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13508 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13509 | /* confdefs.h. */ |
| 13510 | _ACEOF |
| 13511 | cat confdefs.h >>conftest.$ac_ext |
| 13512 | cat >>conftest.$ac_ext <<_ACEOF |
| 13513 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13514 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13515 | /* Override any GCC internal prototype to avoid an error. |
| 13516 | Use char because int might match the return type of a GCC |
| 13517 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13518 | #ifdef __cplusplus |
| 13519 | extern "C" |
| 13520 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13521 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13522 | int |
| 13523 | main () |
| 13524 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13525 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13526 | ; |
| 13527 | return 0; |
| 13528 | } |
| 13529 | _ACEOF |
| 13530 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13531 | if { (ac_try="$ac_link" |
| 13532 | case "(($ac_try" in |
| 13533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13534 | *) ac_try_echo=$ac_try;; |
| 13535 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13536 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13537 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13538 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13539 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13541 | rm -f conftest.er1 |
| 13542 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13544 | (exit $ac_status); } && { |
| 13545 | test -z "$ac_c_werror_flag" || |
| 13546 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13547 | } && test -s conftest$ac_exeext && { |
| 13548 | test "$cross_compiling" = yes || |
| 13549 | $as_test_x conftest$ac_exeext |
| 13550 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13551 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13552 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13553 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13555 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13556 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13557 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13558 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13559 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13560 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13561 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13562 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13563 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13564 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13565 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 13566 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13567 | cat >>confdefs.h <<_ACEOF |
| 13568 | #define HAVE_LIBDLD 1 |
| 13569 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13570 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13571 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13572 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13573 | fi |
| 13574 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13575 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 13576 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13577 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13578 | { $as_echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 13579 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 13580 | if test "${ac_cv_search_sem_init+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13581 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13582 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 13583 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13584 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13585 | /* confdefs.h. */ |
| 13586 | _ACEOF |
| 13587 | cat confdefs.h >>conftest.$ac_ext |
| 13588 | cat >>conftest.$ac_ext <<_ACEOF |
| 13589 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13590 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13591 | /* Override any GCC internal prototype to avoid an error. |
| 13592 | Use char because int might match the return type of a GCC |
| 13593 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13594 | #ifdef __cplusplus |
| 13595 | extern "C" |
| 13596 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13597 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13598 | int |
| 13599 | main () |
| 13600 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13601 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13602 | ; |
| 13603 | return 0; |
| 13604 | } |
| 13605 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13606 | for ac_lib in '' pthread rt posix4; do |
| 13607 | if test -z "$ac_lib"; then |
| 13608 | ac_res="none required" |
| 13609 | else |
| 13610 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13611 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13612 | fi |
| 13613 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13614 | if { (ac_try="$ac_link" |
| 13615 | case "(($ac_try" in |
| 13616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13617 | *) ac_try_echo=$ac_try;; |
| 13618 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13620 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13621 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13622 | ac_status=$? |
| 13623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13624 | rm -f conftest.er1 |
| 13625 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13627 | (exit $ac_status); } && { |
| 13628 | test -z "$ac_c_werror_flag" || |
| 13629 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13630 | } && test -s conftest$ac_exeext && { |
| 13631 | test "$cross_compiling" = yes || |
| 13632 | $as_test_x conftest$ac_exeext |
| 13633 | }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13634 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13635 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13636 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13638 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13639 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13640 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13641 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13642 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13643 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13644 | conftest$ac_exeext |
| 13645 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 13646 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13647 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13648 | done |
| 13649 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 13650 | : |
| 13651 | else |
| 13652 | ac_cv_search_sem_init=no |
| 13653 | fi |
| 13654 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 13655 | LIBS=$ac_func_search_save_LIBS |
| 13656 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13657 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 13658 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13659 | ac_res=$ac_cv_search_sem_init |
| 13660 | if test "$ac_res" != no; then |
| 13661 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13662 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13663 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 13664 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13665 | # posix4 on Solaris 2.6 |
| 13666 | # pthread (first!) on Linux |
| 13667 | fi |
| 13668 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13669 | # check if we need libintl for locale functions |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13670 | { $as_echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 13671 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13672 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13673 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13674 | else |
| 13675 | ac_check_lib_save_LIBS=$LIBS |
| 13676 | LIBS="-lintl $LIBS" |
| 13677 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13678 | /* confdefs.h. */ |
| 13679 | _ACEOF |
| 13680 | cat confdefs.h >>conftest.$ac_ext |
| 13681 | cat >>conftest.$ac_ext <<_ACEOF |
| 13682 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13683 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13684 | /* Override any GCC internal prototype to avoid an error. |
| 13685 | Use char because int might match the return type of a GCC |
| 13686 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13687 | #ifdef __cplusplus |
| 13688 | extern "C" |
| 13689 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13690 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13691 | int |
| 13692 | main () |
| 13693 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13694 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13695 | ; |
| 13696 | return 0; |
| 13697 | } |
| 13698 | _ACEOF |
| 13699 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13700 | if { (ac_try="$ac_link" |
| 13701 | case "(($ac_try" in |
| 13702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13703 | *) ac_try_echo=$ac_try;; |
| 13704 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13706 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13707 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13708 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13710 | rm -f conftest.er1 |
| 13711 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13713 | (exit $ac_status); } && { |
| 13714 | test -z "$ac_c_werror_flag" || |
| 13715 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13716 | } && test -s conftest$ac_exeext && { |
| 13717 | test "$cross_compiling" = yes || |
| 13718 | $as_test_x conftest$ac_exeext |
| 13719 | }; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13720 | ac_cv_lib_intl_textdomain=yes |
| 13721 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13722 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13724 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13725 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13726 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13727 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13728 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13730 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13731 | LIBS=$ac_check_lib_save_LIBS |
| 13732 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13733 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 13734 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
| 13735 | if test "x$ac_cv_lib_intl_textdomain" = x""yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13736 | |
| 13737 | cat >>confdefs.h <<\_ACEOF |
| 13738 | #define WITH_LIBINTL 1 |
| 13739 | _ACEOF |
| 13740 | |
| 13741 | fi |
| 13742 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13743 | |
| 13744 | # checks for system dependent C++ extensions support |
| 13745 | case "$ac_sys_system" in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13746 | AIX*) { $as_echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 13747 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13748 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13749 | /* confdefs.h. */ |
| 13750 | _ACEOF |
| 13751 | cat confdefs.h >>conftest.$ac_ext |
| 13752 | cat >>conftest.$ac_ext <<_ACEOF |
| 13753 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13754 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13755 | int |
| 13756 | main () |
| 13757 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13758 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13759 | ; |
| 13760 | return 0; |
| 13761 | } |
| 13762 | _ACEOF |
| 13763 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13764 | if { (ac_try="$ac_link" |
| 13765 | case "(($ac_try" in |
| 13766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13767 | *) ac_try_echo=$ac_try;; |
| 13768 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13769 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13770 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13771 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13772 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13774 | rm -f conftest.er1 |
| 13775 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13776 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13777 | (exit $ac_status); } && { |
| 13778 | test -z "$ac_c_werror_flag" || |
| 13779 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13780 | } && test -s conftest$ac_exeext && { |
| 13781 | test "$cross_compiling" = yes || |
| 13782 | $as_test_x conftest$ac_exeext |
| 13783 | }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13785 | cat >>confdefs.h <<\_ACEOF |
| 13786 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 13787 | _ACEOF |
| 13788 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13789 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13790 | $as_echo "yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13791 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13792 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13794 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13795 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13796 | $as_echo "no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13797 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13798 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13799 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13800 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13801 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13802 | *) ;; |
| 13803 | esac |
| 13804 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 13805 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13806 | { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 13807 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13808 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13809 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13810 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13811 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13812 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13813 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13814 | /* confdefs.h. */ |
| 13815 | _ACEOF |
| 13816 | cat confdefs.h >>conftest.$ac_ext |
| 13817 | cat >>conftest.$ac_ext <<_ACEOF |
| 13818 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13819 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13820 | /* Override any GCC internal prototype to avoid an error. |
| 13821 | Use char because int might match the return type of a GCC |
| 13822 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13823 | #ifdef __cplusplus |
| 13824 | extern "C" |
| 13825 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13826 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13827 | int |
| 13828 | main () |
| 13829 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13830 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13831 | ; |
| 13832 | return 0; |
| 13833 | } |
| 13834 | _ACEOF |
| 13835 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13836 | if { (ac_try="$ac_link" |
| 13837 | case "(($ac_try" in |
| 13838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13839 | *) ac_try_echo=$ac_try;; |
| 13840 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13842 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13843 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13844 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13846 | rm -f conftest.er1 |
| 13847 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13849 | (exit $ac_status); } && { |
| 13850 | test -z "$ac_c_werror_flag" || |
| 13851 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13852 | } && test -s conftest$ac_exeext && { |
| 13853 | test "$cross_compiling" = yes || |
| 13854 | $as_test_x conftest$ac_exeext |
| 13855 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13856 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13857 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13858 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13860 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13861 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13862 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13863 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13864 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13865 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13866 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13867 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13868 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13869 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 13870 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
| 13871 | if test "x$ac_cv_lib_nsl_t_open" = x""yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13872 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13873 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 13874 | # SVR4 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13875 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 13876 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13877 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13878 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13879 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13880 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13881 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13882 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13883 | /* confdefs.h. */ |
| 13884 | _ACEOF |
| 13885 | cat confdefs.h >>conftest.$ac_ext |
| 13886 | cat >>conftest.$ac_ext <<_ACEOF |
| 13887 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13888 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13889 | /* Override any GCC internal prototype to avoid an error. |
| 13890 | Use char because int might match the return type of a GCC |
| 13891 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13892 | #ifdef __cplusplus |
| 13893 | extern "C" |
| 13894 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13895 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13896 | int |
| 13897 | main () |
| 13898 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13899 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13900 | ; |
| 13901 | return 0; |
| 13902 | } |
| 13903 | _ACEOF |
| 13904 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13905 | if { (ac_try="$ac_link" |
| 13906 | case "(($ac_try" in |
| 13907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13908 | *) ac_try_echo=$ac_try;; |
| 13909 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13911 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13912 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13913 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13915 | rm -f conftest.er1 |
| 13916 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13918 | (exit $ac_status); } && { |
| 13919 | test -z "$ac_c_werror_flag" || |
| 13920 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13921 | } && test -s conftest$ac_exeext && { |
| 13922 | test "$cross_compiling" = yes || |
| 13923 | $as_test_x conftest$ac_exeext |
| 13924 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13925 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13926 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13927 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13929 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13930 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13931 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13932 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13933 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13934 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13935 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13936 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13937 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13938 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 13939 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
| 13940 | if test "x$ac_cv_lib_socket_socket" = x""yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13941 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13942 | fi |
| 13943 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 13944 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13945 | { $as_echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 13946 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13947 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13948 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 13949 | if test "${with_libs+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13950 | withval=$with_libs; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13951 | { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 13952 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 13953 | LIBS="$withval $LIBS" |
| 13954 | |
| 13955 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13956 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13957 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13958 | fi |
| 13959 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13960 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13961 | # Check for use of the system libffi library |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13962 | { $as_echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 13963 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13964 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13965 | # Check whether --with-system_ffi was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13966 | if test "${with_system_ffi+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13967 | withval=$with_system_ffi; |
| 13968 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13969 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13970 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13971 | { $as_echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 13972 | $as_echo "$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13973 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 13974 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13975 | |
| 13976 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13977 | { $as_echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 13978 | $as_echo_n "checking for --with-signal-module... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13979 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13980 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13981 | if test "${with_signal_module+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13982 | withval=$with_signal_module; |
| 13983 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13984 | |
| 13985 | |
| 13986 | if test -z "$with_signal_module" |
| 13987 | then with_signal_module="yes" |
| 13988 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13989 | { $as_echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 13990 | $as_echo "$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13991 | |
| 13992 | if test "${with_signal_module}" = "yes"; then |
| 13993 | USE_SIGNAL_MODULE="" |
| 13994 | SIGNAL_OBJS="" |
| 13995 | else |
| 13996 | USE_SIGNAL_MODULE="#" |
| 13997 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 13998 | fi |
| 13999 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 14000 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 14001 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14002 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 14003 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14004 | { $as_echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 14005 | $as_echo_n "checking for --with-dec-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14006 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14007 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14008 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14009 | if test "${with_dec_threads+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14010 | withval=$with_dec_threads; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14011 | { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 14012 | $as_echo "$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14013 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14014 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14015 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14016 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14017 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14018 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14019 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14020 | fi |
| 14021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14022 | |
| 14023 | # Templates for things AC_DEFINEd more than once. |
| 14024 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14025 | |
| 14026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14027 | |
| 14028 | |
| 14029 | |
| 14030 | |
| 14031 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14032 | { $as_echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 14033 | $as_echo_n "checking for --with-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14034 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14035 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14036 | if test "${with_threads+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14037 | withval=$with_threads; |
| 14038 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14039 | |
| 14040 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14041 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14042 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14043 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14044 | if test "${with_thread+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14045 | withval=$with_thread; with_threads=$with_thread |
| 14046 | fi |
| 14047 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14048 | |
| 14049 | if test -z "$with_threads" |
| 14050 | then with_threads="yes" |
| 14051 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14052 | { $as_echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 14053 | $as_echo "$with_threads" >&6; } |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14054 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14055 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14056 | if test "$with_threads" = "no" |
| 14057 | then |
| 14058 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14059 | elif test "$ac_cv_pthread_is_default" = yes |
| 14060 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14061 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14062 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14063 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14064 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14065 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14066 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14067 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14068 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14069 | |
| 14070 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14071 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14072 | elif test "$ac_cv_kpthread" = "yes" |
| 14073 | then |
| 14074 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14075 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14076 | CXX="$CXX -Kpthread" |
| 14077 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14078 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 14079 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14080 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 14081 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14082 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14083 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14084 | elif test "$ac_cv_kthread" = "yes" |
| 14085 | then |
| 14086 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14087 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14088 | CXX="$CXX -Kthread" |
| 14089 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14090 | cat >>confdefs.h <<\_ACEOF |
| 14091 | #define WITH_THREAD 1 |
| 14092 | _ACEOF |
| 14093 | |
| 14094 | posix_threads=yes |
| 14095 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14096 | elif test "$ac_cv_pthread" = "yes" |
| 14097 | then |
| 14098 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14099 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14100 | CXX="$CXX -pthread" |
| 14101 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14102 | cat >>confdefs.h <<\_ACEOF |
| 14103 | #define WITH_THREAD 1 |
| 14104 | _ACEOF |
| 14105 | |
| 14106 | posix_threads=yes |
| 14107 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14108 | else |
| 14109 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 14110 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 14111 | fi |
| 14112 | if test ! -z "$withval" -a -d "$withval" |
| 14113 | then LDFLAGS="$LDFLAGS -L$withval" |
| 14114 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14115 | |
| 14116 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 14117 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 14118 | # (e.g. gnu pth with pthread emulation) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14119 | { $as_echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 14120 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14121 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14122 | /* confdefs.h. */ |
| 14123 | _ACEOF |
| 14124 | cat confdefs.h >>conftest.$ac_ext |
| 14125 | cat >>conftest.$ac_ext <<_ACEOF |
| 14126 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14127 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14128 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14129 | #ifdef _POSIX_THREADS |
| 14130 | yes |
| 14131 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14132 | |
| 14133 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14134 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14135 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14136 | unistd_defines_pthreads=yes |
| 14137 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14138 | unistd_defines_pthreads=no |
| 14139 | fi |
| 14140 | rm -f conftest* |
| 14141 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14142 | { $as_echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 14143 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14144 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14145 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 14146 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14147 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 14148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14149 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14150 | { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 14151 | $as_echo_n "checking for cthreads.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14152 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14153 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14154 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14155 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 14156 | $as_echo "$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14158 | # Is the header compilable? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14159 | { $as_echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 14160 | $as_echo_n "checking cthreads.h usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14161 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14162 | /* confdefs.h. */ |
| 14163 | _ACEOF |
| 14164 | cat confdefs.h >>conftest.$ac_ext |
| 14165 | cat >>conftest.$ac_ext <<_ACEOF |
| 14166 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14167 | $ac_includes_default |
| 14168 | #include <cthreads.h> |
| 14169 | _ACEOF |
| 14170 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14171 | if { (ac_try="$ac_compile" |
| 14172 | case "(($ac_try" in |
| 14173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14174 | *) ac_try_echo=$ac_try;; |
| 14175 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14177 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14178 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14179 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14181 | rm -f conftest.er1 |
| 14182 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14184 | (exit $ac_status); } && { |
| 14185 | test -z "$ac_c_werror_flag" || |
| 14186 | test ! -s conftest.err |
| 14187 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14188 | ac_header_compiler=yes |
| 14189 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14190 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14192 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14193 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14194 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14195 | |
| 14196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14197 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14198 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14199 | |
| 14200 | # Is the header present? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14201 | { $as_echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 14202 | $as_echo_n "checking cthreads.h presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14203 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14204 | /* confdefs.h. */ |
| 14205 | _ACEOF |
| 14206 | cat confdefs.h >>conftest.$ac_ext |
| 14207 | cat >>conftest.$ac_ext <<_ACEOF |
| 14208 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14209 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14210 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14211 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14212 | case "(($ac_try" in |
| 14213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14214 | *) ac_try_echo=$ac_try;; |
| 14215 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14216 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14217 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14218 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14219 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14220 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14221 | rm -f conftest.er1 |
| 14222 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14223 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14224 | (exit $ac_status); } >/dev/null && { |
| 14225 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14226 | test ! -s conftest.err |
| 14227 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14228 | ac_header_preproc=yes |
| 14229 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14230 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14233 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14234 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14236 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14237 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14238 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14239 | |
| 14240 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14241 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14242 | yes:no: ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14243 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14244 | $as_echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14245 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 14246 | $as_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] | 14247 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14248 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14249 | no:yes:* ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14250 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 14251 | $as_echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 14252 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 14253 | $as_echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 14254 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 14255 | $as_echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 14256 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14257 | $as_echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14258 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 14259 | $as_echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 14260 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 14261 | $as_echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14262 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14263 | ## ------------------------------------------------ ## |
| 14264 | ## Report this to http://www.python.org/python-bugs ## |
| 14265 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14266 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14267 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14268 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14269 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14270 | { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 14271 | $as_echo_n "checking for cthreads.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14272 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14273 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14274 | else |
| 14275 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14276 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14277 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 14278 | $as_echo "$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14279 | |
| 14280 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14281 | if test "x$ac_cv_header_cthreads_h" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14282 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14283 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14284 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14286 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14287 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14288 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14290 | |
| 14291 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14292 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14293 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14294 | |
| 14295 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14296 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14297 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14299 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14300 | { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 14301 | $as_echo_n "checking for mach/cthreads.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14302 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14303 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14304 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14305 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 14306 | $as_echo "$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14307 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14308 | # Is the header compilable? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14309 | { $as_echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 14310 | $as_echo_n "checking mach/cthreads.h usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14311 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14312 | /* confdefs.h. */ |
| 14313 | _ACEOF |
| 14314 | cat confdefs.h >>conftest.$ac_ext |
| 14315 | cat >>conftest.$ac_ext <<_ACEOF |
| 14316 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14317 | $ac_includes_default |
| 14318 | #include <mach/cthreads.h> |
| 14319 | _ACEOF |
| 14320 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14321 | if { (ac_try="$ac_compile" |
| 14322 | case "(($ac_try" in |
| 14323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14324 | *) ac_try_echo=$ac_try;; |
| 14325 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14326 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14327 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14328 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14329 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14331 | rm -f conftest.er1 |
| 14332 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14334 | (exit $ac_status); } && { |
| 14335 | test -z "$ac_c_werror_flag" || |
| 14336 | test ! -s conftest.err |
| 14337 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14338 | ac_header_compiler=yes |
| 14339 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14340 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14342 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14343 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14344 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14345 | |
| 14346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14347 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14348 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14349 | |
| 14350 | # Is the header present? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14351 | { $as_echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 14352 | $as_echo_n "checking mach/cthreads.h presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14353 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14354 | /* confdefs.h. */ |
| 14355 | _ACEOF |
| 14356 | cat confdefs.h >>conftest.$ac_ext |
| 14357 | cat >>conftest.$ac_ext <<_ACEOF |
| 14358 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14359 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14360 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14361 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14362 | case "(($ac_try" in |
| 14363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14364 | *) ac_try_echo=$ac_try;; |
| 14365 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14367 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14368 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14369 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14370 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14371 | rm -f conftest.er1 |
| 14372 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14374 | (exit $ac_status); } >/dev/null && { |
| 14375 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14376 | test ! -s conftest.err |
| 14377 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14378 | ac_header_preproc=yes |
| 14379 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14380 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14382 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14383 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14384 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14386 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14387 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14388 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14389 | |
| 14390 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14391 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14392 | yes:no: ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14393 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14394 | $as_echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14395 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 14396 | $as_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] | 14397 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14398 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14399 | no:yes:* ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14400 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 14401 | $as_echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 14402 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 14403 | $as_echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 14404 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 14405 | $as_echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 14406 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14407 | $as_echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14408 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 14409 | $as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 14410 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 14411 | $as_echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14412 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14413 | ## ------------------------------------------------ ## |
| 14414 | ## Report this to http://www.python.org/python-bugs ## |
| 14415 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14416 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14417 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14418 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14419 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14420 | { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 14421 | $as_echo_n "checking for mach/cthreads.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14422 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14423 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14424 | else |
| 14425 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14426 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14427 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 14428 | $as_echo "$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14429 | |
| 14430 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14431 | if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14432 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14433 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14434 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14436 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14437 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14438 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14440 | |
| 14441 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14442 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14444 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14445 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14446 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14447 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14448 | { $as_echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 14449 | $as_echo_n "checking for --with-pth... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14450 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14451 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14452 | if test "${with_pth+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14453 | withval=$with_pth; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 14454 | $as_echo "$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14455 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14456 | #define WITH_THREAD 1 |
| 14457 | _ACEOF |
| 14458 | |
| 14459 | |
| 14460 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14461 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14462 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14463 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14464 | LIBS="-lpth $LIBS" |
| 14465 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14466 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14467 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14468 | $as_echo "no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14469 | |
| 14470 | # Just looking for pthread_create in libpthread is not enough: |
| 14471 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 14472 | # So we really have to include pthread.h, and then link. |
| 14473 | _libs=$LIBS |
| 14474 | LIBS="$LIBS -lpthread" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14475 | { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 14476 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14477 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14478 | /* confdefs.h. */ |
| 14479 | _ACEOF |
| 14480 | cat confdefs.h >>conftest.$ac_ext |
| 14481 | cat >>conftest.$ac_ext <<_ACEOF |
| 14482 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14483 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14484 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14485 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14486 | int |
| 14487 | main () |
| 14488 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14489 | |
| 14490 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14491 | ; |
| 14492 | return 0; |
| 14493 | } |
| 14494 | _ACEOF |
| 14495 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14496 | if { (ac_try="$ac_link" |
| 14497 | case "(($ac_try" in |
| 14498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14499 | *) ac_try_echo=$ac_try;; |
| 14500 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14501 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14502 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14503 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14504 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14506 | rm -f conftest.er1 |
| 14507 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14509 | (exit $ac_status); } && { |
| 14510 | test -z "$ac_c_werror_flag" || |
| 14511 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14512 | } && test -s conftest$ac_exeext && { |
| 14513 | test "$cross_compiling" = yes || |
| 14514 | $as_test_x conftest$ac_exeext |
| 14515 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14516 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14517 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14518 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14519 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14520 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14521 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14522 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14523 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14524 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14525 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14526 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14529 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14530 | LIBS=$_libs |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14531 | { $as_echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 14532 | $as_echo_n "checking for pthread_detach... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14533 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14534 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14536 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14537 | /* confdefs.h. */ |
| 14538 | _ACEOF |
| 14539 | cat confdefs.h >>conftest.$ac_ext |
| 14540 | cat >>conftest.$ac_ext <<_ACEOF |
| 14541 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14542 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 14543 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14544 | #define pthread_detach innocuous_pthread_detach |
| 14545 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14546 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14547 | which can conflict with char pthread_detach (); below. |
| 14548 | 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] | 14549 | <limits.h> exists even on freestanding compilers. */ |
| 14550 | |
| 14551 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14552 | # include <limits.h> |
| 14553 | #else |
| 14554 | # include <assert.h> |
| 14555 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14556 | |
| 14557 | #undef pthread_detach |
| 14558 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14559 | /* Override any GCC internal prototype to avoid an error. |
| 14560 | Use char because int might match the return type of a GCC |
| 14561 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14562 | #ifdef __cplusplus |
| 14563 | extern "C" |
| 14564 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14566 | /* The GNU C library defines this for functions which it implements |
| 14567 | to always fail with ENOSYS. Some functions are actually named |
| 14568 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14569 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14570 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14571 | #endif |
| 14572 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14573 | int |
| 14574 | main () |
| 14575 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14576 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14577 | ; |
| 14578 | return 0; |
| 14579 | } |
| 14580 | _ACEOF |
| 14581 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14582 | if { (ac_try="$ac_link" |
| 14583 | case "(($ac_try" in |
| 14584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14585 | *) ac_try_echo=$ac_try;; |
| 14586 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14587 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14588 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14589 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14590 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14592 | rm -f conftest.er1 |
| 14593 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14595 | (exit $ac_status); } && { |
| 14596 | test -z "$ac_c_werror_flag" || |
| 14597 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14598 | } && test -s conftest$ac_exeext && { |
| 14599 | test "$cross_compiling" = yes || |
| 14600 | $as_test_x conftest$ac_exeext |
| 14601 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14602 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14603 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14604 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14606 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14607 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14608 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14609 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14610 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14611 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14612 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14613 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14614 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 14615 | $as_echo "$ac_cv_func_pthread_detach" >&6; } |
| 14616 | if test "x$ac_cv_func_pthread_detach" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14617 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14618 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14619 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14620 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14621 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14622 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14623 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14624 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14625 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14626 | { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 14627 | $as_echo_n "checking for atheos/threads.h... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14628 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14629 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14630 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14631 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 14632 | $as_echo "$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14633 | else |
| 14634 | # Is the header compilable? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14635 | { $as_echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 14636 | $as_echo_n "checking atheos/threads.h usability... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14637 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14638 | /* confdefs.h. */ |
| 14639 | _ACEOF |
| 14640 | cat confdefs.h >>conftest.$ac_ext |
| 14641 | cat >>conftest.$ac_ext <<_ACEOF |
| 14642 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14643 | $ac_includes_default |
| 14644 | #include <atheos/threads.h> |
| 14645 | _ACEOF |
| 14646 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14647 | if { (ac_try="$ac_compile" |
| 14648 | case "(($ac_try" in |
| 14649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14650 | *) ac_try_echo=$ac_try;; |
| 14651 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14652 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14653 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14654 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14655 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14657 | rm -f conftest.er1 |
| 14658 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14659 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14660 | (exit $ac_status); } && { |
| 14661 | test -z "$ac_c_werror_flag" || |
| 14662 | test ! -s conftest.err |
| 14663 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14664 | ac_header_compiler=yes |
| 14665 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14666 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14668 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14669 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14670 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14671 | |
| 14672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14673 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14674 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14675 | |
| 14676 | # Is the header present? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14677 | { $as_echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 14678 | $as_echo_n "checking atheos/threads.h presence... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14679 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14680 | /* confdefs.h. */ |
| 14681 | _ACEOF |
| 14682 | cat confdefs.h >>conftest.$ac_ext |
| 14683 | cat >>conftest.$ac_ext <<_ACEOF |
| 14684 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14685 | #include <atheos/threads.h> |
| 14686 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14687 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14688 | case "(($ac_try" in |
| 14689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14690 | *) ac_try_echo=$ac_try;; |
| 14691 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14692 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14693 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14694 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14695 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14696 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14697 | rm -f conftest.er1 |
| 14698 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14699 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14700 | (exit $ac_status); } >/dev/null && { |
| 14701 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14702 | test ! -s conftest.err |
| 14703 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14704 | ac_header_preproc=yes |
| 14705 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14706 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14708 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14709 | ac_header_preproc=no |
| 14710 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14711 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14712 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14713 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14714 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14715 | |
| 14716 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14717 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14718 | yes:no: ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14719 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14720 | $as_echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14721 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 14722 | $as_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] | 14723 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14724 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14725 | no:yes:* ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14726 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 14727 | $as_echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 14728 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 14729 | $as_echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 14730 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 14731 | $as_echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 14732 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14733 | $as_echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14734 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 14735 | $as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 14736 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 14737 | $as_echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14738 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14739 | ## ------------------------------------------------ ## |
| 14740 | ## Report this to http://www.python.org/python-bugs ## |
| 14741 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14742 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14743 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14744 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14745 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14746 | { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 14747 | $as_echo_n "checking for atheos/threads.h... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14748 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14749 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14750 | else |
| 14751 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 14752 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14753 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 14754 | $as_echo "$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14755 | |
| 14756 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14757 | if test "x$ac_cv_header_atheos_threads_h" = x""yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14758 | cat >>confdefs.h <<\_ACEOF |
| 14759 | #define WITH_THREAD 1 |
| 14760 | _ACEOF |
| 14761 | |
| 14762 | |
| 14763 | cat >>confdefs.h <<\_ACEOF |
| 14764 | #define ATHEOS_THREADS 1 |
| 14765 | _ACEOF |
| 14766 | |
| 14767 | THREADOBJ="Python/thread.o" |
| 14768 | else |
| 14769 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14770 | { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 14771 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14772 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14773 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14774 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14775 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14776 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14777 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14778 | /* confdefs.h. */ |
| 14779 | _ACEOF |
| 14780 | cat confdefs.h >>conftest.$ac_ext |
| 14781 | cat >>conftest.$ac_ext <<_ACEOF |
| 14782 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14783 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14784 | /* Override any GCC internal prototype to avoid an error. |
| 14785 | Use char because int might match the return type of a GCC |
| 14786 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14787 | #ifdef __cplusplus |
| 14788 | extern "C" |
| 14789 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14790 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14791 | int |
| 14792 | main () |
| 14793 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14794 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14795 | ; |
| 14796 | return 0; |
| 14797 | } |
| 14798 | _ACEOF |
| 14799 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14800 | if { (ac_try="$ac_link" |
| 14801 | case "(($ac_try" in |
| 14802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14803 | *) ac_try_echo=$ac_try;; |
| 14804 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14805 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14806 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14807 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14808 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14810 | rm -f conftest.er1 |
| 14811 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14812 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14813 | (exit $ac_status); } && { |
| 14814 | test -z "$ac_c_werror_flag" || |
| 14815 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14816 | } && test -s conftest$ac_exeext && { |
| 14817 | test "$cross_compiling" = yes || |
| 14818 | $as_test_x conftest$ac_exeext |
| 14819 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14820 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14821 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14822 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14824 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14825 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14826 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14827 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14828 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14829 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14830 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14831 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14832 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14833 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 14834 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 14835 | if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14836 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14837 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14838 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14839 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14840 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14841 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14842 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14843 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14844 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14845 | { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 14846 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14847 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14848 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14850 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14851 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14852 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14853 | /* confdefs.h. */ |
| 14854 | _ACEOF |
| 14855 | cat confdefs.h >>conftest.$ac_ext |
| 14856 | cat >>conftest.$ac_ext <<_ACEOF |
| 14857 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14858 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14859 | /* Override any GCC internal prototype to avoid an error. |
| 14860 | Use char because int might match the return type of a GCC |
| 14861 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14862 | #ifdef __cplusplus |
| 14863 | extern "C" |
| 14864 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14865 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14866 | int |
| 14867 | main () |
| 14868 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14869 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14870 | ; |
| 14871 | return 0; |
| 14872 | } |
| 14873 | _ACEOF |
| 14874 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14875 | if { (ac_try="$ac_link" |
| 14876 | case "(($ac_try" in |
| 14877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14878 | *) ac_try_echo=$ac_try;; |
| 14879 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14881 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14882 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14883 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14885 | rm -f conftest.er1 |
| 14886 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14887 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14888 | (exit $ac_status); } && { |
| 14889 | test -z "$ac_c_werror_flag" || |
| 14890 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14891 | } && test -s conftest$ac_exeext && { |
| 14892 | test "$cross_compiling" = yes || |
| 14893 | $as_test_x conftest$ac_exeext |
| 14894 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14895 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14896 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14897 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14899 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14900 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14901 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14902 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14903 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14905 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14906 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14907 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14908 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 14909 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
| 14910 | if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14911 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14912 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14913 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14914 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14915 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14916 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14917 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 14918 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 14919 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14920 | { $as_echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 14921 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14922 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14923 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14924 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14925 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14926 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14927 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14928 | /* confdefs.h. */ |
| 14929 | _ACEOF |
| 14930 | cat confdefs.h >>conftest.$ac_ext |
| 14931 | cat >>conftest.$ac_ext <<_ACEOF |
| 14932 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14933 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14934 | /* Override any GCC internal prototype to avoid an error. |
| 14935 | Use char because int might match the return type of a GCC |
| 14936 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14937 | #ifdef __cplusplus |
| 14938 | extern "C" |
| 14939 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14940 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14941 | int |
| 14942 | main () |
| 14943 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14944 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14945 | ; |
| 14946 | return 0; |
| 14947 | } |
| 14948 | _ACEOF |
| 14949 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14950 | if { (ac_try="$ac_link" |
| 14951 | case "(($ac_try" in |
| 14952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14953 | *) ac_try_echo=$ac_try;; |
| 14954 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14955 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14956 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14957 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14958 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14960 | rm -f conftest.er1 |
| 14961 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14962 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14963 | (exit $ac_status); } && { |
| 14964 | test -z "$ac_c_werror_flag" || |
| 14965 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14966 | } && test -s conftest$ac_exeext && { |
| 14967 | test "$cross_compiling" = yes || |
| 14968 | $as_test_x conftest$ac_exeext |
| 14969 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14970 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14971 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14972 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14974 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14975 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14976 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14977 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14978 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14979 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14980 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14981 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14982 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14983 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 14984 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 14985 | if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14986 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14987 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14988 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14989 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14990 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14991 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14992 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14993 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14994 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14995 | { $as_echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 14996 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14997 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14998 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14999 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15000 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15001 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15002 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15003 | /* confdefs.h. */ |
| 15004 | _ACEOF |
| 15005 | cat confdefs.h >>conftest.$ac_ext |
| 15006 | cat >>conftest.$ac_ext <<_ACEOF |
| 15007 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15008 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15009 | /* Override any GCC internal prototype to avoid an error. |
| 15010 | Use char because int might match the return type of a GCC |
| 15011 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15012 | #ifdef __cplusplus |
| 15013 | extern "C" |
| 15014 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15015 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15016 | int |
| 15017 | main () |
| 15018 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15019 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | ; |
| 15021 | return 0; |
| 15022 | } |
| 15023 | _ACEOF |
| 15024 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15025 | if { (ac_try="$ac_link" |
| 15026 | case "(($ac_try" in |
| 15027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15028 | *) ac_try_echo=$ac_try;; |
| 15029 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15030 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15031 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15032 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15033 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15035 | rm -f conftest.er1 |
| 15036 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15037 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15038 | (exit $ac_status); } && { |
| 15039 | test -z "$ac_c_werror_flag" || |
| 15040 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15041 | } && test -s conftest$ac_exeext && { |
| 15042 | test "$cross_compiling" = yes || |
| 15043 | $as_test_x conftest$ac_exeext |
| 15044 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15045 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15046 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15047 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15049 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15050 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15051 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15052 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15053 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15054 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15055 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15056 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15057 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15058 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 15059 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
| 15060 | if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15061 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15062 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15063 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15064 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15065 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15066 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15067 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15068 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 15069 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15070 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 15071 | fi |
| 15072 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15073 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15074 | fi |
| 15075 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 15076 | fi |
| 15077 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15078 | fi |
| 15079 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15080 | fi |
| 15081 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15082 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15083 | fi |
| 15084 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15085 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15086 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15087 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15088 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15089 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15090 | fi |
| 15091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15092 | fi |
| 15093 | |
| 15094 | |
| 15095 | fi |
| 15096 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15097 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15098 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15099 | { $as_echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 15100 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15101 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15102 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15103 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15104 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15105 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15107 | /* confdefs.h. */ |
| 15108 | _ACEOF |
| 15109 | cat confdefs.h >>conftest.$ac_ext |
| 15110 | cat >>conftest.$ac_ext <<_ACEOF |
| 15111 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15112 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15113 | /* Override any GCC internal prototype to avoid an error. |
| 15114 | Use char because int might match the return type of a GCC |
| 15115 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15116 | #ifdef __cplusplus |
| 15117 | extern "C" |
| 15118 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15120 | int |
| 15121 | main () |
| 15122 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15123 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15124 | ; |
| 15125 | return 0; |
| 15126 | } |
| 15127 | _ACEOF |
| 15128 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15129 | if { (ac_try="$ac_link" |
| 15130 | case "(($ac_try" in |
| 15131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15132 | *) ac_try_echo=$ac_try;; |
| 15133 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15134 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15135 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15136 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15137 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15139 | rm -f conftest.er1 |
| 15140 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15141 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15142 | (exit $ac_status); } && { |
| 15143 | test -z "$ac_c_werror_flag" || |
| 15144 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15145 | } && test -s conftest$ac_exeext && { |
| 15146 | test "$cross_compiling" = yes || |
| 15147 | $as_test_x conftest$ac_exeext |
| 15148 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15150 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15151 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15153 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15154 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15155 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15156 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15157 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15158 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15159 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15160 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15161 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15162 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 15163 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
| 15164 | if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15165 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15166 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15167 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15168 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15169 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15170 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15171 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15172 | fi |
| 15173 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15174 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 15175 | if test "$posix_threads" != "yes"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15176 | { $as_echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 15177 | $as_echo_n "checking for thr_create in -lthread... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15178 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15179 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15181 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15182 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15183 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15184 | /* confdefs.h. */ |
| 15185 | _ACEOF |
| 15186 | cat confdefs.h >>conftest.$ac_ext |
| 15187 | cat >>conftest.$ac_ext <<_ACEOF |
| 15188 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15189 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15190 | /* Override any GCC internal prototype to avoid an error. |
| 15191 | Use char because int might match the return type of a GCC |
| 15192 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | #ifdef __cplusplus |
| 15194 | extern "C" |
| 15195 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15196 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15197 | int |
| 15198 | main () |
| 15199 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15200 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15201 | ; |
| 15202 | return 0; |
| 15203 | } |
| 15204 | _ACEOF |
| 15205 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15206 | if { (ac_try="$ac_link" |
| 15207 | case "(($ac_try" in |
| 15208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15209 | *) ac_try_echo=$ac_try;; |
| 15210 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15211 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15212 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15213 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15214 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15216 | rm -f conftest.er1 |
| 15217 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15218 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15219 | (exit $ac_status); } && { |
| 15220 | test -z "$ac_c_werror_flag" || |
| 15221 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15222 | } && test -s conftest$ac_exeext && { |
| 15223 | test "$cross_compiling" = yes || |
| 15224 | $as_test_x conftest$ac_exeext |
| 15225 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15226 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15227 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15228 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15230 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15231 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15232 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15233 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15234 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15235 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15236 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15237 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15238 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15239 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 15240 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } |
| 15241 | if test "x$ac_cv_lib_thread_thr_create" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15242 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15243 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15244 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15245 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15246 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15247 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15248 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15249 | fi |
| 15250 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15251 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15252 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15253 | if test "$USE_THREAD_MODULE" != "#" |
| 15254 | then |
| 15255 | # If the above checks didn't disable threads, (at least) OSF1 |
| 15256 | # needs this '-threads' argument during linking. |
| 15257 | case $ac_sys_system in |
| 15258 | OSF1) LDLAST=-threads;; |
| 15259 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 15260 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15261 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15262 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15263 | if test "$posix_threads" = "yes"; then |
| 15264 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15265 | |
| 15266 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15267 | #define _POSIX_THREADS 1 |
| 15268 | _ACEOF |
| 15269 | |
| 15270 | fi |
| 15271 | |
| 15272 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 15273 | case $ac_sys_system/$ac_sys_release in |
| 15274 | SunOS/5.6) |
| 15275 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15276 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 15277 | _ACEOF |
| 15278 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15279 | ;; |
| 15280 | SunOS/5.8) |
| 15281 | cat >>confdefs.h <<\_ACEOF |
| 15282 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 15283 | _ACEOF |
| 15284 | |
| 15285 | ;; |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 15286 | AIX/5) |
| 15287 | cat >>confdefs.h <<\_ACEOF |
| 15288 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 15289 | _ACEOF |
| 15290 | |
| 15291 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15292 | esac |
| 15293 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15294 | { $as_echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 15295 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15296 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15297 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15298 | else |
| 15299 | if test "$cross_compiling" = yes; then |
| 15300 | ac_cv_pthread_system_supported=no |
| 15301 | else |
| 15302 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15303 | /* confdefs.h. */ |
| 15304 | _ACEOF |
| 15305 | cat confdefs.h >>conftest.$ac_ext |
| 15306 | cat >>conftest.$ac_ext <<_ACEOF |
| 15307 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15308 | #include <pthread.h> |
| 15309 | void *foo(void *parm) { |
| 15310 | return NULL; |
| 15311 | } |
| 15312 | main() { |
| 15313 | pthread_attr_t attr; |
| 15314 | pthread_t id; |
| 15315 | if (pthread_attr_init(&attr)) exit(-1); |
| 15316 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 15317 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 15318 | exit(0); |
| 15319 | } |
| 15320 | _ACEOF |
| 15321 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15322 | if { (ac_try="$ac_link" |
| 15323 | case "(($ac_try" in |
| 15324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15325 | *) ac_try_echo=$ac_try;; |
| 15326 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15327 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15328 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15329 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15330 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15332 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15333 | { (case "(($ac_try" in |
| 15334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15335 | *) ac_try_echo=$ac_try;; |
| 15336 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15337 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15338 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15339 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15340 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15341 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15342 | (exit $ac_status); }; }; then |
| 15343 | ac_cv_pthread_system_supported=yes |
| 15344 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15345 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15346 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15348 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15349 | ( exit $ac_status ) |
| 15350 | ac_cv_pthread_system_supported=no |
| 15351 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15352 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15353 | 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] | 15354 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15355 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15356 | |
| 15357 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15358 | fi |
| 15359 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15360 | { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 15361 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15362 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 15363 | |
| 15364 | cat >>confdefs.h <<\_ACEOF |
| 15365 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 15366 | _ACEOF |
| 15367 | |
| 15368 | fi |
| 15369 | |
| 15370 | for ac_func in pthread_sigmask |
| 15371 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15372 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15373 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15374 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15375 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15376 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15377 | else |
| 15378 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15379 | /* confdefs.h. */ |
| 15380 | _ACEOF |
| 15381 | cat confdefs.h >>conftest.$ac_ext |
| 15382 | cat >>conftest.$ac_ext <<_ACEOF |
| 15383 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15384 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15385 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15386 | #define $ac_func innocuous_$ac_func |
| 15387 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15388 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15389 | which can conflict with char $ac_func (); below. |
| 15390 | 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] | 15391 | <limits.h> exists even on freestanding compilers. */ |
| 15392 | |
| 15393 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15394 | # include <limits.h> |
| 15395 | #else |
| 15396 | # include <assert.h> |
| 15397 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15398 | |
| 15399 | #undef $ac_func |
| 15400 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15401 | /* Override any GCC internal prototype to avoid an error. |
| 15402 | Use char because int might match the return type of a GCC |
| 15403 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15404 | #ifdef __cplusplus |
| 15405 | extern "C" |
| 15406 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15407 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15408 | /* The GNU C library defines this for functions which it implements |
| 15409 | to always fail with ENOSYS. Some functions are actually named |
| 15410 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15411 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15412 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15413 | #endif |
| 15414 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15415 | int |
| 15416 | main () |
| 15417 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15418 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15419 | ; |
| 15420 | return 0; |
| 15421 | } |
| 15422 | _ACEOF |
| 15423 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15424 | if { (ac_try="$ac_link" |
| 15425 | case "(($ac_try" in |
| 15426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15427 | *) ac_try_echo=$ac_try;; |
| 15428 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15429 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15430 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15431 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15432 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15434 | rm -f conftest.er1 |
| 15435 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15437 | (exit $ac_status); } && { |
| 15438 | test -z "$ac_c_werror_flag" || |
| 15439 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15440 | } && test -s conftest$ac_exeext && { |
| 15441 | test "$cross_compiling" = yes || |
| 15442 | $as_test_x conftest$ac_exeext |
| 15443 | }; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15444 | eval "$as_ac_var=yes" |
| 15445 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15446 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15448 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15449 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15450 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15451 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15452 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15453 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15454 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15455 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15456 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 15457 | $as_echo "$as_val"'` |
| 15458 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15459 | $as_echo "$ac_res" >&6; } |
| 15460 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 15461 | $as_echo "$as_val"'` |
| 15462 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15463 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15464 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15465 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 15466 | case $ac_sys_system in |
| 15467 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15468 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 15469 | cat >>confdefs.h <<\_ACEOF |
| 15470 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 15471 | _ACEOF |
| 15472 | |
| 15473 | ;; |
| 15474 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15475 | fi |
| 15476 | done |
| 15477 | |
| 15478 | fi |
| 15479 | |
| 15480 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15481 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15482 | |
| 15483 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15484 | { $as_echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 15485 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15486 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15487 | if test "${enable_ipv6+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15488 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15489 | no) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15490 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15491 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15492 | ipv6=no |
| 15493 | ;; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15494 | *) { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15495 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15496 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15497 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15498 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15499 | |
| 15500 | ipv6=yes |
| 15501 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15502 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15503 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15504 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15505 | if test "$cross_compiling" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15506 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15507 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15508 | ipv6=no |
| 15509 | |
| 15510 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15511 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15512 | /* confdefs.h. */ |
| 15513 | _ACEOF |
| 15514 | cat confdefs.h >>conftest.$ac_ext |
| 15515 | cat >>conftest.$ac_ext <<_ACEOF |
| 15516 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15517 | /* AF_INET6 available check */ |
| 15518 | #include <sys/types.h> |
| 15519 | #include <sys/socket.h> |
| 15520 | main() |
| 15521 | { |
| 15522 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 15523 | exit(1); |
| 15524 | else |
| 15525 | exit(0); |
| 15526 | } |
| 15527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15528 | _ACEOF |
| 15529 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15530 | if { (ac_try="$ac_link" |
| 15531 | case "(($ac_try" in |
| 15532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15533 | *) ac_try_echo=$ac_try;; |
| 15534 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15535 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15536 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15537 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15538 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15540 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15541 | { (case "(($ac_try" in |
| 15542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15543 | *) ac_try_echo=$ac_try;; |
| 15544 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15545 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15546 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15547 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15548 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15549 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15550 | (exit $ac_status); }; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15551 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15552 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15553 | ipv6=yes |
| 15554 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15555 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15556 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15559 | ( exit $ac_status ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15560 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15561 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15562 | ipv6=no |
| 15563 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15564 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15565 | 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] | 15566 | fi |
| 15567 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15568 | |
| 15569 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15570 | if test "$ipv6" = "yes"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15571 | { $as_echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 15572 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15573 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15574 | /* confdefs.h. */ |
| 15575 | _ACEOF |
| 15576 | cat confdefs.h >>conftest.$ac_ext |
| 15577 | cat >>conftest.$ac_ext <<_ACEOF |
| 15578 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15579 | #include <sys/types.h> |
| 15580 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15581 | int |
| 15582 | main () |
| 15583 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15584 | struct sockaddr_in6 x; |
| 15585 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15586 | ; |
| 15587 | return 0; |
| 15588 | } |
| 15589 | _ACEOF |
| 15590 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15591 | if { (ac_try="$ac_compile" |
| 15592 | case "(($ac_try" in |
| 15593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15594 | *) ac_try_echo=$ac_try;; |
| 15595 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15596 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15597 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15598 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15599 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15601 | rm -f conftest.er1 |
| 15602 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15604 | (exit $ac_status); } && { |
| 15605 | test -z "$ac_c_werror_flag" || |
| 15606 | test ! -s conftest.err |
| 15607 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15608 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15609 | $as_echo "yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15610 | ipv6=yes |
| 15611 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15612 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15614 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15615 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15616 | $as_echo "no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15617 | ipv6=no |
| 15618 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15619 | |
| 15620 | 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] | 15621 | fi |
| 15622 | |
| 15623 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15624 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15625 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15626 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15627 | |
| 15628 | fi |
| 15629 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15630 | fi |
| 15631 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15632 | |
| 15633 | ipv6type=unknown |
| 15634 | ipv6lib=none |
| 15635 | ipv6trylibc=no |
| 15636 | |
| 15637 | if test "$ipv6" = "yes"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15638 | { $as_echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 15639 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 15640 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 15641 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15642 | case $i in |
| 15643 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15644 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15645 | /* confdefs.h. */ |
| 15646 | _ACEOF |
| 15647 | cat confdefs.h >>conftest.$ac_ext |
| 15648 | cat >>conftest.$ac_ext <<_ACEOF |
| 15649 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15650 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15651 | #include <netinet/in.h> |
| 15652 | #ifdef IPV6_INRIA_VERSION |
| 15653 | yes |
| 15654 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15655 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15656 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15657 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 15658 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15659 | fi |
| 15660 | rm -f conftest* |
| 15661 | |
| 15662 | ;; |
| 15663 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15664 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15665 | /* confdefs.h. */ |
| 15666 | _ACEOF |
| 15667 | cat confdefs.h >>conftest.$ac_ext |
| 15668 | cat >>conftest.$ac_ext <<_ACEOF |
| 15669 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15670 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15671 | #include <netinet/in.h> |
| 15672 | #ifdef __KAME__ |
| 15673 | yes |
| 15674 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15675 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15676 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15677 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15678 | ipv6type=$i; |
| 15679 | ipv6lib=inet6 |
| 15680 | ipv6libdir=/usr/local/v6/lib |
| 15681 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15682 | fi |
| 15683 | rm -f conftest* |
| 15684 | |
| 15685 | ;; |
| 15686 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15687 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15688 | /* confdefs.h. */ |
| 15689 | _ACEOF |
| 15690 | cat confdefs.h >>conftest.$ac_ext |
| 15691 | cat >>conftest.$ac_ext <<_ACEOF |
| 15692 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15693 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15694 | #include <features.h> |
| 15695 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 15696 | yes |
| 15697 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15698 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15700 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15701 | ipv6type=$i; |
| 15702 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15703 | fi |
| 15704 | rm -f conftest* |
| 15705 | |
| 15706 | ;; |
| 15707 | linux-inet6) |
| 15708 | if test -d /usr/inet6; then |
| 15709 | ipv6type=$i |
| 15710 | ipv6lib=inet6 |
| 15711 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15712 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15713 | fi |
| 15714 | ;; |
| 15715 | solaris) |
| 15716 | if test -f /etc/netconfig; then |
| 15717 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 15718 | ipv6type=$i |
| 15719 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15720 | fi |
| 15721 | fi |
| 15722 | ;; |
| 15723 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15724 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15725 | /* confdefs.h. */ |
| 15726 | _ACEOF |
| 15727 | cat confdefs.h >>conftest.$ac_ext |
| 15728 | cat >>conftest.$ac_ext <<_ACEOF |
| 15729 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15730 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15731 | #include <sys/param.h> |
| 15732 | #ifdef _TOSHIBA_INET6 |
| 15733 | yes |
| 15734 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15735 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15736 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15737 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15738 | ipv6type=$i; |
| 15739 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 15740 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15741 | fi |
| 15742 | rm -f conftest* |
| 15743 | |
| 15744 | ;; |
| 15745 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15746 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15747 | /* confdefs.h. */ |
| 15748 | _ACEOF |
| 15749 | cat confdefs.h >>conftest.$ac_ext |
| 15750 | cat >>conftest.$ac_ext <<_ACEOF |
| 15751 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15752 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15753 | #include </usr/local/v6/include/sys/v6config.h> |
| 15754 | #ifdef __V6D__ |
| 15755 | yes |
| 15756 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15757 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15758 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15759 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15760 | ipv6type=$i; |
| 15761 | ipv6lib=v6; |
| 15762 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15763 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15764 | fi |
| 15765 | rm -f conftest* |
| 15766 | |
| 15767 | ;; |
| 15768 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15769 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15770 | /* confdefs.h. */ |
| 15771 | _ACEOF |
| 15772 | cat confdefs.h >>conftest.$ac_ext |
| 15773 | cat >>conftest.$ac_ext <<_ACEOF |
| 15774 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15775 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15776 | #include <sys/param.h> |
| 15777 | #ifdef _ZETA_MINAMI_INET6 |
| 15778 | yes |
| 15779 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15780 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15781 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15782 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15783 | ipv6type=$i; |
| 15784 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 15785 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15786 | fi |
| 15787 | rm -f conftest* |
| 15788 | |
| 15789 | ;; |
| 15790 | esac |
| 15791 | if test "$ipv6type" != "unknown"; then |
| 15792 | break |
| 15793 | fi |
| 15794 | done |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15795 | { $as_echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 15796 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15797 | fi |
| 15798 | |
| 15799 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 15800 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 15801 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 15802 | echo "using lib$ipv6lib" |
| 15803 | else |
| 15804 | if test $ipv6trylibc = "yes"; then |
| 15805 | echo "using libc" |
| 15806 | else |
| 15807 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 15808 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 15809 | echo 'ipv6 kit and compile beforehand.' |
| 15810 | exit 1 |
| 15811 | fi |
| 15812 | fi |
| 15813 | fi |
| 15814 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15815 | { $as_echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 15816 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 15817 | cat >conftest.$ac_ext <<_ACEOF |
| 15818 | /* confdefs.h. */ |
| 15819 | _ACEOF |
| 15820 | cat confdefs.h >>conftest.$ac_ext |
| 15821 | cat >>conftest.$ac_ext <<_ACEOF |
| 15822 | /* end confdefs.h. */ |
| 15823 | #include <Carbon/Carbon.h> |
| 15824 | int |
| 15825 | main () |
| 15826 | { |
| 15827 | FSIORefNum fRef = 0 |
| 15828 | ; |
| 15829 | return 0; |
| 15830 | } |
| 15831 | _ACEOF |
| 15832 | rm -f conftest.$ac_objext |
| 15833 | if { (ac_try="$ac_compile" |
| 15834 | case "(($ac_try" in |
| 15835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15836 | *) ac_try_echo=$ac_try;; |
| 15837 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15838 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15839 | $as_echo "$ac_try_echo") >&5 |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 15840 | (eval "$ac_compile") 2>conftest.er1 |
| 15841 | ac_status=$? |
| 15842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15843 | rm -f conftest.er1 |
| 15844 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 15846 | (exit $ac_status); } && { |
| 15847 | test -z "$ac_c_werror_flag" || |
| 15848 | test ! -s conftest.err |
| 15849 | } && test -s conftest.$ac_objext; then |
| 15850 | |
| 15851 | cat >>confdefs.h <<\_ACEOF |
| 15852 | #define HAVE_OSX105_SDK 1 |
| 15853 | _ACEOF |
| 15854 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15855 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15856 | $as_echo "yes" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 15857 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15858 | $as_echo "$as_me: failed program was:" >&5 |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 15859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15860 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15861 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15862 | $as_echo "no" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 15863 | |
| 15864 | fi |
| 15865 | |
| 15866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15867 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15868 | # Check for --with-doc-strings |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15869 | { $as_echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 15870 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15871 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15872 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15873 | if test "${with_doc_strings+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15874 | withval=$with_doc_strings; |
| 15875 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15876 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15877 | |
| 15878 | if test -z "$with_doc_strings" |
| 15879 | then with_doc_strings="yes" |
| 15880 | fi |
| 15881 | if test "$with_doc_strings" != "no" |
| 15882 | then |
| 15883 | |
| 15884 | cat >>confdefs.h <<\_ACEOF |
| 15885 | #define WITH_DOC_STRINGS 1 |
| 15886 | _ACEOF |
| 15887 | |
| 15888 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15889 | { $as_echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 15890 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15891 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 15892 | # Check for Python-specific malloc support |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15893 | { $as_echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 15894 | $as_echo_n "checking for --with-tsc... " >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15895 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15896 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15897 | if test "${with_tsc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15898 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15899 | if test "$withval" != no |
| 15900 | then |
| 15901 | |
| 15902 | cat >>confdefs.h <<\_ACEOF |
| 15903 | #define WITH_TSC 1 |
| 15904 | _ACEOF |
| 15905 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15906 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15907 | $as_echo "yes" >&6; } |
| 15908 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15909 | $as_echo "no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15910 | fi |
| 15911 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15912 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15913 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15914 | fi |
| 15915 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15916 | |
| 15917 | # Check for Python-specific malloc support |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15918 | { $as_echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 15919 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15921 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 15922 | if test "${with_pymalloc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15923 | withval=$with_pymalloc; |
| 15924 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15925 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 15926 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15927 | if test -z "$with_pymalloc" |
| 15928 | then with_pymalloc="yes" |
| 15929 | fi |
| 15930 | if test "$with_pymalloc" != "no" |
| 15931 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | |
| 15933 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15934 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15935 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15936 | |
| 15937 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15938 | { $as_echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 15939 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15940 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15941 | # Check for --with-wctype-functions |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15942 | { $as_echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 15943 | $as_echo_n "checking for --with-wctype-functions... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15944 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15945 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15946 | if test "${with_wctype_functions+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15947 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15948 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15949 | then |
| 15950 | |
| 15951 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15952 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15953 | _ACEOF |
| 15954 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15955 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15956 | $as_echo "yes" >&6; } |
| 15957 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15958 | $as_echo "no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15959 | fi |
| 15960 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15961 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15962 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15963 | fi |
| 15964 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15965 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15966 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15967 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 15968 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15969 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15970 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 15971 | # 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] | 15972 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15973 | for ac_func in dlopen |
| 15974 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15975 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15976 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15977 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15978 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15979 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15980 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15981 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15982 | /* confdefs.h. */ |
| 15983 | _ACEOF |
| 15984 | cat confdefs.h >>conftest.$ac_ext |
| 15985 | cat >>conftest.$ac_ext <<_ACEOF |
| 15986 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15987 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15988 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15989 | #define $ac_func innocuous_$ac_func |
| 15990 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15991 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15992 | which can conflict with char $ac_func (); below. |
| 15993 | 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] | 15994 | <limits.h> exists even on freestanding compilers. */ |
| 15995 | |
| 15996 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15997 | # include <limits.h> |
| 15998 | #else |
| 15999 | # include <assert.h> |
| 16000 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16001 | |
| 16002 | #undef $ac_func |
| 16003 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16004 | /* Override any GCC internal prototype to avoid an error. |
| 16005 | Use char because int might match the return type of a GCC |
| 16006 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16007 | #ifdef __cplusplus |
| 16008 | extern "C" |
| 16009 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16010 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16011 | /* The GNU C library defines this for functions which it implements |
| 16012 | to always fail with ENOSYS. Some functions are actually named |
| 16013 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16014 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16015 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16016 | #endif |
| 16017 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16018 | int |
| 16019 | main () |
| 16020 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16021 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | ; |
| 16023 | return 0; |
| 16024 | } |
| 16025 | _ACEOF |
| 16026 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16027 | if { (ac_try="$ac_link" |
| 16028 | case "(($ac_try" in |
| 16029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16030 | *) ac_try_echo=$ac_try;; |
| 16031 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16032 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16033 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16034 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16035 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16037 | rm -f conftest.er1 |
| 16038 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16039 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16040 | (exit $ac_status); } && { |
| 16041 | test -z "$ac_c_werror_flag" || |
| 16042 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16043 | } && test -s conftest$ac_exeext && { |
| 16044 | test "$cross_compiling" = yes || |
| 16045 | $as_test_x conftest$ac_exeext |
| 16046 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16047 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16048 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16049 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16051 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16052 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16053 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16054 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16055 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16056 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16057 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16058 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16059 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 16060 | $as_echo "$as_val"'` |
| 16061 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16062 | $as_echo "$ac_res" >&6; } |
| 16063 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 16064 | $as_echo "$as_val"'` |
| 16065 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16066 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16067 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16068 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16069 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16070 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16071 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16072 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16073 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16074 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 16075 | # loading of modules. |
| 16076 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16077 | { $as_echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 16078 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16079 | if test -z "$DYNLOADFILE" |
| 16080 | then |
| 16081 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 16082 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 16083 | if test "$ac_cv_func_dlopen" = yes |
| 16084 | then DYNLOADFILE="dynload_shlib.o" |
| 16085 | else DYNLOADFILE="dynload_aix.o" |
| 16086 | fi |
| 16087 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16088 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 16089 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 16090 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16091 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16092 | *) |
| 16093 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 16094 | # out any dynamic loading |
| 16095 | if test "$ac_cv_func_dlopen" = yes |
| 16096 | then DYNLOADFILE="dynload_shlib.o" |
| 16097 | else DYNLOADFILE="dynload_stub.o" |
| 16098 | fi |
| 16099 | ;; |
| 16100 | esac |
| 16101 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16102 | { $as_echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 16103 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16104 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 16105 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16106 | |
| 16107 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16108 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16109 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16110 | |
| 16111 | fi |
| 16112 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16113 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 16114 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16115 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16116 | { $as_echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 16117 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16118 | if test -z "$MACHDEP_OBJS" |
| 16119 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 16120 | MACHDEP_OBJS=$extra_machdep_objs |
| 16121 | else |
| 16122 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16123 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16124 | { $as_echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 16125 | $as_echo "MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16126 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16127 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16128 | |
| 16129 | |
| 16130 | |
| 16131 | |
| 16132 | |
| 16133 | |
| 16134 | |
| 16135 | |
| 16136 | |
| 16137 | |
| 16138 | |
| 16139 | |
| 16140 | |
| 16141 | |
| 16142 | |
| 16143 | |
| 16144 | |
| 16145 | |
| 16146 | |
| 16147 | |
| 16148 | |
| 16149 | |
| 16150 | |
| 16151 | |
| 16152 | |
| 16153 | |
| 16154 | |
| 16155 | |
| 16156 | |
| 16157 | |
| 16158 | |
| 16159 | |
| 16160 | |
| 16161 | |
| 16162 | |
| 16163 | |
| 16164 | |
| 16165 | |
| 16166 | |
| 16167 | |
| 16168 | |
| 16169 | |
| 16170 | |
| 16171 | |
| 16172 | |
| 16173 | |
| 16174 | |
| 16175 | |
| 16176 | |
| 16177 | |
| 16178 | |
| 16179 | |
| 16180 | |
| 16181 | |
| 16182 | |
| 16183 | |
| 16184 | |
| 16185 | |
| 16186 | |
| 16187 | |
| 16188 | |
| 16189 | |
| 16190 | |
| 16191 | |
| 16192 | |
| 16193 | |
| 16194 | |
| 16195 | |
| 16196 | |
| 16197 | |
| 16198 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16199 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 16200 | |
| 16201 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 16202 | |
| 16203 | |
Thomas Wouters | cf297e4 | 2007-02-23 15:07:44 +0000 | [diff] [blame] | 16204 | |
| 16205 | |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 16206 | |
Christian Heimes | 4e30a84 | 2007-11-30 22:12:06 +0000 | [diff] [blame] | 16207 | |
Martin v. Löwis | 92fab75 | 2008-03-08 10:40:41 +0000 | [diff] [blame] | 16208 | |
Martin v. Löwis | 823725e | 2008-03-24 13:39:54 +0000 | [diff] [blame] | 16209 | |
| 16210 | |
| 16211 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 16212 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 16213 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 16214 | getpriority getpwent getspnam getspent getsid getwd \ |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 16215 | kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 16216 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 16217 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16218 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 16219 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 16220 | sigaction siginterrupt sigrelse strftime strlcpy \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 16221 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 92fab75 | 2008-03-08 10:40:41 +0000 | [diff] [blame] | 16222 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll wcsxfrm _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16223 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16224 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16225 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16226 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16227 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16228 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16230 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16231 | /* confdefs.h. */ |
| 16232 | _ACEOF |
| 16233 | cat confdefs.h >>conftest.$ac_ext |
| 16234 | cat >>conftest.$ac_ext <<_ACEOF |
| 16235 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16236 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16237 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16238 | #define $ac_func innocuous_$ac_func |
| 16239 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16240 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16241 | which can conflict with char $ac_func (); below. |
| 16242 | 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] | 16243 | <limits.h> exists even on freestanding compilers. */ |
| 16244 | |
| 16245 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16246 | # include <limits.h> |
| 16247 | #else |
| 16248 | # include <assert.h> |
| 16249 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16250 | |
| 16251 | #undef $ac_func |
| 16252 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16253 | /* Override any GCC internal prototype to avoid an error. |
| 16254 | Use char because int might match the return type of a GCC |
| 16255 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16256 | #ifdef __cplusplus |
| 16257 | extern "C" |
| 16258 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16259 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16260 | /* The GNU C library defines this for functions which it implements |
| 16261 | to always fail with ENOSYS. Some functions are actually named |
| 16262 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16263 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16264 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16265 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16266 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16267 | int |
| 16268 | main () |
| 16269 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16270 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16271 | ; |
| 16272 | return 0; |
| 16273 | } |
| 16274 | _ACEOF |
| 16275 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16276 | if { (ac_try="$ac_link" |
| 16277 | case "(($ac_try" in |
| 16278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16279 | *) ac_try_echo=$ac_try;; |
| 16280 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16281 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16282 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16283 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16284 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16286 | rm -f conftest.er1 |
| 16287 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16288 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16289 | (exit $ac_status); } && { |
| 16290 | test -z "$ac_c_werror_flag" || |
| 16291 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16292 | } && test -s conftest$ac_exeext && { |
| 16293 | test "$cross_compiling" = yes || |
| 16294 | $as_test_x conftest$ac_exeext |
| 16295 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16296 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16297 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16298 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16300 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16301 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16302 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16303 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16304 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16305 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16306 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16307 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16308 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 16309 | $as_echo "$as_val"'` |
| 16310 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16311 | $as_echo "$ac_res" >&6; } |
| 16312 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 16313 | $as_echo "$as_val"'` |
| 16314 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16315 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16316 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16317 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16318 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16319 | fi |
| 16320 | done |
| 16321 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16322 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16323 | # For some functions, having a definition is not sufficient, since |
| 16324 | # we want to take their address. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16325 | { $as_echo "$as_me:$LINENO: checking for chroot" >&5 |
| 16326 | $as_echo_n "checking for chroot... " >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16327 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16328 | /* confdefs.h. */ |
| 16329 | _ACEOF |
| 16330 | cat confdefs.h >>conftest.$ac_ext |
| 16331 | cat >>conftest.$ac_ext <<_ACEOF |
| 16332 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16333 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16334 | int |
| 16335 | main () |
| 16336 | { |
| 16337 | void *x=chroot |
| 16338 | ; |
| 16339 | return 0; |
| 16340 | } |
| 16341 | _ACEOF |
| 16342 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16343 | if { (ac_try="$ac_compile" |
| 16344 | case "(($ac_try" in |
| 16345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16346 | *) ac_try_echo=$ac_try;; |
| 16347 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16348 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16349 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16350 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16351 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16353 | rm -f conftest.er1 |
| 16354 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16355 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16356 | (exit $ac_status); } && { |
| 16357 | test -z "$ac_c_werror_flag" || |
| 16358 | test ! -s conftest.err |
| 16359 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16360 | |
| 16361 | cat >>confdefs.h <<\_ACEOF |
| 16362 | #define HAVE_CHROOT 1 |
| 16363 | _ACEOF |
| 16364 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16365 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16366 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16367 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16368 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16370 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16371 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16372 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16373 | |
| 16374 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16375 | |
| 16376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16377 | { $as_echo "$as_me:$LINENO: checking for link" >&5 |
| 16378 | $as_echo_n "checking for link... " >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16379 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16380 | /* confdefs.h. */ |
| 16381 | _ACEOF |
| 16382 | cat confdefs.h >>conftest.$ac_ext |
| 16383 | cat >>conftest.$ac_ext <<_ACEOF |
| 16384 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16385 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16386 | int |
| 16387 | main () |
| 16388 | { |
| 16389 | void *x=link |
| 16390 | ; |
| 16391 | return 0; |
| 16392 | } |
| 16393 | _ACEOF |
| 16394 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16395 | if { (ac_try="$ac_compile" |
| 16396 | case "(($ac_try" in |
| 16397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16398 | *) ac_try_echo=$ac_try;; |
| 16399 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16400 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16401 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16402 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16403 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16405 | rm -f conftest.er1 |
| 16406 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16407 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16408 | (exit $ac_status); } && { |
| 16409 | test -z "$ac_c_werror_flag" || |
| 16410 | test ! -s conftest.err |
| 16411 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16412 | |
| 16413 | cat >>confdefs.h <<\_ACEOF |
| 16414 | #define HAVE_LINK 1 |
| 16415 | _ACEOF |
| 16416 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16417 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16418 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16419 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16420 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16422 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16423 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16424 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16425 | |
| 16426 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16427 | |
| 16428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16429 | { $as_echo "$as_me:$LINENO: checking for symlink" >&5 |
| 16430 | $as_echo_n "checking for symlink... " >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16431 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16432 | /* confdefs.h. */ |
| 16433 | _ACEOF |
| 16434 | cat confdefs.h >>conftest.$ac_ext |
| 16435 | cat >>conftest.$ac_ext <<_ACEOF |
| 16436 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16437 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16438 | int |
| 16439 | main () |
| 16440 | { |
| 16441 | void *x=symlink |
| 16442 | ; |
| 16443 | return 0; |
| 16444 | } |
| 16445 | _ACEOF |
| 16446 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16447 | if { (ac_try="$ac_compile" |
| 16448 | case "(($ac_try" in |
| 16449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16450 | *) ac_try_echo=$ac_try;; |
| 16451 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16452 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16453 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16454 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16455 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16457 | rm -f conftest.er1 |
| 16458 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16460 | (exit $ac_status); } && { |
| 16461 | test -z "$ac_c_werror_flag" || |
| 16462 | test ! -s conftest.err |
| 16463 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16464 | |
| 16465 | cat >>confdefs.h <<\_ACEOF |
| 16466 | #define HAVE_SYMLINK 1 |
| 16467 | _ACEOF |
| 16468 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16469 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16470 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16471 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16472 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16474 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16475 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16476 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16477 | |
| 16478 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16479 | |
| 16480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16481 | { $as_echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 16482 | $as_echo_n "checking for fchdir... " >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16483 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16484 | /* confdefs.h. */ |
| 16485 | _ACEOF |
| 16486 | cat confdefs.h >>conftest.$ac_ext |
| 16487 | cat >>conftest.$ac_ext <<_ACEOF |
| 16488 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16489 | #include <unistd.h> |
| 16490 | int |
| 16491 | main () |
| 16492 | { |
| 16493 | void *x=fchdir |
| 16494 | ; |
| 16495 | return 0; |
| 16496 | } |
| 16497 | _ACEOF |
| 16498 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16499 | if { (ac_try="$ac_compile" |
| 16500 | case "(($ac_try" in |
| 16501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16502 | *) ac_try_echo=$ac_try;; |
| 16503 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16505 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16506 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16507 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16509 | rm -f conftest.er1 |
| 16510 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16512 | (exit $ac_status); } && { |
| 16513 | test -z "$ac_c_werror_flag" || |
| 16514 | test ! -s conftest.err |
| 16515 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16516 | |
| 16517 | cat >>confdefs.h <<\_ACEOF |
| 16518 | #define HAVE_FCHDIR 1 |
| 16519 | _ACEOF |
| 16520 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16521 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16522 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16523 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16524 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16526 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16527 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16528 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16529 | |
| 16530 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16531 | |
| 16532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16533 | { $as_echo "$as_me:$LINENO: checking for fsync" >&5 |
| 16534 | $as_echo_n "checking for fsync... " >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16535 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16536 | /* confdefs.h. */ |
| 16537 | _ACEOF |
| 16538 | cat confdefs.h >>conftest.$ac_ext |
| 16539 | cat >>conftest.$ac_ext <<_ACEOF |
| 16540 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16541 | #include <unistd.h> |
| 16542 | int |
| 16543 | main () |
| 16544 | { |
| 16545 | void *x=fsync |
| 16546 | ; |
| 16547 | return 0; |
| 16548 | } |
| 16549 | _ACEOF |
| 16550 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16551 | if { (ac_try="$ac_compile" |
| 16552 | case "(($ac_try" in |
| 16553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16554 | *) ac_try_echo=$ac_try;; |
| 16555 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16556 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16557 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16558 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16559 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16561 | rm -f conftest.er1 |
| 16562 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16564 | (exit $ac_status); } && { |
| 16565 | test -z "$ac_c_werror_flag" || |
| 16566 | test ! -s conftest.err |
| 16567 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16568 | |
| 16569 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16570 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16571 | _ACEOF |
| 16572 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16573 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16574 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16575 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16576 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16578 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16579 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16580 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16581 | |
| 16582 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16583 | |
| 16584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16585 | { $as_echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 16586 | $as_echo_n "checking for fdatasync... " >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16587 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16588 | /* confdefs.h. */ |
| 16589 | _ACEOF |
| 16590 | cat confdefs.h >>conftest.$ac_ext |
| 16591 | cat >>conftest.$ac_ext <<_ACEOF |
| 16592 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16593 | #include <unistd.h> |
| 16594 | int |
| 16595 | main () |
| 16596 | { |
| 16597 | void *x=fdatasync |
| 16598 | ; |
| 16599 | return 0; |
| 16600 | } |
| 16601 | _ACEOF |
| 16602 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16603 | if { (ac_try="$ac_compile" |
| 16604 | case "(($ac_try" in |
| 16605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16606 | *) ac_try_echo=$ac_try;; |
| 16607 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16608 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16609 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16610 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16611 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16613 | rm -f conftest.er1 |
| 16614 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16615 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16616 | (exit $ac_status); } && { |
| 16617 | test -z "$ac_c_werror_flag" || |
| 16618 | test ! -s conftest.err |
| 16619 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16620 | |
| 16621 | cat >>confdefs.h <<\_ACEOF |
| 16622 | #define HAVE_FDATASYNC 1 |
| 16623 | _ACEOF |
| 16624 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16625 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16626 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16627 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16628 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16630 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16631 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16632 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16633 | |
| 16634 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16635 | |
| 16636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16637 | { $as_echo "$as_me:$LINENO: checking for epoll" >&5 |
| 16638 | $as_echo_n "checking for epoll... " >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16639 | cat >conftest.$ac_ext <<_ACEOF |
| 16640 | /* confdefs.h. */ |
| 16641 | _ACEOF |
| 16642 | cat confdefs.h >>conftest.$ac_ext |
| 16643 | cat >>conftest.$ac_ext <<_ACEOF |
| 16644 | /* end confdefs.h. */ |
| 16645 | #include <sys/epoll.h> |
| 16646 | int |
| 16647 | main () |
| 16648 | { |
| 16649 | void *x=epoll_create |
| 16650 | ; |
| 16651 | return 0; |
| 16652 | } |
| 16653 | _ACEOF |
| 16654 | rm -f conftest.$ac_objext |
| 16655 | if { (ac_try="$ac_compile" |
| 16656 | case "(($ac_try" in |
| 16657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16658 | *) ac_try_echo=$ac_try;; |
| 16659 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16660 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16661 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16662 | (eval "$ac_compile") 2>conftest.er1 |
| 16663 | ac_status=$? |
| 16664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16665 | rm -f conftest.er1 |
| 16666 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16667 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16668 | (exit $ac_status); } && { |
| 16669 | test -z "$ac_c_werror_flag" || |
| 16670 | test ! -s conftest.err |
| 16671 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16672 | |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16673 | cat >>confdefs.h <<\_ACEOF |
| 16674 | #define HAVE_EPOLL 1 |
| 16675 | _ACEOF |
| 16676 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16677 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16678 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16679 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16680 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16682 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16683 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16684 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16685 | |
| 16686 | fi |
| 16687 | |
| 16688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16689 | { $as_echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 16690 | $as_echo_n "checking for kqueue... " >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16691 | cat >conftest.$ac_ext <<_ACEOF |
| 16692 | /* confdefs.h. */ |
| 16693 | _ACEOF |
| 16694 | cat confdefs.h >>conftest.$ac_ext |
| 16695 | cat >>conftest.$ac_ext <<_ACEOF |
| 16696 | /* end confdefs.h. */ |
| 16697 | |
| 16698 | #include <sys/types.h> |
| 16699 | #include <sys/event.h> |
| 16700 | |
| 16701 | int |
| 16702 | main () |
| 16703 | { |
| 16704 | int x=kqueue() |
| 16705 | ; |
| 16706 | return 0; |
| 16707 | } |
| 16708 | _ACEOF |
| 16709 | rm -f conftest.$ac_objext |
| 16710 | if { (ac_try="$ac_compile" |
| 16711 | case "(($ac_try" in |
| 16712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16713 | *) ac_try_echo=$ac_try;; |
| 16714 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16716 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16717 | (eval "$ac_compile") 2>conftest.er1 |
| 16718 | ac_status=$? |
| 16719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16720 | rm -f conftest.er1 |
| 16721 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16722 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16723 | (exit $ac_status); } && { |
| 16724 | test -z "$ac_c_werror_flag" || |
| 16725 | test ! -s conftest.err |
| 16726 | } && test -s conftest.$ac_objext; then |
| 16727 | |
| 16728 | cat >>confdefs.h <<\_ACEOF |
| 16729 | #define HAVE_KQUEUE 1 |
| 16730 | _ACEOF |
| 16731 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16732 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16733 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16734 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16735 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16737 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16738 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16739 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16740 | |
| 16741 | fi |
| 16742 | |
| 16743 | 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] | 16744 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 16745 | # functions ctermid_r, setgroups in the library, but no prototype |
| 16746 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 16747 | # address to avoid compiler warnings and potential miscompilations |
| 16748 | # because of the missing prototypes. |
| 16749 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16750 | { $as_echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 16751 | $as_echo_n "checking for ctermid_r... " >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16752 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16753 | /* confdefs.h. */ |
| 16754 | _ACEOF |
| 16755 | cat confdefs.h >>conftest.$ac_ext |
| 16756 | cat >>conftest.$ac_ext <<_ACEOF |
| 16757 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16758 | |
| 16759 | #include "confdefs.h" |
| 16760 | #include <stdio.h> |
| 16761 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16762 | int |
| 16763 | main () |
| 16764 | { |
| 16765 | void* p = ctermid_r |
| 16766 | ; |
| 16767 | return 0; |
| 16768 | } |
| 16769 | _ACEOF |
| 16770 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16771 | if { (ac_try="$ac_compile" |
| 16772 | case "(($ac_try" in |
| 16773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16774 | *) ac_try_echo=$ac_try;; |
| 16775 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16776 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16777 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16778 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16779 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16781 | rm -f conftest.er1 |
| 16782 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16783 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16784 | (exit $ac_status); } && { |
| 16785 | test -z "$ac_c_werror_flag" || |
| 16786 | test ! -s conftest.err |
| 16787 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16788 | |
| 16789 | cat >>confdefs.h <<\_ACEOF |
| 16790 | #define HAVE_CTERMID_R 1 |
| 16791 | _ACEOF |
| 16792 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16793 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16794 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16795 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16796 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16798 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16799 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16800 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16801 | |
| 16802 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16803 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16805 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16806 | { $as_echo "$as_me:$LINENO: checking for flock" >&5 |
| 16807 | $as_echo_n "checking for flock... " >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16808 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16809 | /* confdefs.h. */ |
| 16810 | _ACEOF |
| 16811 | cat confdefs.h >>conftest.$ac_ext |
| 16812 | cat >>conftest.$ac_ext <<_ACEOF |
| 16813 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16814 | |
| 16815 | #include "confdefs.h" |
| 16816 | #include <sys/file.h> |
| 16817 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16818 | int |
| 16819 | main () |
| 16820 | { |
| 16821 | void* p = flock |
| 16822 | ; |
| 16823 | return 0; |
| 16824 | } |
| 16825 | _ACEOF |
| 16826 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16827 | if { (ac_try="$ac_compile" |
| 16828 | case "(($ac_try" in |
| 16829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16830 | *) ac_try_echo=$ac_try;; |
| 16831 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16832 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16833 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16834 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16835 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16837 | rm -f conftest.er1 |
| 16838 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16840 | (exit $ac_status); } && { |
| 16841 | test -z "$ac_c_werror_flag" || |
| 16842 | test ! -s conftest.err |
| 16843 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16844 | |
| 16845 | cat >>confdefs.h <<\_ACEOF |
| 16846 | #define HAVE_FLOCK 1 |
| 16847 | _ACEOF |
| 16848 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16849 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16850 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16851 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16852 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16854 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16855 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16856 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16857 | |
| 16858 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16859 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16861 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16862 | { $as_echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 16863 | $as_echo_n "checking for getpagesize... " >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16864 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16865 | /* confdefs.h. */ |
| 16866 | _ACEOF |
| 16867 | cat confdefs.h >>conftest.$ac_ext |
| 16868 | cat >>conftest.$ac_ext <<_ACEOF |
| 16869 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16870 | |
| 16871 | #include "confdefs.h" |
| 16872 | #include <unistd.h> |
| 16873 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16874 | int |
| 16875 | main () |
| 16876 | { |
| 16877 | void* p = getpagesize |
| 16878 | ; |
| 16879 | return 0; |
| 16880 | } |
| 16881 | _ACEOF |
| 16882 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16883 | if { (ac_try="$ac_compile" |
| 16884 | case "(($ac_try" in |
| 16885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16886 | *) ac_try_echo=$ac_try;; |
| 16887 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16888 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16889 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16890 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16891 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16893 | rm -f conftest.er1 |
| 16894 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16896 | (exit $ac_status); } && { |
| 16897 | test -z "$ac_c_werror_flag" || |
| 16898 | test ! -s conftest.err |
| 16899 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16900 | |
| 16901 | cat >>confdefs.h <<\_ACEOF |
| 16902 | #define HAVE_GETPAGESIZE 1 |
| 16903 | _ACEOF |
| 16904 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16905 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16906 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16907 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16908 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16910 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16911 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16912 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16913 | |
| 16914 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16915 | |
| 16916 | 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] | 16917 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16918 | for ac_prog in true |
| 16919 | do |
| 16920 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 16921 | set dummy $ac_prog; ac_word=$2 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16922 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 16923 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16924 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16925 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16926 | else |
| 16927 | if test -n "$TRUE"; then |
| 16928 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 16929 | else |
| 16930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16931 | for as_dir in $PATH |
| 16932 | do |
| 16933 | IFS=$as_save_IFS |
| 16934 | test -z "$as_dir" && as_dir=. |
| 16935 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16936 | 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] | 16937 | ac_cv_prog_TRUE="$ac_prog" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16938 | $as_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] | 16939 | break 2 |
| 16940 | fi |
| 16941 | done |
| 16942 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16943 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16944 | |
| 16945 | fi |
| 16946 | fi |
| 16947 | TRUE=$ac_cv_prog_TRUE |
| 16948 | if test -n "$TRUE"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16949 | { $as_echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 16950 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16951 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16952 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16953 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16954 | fi |
| 16955 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16956 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16957 | test -n "$TRUE" && break |
| 16958 | done |
| 16959 | test -n "$TRUE" || TRUE="/bin/true" |
| 16960 | |
| 16961 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16962 | { $as_echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 16963 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16964 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16965 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16966 | else |
| 16967 | ac_check_lib_save_LIBS=$LIBS |
| 16968 | LIBS="-lc $LIBS" |
| 16969 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16970 | /* confdefs.h. */ |
| 16971 | _ACEOF |
| 16972 | cat confdefs.h >>conftest.$ac_ext |
| 16973 | cat >>conftest.$ac_ext <<_ACEOF |
| 16974 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16975 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16976 | /* Override any GCC internal prototype to avoid an error. |
| 16977 | Use char because int might match the return type of a GCC |
| 16978 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16979 | #ifdef __cplusplus |
| 16980 | extern "C" |
| 16981 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16982 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16983 | int |
| 16984 | main () |
| 16985 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16986 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16987 | ; |
| 16988 | return 0; |
| 16989 | } |
| 16990 | _ACEOF |
| 16991 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16992 | if { (ac_try="$ac_link" |
| 16993 | case "(($ac_try" in |
| 16994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16995 | *) ac_try_echo=$ac_try;; |
| 16996 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16997 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16998 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16999 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17000 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17002 | rm -f conftest.er1 |
| 17003 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17004 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17005 | (exit $ac_status); } && { |
| 17006 | test -z "$ac_c_werror_flag" || |
| 17007 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17008 | } && test -s conftest$ac_exeext && { |
| 17009 | test "$cross_compiling" = yes || |
| 17010 | $as_test_x conftest$ac_exeext |
| 17011 | }; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17012 | ac_cv_lib_c_inet_aton=yes |
| 17013 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17014 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17016 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17017 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17018 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17019 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17020 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17021 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17022 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17023 | LIBS=$ac_check_lib_save_LIBS |
| 17024 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17025 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 17026 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
| 17027 | if test "x$ac_cv_lib_c_inet_aton" = x""yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17028 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17029 | else |
| 17030 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17031 | { $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 17032 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17033 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17034 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17035 | else |
| 17036 | ac_check_lib_save_LIBS=$LIBS |
| 17037 | LIBS="-lresolv $LIBS" |
| 17038 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17039 | /* confdefs.h. */ |
| 17040 | _ACEOF |
| 17041 | cat confdefs.h >>conftest.$ac_ext |
| 17042 | cat >>conftest.$ac_ext <<_ACEOF |
| 17043 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17044 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17045 | /* Override any GCC internal prototype to avoid an error. |
| 17046 | Use char because int might match the return type of a GCC |
| 17047 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17048 | #ifdef __cplusplus |
| 17049 | extern "C" |
| 17050 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17051 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17052 | int |
| 17053 | main () |
| 17054 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17055 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17056 | ; |
| 17057 | return 0; |
| 17058 | } |
| 17059 | _ACEOF |
| 17060 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17061 | if { (ac_try="$ac_link" |
| 17062 | case "(($ac_try" in |
| 17063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17064 | *) ac_try_echo=$ac_try;; |
| 17065 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17066 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17067 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17068 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17069 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17071 | rm -f conftest.er1 |
| 17072 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17073 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17074 | (exit $ac_status); } && { |
| 17075 | test -z "$ac_c_werror_flag" || |
| 17076 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17077 | } && test -s conftest$ac_exeext && { |
| 17078 | test "$cross_compiling" = yes || |
| 17079 | $as_test_x conftest$ac_exeext |
| 17080 | }; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17081 | ac_cv_lib_resolv_inet_aton=yes |
| 17082 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17083 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17085 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17086 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17087 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17088 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17089 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17091 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17092 | LIBS=$ac_check_lib_save_LIBS |
| 17093 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17094 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 17095 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
| 17096 | if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17097 | cat >>confdefs.h <<_ACEOF |
| 17098 | #define HAVE_LIBRESOLV 1 |
| 17099 | _ACEOF |
| 17100 | |
| 17101 | LIBS="-lresolv $LIBS" |
| 17102 | |
| 17103 | fi |
| 17104 | |
| 17105 | |
| 17106 | fi |
| 17107 | |
| 17108 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17109 | # On Tru64, chflags seems to be present, but calling it will |
| 17110 | # exit Python |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17111 | { $as_echo "$as_me:$LINENO: checking for chflags" >&5 |
| 17112 | $as_echo_n "checking for chflags... " >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17113 | if test "$cross_compiling" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17114 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 17115 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17116 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17117 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17118 | $as_echo "$as_me: error: cannot run test program while cross compiling |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17119 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17120 | { (exit 1); exit 1; }; }; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17121 | else |
| 17122 | cat >conftest.$ac_ext <<_ACEOF |
| 17123 | /* confdefs.h. */ |
| 17124 | _ACEOF |
| 17125 | cat confdefs.h >>conftest.$ac_ext |
| 17126 | cat >>conftest.$ac_ext <<_ACEOF |
| 17127 | /* end confdefs.h. */ |
| 17128 | |
| 17129 | #include <sys/stat.h> |
| 17130 | #include <unistd.h> |
| 17131 | int main(int argc, char*argv[]) |
| 17132 | { |
| 17133 | if(chflags(argv[0], 0) != 0) |
| 17134 | return 1; |
| 17135 | return 0; |
| 17136 | } |
| 17137 | |
| 17138 | _ACEOF |
| 17139 | rm -f conftest$ac_exeext |
| 17140 | if { (ac_try="$ac_link" |
| 17141 | case "(($ac_try" in |
| 17142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17143 | *) ac_try_echo=$ac_try;; |
| 17144 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17145 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17146 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17147 | (eval "$ac_link") 2>&5 |
| 17148 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17149 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17150 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17151 | { (case "(($ac_try" in |
| 17152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17153 | *) ac_try_echo=$ac_try;; |
| 17154 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17155 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17156 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17157 | (eval "$ac_try") 2>&5 |
| 17158 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17159 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17160 | (exit $ac_status); }; }; then |
| 17161 | |
| 17162 | cat >>confdefs.h <<\_ACEOF |
| 17163 | #define HAVE_CHFLAGS 1 |
| 17164 | _ACEOF |
| 17165 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17166 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17167 | $as_echo "yes" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17168 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17169 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 17170 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17172 | |
| 17173 | ( exit $ac_status ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17174 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17175 | $as_echo "no" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17176 | |
| 17177 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17178 | rm -rf conftest.dSYM |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17179 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17180 | fi |
| 17181 | |
| 17182 | |
| 17183 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17184 | { $as_echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 17185 | $as_echo_n "checking for lchflags... " >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17186 | if test "$cross_compiling" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17187 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 17188 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17189 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17190 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17191 | $as_echo "$as_me: error: cannot run test program while cross compiling |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17192 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17193 | { (exit 1); exit 1; }; }; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17194 | else |
| 17195 | cat >conftest.$ac_ext <<_ACEOF |
| 17196 | /* confdefs.h. */ |
| 17197 | _ACEOF |
| 17198 | cat confdefs.h >>conftest.$ac_ext |
| 17199 | cat >>conftest.$ac_ext <<_ACEOF |
| 17200 | /* end confdefs.h. */ |
| 17201 | |
| 17202 | #include <sys/stat.h> |
| 17203 | #include <unistd.h> |
| 17204 | int main(int argc, char*argv[]) |
| 17205 | { |
| 17206 | if(lchflags(argv[0], 0) != 0) |
| 17207 | return 1; |
| 17208 | return 0; |
| 17209 | } |
| 17210 | |
| 17211 | _ACEOF |
| 17212 | rm -f conftest$ac_exeext |
| 17213 | if { (ac_try="$ac_link" |
| 17214 | case "(($ac_try" in |
| 17215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17216 | *) ac_try_echo=$ac_try;; |
| 17217 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17218 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17219 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17220 | (eval "$ac_link") 2>&5 |
| 17221 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17222 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17223 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17224 | { (case "(($ac_try" in |
| 17225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17226 | *) ac_try_echo=$ac_try;; |
| 17227 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17228 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17229 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17230 | (eval "$ac_try") 2>&5 |
| 17231 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17232 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17233 | (exit $ac_status); }; }; then |
| 17234 | |
| 17235 | cat >>confdefs.h <<\_ACEOF |
| 17236 | #define HAVE_LCHFLAGS 1 |
| 17237 | _ACEOF |
| 17238 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17239 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17240 | $as_echo "yes" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17241 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17242 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 17243 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17245 | |
| 17246 | ( exit $ac_status ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17247 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17248 | $as_echo "no" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17249 | |
| 17250 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17251 | rm -rf conftest.dSYM |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17252 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17253 | fi |
| 17254 | |
| 17255 | |
| 17256 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17257 | case $ac_sys_system/$ac_sys_release in |
| 17258 | Darwin/*) |
| 17259 | _CUR_CFLAGS="${CFLAGS}" |
| 17260 | _CUR_LDFLAGS="${LDFLAGS}" |
| 17261 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 17262 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 17263 | ;; |
| 17264 | esac |
| 17265 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17266 | { $as_echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 17267 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17268 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17269 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17270 | else |
| 17271 | ac_check_lib_save_LIBS=$LIBS |
| 17272 | LIBS="-lz $LIBS" |
| 17273 | cat >conftest.$ac_ext <<_ACEOF |
| 17274 | /* confdefs.h. */ |
| 17275 | _ACEOF |
| 17276 | cat confdefs.h >>conftest.$ac_ext |
| 17277 | cat >>conftest.$ac_ext <<_ACEOF |
| 17278 | /* end confdefs.h. */ |
| 17279 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17280 | /* Override any GCC internal prototype to avoid an error. |
| 17281 | Use char because int might match the return type of a GCC |
| 17282 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17283 | #ifdef __cplusplus |
| 17284 | extern "C" |
| 17285 | #endif |
| 17286 | char inflateCopy (); |
| 17287 | int |
| 17288 | main () |
| 17289 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17290 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17291 | ; |
| 17292 | return 0; |
| 17293 | } |
| 17294 | _ACEOF |
| 17295 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17296 | if { (ac_try="$ac_link" |
| 17297 | case "(($ac_try" in |
| 17298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17299 | *) ac_try_echo=$ac_try;; |
| 17300 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17302 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17303 | (eval "$ac_link") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17304 | ac_status=$? |
| 17305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17306 | rm -f conftest.er1 |
| 17307 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17309 | (exit $ac_status); } && { |
| 17310 | test -z "$ac_c_werror_flag" || |
| 17311 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17312 | } && test -s conftest$ac_exeext && { |
| 17313 | test "$cross_compiling" = yes || |
| 17314 | $as_test_x conftest$ac_exeext |
| 17315 | }; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17316 | ac_cv_lib_z_inflateCopy=yes |
| 17317 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17318 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17320 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17321 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17322 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17323 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17324 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17325 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17326 | conftest$ac_exeext conftest.$ac_ext |
| 17327 | LIBS=$ac_check_lib_save_LIBS |
| 17328 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17329 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 17330 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
| 17331 | if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17332 | |
| 17333 | cat >>confdefs.h <<\_ACEOF |
| 17334 | #define HAVE_ZLIB_COPY 1 |
| 17335 | _ACEOF |
| 17336 | |
| 17337 | fi |
| 17338 | |
| 17339 | |
| 17340 | case $ac_sys_system/$ac_sys_release in |
| 17341 | Darwin/*) |
| 17342 | CFLAGS="${_CUR_CFLAGS}" |
| 17343 | LDFLAGS="${_CUR_LDFLAGS}" |
| 17344 | ;; |
| 17345 | esac |
| 17346 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17347 | { $as_echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 17348 | $as_echo_n "checking for hstrerror... " >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17349 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17350 | /* confdefs.h. */ |
| 17351 | _ACEOF |
| 17352 | cat confdefs.h >>conftest.$ac_ext |
| 17353 | cat >>conftest.$ac_ext <<_ACEOF |
| 17354 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17355 | |
| 17356 | #include "confdefs.h" |
| 17357 | #include <netdb.h> |
| 17358 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17359 | int |
| 17360 | main () |
| 17361 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17362 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17363 | ; |
| 17364 | return 0; |
| 17365 | } |
| 17366 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17367 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17368 | if { (ac_try="$ac_link" |
| 17369 | case "(($ac_try" in |
| 17370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17371 | *) ac_try_echo=$ac_try;; |
| 17372 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17373 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17374 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17375 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17376 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17378 | rm -f conftest.er1 |
| 17379 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17380 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17381 | (exit $ac_status); } && { |
| 17382 | test -z "$ac_c_werror_flag" || |
| 17383 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17384 | } && test -s conftest$ac_exeext && { |
| 17385 | test "$cross_compiling" = yes || |
| 17386 | $as_test_x conftest$ac_exeext |
| 17387 | }; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17388 | |
| 17389 | cat >>confdefs.h <<\_ACEOF |
| 17390 | #define HAVE_HSTRERROR 1 |
| 17391 | _ACEOF |
| 17392 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17393 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17394 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17395 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17396 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17398 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17399 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17400 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17401 | |
| 17402 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17403 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17404 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17405 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17406 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17407 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17408 | { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 17409 | $as_echo_n "checking for inet_aton... " >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17410 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17411 | /* confdefs.h. */ |
| 17412 | _ACEOF |
| 17413 | cat confdefs.h >>conftest.$ac_ext |
| 17414 | cat >>conftest.$ac_ext <<_ACEOF |
| 17415 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17416 | |
| 17417 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 17418 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17419 | #include <sys/socket.h> |
| 17420 | #include <netinet/in.h> |
| 17421 | #include <arpa/inet.h> |
| 17422 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17423 | int |
| 17424 | main () |
| 17425 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17426 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17427 | ; |
| 17428 | return 0; |
| 17429 | } |
| 17430 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17431 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17432 | if { (ac_try="$ac_link" |
| 17433 | case "(($ac_try" in |
| 17434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17435 | *) ac_try_echo=$ac_try;; |
| 17436 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17437 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17438 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17439 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17440 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17442 | rm -f conftest.er1 |
| 17443 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17445 | (exit $ac_status); } && { |
| 17446 | test -z "$ac_c_werror_flag" || |
| 17447 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17448 | } && test -s conftest$ac_exeext && { |
| 17449 | test "$cross_compiling" = yes || |
| 17450 | $as_test_x conftest$ac_exeext |
| 17451 | }; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17452 | |
| 17453 | cat >>confdefs.h <<\_ACEOF |
| 17454 | #define HAVE_INET_ATON 1 |
| 17455 | _ACEOF |
| 17456 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17457 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17458 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17459 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17460 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17462 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17463 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17464 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17465 | |
| 17466 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17467 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17468 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17469 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17470 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17471 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17472 | { $as_echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 17473 | $as_echo_n "checking for inet_pton... " >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17474 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17475 | /* confdefs.h. */ |
| 17476 | _ACEOF |
| 17477 | cat confdefs.h >>conftest.$ac_ext |
| 17478 | cat >>conftest.$ac_ext <<_ACEOF |
| 17479 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17480 | |
| 17481 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 17482 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17483 | #include <sys/socket.h> |
| 17484 | #include <netinet/in.h> |
| 17485 | #include <arpa/inet.h> |
| 17486 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17487 | int |
| 17488 | main () |
| 17489 | { |
| 17490 | void* p = inet_pton |
| 17491 | ; |
| 17492 | return 0; |
| 17493 | } |
| 17494 | _ACEOF |
| 17495 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17496 | if { (ac_try="$ac_compile" |
| 17497 | case "(($ac_try" in |
| 17498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17499 | *) ac_try_echo=$ac_try;; |
| 17500 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17501 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17502 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17503 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17504 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17506 | rm -f conftest.er1 |
| 17507 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17509 | (exit $ac_status); } && { |
| 17510 | test -z "$ac_c_werror_flag" || |
| 17511 | test ! -s conftest.err |
| 17512 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17513 | |
| 17514 | cat >>confdefs.h <<\_ACEOF |
| 17515 | #define HAVE_INET_PTON 1 |
| 17516 | _ACEOF |
| 17517 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17518 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17519 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17520 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17521 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17523 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17524 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17525 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17526 | |
| 17527 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17528 | |
| 17529 | 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] | 17530 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 17531 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17532 | { $as_echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 17533 | $as_echo_n "checking for setgroups... " >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17534 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17535 | /* confdefs.h. */ |
| 17536 | _ACEOF |
| 17537 | cat confdefs.h >>conftest.$ac_ext |
| 17538 | cat >>conftest.$ac_ext <<_ACEOF |
| 17539 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17540 | |
| 17541 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 17542 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 17543 | #ifdef HAVE_GRP_H |
| 17544 | #include <grp.h> |
| 17545 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17546 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17547 | int |
| 17548 | main () |
| 17549 | { |
| 17550 | void* p = setgroups |
| 17551 | ; |
| 17552 | return 0; |
| 17553 | } |
| 17554 | _ACEOF |
| 17555 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17556 | if { (ac_try="$ac_compile" |
| 17557 | case "(($ac_try" in |
| 17558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17559 | *) ac_try_echo=$ac_try;; |
| 17560 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17561 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17562 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17563 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17566 | rm -f conftest.er1 |
| 17567 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17568 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17569 | (exit $ac_status); } && { |
| 17570 | test -z "$ac_c_werror_flag" || |
| 17571 | test ! -s conftest.err |
| 17572 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17573 | |
| 17574 | cat >>confdefs.h <<\_ACEOF |
| 17575 | #define HAVE_SETGROUPS 1 |
| 17576 | _ACEOF |
| 17577 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17578 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17579 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17580 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17581 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17583 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17584 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17585 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17586 | |
| 17587 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17588 | |
| 17589 | 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] | 17590 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17591 | # check for openpty and forkpty |
| 17592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17593 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17594 | for ac_func in openpty |
| 17595 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17596 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17597 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17598 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17599 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17600 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17602 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17603 | /* confdefs.h. */ |
| 17604 | _ACEOF |
| 17605 | cat confdefs.h >>conftest.$ac_ext |
| 17606 | cat >>conftest.$ac_ext <<_ACEOF |
| 17607 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17608 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17609 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17610 | #define $ac_func innocuous_$ac_func |
| 17611 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17612 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17613 | which can conflict with char $ac_func (); below. |
| 17614 | 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] | 17615 | <limits.h> exists even on freestanding compilers. */ |
| 17616 | |
| 17617 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17618 | # include <limits.h> |
| 17619 | #else |
| 17620 | # include <assert.h> |
| 17621 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17622 | |
| 17623 | #undef $ac_func |
| 17624 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17625 | /* Override any GCC internal prototype to avoid an error. |
| 17626 | Use char because int might match the return type of a GCC |
| 17627 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17628 | #ifdef __cplusplus |
| 17629 | extern "C" |
| 17630 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17631 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17632 | /* The GNU C library defines this for functions which it implements |
| 17633 | to always fail with ENOSYS. Some functions are actually named |
| 17634 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17635 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17636 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17637 | #endif |
| 17638 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17639 | int |
| 17640 | main () |
| 17641 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17642 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17643 | ; |
| 17644 | return 0; |
| 17645 | } |
| 17646 | _ACEOF |
| 17647 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17648 | if { (ac_try="$ac_link" |
| 17649 | case "(($ac_try" in |
| 17650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17651 | *) ac_try_echo=$ac_try;; |
| 17652 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17653 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17654 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17655 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17656 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17658 | rm -f conftest.er1 |
| 17659 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17660 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17661 | (exit $ac_status); } && { |
| 17662 | test -z "$ac_c_werror_flag" || |
| 17663 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17664 | } && test -s conftest$ac_exeext && { |
| 17665 | test "$cross_compiling" = yes || |
| 17666 | $as_test_x conftest$ac_exeext |
| 17667 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17668 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17669 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17670 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17672 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17673 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17674 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17675 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17676 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17677 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17678 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17679 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17680 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 17681 | $as_echo "$as_val"'` |
| 17682 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17683 | $as_echo "$ac_res" >&6; } |
| 17684 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 17685 | $as_echo "$as_val"'` |
| 17686 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17687 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17688 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17689 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17690 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17691 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17692 | { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 17693 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17694 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17695 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17696 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17697 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17698 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17699 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17700 | /* confdefs.h. */ |
| 17701 | _ACEOF |
| 17702 | cat confdefs.h >>conftest.$ac_ext |
| 17703 | cat >>conftest.$ac_ext <<_ACEOF |
| 17704 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17705 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17706 | /* Override any GCC internal prototype to avoid an error. |
| 17707 | Use char because int might match the return type of a GCC |
| 17708 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17709 | #ifdef __cplusplus |
| 17710 | extern "C" |
| 17711 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17712 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17713 | int |
| 17714 | main () |
| 17715 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17716 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17717 | ; |
| 17718 | return 0; |
| 17719 | } |
| 17720 | _ACEOF |
| 17721 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17722 | if { (ac_try="$ac_link" |
| 17723 | case "(($ac_try" in |
| 17724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17725 | *) ac_try_echo=$ac_try;; |
| 17726 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17728 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17729 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17730 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17732 | rm -f conftest.er1 |
| 17733 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17735 | (exit $ac_status); } && { |
| 17736 | test -z "$ac_c_werror_flag" || |
| 17737 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17738 | } && test -s conftest$ac_exeext && { |
| 17739 | test "$cross_compiling" = yes || |
| 17740 | $as_test_x conftest$ac_exeext |
| 17741 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17742 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17743 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17744 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17746 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17747 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17748 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17749 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17750 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17751 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17752 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17753 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17754 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17755 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 17756 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
| 17757 | if test "x$ac_cv_lib_util_openpty" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17758 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17759 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17760 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17761 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17762 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17763 | { $as_echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 17764 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17765 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17766 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17767 | else |
| 17768 | ac_check_lib_save_LIBS=$LIBS |
| 17769 | LIBS="-lbsd $LIBS" |
| 17770 | cat >conftest.$ac_ext <<_ACEOF |
| 17771 | /* confdefs.h. */ |
| 17772 | _ACEOF |
| 17773 | cat confdefs.h >>conftest.$ac_ext |
| 17774 | cat >>conftest.$ac_ext <<_ACEOF |
| 17775 | /* end confdefs.h. */ |
| 17776 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17777 | /* Override any GCC internal prototype to avoid an error. |
| 17778 | Use char because int might match the return type of a GCC |
| 17779 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17780 | #ifdef __cplusplus |
| 17781 | extern "C" |
| 17782 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17783 | char openpty (); |
| 17784 | int |
| 17785 | main () |
| 17786 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17787 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17788 | ; |
| 17789 | return 0; |
| 17790 | } |
| 17791 | _ACEOF |
| 17792 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17793 | if { (ac_try="$ac_link" |
| 17794 | case "(($ac_try" in |
| 17795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17796 | *) ac_try_echo=$ac_try;; |
| 17797 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17799 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17800 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17801 | ac_status=$? |
| 17802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17803 | rm -f conftest.er1 |
| 17804 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17806 | (exit $ac_status); } && { |
| 17807 | test -z "$ac_c_werror_flag" || |
| 17808 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17809 | } && test -s conftest$ac_exeext && { |
| 17810 | test "$cross_compiling" = yes || |
| 17811 | $as_test_x conftest$ac_exeext |
| 17812 | }; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17813 | ac_cv_lib_bsd_openpty=yes |
| 17814 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17815 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17817 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17818 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17819 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17820 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17821 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17822 | 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] | 17823 | conftest$ac_exeext conftest.$ac_ext |
| 17824 | LIBS=$ac_check_lib_save_LIBS |
| 17825 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17826 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 17827 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
| 17828 | if test "x$ac_cv_lib_bsd_openpty" = x""yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17829 | cat >>confdefs.h <<\_ACEOF |
| 17830 | #define HAVE_OPENPTY 1 |
| 17831 | _ACEOF |
| 17832 | LIBS="$LIBS -lbsd" |
| 17833 | fi |
| 17834 | |
| 17835 | |
| 17836 | fi |
| 17837 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17838 | |
| 17839 | fi |
| 17840 | done |
| 17841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17842 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17843 | for ac_func in forkpty |
| 17844 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17845 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17846 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17847 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17848 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17849 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17851 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17852 | /* confdefs.h. */ |
| 17853 | _ACEOF |
| 17854 | cat confdefs.h >>conftest.$ac_ext |
| 17855 | cat >>conftest.$ac_ext <<_ACEOF |
| 17856 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17857 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17858 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17859 | #define $ac_func innocuous_$ac_func |
| 17860 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17861 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17862 | which can conflict with char $ac_func (); below. |
| 17863 | 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] | 17864 | <limits.h> exists even on freestanding compilers. */ |
| 17865 | |
| 17866 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17867 | # include <limits.h> |
| 17868 | #else |
| 17869 | # include <assert.h> |
| 17870 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17871 | |
| 17872 | #undef $ac_func |
| 17873 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17874 | /* Override any GCC internal prototype to avoid an error. |
| 17875 | Use char because int might match the return type of a GCC |
| 17876 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17877 | #ifdef __cplusplus |
| 17878 | extern "C" |
| 17879 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17880 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17881 | /* The GNU C library defines this for functions which it implements |
| 17882 | to always fail with ENOSYS. Some functions are actually named |
| 17883 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17884 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17885 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17886 | #endif |
| 17887 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17888 | int |
| 17889 | main () |
| 17890 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17891 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17892 | ; |
| 17893 | return 0; |
| 17894 | } |
| 17895 | _ACEOF |
| 17896 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17897 | if { (ac_try="$ac_link" |
| 17898 | case "(($ac_try" in |
| 17899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17900 | *) ac_try_echo=$ac_try;; |
| 17901 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17902 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17903 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17904 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17905 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17907 | rm -f conftest.er1 |
| 17908 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17910 | (exit $ac_status); } && { |
| 17911 | test -z "$ac_c_werror_flag" || |
| 17912 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17913 | } && test -s conftest$ac_exeext && { |
| 17914 | test "$cross_compiling" = yes || |
| 17915 | $as_test_x conftest$ac_exeext |
| 17916 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17917 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17918 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17919 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17921 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17922 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17923 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17924 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17925 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17926 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17927 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17928 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17929 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 17930 | $as_echo "$as_val"'` |
| 17931 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17932 | $as_echo "$ac_res" >&6; } |
| 17933 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 17934 | $as_echo "$as_val"'` |
| 17935 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17936 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17937 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17938 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17939 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17940 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17941 | { $as_echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 17942 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17943 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17944 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17945 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17946 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17947 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17948 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17949 | /* confdefs.h. */ |
| 17950 | _ACEOF |
| 17951 | cat confdefs.h >>conftest.$ac_ext |
| 17952 | cat >>conftest.$ac_ext <<_ACEOF |
| 17953 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17954 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17955 | /* Override any GCC internal prototype to avoid an error. |
| 17956 | Use char because int might match the return type of a GCC |
| 17957 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17958 | #ifdef __cplusplus |
| 17959 | extern "C" |
| 17960 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17961 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17962 | int |
| 17963 | main () |
| 17964 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17965 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17966 | ; |
| 17967 | return 0; |
| 17968 | } |
| 17969 | _ACEOF |
| 17970 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17971 | if { (ac_try="$ac_link" |
| 17972 | case "(($ac_try" in |
| 17973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17974 | *) ac_try_echo=$ac_try;; |
| 17975 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17976 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17977 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17978 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17979 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17981 | rm -f conftest.er1 |
| 17982 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17984 | (exit $ac_status); } && { |
| 17985 | test -z "$ac_c_werror_flag" || |
| 17986 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17987 | } && test -s conftest$ac_exeext && { |
| 17988 | test "$cross_compiling" = yes || |
| 17989 | $as_test_x conftest$ac_exeext |
| 17990 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17991 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17992 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17993 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17995 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17996 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17997 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17998 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 17999 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18000 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18001 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18002 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18003 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18004 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 18005 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
| 18006 | if test "x$ac_cv_lib_util_forkpty" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18007 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18008 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18009 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18010 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18011 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18012 | { $as_echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 18013 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18014 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18015 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18016 | else |
| 18017 | ac_check_lib_save_LIBS=$LIBS |
| 18018 | LIBS="-lbsd $LIBS" |
| 18019 | cat >conftest.$ac_ext <<_ACEOF |
| 18020 | /* confdefs.h. */ |
| 18021 | _ACEOF |
| 18022 | cat confdefs.h >>conftest.$ac_ext |
| 18023 | cat >>conftest.$ac_ext <<_ACEOF |
| 18024 | /* end confdefs.h. */ |
| 18025 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18026 | /* Override any GCC internal prototype to avoid an error. |
| 18027 | Use char because int might match the return type of a GCC |
| 18028 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18029 | #ifdef __cplusplus |
| 18030 | extern "C" |
| 18031 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18032 | char forkpty (); |
| 18033 | int |
| 18034 | main () |
| 18035 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18036 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18037 | ; |
| 18038 | return 0; |
| 18039 | } |
| 18040 | _ACEOF |
| 18041 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18042 | if { (ac_try="$ac_link" |
| 18043 | case "(($ac_try" in |
| 18044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18045 | *) ac_try_echo=$ac_try;; |
| 18046 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18047 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18048 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18049 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18050 | ac_status=$? |
| 18051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18052 | rm -f conftest.er1 |
| 18053 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18055 | (exit $ac_status); } && { |
| 18056 | test -z "$ac_c_werror_flag" || |
| 18057 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18058 | } && test -s conftest$ac_exeext && { |
| 18059 | test "$cross_compiling" = yes || |
| 18060 | $as_test_x conftest$ac_exeext |
| 18061 | }; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18062 | ac_cv_lib_bsd_forkpty=yes |
| 18063 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18064 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18066 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18067 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18068 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18069 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18070 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18071 | 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] | 18072 | conftest$ac_exeext conftest.$ac_ext |
| 18073 | LIBS=$ac_check_lib_save_LIBS |
| 18074 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18075 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 18076 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
| 18077 | if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18078 | cat >>confdefs.h <<\_ACEOF |
| 18079 | #define HAVE_FORKPTY 1 |
| 18080 | _ACEOF |
| 18081 | LIBS="$LIBS -lbsd" |
| 18082 | fi |
| 18083 | |
| 18084 | |
| 18085 | fi |
| 18086 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18087 | |
| 18088 | fi |
| 18089 | done |
| 18090 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18091 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18092 | # Stuff for expat. |
| 18093 | |
| 18094 | for ac_func in memmove |
| 18095 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18096 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18097 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18098 | $as_echo_n "checking for $ac_func... " >&6; } |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18099 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18100 | $as_echo_n "(cached) " >&6 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18101 | else |
| 18102 | cat >conftest.$ac_ext <<_ACEOF |
| 18103 | /* confdefs.h. */ |
| 18104 | _ACEOF |
| 18105 | cat confdefs.h >>conftest.$ac_ext |
| 18106 | cat >>conftest.$ac_ext <<_ACEOF |
| 18107 | /* end confdefs.h. */ |
| 18108 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18109 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18110 | #define $ac_func innocuous_$ac_func |
| 18111 | |
| 18112 | /* System header to define __stub macros and hopefully few prototypes, |
| 18113 | which can conflict with char $ac_func (); below. |
| 18114 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18115 | <limits.h> exists even on freestanding compilers. */ |
| 18116 | |
| 18117 | #ifdef __STDC__ |
| 18118 | # include <limits.h> |
| 18119 | #else |
| 18120 | # include <assert.h> |
| 18121 | #endif |
| 18122 | |
| 18123 | #undef $ac_func |
| 18124 | |
| 18125 | /* Override any GCC internal prototype to avoid an error. |
| 18126 | Use char because int might match the return type of a GCC |
| 18127 | builtin and then its argument prototype would still apply. */ |
| 18128 | #ifdef __cplusplus |
| 18129 | extern "C" |
| 18130 | #endif |
| 18131 | char $ac_func (); |
| 18132 | /* The GNU C library defines this for functions which it implements |
| 18133 | to always fail with ENOSYS. Some functions are actually named |
| 18134 | something starting with __ and the normal name is an alias. */ |
| 18135 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18136 | choke me |
| 18137 | #endif |
| 18138 | |
| 18139 | int |
| 18140 | main () |
| 18141 | { |
| 18142 | return $ac_func (); |
| 18143 | ; |
| 18144 | return 0; |
| 18145 | } |
| 18146 | _ACEOF |
| 18147 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18148 | if { (ac_try="$ac_link" |
| 18149 | case "(($ac_try" in |
| 18150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18151 | *) ac_try_echo=$ac_try;; |
| 18152 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18153 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18154 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18155 | (eval "$ac_link") 2>conftest.er1 |
| 18156 | ac_status=$? |
| 18157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18158 | rm -f conftest.er1 |
| 18159 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18160 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18161 | (exit $ac_status); } && { |
| 18162 | test -z "$ac_c_werror_flag" || |
| 18163 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18164 | } && test -s conftest$ac_exeext && { |
| 18165 | test "$cross_compiling" = yes || |
| 18166 | $as_test_x conftest$ac_exeext |
| 18167 | }; then |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18168 | eval "$as_ac_var=yes" |
| 18169 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18170 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18172 | |
| 18173 | eval "$as_ac_var=no" |
| 18174 | fi |
| 18175 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18176 | rm -rf conftest.dSYM |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18177 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 18178 | conftest$ac_exeext conftest.$ac_ext |
| 18179 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18180 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18181 | $as_echo "$as_val"'` |
| 18182 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18183 | $as_echo "$ac_res" >&6; } |
| 18184 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18185 | $as_echo "$as_val"'` |
| 18186 | if test "x$as_val" = x""yes; then |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18187 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18188 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18189 | _ACEOF |
| 18190 | |
| 18191 | fi |
| 18192 | done |
| 18193 | |
| 18194 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18195 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18196 | |
| 18197 | |
| 18198 | |
| 18199 | |
| 18200 | |
| 18201 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18202 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 18203 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18204 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18205 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18206 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18207 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18208 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18209 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18210 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18211 | /* confdefs.h. */ |
| 18212 | _ACEOF |
| 18213 | cat confdefs.h >>conftest.$ac_ext |
| 18214 | cat >>conftest.$ac_ext <<_ACEOF |
| 18215 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18216 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18217 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18218 | #define $ac_func innocuous_$ac_func |
| 18219 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18220 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18221 | which can conflict with char $ac_func (); below. |
| 18222 | 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] | 18223 | <limits.h> exists even on freestanding compilers. */ |
| 18224 | |
| 18225 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18226 | # include <limits.h> |
| 18227 | #else |
| 18228 | # include <assert.h> |
| 18229 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18230 | |
| 18231 | #undef $ac_func |
| 18232 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18233 | /* Override any GCC internal prototype to avoid an error. |
| 18234 | Use char because int might match the return type of a GCC |
| 18235 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18236 | #ifdef __cplusplus |
| 18237 | extern "C" |
| 18238 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18239 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18240 | /* The GNU C library defines this for functions which it implements |
| 18241 | to always fail with ENOSYS. Some functions are actually named |
| 18242 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18243 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18244 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18245 | #endif |
| 18246 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18247 | int |
| 18248 | main () |
| 18249 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18250 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18251 | ; |
| 18252 | return 0; |
| 18253 | } |
| 18254 | _ACEOF |
| 18255 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18256 | if { (ac_try="$ac_link" |
| 18257 | case "(($ac_try" in |
| 18258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18259 | *) ac_try_echo=$ac_try;; |
| 18260 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18261 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18262 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18263 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18264 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18266 | rm -f conftest.er1 |
| 18267 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18268 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18269 | (exit $ac_status); } && { |
| 18270 | test -z "$ac_c_werror_flag" || |
| 18271 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18272 | } && test -s conftest$ac_exeext && { |
| 18273 | test "$cross_compiling" = yes || |
| 18274 | $as_test_x conftest$ac_exeext |
| 18275 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18276 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18277 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18278 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18280 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18281 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18282 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18283 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18284 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18285 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18286 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18287 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18288 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18289 | $as_echo "$as_val"'` |
| 18290 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18291 | $as_echo "$ac_res" >&6; } |
| 18292 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18293 | $as_echo "$as_val"'` |
| 18294 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18295 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18296 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18297 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18298 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18299 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18300 | done |
| 18301 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18303 | |
| 18304 | |
| 18305 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18306 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18307 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18308 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18309 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18310 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18311 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18312 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18313 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18314 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18315 | /* confdefs.h. */ |
| 18316 | _ACEOF |
| 18317 | cat confdefs.h >>conftest.$ac_ext |
| 18318 | cat >>conftest.$ac_ext <<_ACEOF |
| 18319 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18320 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18321 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18322 | #define $ac_func innocuous_$ac_func |
| 18323 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18324 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18325 | which can conflict with char $ac_func (); below. |
| 18326 | 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] | 18327 | <limits.h> exists even on freestanding compilers. */ |
| 18328 | |
| 18329 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18330 | # include <limits.h> |
| 18331 | #else |
| 18332 | # include <assert.h> |
| 18333 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18334 | |
| 18335 | #undef $ac_func |
| 18336 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18337 | /* Override any GCC internal prototype to avoid an error. |
| 18338 | Use char because int might match the return type of a GCC |
| 18339 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18340 | #ifdef __cplusplus |
| 18341 | extern "C" |
| 18342 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18343 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18344 | /* The GNU C library defines this for functions which it implements |
| 18345 | to always fail with ENOSYS. Some functions are actually named |
| 18346 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18347 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18348 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18349 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18350 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18351 | int |
| 18352 | main () |
| 18353 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18354 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18355 | ; |
| 18356 | return 0; |
| 18357 | } |
| 18358 | _ACEOF |
| 18359 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18360 | if { (ac_try="$ac_link" |
| 18361 | case "(($ac_try" in |
| 18362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18363 | *) ac_try_echo=$ac_try;; |
| 18364 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18365 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18366 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18367 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18368 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18370 | rm -f conftest.er1 |
| 18371 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18372 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18373 | (exit $ac_status); } && { |
| 18374 | test -z "$ac_c_werror_flag" || |
| 18375 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18376 | } && test -s conftest$ac_exeext && { |
| 18377 | test "$cross_compiling" = yes || |
| 18378 | $as_test_x conftest$ac_exeext |
| 18379 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18380 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18381 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18382 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18384 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18385 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18386 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18387 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18388 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18389 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18390 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18391 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18392 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18393 | $as_echo "$as_val"'` |
| 18394 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18395 | $as_echo "$ac_res" >&6; } |
| 18396 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18397 | $as_echo "$as_val"'` |
| 18398 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18399 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18400 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18401 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18402 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18403 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18404 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18405 | *" $ac_func.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18406 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 18407 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18408 | esac |
| 18409 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18410 | fi |
| 18411 | done |
| 18412 | |
| 18413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18414 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18415 | for ac_func in getpgrp |
| 18416 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18417 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18418 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18419 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18420 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18421 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18423 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18424 | /* confdefs.h. */ |
| 18425 | _ACEOF |
| 18426 | cat confdefs.h >>conftest.$ac_ext |
| 18427 | cat >>conftest.$ac_ext <<_ACEOF |
| 18428 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18429 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18430 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18431 | #define $ac_func innocuous_$ac_func |
| 18432 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18433 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18434 | which can conflict with char $ac_func (); below. |
| 18435 | 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] | 18436 | <limits.h> exists even on freestanding compilers. */ |
| 18437 | |
| 18438 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18439 | # include <limits.h> |
| 18440 | #else |
| 18441 | # include <assert.h> |
| 18442 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18443 | |
| 18444 | #undef $ac_func |
| 18445 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18446 | /* Override any GCC internal prototype to avoid an error. |
| 18447 | Use char because int might match the return type of a GCC |
| 18448 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18449 | #ifdef __cplusplus |
| 18450 | extern "C" |
| 18451 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18452 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18453 | /* The GNU C library defines this for functions which it implements |
| 18454 | to always fail with ENOSYS. Some functions are actually named |
| 18455 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18456 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18457 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18458 | #endif |
| 18459 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18460 | int |
| 18461 | main () |
| 18462 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18463 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18464 | ; |
| 18465 | return 0; |
| 18466 | } |
| 18467 | _ACEOF |
| 18468 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18469 | if { (ac_try="$ac_link" |
| 18470 | case "(($ac_try" in |
| 18471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18472 | *) ac_try_echo=$ac_try;; |
| 18473 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18474 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18475 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18476 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18477 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18479 | rm -f conftest.er1 |
| 18480 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18481 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18482 | (exit $ac_status); } && { |
| 18483 | test -z "$ac_c_werror_flag" || |
| 18484 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18485 | } && test -s conftest$ac_exeext && { |
| 18486 | test "$cross_compiling" = yes || |
| 18487 | $as_test_x conftest$ac_exeext |
| 18488 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18489 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18490 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18491 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18493 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18494 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18495 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18496 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18497 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18498 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18499 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18500 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18501 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18502 | $as_echo "$as_val"'` |
| 18503 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18504 | $as_echo "$ac_res" >&6; } |
| 18505 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18506 | $as_echo "$as_val"'` |
| 18507 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18508 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18509 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18510 | _ACEOF |
| 18511 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18512 | /* confdefs.h. */ |
| 18513 | _ACEOF |
| 18514 | cat confdefs.h >>conftest.$ac_ext |
| 18515 | cat >>conftest.$ac_ext <<_ACEOF |
| 18516 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18517 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18518 | int |
| 18519 | main () |
| 18520 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18521 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18522 | ; |
| 18523 | return 0; |
| 18524 | } |
| 18525 | _ACEOF |
| 18526 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18527 | if { (ac_try="$ac_compile" |
| 18528 | case "(($ac_try" in |
| 18529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18530 | *) ac_try_echo=$ac_try;; |
| 18531 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18532 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18533 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18534 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18535 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18537 | rm -f conftest.er1 |
| 18538 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18540 | (exit $ac_status); } && { |
| 18541 | test -z "$ac_c_werror_flag" || |
| 18542 | test ! -s conftest.err |
| 18543 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18544 | |
| 18545 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18546 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18547 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18549 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18550 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18551 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18553 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18554 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18555 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18556 | |
| 18557 | 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] | 18558 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18559 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18560 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18561 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18562 | |
| 18563 | for ac_func in setpgrp |
| 18564 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18565 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18566 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18567 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18568 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18569 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18570 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18571 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18572 | /* confdefs.h. */ |
| 18573 | _ACEOF |
| 18574 | cat confdefs.h >>conftest.$ac_ext |
| 18575 | cat >>conftest.$ac_ext <<_ACEOF |
| 18576 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18577 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18578 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18579 | #define $ac_func innocuous_$ac_func |
| 18580 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18581 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18582 | which can conflict with char $ac_func (); below. |
| 18583 | 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] | 18584 | <limits.h> exists even on freestanding compilers. */ |
| 18585 | |
| 18586 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18587 | # include <limits.h> |
| 18588 | #else |
| 18589 | # include <assert.h> |
| 18590 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18591 | |
| 18592 | #undef $ac_func |
| 18593 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18594 | /* Override any GCC internal prototype to avoid an error. |
| 18595 | Use char because int might match the return type of a GCC |
| 18596 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18597 | #ifdef __cplusplus |
| 18598 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18599 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18600 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18601 | /* The GNU C library defines this for functions which it implements |
| 18602 | to always fail with ENOSYS. Some functions are actually named |
| 18603 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18604 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18605 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18606 | #endif |
| 18607 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18608 | int |
| 18609 | main () |
| 18610 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18611 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18612 | ; |
| 18613 | return 0; |
| 18614 | } |
| 18615 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18616 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18617 | if { (ac_try="$ac_link" |
| 18618 | case "(($ac_try" in |
| 18619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18620 | *) ac_try_echo=$ac_try;; |
| 18621 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18623 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18624 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18625 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18627 | rm -f conftest.er1 |
| 18628 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18630 | (exit $ac_status); } && { |
| 18631 | test -z "$ac_c_werror_flag" || |
| 18632 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18633 | } && test -s conftest$ac_exeext && { |
| 18634 | test "$cross_compiling" = yes || |
| 18635 | $as_test_x conftest$ac_exeext |
| 18636 | }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18637 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18638 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18639 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18641 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18642 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18643 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18644 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18645 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18646 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18647 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18648 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18649 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18650 | $as_echo "$as_val"'` |
| 18651 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18652 | $as_echo "$ac_res" >&6; } |
| 18653 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18654 | $as_echo "$as_val"'` |
| 18655 | if test "x$as_val" = x""yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18656 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18657 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18658 | _ACEOF |
| 18659 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18660 | /* confdefs.h. */ |
| 18661 | _ACEOF |
| 18662 | cat confdefs.h >>conftest.$ac_ext |
| 18663 | cat >>conftest.$ac_ext <<_ACEOF |
| 18664 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18665 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18666 | int |
| 18667 | main () |
| 18668 | { |
| 18669 | setpgrp(0,0); |
| 18670 | ; |
| 18671 | return 0; |
| 18672 | } |
| 18673 | _ACEOF |
| 18674 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18675 | if { (ac_try="$ac_compile" |
| 18676 | case "(($ac_try" in |
| 18677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18678 | *) ac_try_echo=$ac_try;; |
| 18679 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18680 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18681 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18682 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18683 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18685 | rm -f conftest.er1 |
| 18686 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18687 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18688 | (exit $ac_status); } && { |
| 18689 | test -z "$ac_c_werror_flag" || |
| 18690 | test ! -s conftest.err |
| 18691 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18692 | |
| 18693 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18694 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18695 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 18696 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18697 | |
| 18698 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18699 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18701 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18702 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 18703 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18704 | |
| 18705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18706 | |
| 18707 | fi |
| 18708 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 18709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18710 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18711 | for ac_func in gettimeofday |
| 18712 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18713 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18714 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18715 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18716 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18717 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18718 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18719 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18720 | /* confdefs.h. */ |
| 18721 | _ACEOF |
| 18722 | cat confdefs.h >>conftest.$ac_ext |
| 18723 | cat >>conftest.$ac_ext <<_ACEOF |
| 18724 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18725 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18726 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18727 | #define $ac_func innocuous_$ac_func |
| 18728 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18729 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18730 | which can conflict with char $ac_func (); below. |
| 18731 | 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] | 18732 | <limits.h> exists even on freestanding compilers. */ |
| 18733 | |
| 18734 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18735 | # include <limits.h> |
| 18736 | #else |
| 18737 | # include <assert.h> |
| 18738 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18739 | |
| 18740 | #undef $ac_func |
| 18741 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18742 | /* Override any GCC internal prototype to avoid an error. |
| 18743 | Use char because int might match the return type of a GCC |
| 18744 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18745 | #ifdef __cplusplus |
| 18746 | extern "C" |
| 18747 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18748 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18749 | /* The GNU C library defines this for functions which it implements |
| 18750 | to always fail with ENOSYS. Some functions are actually named |
| 18751 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18752 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18753 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18754 | #endif |
| 18755 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18756 | int |
| 18757 | main () |
| 18758 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18759 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18760 | ; |
| 18761 | return 0; |
| 18762 | } |
| 18763 | _ACEOF |
| 18764 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18765 | if { (ac_try="$ac_link" |
| 18766 | case "(($ac_try" in |
| 18767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18768 | *) ac_try_echo=$ac_try;; |
| 18769 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18770 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18771 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18772 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18773 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18775 | rm -f conftest.er1 |
| 18776 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18777 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18778 | (exit $ac_status); } && { |
| 18779 | test -z "$ac_c_werror_flag" || |
| 18780 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18781 | } && test -s conftest$ac_exeext && { |
| 18782 | test "$cross_compiling" = yes || |
| 18783 | $as_test_x conftest$ac_exeext |
| 18784 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18785 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18786 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18787 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18789 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18790 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18791 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18792 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18793 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18794 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18795 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18796 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18797 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18798 | $as_echo "$as_val"'` |
| 18799 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18800 | $as_echo "$ac_res" >&6; } |
| 18801 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18802 | $as_echo "$as_val"'` |
| 18803 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18804 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18805 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18806 | _ACEOF |
| 18807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18808 | /* confdefs.h. */ |
| 18809 | _ACEOF |
| 18810 | cat confdefs.h >>conftest.$ac_ext |
| 18811 | cat >>conftest.$ac_ext <<_ACEOF |
| 18812 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18813 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18814 | int |
| 18815 | main () |
| 18816 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18817 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18818 | ; |
| 18819 | return 0; |
| 18820 | } |
| 18821 | _ACEOF |
| 18822 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18823 | if { (ac_try="$ac_compile" |
| 18824 | case "(($ac_try" in |
| 18825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18826 | *) ac_try_echo=$ac_try;; |
| 18827 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18828 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18829 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18830 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18831 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18833 | rm -f conftest.er1 |
| 18834 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18836 | (exit $ac_status); } && { |
| 18837 | test -z "$ac_c_werror_flag" || |
| 18838 | test ! -s conftest.err |
| 18839 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18840 | : |
| 18841 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18842 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18845 | |
| 18846 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18847 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18848 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18850 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18851 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18852 | |
| 18853 | 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] | 18854 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18855 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18856 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18857 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18858 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18859 | { $as_echo "$as_me:$LINENO: checking for major" >&5 |
| 18860 | $as_echo_n "checking for major... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18861 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18862 | /* confdefs.h. */ |
| 18863 | _ACEOF |
| 18864 | cat confdefs.h >>conftest.$ac_ext |
| 18865 | cat >>conftest.$ac_ext <<_ACEOF |
| 18866 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18867 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 18868 | #if defined(MAJOR_IN_MKDEV) |
| 18869 | #include <sys/mkdev.h> |
| 18870 | #elif defined(MAJOR_IN_SYSMACROS) |
| 18871 | #include <sys/sysmacros.h> |
| 18872 | #else |
| 18873 | #include <sys/types.h> |
| 18874 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18875 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18876 | int |
| 18877 | main () |
| 18878 | { |
| 18879 | |
| 18880 | makedev(major(0),minor(0)); |
| 18881 | |
| 18882 | ; |
| 18883 | return 0; |
| 18884 | } |
| 18885 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 18886 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18887 | if { (ac_try="$ac_link" |
| 18888 | case "(($ac_try" in |
| 18889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18890 | *) ac_try_echo=$ac_try;; |
| 18891 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18892 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18893 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18894 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18895 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18897 | rm -f conftest.er1 |
| 18898 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18899 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18900 | (exit $ac_status); } && { |
| 18901 | test -z "$ac_c_werror_flag" || |
| 18902 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18903 | } && test -s conftest$ac_exeext && { |
| 18904 | test "$cross_compiling" = yes || |
| 18905 | $as_test_x conftest$ac_exeext |
| 18906 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18907 | |
| 18908 | |
| 18909 | cat >>confdefs.h <<\_ACEOF |
| 18910 | #define HAVE_DEVICE_MACROS 1 |
| 18911 | _ACEOF |
| 18912 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18913 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18914 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18915 | |
| 18916 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18917 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18919 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18920 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18921 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18922 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18923 | |
| 18924 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18925 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18926 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18927 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18928 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18929 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18930 | # 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] | 18931 | # for [no]getaddrinfo in netdb.h. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18932 | { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 18933 | $as_echo_n "checking for getaddrinfo... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18934 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18935 | /* confdefs.h. */ |
| 18936 | _ACEOF |
| 18937 | cat confdefs.h >>conftest.$ac_ext |
| 18938 | cat >>conftest.$ac_ext <<_ACEOF |
| 18939 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18940 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 18941 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18942 | #include <sys/socket.h> |
| 18943 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 18944 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18945 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18946 | int |
| 18947 | main () |
| 18948 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18949 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18950 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18952 | ; |
| 18953 | return 0; |
| 18954 | } |
| 18955 | _ACEOF |
| 18956 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18957 | if { (ac_try="$ac_link" |
| 18958 | case "(($ac_try" in |
| 18959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18960 | *) ac_try_echo=$ac_try;; |
| 18961 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18962 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18963 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18964 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18965 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18967 | rm -f conftest.er1 |
| 18968 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18969 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18970 | (exit $ac_status); } && { |
| 18971 | test -z "$ac_c_werror_flag" || |
| 18972 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18973 | } && test -s conftest$ac_exeext && { |
| 18974 | test "$cross_compiling" = yes || |
| 18975 | $as_test_x conftest$ac_exeext |
| 18976 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18977 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18978 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18979 | $as_echo "yes" >&6; } |
| 18980 | { $as_echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 18981 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18982 | if test "$cross_compiling" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 18983 | { $as_echo "$as_me:$LINENO: result: buggy" >&5 |
| 18984 | $as_echo "buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18985 | buggygetaddrinfo=yes |
| 18986 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18987 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18988 | /* confdefs.h. */ |
| 18989 | _ACEOF |
| 18990 | cat confdefs.h >>conftest.$ac_ext |
| 18991 | cat >>conftest.$ac_ext <<_ACEOF |
| 18992 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18993 | |
| 18994 | #include <sys/types.h> |
| 18995 | #include <netdb.h> |
| 18996 | #include <string.h> |
| 18997 | #include <sys/socket.h> |
| 18998 | #include <netinet/in.h> |
| 18999 | |
| 19000 | main() |
| 19001 | { |
| 19002 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 19003 | struct addrinfo hints, *ai, *aitop; |
| 19004 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 19005 | |
| 19006 | for (passive = 0; passive <= 1; passive++) { |
| 19007 | memset(&hints, 0, sizeof(hints)); |
| 19008 | hints.ai_family = AF_UNSPEC; |
| 19009 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 19010 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 19011 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19012 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 19013 | (void)gai_strerror(gaierr); |
| 19014 | goto bad; |
| 19015 | } |
| 19016 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 19017 | if (ai->ai_addr == NULL || |
| 19018 | ai->ai_addrlen == 0 || |
| 19019 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 19020 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 19021 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 19022 | goto bad; |
| 19023 | } |
| 19024 | switch (ai->ai_family) { |
| 19025 | case AF_INET: |
| 19026 | if (strcmp(strport, "54321") != 0) { |
| 19027 | goto bad; |
| 19028 | } |
| 19029 | if (passive) { |
| 19030 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 19031 | goto bad; |
| 19032 | } |
| 19033 | } else { |
| 19034 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 19035 | goto bad; |
| 19036 | } |
| 19037 | } |
| 19038 | inet4++; |
| 19039 | break; |
| 19040 | case AF_INET6: |
| 19041 | if (strcmp(strport, "54321") != 0) { |
| 19042 | goto bad; |
| 19043 | } |
| 19044 | if (passive) { |
| 19045 | if (strcmp(straddr, "::") != 0) { |
| 19046 | goto bad; |
| 19047 | } |
| 19048 | } else { |
| 19049 | if (strcmp(straddr, "::1") != 0) { |
| 19050 | goto bad; |
| 19051 | } |
| 19052 | } |
| 19053 | inet6++; |
| 19054 | break; |
| 19055 | case AF_UNSPEC: |
| 19056 | goto bad; |
| 19057 | break; |
| 19058 | default: |
| 19059 | /* another family support? */ |
| 19060 | break; |
| 19061 | } |
| 19062 | } |
| 19063 | } |
| 19064 | |
| 19065 | if (!(inet4 == 0 || inet4 == 2)) |
| 19066 | goto bad; |
| 19067 | if (!(inet6 == 0 || inet6 == 2)) |
| 19068 | goto bad; |
| 19069 | |
| 19070 | if (aitop) |
| 19071 | freeaddrinfo(aitop); |
| 19072 | exit(0); |
| 19073 | |
| 19074 | bad: |
| 19075 | if (aitop) |
| 19076 | freeaddrinfo(aitop); |
| 19077 | exit(1); |
| 19078 | } |
| 19079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19080 | _ACEOF |
| 19081 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19082 | if { (ac_try="$ac_link" |
| 19083 | case "(($ac_try" in |
| 19084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19085 | *) ac_try_echo=$ac_try;; |
| 19086 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19087 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19088 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19089 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19090 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19091 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19092 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19093 | { (case "(($ac_try" in |
| 19094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19095 | *) ac_try_echo=$ac_try;; |
| 19096 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19098 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19099 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19100 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19101 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19102 | (exit $ac_status); }; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19103 | { $as_echo "$as_me:$LINENO: result: good" >&5 |
| 19104 | $as_echo "good" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19105 | buggygetaddrinfo=no |
| 19106 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19107 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 19108 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19111 | ( exit $ac_status ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19112 | { $as_echo "$as_me:$LINENO: result: buggy" >&5 |
| 19113 | $as_echo "buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19114 | buggygetaddrinfo=yes |
| 19115 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19116 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19117 | 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] | 19118 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19119 | |
| 19120 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19121 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19122 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19125 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19126 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 19127 | $as_echo "no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19128 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19129 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19130 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19131 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19132 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19133 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19134 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19135 | |
| 19136 | if test "$buggygetaddrinfo" = "yes"; then |
| 19137 | if test "$ipv6" = "yes"; then |
| 19138 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 19139 | echo ' or you can specify "--disable-ipv6"'. |
| 19140 | exit 1 |
| 19141 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19142 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19143 | |
| 19144 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19145 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19146 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19147 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19148 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19149 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 19150 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19151 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19152 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19153 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19154 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19155 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19156 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19158 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19159 | /* confdefs.h. */ |
| 19160 | _ACEOF |
| 19161 | cat confdefs.h >>conftest.$ac_ext |
| 19162 | cat >>conftest.$ac_ext <<_ACEOF |
| 19163 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19164 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19165 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19166 | #define $ac_func innocuous_$ac_func |
| 19167 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19168 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19169 | which can conflict with char $ac_func (); below. |
| 19170 | 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] | 19171 | <limits.h> exists even on freestanding compilers. */ |
| 19172 | |
| 19173 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19174 | # include <limits.h> |
| 19175 | #else |
| 19176 | # include <assert.h> |
| 19177 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19178 | |
| 19179 | #undef $ac_func |
| 19180 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19181 | /* Override any GCC internal prototype to avoid an error. |
| 19182 | Use char because int might match the return type of a GCC |
| 19183 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19184 | #ifdef __cplusplus |
| 19185 | extern "C" |
| 19186 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19187 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19188 | /* The GNU C library defines this for functions which it implements |
| 19189 | to always fail with ENOSYS. Some functions are actually named |
| 19190 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19191 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19192 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19193 | #endif |
| 19194 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19195 | int |
| 19196 | main () |
| 19197 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19198 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19199 | ; |
| 19200 | return 0; |
| 19201 | } |
| 19202 | _ACEOF |
| 19203 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19204 | if { (ac_try="$ac_link" |
| 19205 | case "(($ac_try" in |
| 19206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19207 | *) ac_try_echo=$ac_try;; |
| 19208 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19209 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19210 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19211 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19212 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19214 | rm -f conftest.er1 |
| 19215 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19216 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19217 | (exit $ac_status); } && { |
| 19218 | test -z "$ac_c_werror_flag" || |
| 19219 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19220 | } && test -s conftest$ac_exeext && { |
| 19221 | test "$cross_compiling" = yes || |
| 19222 | $as_test_x conftest$ac_exeext |
| 19223 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19224 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19225 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19226 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19228 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19229 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19230 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19231 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19232 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19233 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19234 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19235 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19236 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 19237 | $as_echo "$as_val"'` |
| 19238 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19239 | $as_echo "$ac_res" >&6; } |
| 19240 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 19241 | $as_echo "$as_val"'` |
| 19242 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19243 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19244 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19245 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19246 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19247 | fi |
| 19248 | done |
| 19249 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19250 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19251 | # checks for structures |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19252 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 19253 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19254 | if test "${ac_cv_header_time+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19255 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19256 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19257 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19258 | /* confdefs.h. */ |
| 19259 | _ACEOF |
| 19260 | cat confdefs.h >>conftest.$ac_ext |
| 19261 | cat >>conftest.$ac_ext <<_ACEOF |
| 19262 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19263 | #include <sys/types.h> |
| 19264 | #include <sys/time.h> |
| 19265 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19267 | int |
| 19268 | main () |
| 19269 | { |
| 19270 | if ((struct tm *) 0) |
| 19271 | return 0; |
| 19272 | ; |
| 19273 | return 0; |
| 19274 | } |
| 19275 | _ACEOF |
| 19276 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19277 | if { (ac_try="$ac_compile" |
| 19278 | case "(($ac_try" in |
| 19279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19280 | *) ac_try_echo=$ac_try;; |
| 19281 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19282 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19283 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19284 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19285 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19287 | rm -f conftest.er1 |
| 19288 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19289 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19290 | (exit $ac_status); } && { |
| 19291 | test -z "$ac_c_werror_flag" || |
| 19292 | test ! -s conftest.err |
| 19293 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19294 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19295 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19296 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19298 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19299 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19300 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19301 | |
| 19302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19303 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19304 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 19305 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19306 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19307 | |
| 19308 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19309 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19310 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19311 | |
| 19312 | fi |
| 19313 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19314 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 19315 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19316 | if test "${ac_cv_struct_tm+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19317 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19319 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19320 | /* confdefs.h. */ |
| 19321 | _ACEOF |
| 19322 | cat confdefs.h >>conftest.$ac_ext |
| 19323 | cat >>conftest.$ac_ext <<_ACEOF |
| 19324 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19325 | #include <sys/types.h> |
| 19326 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19328 | int |
| 19329 | main () |
| 19330 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19331 | struct tm tm; |
| 19332 | int *p = &tm.tm_sec; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19333 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19334 | ; |
| 19335 | return 0; |
| 19336 | } |
| 19337 | _ACEOF |
| 19338 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19339 | if { (ac_try="$ac_compile" |
| 19340 | case "(($ac_try" in |
| 19341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19342 | *) ac_try_echo=$ac_try;; |
| 19343 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19344 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19345 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19346 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19347 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19349 | rm -f conftest.er1 |
| 19350 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19352 | (exit $ac_status); } && { |
| 19353 | test -z "$ac_c_werror_flag" || |
| 19354 | test ! -s conftest.err |
| 19355 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19356 | ac_cv_struct_tm=time.h |
| 19357 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19358 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19360 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19361 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19362 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19363 | |
| 19364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19365 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19366 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 19367 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19368 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19369 | |
| 19370 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19371 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19372 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19373 | |
| 19374 | fi |
| 19375 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19376 | { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 19377 | $as_echo_n "checking for struct tm.tm_zone... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19378 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19379 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19380 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19381 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19382 | /* confdefs.h. */ |
| 19383 | _ACEOF |
| 19384 | cat confdefs.h >>conftest.$ac_ext |
| 19385 | cat >>conftest.$ac_ext <<_ACEOF |
| 19386 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19387 | #include <sys/types.h> |
| 19388 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19389 | |
| 19390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19391 | int |
| 19392 | main () |
| 19393 | { |
| 19394 | static struct tm ac_aggr; |
| 19395 | if (ac_aggr.tm_zone) |
| 19396 | return 0; |
| 19397 | ; |
| 19398 | return 0; |
| 19399 | } |
| 19400 | _ACEOF |
| 19401 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19402 | if { (ac_try="$ac_compile" |
| 19403 | case "(($ac_try" in |
| 19404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19405 | *) ac_try_echo=$ac_try;; |
| 19406 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19407 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19408 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19409 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19410 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19412 | rm -f conftest.er1 |
| 19413 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19414 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19415 | (exit $ac_status); } && { |
| 19416 | test -z "$ac_c_werror_flag" || |
| 19417 | test ! -s conftest.err |
| 19418 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19419 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19420 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19421 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19423 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19424 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19425 | /* confdefs.h. */ |
| 19426 | _ACEOF |
| 19427 | cat confdefs.h >>conftest.$ac_ext |
| 19428 | cat >>conftest.$ac_ext <<_ACEOF |
| 19429 | /* end confdefs.h. */ |
| 19430 | #include <sys/types.h> |
| 19431 | #include <$ac_cv_struct_tm> |
| 19432 | |
| 19433 | |
| 19434 | int |
| 19435 | main () |
| 19436 | { |
| 19437 | static struct tm ac_aggr; |
| 19438 | if (sizeof ac_aggr.tm_zone) |
| 19439 | return 0; |
| 19440 | ; |
| 19441 | return 0; |
| 19442 | } |
| 19443 | _ACEOF |
| 19444 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19445 | if { (ac_try="$ac_compile" |
| 19446 | case "(($ac_try" in |
| 19447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19448 | *) ac_try_echo=$ac_try;; |
| 19449 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19450 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19451 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19452 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19453 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19455 | rm -f conftest.er1 |
| 19456 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19457 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19458 | (exit $ac_status); } && { |
| 19459 | test -z "$ac_c_werror_flag" || |
| 19460 | test ! -s conftest.err |
| 19461 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19462 | ac_cv_member_struct_tm_tm_zone=yes |
| 19463 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19464 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19466 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19467 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19468 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19469 | |
| 19470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19471 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19472 | |
| 19473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19474 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19475 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 19476 | $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 19477 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19478 | |
| 19479 | cat >>confdefs.h <<_ACEOF |
| 19480 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 19481 | _ACEOF |
| 19482 | |
| 19483 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19484 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19485 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19486 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 19487 | |
| 19488 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19489 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19490 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19491 | |
| 19492 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19493 | { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 19494 | $as_echo_n "checking whether tzname is declared... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19495 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19496 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19497 | else |
| 19498 | cat >conftest.$ac_ext <<_ACEOF |
| 19499 | /* confdefs.h. */ |
| 19500 | _ACEOF |
| 19501 | cat confdefs.h >>conftest.$ac_ext |
| 19502 | cat >>conftest.$ac_ext <<_ACEOF |
| 19503 | /* end confdefs.h. */ |
| 19504 | #include <time.h> |
| 19505 | |
| 19506 | int |
| 19507 | main () |
| 19508 | { |
| 19509 | #ifndef tzname |
| 19510 | (void) tzname; |
| 19511 | #endif |
| 19512 | |
| 19513 | ; |
| 19514 | return 0; |
| 19515 | } |
| 19516 | _ACEOF |
| 19517 | rm -f conftest.$ac_objext |
| 19518 | if { (ac_try="$ac_compile" |
| 19519 | case "(($ac_try" in |
| 19520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19521 | *) ac_try_echo=$ac_try;; |
| 19522 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19523 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19524 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19525 | (eval "$ac_compile") 2>conftest.er1 |
| 19526 | ac_status=$? |
| 19527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19528 | rm -f conftest.er1 |
| 19529 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19531 | (exit $ac_status); } && { |
| 19532 | test -z "$ac_c_werror_flag" || |
| 19533 | test ! -s conftest.err |
| 19534 | } && test -s conftest.$ac_objext; then |
| 19535 | ac_cv_have_decl_tzname=yes |
| 19536 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19537 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19539 | |
| 19540 | ac_cv_have_decl_tzname=no |
| 19541 | fi |
| 19542 | |
| 19543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19544 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19545 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 19546 | $as_echo "$ac_cv_have_decl_tzname" >&6; } |
| 19547 | if test "x$ac_cv_have_decl_tzname" = x""yes; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19548 | |
| 19549 | cat >>confdefs.h <<_ACEOF |
| 19550 | #define HAVE_DECL_TZNAME 1 |
| 19551 | _ACEOF |
| 19552 | |
| 19553 | |
| 19554 | else |
| 19555 | cat >>confdefs.h <<_ACEOF |
| 19556 | #define HAVE_DECL_TZNAME 0 |
| 19557 | _ACEOF |
| 19558 | |
| 19559 | |
| 19560 | fi |
| 19561 | |
| 19562 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19563 | { $as_echo "$as_me:$LINENO: checking for tzname" >&5 |
| 19564 | $as_echo_n "checking for tzname... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19565 | if test "${ac_cv_var_tzname+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19566 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19567 | else |
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. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19574 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19575 | #if !HAVE_DECL_TZNAME |
| 19576 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19577 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19579 | int |
| 19580 | main () |
| 19581 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19582 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19583 | ; |
| 19584 | return 0; |
| 19585 | } |
| 19586 | _ACEOF |
| 19587 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19588 | if { (ac_try="$ac_link" |
| 19589 | case "(($ac_try" in |
| 19590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19591 | *) ac_try_echo=$ac_try;; |
| 19592 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19593 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19594 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19595 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19596 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19598 | rm -f conftest.er1 |
| 19599 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19600 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19601 | (exit $ac_status); } && { |
| 19602 | test -z "$ac_c_werror_flag" || |
| 19603 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19604 | } && test -s conftest$ac_exeext && { |
| 19605 | test "$cross_compiling" = yes || |
| 19606 | $as_test_x conftest$ac_exeext |
| 19607 | }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19608 | ac_cv_var_tzname=yes |
| 19609 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19610 | $as_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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19613 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19614 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19615 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19616 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19617 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19618 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19619 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19620 | { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 19621 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19622 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19623 | |
| 19624 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19625 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19626 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19627 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19628 | fi |
| 19629 | fi |
| 19630 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19631 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 19632 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19633 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19634 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19635 | else |
| 19636 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19637 | /* confdefs.h. */ |
| 19638 | _ACEOF |
| 19639 | cat confdefs.h >>conftest.$ac_ext |
| 19640 | cat >>conftest.$ac_ext <<_ACEOF |
| 19641 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19642 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19643 | int |
| 19644 | main () |
| 19645 | { |
| 19646 | static struct stat ac_aggr; |
| 19647 | if (ac_aggr.st_rdev) |
| 19648 | return 0; |
| 19649 | ; |
| 19650 | return 0; |
| 19651 | } |
| 19652 | _ACEOF |
| 19653 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19654 | if { (ac_try="$ac_compile" |
| 19655 | case "(($ac_try" in |
| 19656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19657 | *) ac_try_echo=$ac_try;; |
| 19658 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19659 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19660 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19661 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19662 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19664 | rm -f conftest.er1 |
| 19665 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19667 | (exit $ac_status); } && { |
| 19668 | test -z "$ac_c_werror_flag" || |
| 19669 | test ! -s conftest.err |
| 19670 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19671 | ac_cv_member_struct_stat_st_rdev=yes |
| 19672 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19673 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19675 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19676 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19677 | /* confdefs.h. */ |
| 19678 | _ACEOF |
| 19679 | cat confdefs.h >>conftest.$ac_ext |
| 19680 | cat >>conftest.$ac_ext <<_ACEOF |
| 19681 | /* end confdefs.h. */ |
| 19682 | $ac_includes_default |
| 19683 | int |
| 19684 | main () |
| 19685 | { |
| 19686 | static struct stat ac_aggr; |
| 19687 | if (sizeof ac_aggr.st_rdev) |
| 19688 | return 0; |
| 19689 | ; |
| 19690 | return 0; |
| 19691 | } |
| 19692 | _ACEOF |
| 19693 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19694 | if { (ac_try="$ac_compile" |
| 19695 | case "(($ac_try" in |
| 19696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19697 | *) ac_try_echo=$ac_try;; |
| 19698 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19700 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19701 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19702 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19704 | rm -f conftest.er1 |
| 19705 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19707 | (exit $ac_status); } && { |
| 19708 | test -z "$ac_c_werror_flag" || |
| 19709 | test ! -s conftest.err |
| 19710 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19711 | ac_cv_member_struct_stat_st_rdev=yes |
| 19712 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19713 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19715 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19716 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19717 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19718 | |
| 19719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19720 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19721 | |
| 19722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19723 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19724 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 19725 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 19726 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19727 | |
| 19728 | cat >>confdefs.h <<_ACEOF |
| 19729 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 19730 | _ACEOF |
| 19731 | |
| 19732 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19733 | fi |
| 19734 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19735 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 19736 | $as_echo_n "checking for struct stat.st_blksize... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19737 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19738 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19739 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19740 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19741 | /* confdefs.h. */ |
| 19742 | _ACEOF |
| 19743 | cat confdefs.h >>conftest.$ac_ext |
| 19744 | cat >>conftest.$ac_ext <<_ACEOF |
| 19745 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19746 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19747 | int |
| 19748 | main () |
| 19749 | { |
| 19750 | static struct stat ac_aggr; |
| 19751 | if (ac_aggr.st_blksize) |
| 19752 | return 0; |
| 19753 | ; |
| 19754 | return 0; |
| 19755 | } |
| 19756 | _ACEOF |
| 19757 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19758 | if { (ac_try="$ac_compile" |
| 19759 | case "(($ac_try" in |
| 19760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19761 | *) ac_try_echo=$ac_try;; |
| 19762 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19763 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19764 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19765 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19766 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19768 | rm -f conftest.er1 |
| 19769 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19771 | (exit $ac_status); } && { |
| 19772 | test -z "$ac_c_werror_flag" || |
| 19773 | test ! -s conftest.err |
| 19774 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19775 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19776 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19777 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19779 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19780 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19781 | /* confdefs.h. */ |
| 19782 | _ACEOF |
| 19783 | cat confdefs.h >>conftest.$ac_ext |
| 19784 | cat >>conftest.$ac_ext <<_ACEOF |
| 19785 | /* end confdefs.h. */ |
| 19786 | $ac_includes_default |
| 19787 | int |
| 19788 | main () |
| 19789 | { |
| 19790 | static struct stat ac_aggr; |
| 19791 | if (sizeof ac_aggr.st_blksize) |
| 19792 | return 0; |
| 19793 | ; |
| 19794 | return 0; |
| 19795 | } |
| 19796 | _ACEOF |
| 19797 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19798 | if { (ac_try="$ac_compile" |
| 19799 | case "(($ac_try" in |
| 19800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19801 | *) ac_try_echo=$ac_try;; |
| 19802 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19804 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19805 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19806 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19808 | rm -f conftest.er1 |
| 19809 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19811 | (exit $ac_status); } && { |
| 19812 | test -z "$ac_c_werror_flag" || |
| 19813 | test ! -s conftest.err |
| 19814 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19815 | ac_cv_member_struct_stat_st_blksize=yes |
| 19816 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19817 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19819 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19820 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19821 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19822 | |
| 19823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19824 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19825 | |
| 19826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19827 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19828 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 19829 | $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 19830 | if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19832 | cat >>confdefs.h <<_ACEOF |
| 19833 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 19834 | _ACEOF |
| 19835 | |
| 19836 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19837 | fi |
| 19838 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19839 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 19840 | $as_echo_n "checking for struct stat.st_flags... " >&6; } |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19841 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19842 | $as_echo_n "(cached) " >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19843 | else |
| 19844 | cat >conftest.$ac_ext <<_ACEOF |
| 19845 | /* confdefs.h. */ |
| 19846 | _ACEOF |
| 19847 | cat confdefs.h >>conftest.$ac_ext |
| 19848 | cat >>conftest.$ac_ext <<_ACEOF |
| 19849 | /* end confdefs.h. */ |
| 19850 | $ac_includes_default |
| 19851 | int |
| 19852 | main () |
| 19853 | { |
| 19854 | static struct stat ac_aggr; |
| 19855 | if (ac_aggr.st_flags) |
| 19856 | return 0; |
| 19857 | ; |
| 19858 | return 0; |
| 19859 | } |
| 19860 | _ACEOF |
| 19861 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19862 | if { (ac_try="$ac_compile" |
| 19863 | case "(($ac_try" in |
| 19864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19865 | *) ac_try_echo=$ac_try;; |
| 19866 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19868 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19869 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19870 | ac_status=$? |
| 19871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19872 | rm -f conftest.er1 |
| 19873 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19875 | (exit $ac_status); } && { |
| 19876 | test -z "$ac_c_werror_flag" || |
| 19877 | test ! -s conftest.err |
| 19878 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19879 | ac_cv_member_struct_stat_st_flags=yes |
| 19880 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19881 | $as_echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19883 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19884 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19885 | /* confdefs.h. */ |
| 19886 | _ACEOF |
| 19887 | cat confdefs.h >>conftest.$ac_ext |
| 19888 | cat >>conftest.$ac_ext <<_ACEOF |
| 19889 | /* end confdefs.h. */ |
| 19890 | $ac_includes_default |
| 19891 | int |
| 19892 | main () |
| 19893 | { |
| 19894 | static struct stat ac_aggr; |
| 19895 | if (sizeof ac_aggr.st_flags) |
| 19896 | return 0; |
| 19897 | ; |
| 19898 | return 0; |
| 19899 | } |
| 19900 | _ACEOF |
| 19901 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19902 | if { (ac_try="$ac_compile" |
| 19903 | case "(($ac_try" in |
| 19904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19905 | *) ac_try_echo=$ac_try;; |
| 19906 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19908 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19909 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19910 | ac_status=$? |
| 19911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19912 | rm -f conftest.er1 |
| 19913 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19915 | (exit $ac_status); } && { |
| 19916 | test -z "$ac_c_werror_flag" || |
| 19917 | test ! -s conftest.err |
| 19918 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19919 | ac_cv_member_struct_stat_st_flags=yes |
| 19920 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19921 | $as_echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19923 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19924 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19925 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19926 | |
| 19927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19928 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19929 | |
| 19930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19931 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19932 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 19933 | $as_echo "$ac_cv_member_struct_stat_st_flags" >&6; } |
| 19934 | if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19935 | |
| 19936 | cat >>confdefs.h <<_ACEOF |
| 19937 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 19938 | _ACEOF |
| 19939 | |
| 19940 | |
| 19941 | fi |
| 19942 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19943 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 19944 | $as_echo_n "checking for struct stat.st_gen... " >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19945 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19946 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19947 | else |
| 19948 | cat >conftest.$ac_ext <<_ACEOF |
| 19949 | /* confdefs.h. */ |
| 19950 | _ACEOF |
| 19951 | cat confdefs.h >>conftest.$ac_ext |
| 19952 | cat >>conftest.$ac_ext <<_ACEOF |
| 19953 | /* end confdefs.h. */ |
| 19954 | $ac_includes_default |
| 19955 | int |
| 19956 | main () |
| 19957 | { |
| 19958 | static struct stat ac_aggr; |
| 19959 | if (ac_aggr.st_gen) |
| 19960 | return 0; |
| 19961 | ; |
| 19962 | return 0; |
| 19963 | } |
| 19964 | _ACEOF |
| 19965 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19966 | if { (ac_try="$ac_compile" |
| 19967 | case "(($ac_try" in |
| 19968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19969 | *) ac_try_echo=$ac_try;; |
| 19970 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19971 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19972 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19973 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19974 | ac_status=$? |
| 19975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19976 | rm -f conftest.er1 |
| 19977 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19978 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19979 | (exit $ac_status); } && { |
| 19980 | test -z "$ac_c_werror_flag" || |
| 19981 | test ! -s conftest.err |
| 19982 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19983 | ac_cv_member_struct_stat_st_gen=yes |
| 19984 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 19985 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19987 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19988 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19989 | /* confdefs.h. */ |
| 19990 | _ACEOF |
| 19991 | cat confdefs.h >>conftest.$ac_ext |
| 19992 | cat >>conftest.$ac_ext <<_ACEOF |
| 19993 | /* end confdefs.h. */ |
| 19994 | $ac_includes_default |
| 19995 | int |
| 19996 | main () |
| 19997 | { |
| 19998 | static struct stat ac_aggr; |
| 19999 | if (sizeof ac_aggr.st_gen) |
| 20000 | return 0; |
| 20001 | ; |
| 20002 | return 0; |
| 20003 | } |
| 20004 | _ACEOF |
| 20005 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20006 | if { (ac_try="$ac_compile" |
| 20007 | case "(($ac_try" in |
| 20008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20009 | *) ac_try_echo=$ac_try;; |
| 20010 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20011 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20012 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20013 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20014 | ac_status=$? |
| 20015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20016 | rm -f conftest.er1 |
| 20017 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20019 | (exit $ac_status); } && { |
| 20020 | test -z "$ac_c_werror_flag" || |
| 20021 | test ! -s conftest.err |
| 20022 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20023 | ac_cv_member_struct_stat_st_gen=yes |
| 20024 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20025 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20027 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20028 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20029 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20030 | |
| 20031 | 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] | 20032 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20033 | |
| 20034 | 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] | 20035 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20036 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 20037 | $as_echo "$ac_cv_member_struct_stat_st_gen" >&6; } |
| 20038 | if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20039 | |
| 20040 | cat >>confdefs.h <<_ACEOF |
| 20041 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 20042 | _ACEOF |
| 20043 | |
| 20044 | |
| 20045 | fi |
| 20046 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20047 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 20048 | $as_echo_n "checking for struct stat.st_birthtime... " >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20049 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20050 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20051 | else |
| 20052 | cat >conftest.$ac_ext <<_ACEOF |
| 20053 | /* confdefs.h. */ |
| 20054 | _ACEOF |
| 20055 | cat confdefs.h >>conftest.$ac_ext |
| 20056 | cat >>conftest.$ac_ext <<_ACEOF |
| 20057 | /* end confdefs.h. */ |
| 20058 | $ac_includes_default |
| 20059 | int |
| 20060 | main () |
| 20061 | { |
| 20062 | static struct stat ac_aggr; |
| 20063 | if (ac_aggr.st_birthtime) |
| 20064 | return 0; |
| 20065 | ; |
| 20066 | return 0; |
| 20067 | } |
| 20068 | _ACEOF |
| 20069 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20070 | if { (ac_try="$ac_compile" |
| 20071 | case "(($ac_try" in |
| 20072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20073 | *) ac_try_echo=$ac_try;; |
| 20074 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20075 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20076 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20077 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20078 | ac_status=$? |
| 20079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20080 | rm -f conftest.er1 |
| 20081 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20082 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20083 | (exit $ac_status); } && { |
| 20084 | test -z "$ac_c_werror_flag" || |
| 20085 | test ! -s conftest.err |
| 20086 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20087 | ac_cv_member_struct_stat_st_birthtime=yes |
| 20088 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20089 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20091 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20092 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20093 | /* confdefs.h. */ |
| 20094 | _ACEOF |
| 20095 | cat confdefs.h >>conftest.$ac_ext |
| 20096 | cat >>conftest.$ac_ext <<_ACEOF |
| 20097 | /* end confdefs.h. */ |
| 20098 | $ac_includes_default |
| 20099 | int |
| 20100 | main () |
| 20101 | { |
| 20102 | static struct stat ac_aggr; |
| 20103 | if (sizeof ac_aggr.st_birthtime) |
| 20104 | return 0; |
| 20105 | ; |
| 20106 | return 0; |
| 20107 | } |
| 20108 | _ACEOF |
| 20109 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20110 | if { (ac_try="$ac_compile" |
| 20111 | case "(($ac_try" in |
| 20112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20113 | *) ac_try_echo=$ac_try;; |
| 20114 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20115 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20116 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20117 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20118 | ac_status=$? |
| 20119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20120 | rm -f conftest.er1 |
| 20121 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20122 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20127 | ac_cv_member_struct_stat_st_birthtime=yes |
| 20128 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20129 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20131 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20132 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20133 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20134 | |
| 20135 | 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] | 20136 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20137 | |
| 20138 | 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] | 20139 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20140 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 20141 | $as_echo "$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 20142 | if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20143 | |
| 20144 | cat >>confdefs.h <<_ACEOF |
| 20145 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 20146 | _ACEOF |
| 20147 | |
| 20148 | |
| 20149 | fi |
| 20150 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20151 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 20152 | $as_echo_n "checking for struct stat.st_blocks... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20153 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20154 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20156 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20157 | /* confdefs.h. */ |
| 20158 | _ACEOF |
| 20159 | cat confdefs.h >>conftest.$ac_ext |
| 20160 | cat >>conftest.$ac_ext <<_ACEOF |
| 20161 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20162 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20163 | int |
| 20164 | main () |
| 20165 | { |
| 20166 | static struct stat ac_aggr; |
| 20167 | if (ac_aggr.st_blocks) |
| 20168 | return 0; |
| 20169 | ; |
| 20170 | return 0; |
| 20171 | } |
| 20172 | _ACEOF |
| 20173 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20174 | if { (ac_try="$ac_compile" |
| 20175 | case "(($ac_try" in |
| 20176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20177 | *) ac_try_echo=$ac_try;; |
| 20178 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20180 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20181 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20182 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20184 | rm -f conftest.er1 |
| 20185 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20186 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20187 | (exit $ac_status); } && { |
| 20188 | test -z "$ac_c_werror_flag" || |
| 20189 | test ! -s conftest.err |
| 20190 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20191 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20192 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20193 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20195 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20196 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20197 | /* confdefs.h. */ |
| 20198 | _ACEOF |
| 20199 | cat confdefs.h >>conftest.$ac_ext |
| 20200 | cat >>conftest.$ac_ext <<_ACEOF |
| 20201 | /* end confdefs.h. */ |
| 20202 | $ac_includes_default |
| 20203 | int |
| 20204 | main () |
| 20205 | { |
| 20206 | static struct stat ac_aggr; |
| 20207 | if (sizeof ac_aggr.st_blocks) |
| 20208 | return 0; |
| 20209 | ; |
| 20210 | return 0; |
| 20211 | } |
| 20212 | _ACEOF |
| 20213 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20214 | if { (ac_try="$ac_compile" |
| 20215 | case "(($ac_try" in |
| 20216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20217 | *) ac_try_echo=$ac_try;; |
| 20218 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20219 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20220 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20221 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20222 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20224 | rm -f conftest.er1 |
| 20225 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20226 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20227 | (exit $ac_status); } && { |
| 20228 | test -z "$ac_c_werror_flag" || |
| 20229 | test ! -s conftest.err |
| 20230 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20231 | ac_cv_member_struct_stat_st_blocks=yes |
| 20232 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20233 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20235 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20236 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20237 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20238 | |
| 20239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20240 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20241 | |
| 20242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20243 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20244 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 20245 | $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 20246 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20247 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20248 | cat >>confdefs.h <<_ACEOF |
| 20249 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 20250 | _ACEOF |
| 20251 | |
| 20252 | |
| 20253 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20254 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20255 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20256 | |
| 20257 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20258 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20259 | *" fileblocks.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20260 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 20261 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20262 | esac |
| 20263 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20264 | fi |
| 20265 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20267 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20268 | { $as_echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 20269 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20270 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20271 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20272 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20273 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20274 | /* confdefs.h. */ |
| 20275 | _ACEOF |
| 20276 | cat confdefs.h >>conftest.$ac_ext |
| 20277 | cat >>conftest.$ac_ext <<_ACEOF |
| 20278 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20279 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20280 | int |
| 20281 | main () |
| 20282 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20283 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20284 | ; |
| 20285 | return 0; |
| 20286 | } |
| 20287 | _ACEOF |
| 20288 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20289 | if { (ac_try="$ac_compile" |
| 20290 | case "(($ac_try" in |
| 20291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20292 | *) ac_try_echo=$ac_try;; |
| 20293 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20294 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20295 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20296 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20297 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20299 | rm -f conftest.er1 |
| 20300 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20302 | (exit $ac_status); } && { |
| 20303 | test -z "$ac_c_werror_flag" || |
| 20304 | test ! -s conftest.err |
| 20305 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20306 | ac_cv_header_time_altzone=yes |
| 20307 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20308 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20310 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20311 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20312 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20313 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20315 | fi |
| 20316 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20317 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 20318 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20319 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20320 | |
| 20321 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20322 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20323 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20324 | |
| 20325 | fi |
| 20326 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20327 | was_it_defined=no |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20328 | { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 20329 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20330 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20331 | /* confdefs.h. */ |
| 20332 | _ACEOF |
| 20333 | cat confdefs.h >>conftest.$ac_ext |
| 20334 | cat >>conftest.$ac_ext <<_ACEOF |
| 20335 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20336 | |
| 20337 | #include <sys/types.h> |
| 20338 | #include <sys/select.h> |
| 20339 | #include <sys/time.h> |
| 20340 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20341 | int |
| 20342 | main () |
| 20343 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20344 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20345 | ; |
| 20346 | return 0; |
| 20347 | } |
| 20348 | _ACEOF |
| 20349 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20350 | if { (ac_try="$ac_compile" |
| 20351 | case "(($ac_try" in |
| 20352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20353 | *) ac_try_echo=$ac_try;; |
| 20354 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20355 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20356 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20357 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20358 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20360 | rm -f conftest.er1 |
| 20361 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20362 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20363 | (exit $ac_status); } && { |
| 20364 | test -z "$ac_c_werror_flag" || |
| 20365 | test ! -s conftest.err |
| 20366 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20367 | |
| 20368 | |
| 20369 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20370 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20371 | _ACEOF |
| 20372 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20373 | was_it_defined=yes |
| 20374 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20375 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20376 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20378 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20379 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20380 | fi |
| 20381 | |
| 20382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20383 | { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 20384 | $as_echo "$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20385 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20386 | { $as_echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 20387 | $as_echo_n "checking for addrinfo... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20388 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20389 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20390 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20391 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20392 | /* confdefs.h. */ |
| 20393 | _ACEOF |
| 20394 | cat confdefs.h >>conftest.$ac_ext |
| 20395 | cat >>conftest.$ac_ext <<_ACEOF |
| 20396 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20397 | |
| 20398 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20399 | int |
| 20400 | main () |
| 20401 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20402 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20403 | ; |
| 20404 | return 0; |
| 20405 | } |
| 20406 | _ACEOF |
| 20407 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20408 | if { (ac_try="$ac_compile" |
| 20409 | case "(($ac_try" in |
| 20410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20411 | *) ac_try_echo=$ac_try;; |
| 20412 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20413 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20414 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20415 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20416 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20418 | rm -f conftest.er1 |
| 20419 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20420 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20421 | (exit $ac_status); } && { |
| 20422 | test -z "$ac_c_werror_flag" || |
| 20423 | test ! -s conftest.err |
| 20424 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20425 | ac_cv_struct_addrinfo=yes |
| 20426 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20427 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20429 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20430 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20431 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20432 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20434 | fi |
| 20435 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20436 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 20437 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20438 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20439 | |
| 20440 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20441 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20442 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20443 | |
| 20444 | fi |
| 20445 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20446 | { $as_echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 20447 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20448 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20449 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20450 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20451 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20452 | /* confdefs.h. */ |
| 20453 | _ACEOF |
| 20454 | cat confdefs.h >>conftest.$ac_ext |
| 20455 | cat >>conftest.$ac_ext <<_ACEOF |
| 20456 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20457 | |
| 20458 | # include <sys/types.h> |
| 20459 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20460 | int |
| 20461 | main () |
| 20462 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20463 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20464 | ; |
| 20465 | return 0; |
| 20466 | } |
| 20467 | _ACEOF |
| 20468 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20469 | if { (ac_try="$ac_compile" |
| 20470 | case "(($ac_try" in |
| 20471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20472 | *) ac_try_echo=$ac_try;; |
| 20473 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20474 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20475 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20476 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20477 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20479 | rm -f conftest.er1 |
| 20480 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20481 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20482 | (exit $ac_status); } && { |
| 20483 | test -z "$ac_c_werror_flag" || |
| 20484 | test ! -s conftest.err |
| 20485 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20486 | ac_cv_struct_sockaddr_storage=yes |
| 20487 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20488 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20490 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20491 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20492 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20493 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20495 | fi |
| 20496 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20497 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 20498 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20499 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20500 | |
| 20501 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20502 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20503 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20504 | |
| 20505 | fi |
| 20506 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20507 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20508 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20509 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20510 | { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 20511 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20512 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20513 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20514 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20515 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20516 | /* confdefs.h. */ |
| 20517 | _ACEOF |
| 20518 | cat confdefs.h >>conftest.$ac_ext |
| 20519 | cat >>conftest.$ac_ext <<_ACEOF |
| 20520 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20521 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20522 | int |
| 20523 | main () |
| 20524 | { |
| 20525 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 20526 | test_array [0] = 0 |
| 20527 | |
| 20528 | ; |
| 20529 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20530 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20531 | _ACEOF |
| 20532 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20533 | if { (ac_try="$ac_compile" |
| 20534 | case "(($ac_try" in |
| 20535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20536 | *) ac_try_echo=$ac_try;; |
| 20537 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20538 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20539 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20540 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20541 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20543 | rm -f conftest.er1 |
| 20544 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20545 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20546 | (exit $ac_status); } && { |
| 20547 | test -z "$ac_c_werror_flag" || |
| 20548 | test ! -s conftest.err |
| 20549 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20550 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20551 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20552 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20554 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20555 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20556 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20557 | |
| 20558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20559 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20560 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 20561 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20562 | 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] | 20563 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20564 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20565 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20566 | |
| 20567 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20568 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20569 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 20570 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20571 | if test "${ac_cv_c_const+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20572 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20573 | else |
| 20574 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20575 | /* confdefs.h. */ |
| 20576 | _ACEOF |
| 20577 | cat confdefs.h >>conftest.$ac_ext |
| 20578 | cat >>conftest.$ac_ext <<_ACEOF |
| 20579 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20581 | int |
| 20582 | main () |
| 20583 | { |
| 20584 | /* FIXME: Include the comments suggested by Paul. */ |
| 20585 | #ifndef __cplusplus |
| 20586 | /* Ultrix mips cc rejects this. */ |
| 20587 | typedef int charset[2]; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20588 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20589 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20590 | char const *const *pcpcc; |
| 20591 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20592 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 20593 | struct point {int x, y;}; |
| 20594 | static struct point const zero = {0,0}; |
| 20595 | /* AIX XL C 1.02.0.0 rejects this. |
| 20596 | It does not let you subtract one const X* pointer from another in |
| 20597 | an arm of an if-expression whose if-part is not a constant |
| 20598 | expression */ |
| 20599 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20600 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20601 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20602 | ++pcpcc; |
| 20603 | ppc = (char**) pcpcc; |
| 20604 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20605 | { /* SCO 3.2v4 cc rejects this. */ |
| 20606 | char *t; |
| 20607 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20608 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20609 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20610 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20611 | } |
| 20612 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 20613 | int x[] = {25, 17}; |
| 20614 | const int *foo = &x[0]; |
| 20615 | ++foo; |
| 20616 | } |
| 20617 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 20618 | typedef const int *iptr; |
| 20619 | iptr p = 0; |
| 20620 | ++p; |
| 20621 | } |
| 20622 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 20623 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 20624 | struct s { int j; const int *ap[3]; }; |
| 20625 | struct s *b; b->j = 5; |
| 20626 | } |
| 20627 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 20628 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20629 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20630 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20631 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20632 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20634 | ; |
| 20635 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20636 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20637 | _ACEOF |
| 20638 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20639 | if { (ac_try="$ac_compile" |
| 20640 | case "(($ac_try" in |
| 20641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20642 | *) ac_try_echo=$ac_try;; |
| 20643 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20645 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20646 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20647 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20649 | rm -f conftest.er1 |
| 20650 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20651 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20652 | (exit $ac_status); } && { |
| 20653 | test -z "$ac_c_werror_flag" || |
| 20654 | test ! -s conftest.err |
| 20655 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20656 | ac_cv_c_const=yes |
| 20657 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20658 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20660 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20661 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20662 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20663 | |
| 20664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20665 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20666 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 20667 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20668 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20669 | |
| 20670 | cat >>confdefs.h <<\_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20671 | #define const /**/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20672 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20673 | |
| 20674 | fi |
| 20675 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20676 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20677 | works=no |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20678 | { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 20679 | $as_echo_n "checking for working volatile... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20680 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20681 | /* confdefs.h. */ |
| 20682 | _ACEOF |
| 20683 | cat confdefs.h >>conftest.$ac_ext |
| 20684 | cat >>conftest.$ac_ext <<_ACEOF |
| 20685 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20687 | int |
| 20688 | main () |
| 20689 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20690 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20691 | ; |
| 20692 | return 0; |
| 20693 | } |
| 20694 | _ACEOF |
| 20695 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20696 | if { (ac_try="$ac_compile" |
| 20697 | case "(($ac_try" in |
| 20698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20699 | *) ac_try_echo=$ac_try;; |
| 20700 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20701 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20702 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20703 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20704 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20706 | rm -f conftest.er1 |
| 20707 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20708 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20709 | (exit $ac_status); } && { |
| 20710 | test -z "$ac_c_werror_flag" || |
| 20711 | test ! -s conftest.err |
| 20712 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20713 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20714 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20715 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20717 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20718 | |
| 20719 | cat >>confdefs.h <<\_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20720 | #define volatile /**/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20721 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20722 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20723 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20724 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20725 | |
| 20726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20727 | { $as_echo "$as_me:$LINENO: result: $works" >&5 |
| 20728 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20729 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20730 | works=no |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20731 | { $as_echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 20732 | $as_echo_n "checking for working signed char... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20733 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20734 | /* confdefs.h. */ |
| 20735 | _ACEOF |
| 20736 | cat confdefs.h >>conftest.$ac_ext |
| 20737 | cat >>conftest.$ac_ext <<_ACEOF |
| 20738 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 20739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20740 | int |
| 20741 | main () |
| 20742 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20743 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20744 | ; |
| 20745 | return 0; |
| 20746 | } |
| 20747 | _ACEOF |
| 20748 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20749 | if { (ac_try="$ac_compile" |
| 20750 | case "(($ac_try" in |
| 20751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20752 | *) ac_try_echo=$ac_try;; |
| 20753 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20754 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20755 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20756 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20759 | rm -f conftest.er1 |
| 20760 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20762 | (exit $ac_status); } && { |
| 20763 | test -z "$ac_c_werror_flag" || |
| 20764 | test ! -s conftest.err |
| 20765 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20766 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 20767 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20768 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20771 | |
| 20772 | cat >>confdefs.h <<\_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20773 | #define signed /**/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20774 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20775 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20776 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20777 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20778 | |
| 20779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20780 | { $as_echo "$as_me:$LINENO: result: $works" >&5 |
| 20781 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20782 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20783 | have_prototypes=no |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20784 | { $as_echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 20785 | $as_echo_n "checking for prototypes... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20786 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20787 | /* confdefs.h. */ |
| 20788 | _ACEOF |
| 20789 | cat confdefs.h >>conftest.$ac_ext |
| 20790 | cat >>conftest.$ac_ext <<_ACEOF |
| 20791 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20792 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20793 | int |
| 20794 | main () |
| 20795 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20796 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20797 | ; |
| 20798 | return 0; |
| 20799 | } |
| 20800 | _ACEOF |
| 20801 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20802 | if { (ac_try="$ac_compile" |
| 20803 | case "(($ac_try" in |
| 20804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20805 | *) ac_try_echo=$ac_try;; |
| 20806 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20808 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20809 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20810 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20812 | rm -f conftest.er1 |
| 20813 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20815 | (exit $ac_status); } && { |
| 20816 | test -z "$ac_c_werror_flag" || |
| 20817 | test ! -s conftest.err |
| 20818 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20819 | |
| 20820 | |
| 20821 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20822 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20823 | _ACEOF |
| 20824 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20825 | have_prototypes=yes |
| 20826 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20827 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20828 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20830 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20831 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20832 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20833 | |
| 20834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20835 | { $as_echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 20836 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20837 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20838 | works=no |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20839 | { $as_echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 20840 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20841 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20842 | /* confdefs.h. */ |
| 20843 | _ACEOF |
| 20844 | cat confdefs.h >>conftest.$ac_ext |
| 20845 | cat >>conftest.$ac_ext <<_ACEOF |
| 20846 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20847 | |
| 20848 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 20849 | int foo(int x, ...) { |
| 20850 | va_list va; |
| 20851 | va_start(va, x); |
| 20852 | va_arg(va, int); |
| 20853 | va_arg(va, char *); |
| 20854 | va_arg(va, double); |
| 20855 | return 0; |
| 20856 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20858 | int |
| 20859 | main () |
| 20860 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 20861 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20862 | ; |
| 20863 | return 0; |
| 20864 | } |
| 20865 | _ACEOF |
| 20866 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20867 | if { (ac_try="$ac_compile" |
| 20868 | case "(($ac_try" in |
| 20869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20870 | *) ac_try_echo=$ac_try;; |
| 20871 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20872 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20873 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20874 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20875 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20877 | rm -f conftest.er1 |
| 20878 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20880 | (exit $ac_status); } && { |
| 20881 | test -z "$ac_c_werror_flag" || |
| 20882 | test ! -s conftest.err |
| 20883 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20884 | |
| 20885 | |
| 20886 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20887 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20888 | _ACEOF |
| 20889 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20890 | works=yes |
| 20891 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20892 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20893 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20895 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20896 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20897 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20898 | |
| 20899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20900 | { $as_echo "$as_me:$LINENO: result: $works" >&5 |
| 20901 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20902 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20903 | # check for socketpair |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20904 | { $as_echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 20905 | $as_echo_n "checking for socketpair... " >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20906 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20907 | /* confdefs.h. */ |
| 20908 | _ACEOF |
| 20909 | cat confdefs.h >>conftest.$ac_ext |
| 20910 | cat >>conftest.$ac_ext <<_ACEOF |
| 20911 | /* end confdefs.h. */ |
| 20912 | |
| 20913 | #include <sys/types.h> |
| 20914 | #include <sys/socket.h> |
| 20915 | |
| 20916 | int |
| 20917 | main () |
| 20918 | { |
| 20919 | void *x=socketpair |
| 20920 | ; |
| 20921 | return 0; |
| 20922 | } |
| 20923 | _ACEOF |
| 20924 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20925 | if { (ac_try="$ac_compile" |
| 20926 | case "(($ac_try" in |
| 20927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20928 | *) ac_try_echo=$ac_try;; |
| 20929 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20931 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20932 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20933 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20935 | rm -f conftest.er1 |
| 20936 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20938 | (exit $ac_status); } && { |
| 20939 | test -z "$ac_c_werror_flag" || |
| 20940 | test ! -s conftest.err |
| 20941 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20942 | |
| 20943 | cat >>confdefs.h <<\_ACEOF |
| 20944 | #define HAVE_SOCKETPAIR 1 |
| 20945 | _ACEOF |
| 20946 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20947 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 20948 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20949 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20950 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20952 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20953 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 20954 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20955 | |
| 20956 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20957 | |
| 20958 | 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] | 20959 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20960 | # check if sockaddr has sa_len member |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20961 | { $as_echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 20962 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20963 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20964 | /* confdefs.h. */ |
| 20965 | _ACEOF |
| 20966 | cat confdefs.h >>conftest.$ac_ext |
| 20967 | cat >>conftest.$ac_ext <<_ACEOF |
| 20968 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20969 | #include <sys/types.h> |
| 20970 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20971 | int |
| 20972 | main () |
| 20973 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20974 | struct sockaddr x; |
| 20975 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20976 | ; |
| 20977 | return 0; |
| 20978 | } |
| 20979 | _ACEOF |
| 20980 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20981 | if { (ac_try="$ac_compile" |
| 20982 | case "(($ac_try" in |
| 20983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20984 | *) ac_try_echo=$ac_try;; |
| 20985 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20986 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20987 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20988 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20989 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20991 | rm -f conftest.er1 |
| 20992 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20993 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20994 | (exit $ac_status); } && { |
| 20995 | test -z "$ac_c_werror_flag" || |
| 20996 | test ! -s conftest.err |
| 20997 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 20998 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 20999 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21000 | |
| 21001 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21002 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21003 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21004 | |
| 21005 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21006 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21008 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21009 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 21010 | $as_echo "no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21011 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21012 | |
| 21013 | 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] | 21014 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21015 | va_list_is_array=no |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21016 | { $as_echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 21017 | $as_echo_n "checking whether va_list is an array... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21018 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21019 | /* confdefs.h. */ |
| 21020 | _ACEOF |
| 21021 | cat confdefs.h >>conftest.$ac_ext |
| 21022 | cat >>conftest.$ac_ext <<_ACEOF |
| 21023 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21024 | |
| 21025 | #ifdef HAVE_STDARG_PROTOTYPES |
| 21026 | #include <stdarg.h> |
| 21027 | #else |
| 21028 | #include <varargs.h> |
| 21029 | #endif |
| 21030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21031 | int |
| 21032 | main () |
| 21033 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21034 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21035 | ; |
| 21036 | return 0; |
| 21037 | } |
| 21038 | _ACEOF |
| 21039 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21040 | if { (ac_try="$ac_compile" |
| 21041 | case "(($ac_try" in |
| 21042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21043 | *) ac_try_echo=$ac_try;; |
| 21044 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21045 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21046 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21047 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21048 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21050 | rm -f conftest.er1 |
| 21051 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21052 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21053 | (exit $ac_status); } && { |
| 21054 | test -z "$ac_c_werror_flag" || |
| 21055 | test ! -s conftest.err |
| 21056 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21057 | : |
| 21058 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21059 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21061 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21062 | |
| 21063 | |
| 21064 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21065 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21066 | _ACEOF |
| 21067 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21068 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21069 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21070 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21071 | |
| 21072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21073 | { $as_echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 21074 | $as_echo "$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21075 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21076 | # 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] | 21077 | |
| 21078 | |
| 21079 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21080 | { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 21081 | $as_echo_n "checking for gethostbyname_r... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21082 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21083 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21084 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21085 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21086 | /* confdefs.h. */ |
| 21087 | _ACEOF |
| 21088 | cat confdefs.h >>conftest.$ac_ext |
| 21089 | cat >>conftest.$ac_ext <<_ACEOF |
| 21090 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21091 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 21092 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21093 | #define gethostbyname_r innocuous_gethostbyname_r |
| 21094 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21095 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21096 | which can conflict with char gethostbyname_r (); below. |
| 21097 | 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] | 21098 | <limits.h> exists even on freestanding compilers. */ |
| 21099 | |
| 21100 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21101 | # include <limits.h> |
| 21102 | #else |
| 21103 | # include <assert.h> |
| 21104 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21105 | |
| 21106 | #undef gethostbyname_r |
| 21107 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21108 | /* Override any GCC internal prototype to avoid an error. |
| 21109 | Use char because int might match the return type of a GCC |
| 21110 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21111 | #ifdef __cplusplus |
| 21112 | extern "C" |
| 21113 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21114 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21115 | /* The GNU C library defines this for functions which it implements |
| 21116 | to always fail with ENOSYS. Some functions are actually named |
| 21117 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21118 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21119 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21120 | #endif |
| 21121 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21122 | int |
| 21123 | main () |
| 21124 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21125 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21126 | ; |
| 21127 | return 0; |
| 21128 | } |
| 21129 | _ACEOF |
| 21130 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21131 | if { (ac_try="$ac_link" |
| 21132 | case "(($ac_try" in |
| 21133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21134 | *) ac_try_echo=$ac_try;; |
| 21135 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21137 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21138 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21139 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21141 | rm -f conftest.er1 |
| 21142 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21144 | (exit $ac_status); } && { |
| 21145 | test -z "$ac_c_werror_flag" || |
| 21146 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21147 | } && test -s conftest$ac_exeext && { |
| 21148 | test "$cross_compiling" = yes || |
| 21149 | $as_test_x conftest$ac_exeext |
| 21150 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21151 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21152 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21153 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21155 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21156 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21157 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21158 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21159 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21160 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21161 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21162 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21163 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 21164 | $as_echo "$ac_cv_func_gethostbyname_r" >&6; } |
| 21165 | if test "x$ac_cv_func_gethostbyname_r" = x""yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21166 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21167 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21168 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21169 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21170 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21171 | { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 21172 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21173 | OLD_CFLAGS=$CFLAGS |
| 21174 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21175 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21176 | /* confdefs.h. */ |
| 21177 | _ACEOF |
| 21178 | cat confdefs.h >>conftest.$ac_ext |
| 21179 | cat >>conftest.$ac_ext <<_ACEOF |
| 21180 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21181 | |
| 21182 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21184 | int |
| 21185 | main () |
| 21186 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21187 | |
| 21188 | char *name; |
| 21189 | struct hostent *he, *res; |
| 21190 | char buffer[2048]; |
| 21191 | int buflen = 2048; |
| 21192 | int h_errnop; |
| 21193 | |
| 21194 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21195 | |
| 21196 | ; |
| 21197 | return 0; |
| 21198 | } |
| 21199 | _ACEOF |
| 21200 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21201 | if { (ac_try="$ac_compile" |
| 21202 | case "(($ac_try" in |
| 21203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21204 | *) ac_try_echo=$ac_try;; |
| 21205 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21206 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21207 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21208 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21209 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21211 | rm -f conftest.er1 |
| 21212 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21213 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21214 | (exit $ac_status); } && { |
| 21215 | test -z "$ac_c_werror_flag" || |
| 21216 | test ! -s conftest.err |
| 21217 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21218 | |
| 21219 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21220 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21221 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21222 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21223 | |
| 21224 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21225 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21226 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21227 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21228 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 21229 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21230 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21231 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21232 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21235 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21236 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 21237 | $as_echo "no" >&6; } |
| 21238 | { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 21239 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21240 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21241 | /* confdefs.h. */ |
| 21242 | _ACEOF |
| 21243 | cat confdefs.h >>conftest.$ac_ext |
| 21244 | cat >>conftest.$ac_ext <<_ACEOF |
| 21245 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21246 | |
| 21247 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21249 | int |
| 21250 | main () |
| 21251 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21252 | |
| 21253 | char *name; |
| 21254 | struct hostent *he; |
| 21255 | char buffer[2048]; |
| 21256 | int buflen = 2048; |
| 21257 | int h_errnop; |
| 21258 | |
| 21259 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21260 | |
| 21261 | ; |
| 21262 | return 0; |
| 21263 | } |
| 21264 | _ACEOF |
| 21265 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21266 | if { (ac_try="$ac_compile" |
| 21267 | case "(($ac_try" in |
| 21268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21269 | *) ac_try_echo=$ac_try;; |
| 21270 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21271 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21272 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21273 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21274 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21276 | rm -f conftest.er1 |
| 21277 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21278 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21279 | (exit $ac_status); } && { |
| 21280 | test -z "$ac_c_werror_flag" || |
| 21281 | test ! -s conftest.err |
| 21282 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21283 | |
| 21284 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21285 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21286 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21287 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21288 | |
| 21289 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21290 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21291 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21292 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21293 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 21294 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21295 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21296 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21297 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21299 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21300 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21301 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 21302 | $as_echo "no" >&6; } |
| 21303 | { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 21304 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21305 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21306 | /* confdefs.h. */ |
| 21307 | _ACEOF |
| 21308 | cat confdefs.h >>conftest.$ac_ext |
| 21309 | cat >>conftest.$ac_ext <<_ACEOF |
| 21310 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21311 | |
| 21312 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21314 | int |
| 21315 | main () |
| 21316 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21317 | |
| 21318 | char *name; |
| 21319 | struct hostent *he; |
| 21320 | struct hostent_data data; |
| 21321 | |
| 21322 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21323 | |
| 21324 | ; |
| 21325 | return 0; |
| 21326 | } |
| 21327 | _ACEOF |
| 21328 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21329 | if { (ac_try="$ac_compile" |
| 21330 | case "(($ac_try" in |
| 21331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21332 | *) ac_try_echo=$ac_try;; |
| 21333 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21334 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21335 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21336 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21337 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21339 | rm -f conftest.er1 |
| 21340 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21341 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21342 | (exit $ac_status); } && { |
| 21343 | test -z "$ac_c_werror_flag" || |
| 21344 | test ! -s conftest.err |
| 21345 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21346 | |
| 21347 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21348 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21349 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21351 | |
| 21352 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21353 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21354 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21355 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21356 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 21357 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21358 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21359 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21360 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21363 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21364 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 21365 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21366 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21367 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21368 | |
| 21369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21370 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21371 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21372 | |
| 21373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21374 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21375 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21376 | |
| 21377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21378 | CFLAGS=$OLD_CFLAGS |
| 21379 | |
| 21380 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21382 | |
| 21383 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 21384 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21385 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21386 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21387 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21388 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21389 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21390 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21391 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21392 | /* confdefs.h. */ |
| 21393 | _ACEOF |
| 21394 | cat confdefs.h >>conftest.$ac_ext |
| 21395 | cat >>conftest.$ac_ext <<_ACEOF |
| 21396 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21397 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21398 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21399 | #define $ac_func innocuous_$ac_func |
| 21400 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21401 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21402 | which can conflict with char $ac_func (); below. |
| 21403 | 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] | 21404 | <limits.h> exists even on freestanding compilers. */ |
| 21405 | |
| 21406 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21407 | # include <limits.h> |
| 21408 | #else |
| 21409 | # include <assert.h> |
| 21410 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21411 | |
| 21412 | #undef $ac_func |
| 21413 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21414 | /* Override any GCC internal prototype to avoid an error. |
| 21415 | Use char because int might match the return type of a GCC |
| 21416 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21417 | #ifdef __cplusplus |
| 21418 | extern "C" |
| 21419 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21420 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21421 | /* The GNU C library defines this for functions which it implements |
| 21422 | to always fail with ENOSYS. Some functions are actually named |
| 21423 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21424 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21425 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21426 | #endif |
| 21427 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21428 | int |
| 21429 | main () |
| 21430 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21431 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21432 | ; |
| 21433 | return 0; |
| 21434 | } |
| 21435 | _ACEOF |
| 21436 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21437 | if { (ac_try="$ac_link" |
| 21438 | case "(($ac_try" in |
| 21439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21440 | *) ac_try_echo=$ac_try;; |
| 21441 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21442 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21443 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21444 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21445 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21447 | rm -f conftest.er1 |
| 21448 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21450 | (exit $ac_status); } && { |
| 21451 | test -z "$ac_c_werror_flag" || |
| 21452 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21453 | } && test -s conftest$ac_exeext && { |
| 21454 | test "$cross_compiling" = yes || |
| 21455 | $as_test_x conftest$ac_exeext |
| 21456 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21457 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21458 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21459 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21461 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21462 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21463 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21464 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21465 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21466 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21467 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21468 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21469 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 21470 | $as_echo "$as_val"'` |
| 21471 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21472 | $as_echo "$ac_res" >&6; } |
| 21473 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 21474 | $as_echo "$as_val"'` |
| 21475 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21476 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21477 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21478 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21479 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21480 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 21481 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21482 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21483 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21484 | fi |
| 21485 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21486 | |
| 21487 | |
| 21488 | |
| 21489 | |
| 21490 | |
| 21491 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21492 | # checks for system services |
| 21493 | # (none yet) |
| 21494 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21495 | # Linux requires this for correct f.p. operations |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21496 | { $as_echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 21497 | $as_echo_n "checking for __fpu_control... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21498 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21499 | $as_echo_n "(cached) " >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21500 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21501 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21502 | /* confdefs.h. */ |
| 21503 | _ACEOF |
| 21504 | cat confdefs.h >>conftest.$ac_ext |
| 21505 | cat >>conftest.$ac_ext <<_ACEOF |
| 21506 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21507 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 21508 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21509 | #define __fpu_control innocuous___fpu_control |
| 21510 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21511 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21512 | which can conflict with char __fpu_control (); below. |
| 21513 | 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] | 21514 | <limits.h> exists even on freestanding compilers. */ |
| 21515 | |
| 21516 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21517 | # include <limits.h> |
| 21518 | #else |
| 21519 | # include <assert.h> |
| 21520 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21521 | |
| 21522 | #undef __fpu_control |
| 21523 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21524 | /* Override any GCC internal prototype to avoid an error. |
| 21525 | Use char because int might match the return type of a GCC |
| 21526 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21527 | #ifdef __cplusplus |
| 21528 | extern "C" |
| 21529 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21530 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21531 | /* The GNU C library defines this for functions which it implements |
| 21532 | to always fail with ENOSYS. Some functions are actually named |
| 21533 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21534 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21535 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21536 | #endif |
| 21537 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21538 | int |
| 21539 | main () |
| 21540 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21541 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21542 | ; |
| 21543 | return 0; |
| 21544 | } |
| 21545 | _ACEOF |
| 21546 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21547 | if { (ac_try="$ac_link" |
| 21548 | case "(($ac_try" in |
| 21549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21550 | *) ac_try_echo=$ac_try;; |
| 21551 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21552 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21553 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21554 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21555 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21557 | rm -f conftest.er1 |
| 21558 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21559 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21560 | (exit $ac_status); } && { |
| 21561 | test -z "$ac_c_werror_flag" || |
| 21562 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21563 | } && test -s conftest$ac_exeext && { |
| 21564 | test "$cross_compiling" = yes || |
| 21565 | $as_test_x conftest$ac_exeext |
| 21566 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21567 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21568 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21569 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21571 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21572 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21573 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21574 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21575 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21576 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21577 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21578 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21579 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 21580 | $as_echo "$ac_cv_func___fpu_control" >&6; } |
| 21581 | if test "x$ac_cv_func___fpu_control" = x""yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21582 | : |
| 21583 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21584 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21585 | { $as_echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 21586 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21587 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21588 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21590 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21591 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21592 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21593 | /* confdefs.h. */ |
| 21594 | _ACEOF |
| 21595 | cat confdefs.h >>conftest.$ac_ext |
| 21596 | cat >>conftest.$ac_ext <<_ACEOF |
| 21597 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21598 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21599 | /* Override any GCC internal prototype to avoid an error. |
| 21600 | Use char because int might match the return type of a GCC |
| 21601 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21602 | #ifdef __cplusplus |
| 21603 | extern "C" |
| 21604 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21605 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21606 | int |
| 21607 | main () |
| 21608 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21609 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21610 | ; |
| 21611 | return 0; |
| 21612 | } |
| 21613 | _ACEOF |
| 21614 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21615 | if { (ac_try="$ac_link" |
| 21616 | case "(($ac_try" in |
| 21617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21618 | *) ac_try_echo=$ac_try;; |
| 21619 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21621 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21622 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21623 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21625 | rm -f conftest.er1 |
| 21626 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21627 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21628 | (exit $ac_status); } && { |
| 21629 | test -z "$ac_c_werror_flag" || |
| 21630 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21631 | } && test -s conftest$ac_exeext && { |
| 21632 | test "$cross_compiling" = yes || |
| 21633 | $as_test_x conftest$ac_exeext |
| 21634 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21635 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21636 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21637 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21639 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21640 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21641 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21642 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21643 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21644 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21645 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21646 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21647 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21648 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 21649 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
| 21650 | if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21651 | cat >>confdefs.h <<_ACEOF |
| 21652 | #define HAVE_LIBIEEE 1 |
| 21653 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21654 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21655 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21656 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21657 | fi |
| 21658 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21659 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21660 | fi |
| 21661 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21662 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21663 | # Check for --with-fpectl |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21664 | { $as_echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 21665 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21666 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21667 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21668 | if test "${with_fpectl+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21669 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21670 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21671 | then |
| 21672 | |
| 21673 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21674 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21675 | _ACEOF |
| 21676 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21677 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 21678 | $as_echo "yes" >&6; } |
| 21679 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 21680 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21681 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21682 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21683 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 21684 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21685 | fi |
| 21686 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21687 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21688 | # check for --with-libm=... |
| 21689 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 21690 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 21691 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 21692 | *) LIBM=-lm |
| 21693 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21694 | { $as_echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 21695 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21696 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21697 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21698 | if test "${with_libm+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21699 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21700 | if test "$withval" = no |
| 21701 | then LIBM= |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21702 | { $as_echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 21703 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21704 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21705 | then LIBM=$withval |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21706 | { $as_echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 21707 | $as_echo "set LIBM=\"$withval\"" >&6; } |
| 21708 | else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 21709 | $as_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] | 21710 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21711 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21712 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21713 | { $as_echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 21714 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21715 | fi |
| 21716 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21717 | |
| 21718 | # check for --with-libc=... |
| 21719 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21720 | { $as_echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 21721 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21722 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21723 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21724 | if test "${with_libc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21725 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21726 | if test "$withval" = no |
| 21727 | then LIBC= |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21728 | { $as_echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 21729 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21730 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21731 | then LIBC=$withval |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21732 | { $as_echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 21733 | $as_echo "set LIBC=\"$withval\"" >&6; } |
| 21734 | else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 21735 | $as_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] | 21736 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21737 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21738 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21739 | { $as_echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 21740 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21741 | fi |
| 21742 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21743 | |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21744 | # ************************************ |
| 21745 | # * Check for mathematical functions * |
| 21746 | # ************************************ |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21747 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 21748 | LIBS_SAVE=$LIBS |
| 21749 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21750 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21751 | # Detect whether system arithmetic is subject to x87-style double |
| 21752 | # rounding issues. The result of this test has little meaning on non |
| 21753 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 21754 | # mode is round-to-nearest and double rounding issues are present, and |
| 21755 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21756 | { $as_echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 21757 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21758 | if test "${ac_cv_x87_double_rounding+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21759 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21760 | else |
| 21761 | |
| 21762 | if test "$cross_compiling" = yes; then |
| 21763 | ac_cv_x87_double_rounding=no |
| 21764 | else |
| 21765 | cat >conftest.$ac_ext <<_ACEOF |
| 21766 | /* confdefs.h. */ |
| 21767 | _ACEOF |
| 21768 | cat confdefs.h >>conftest.$ac_ext |
| 21769 | cat >>conftest.$ac_ext <<_ACEOF |
| 21770 | /* end confdefs.h. */ |
| 21771 | |
| 21772 | #include <stdlib.h> |
| 21773 | #include <math.h> |
| 21774 | int main() { |
| 21775 | volatile double x, y, z; |
| 21776 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 21777 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 21778 | y = 1./x; |
| 21779 | if (y != 1.) |
| 21780 | exit(0); |
| 21781 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 21782 | x = 1e16; |
| 21783 | y = 2.99999; |
| 21784 | z = x + y; |
| 21785 | if (z != 1e16+4.) |
| 21786 | exit(0); |
| 21787 | /* both tests show evidence of double rounding */ |
| 21788 | exit(1); |
| 21789 | } |
| 21790 | |
| 21791 | _ACEOF |
| 21792 | rm -f conftest$ac_exeext |
| 21793 | if { (ac_try="$ac_link" |
| 21794 | case "(($ac_try" in |
| 21795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21796 | *) ac_try_echo=$ac_try;; |
| 21797 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21799 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21800 | (eval "$ac_link") 2>&5 |
| 21801 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21802 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21803 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21804 | { (case "(($ac_try" in |
| 21805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21806 | *) ac_try_echo=$ac_try;; |
| 21807 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21808 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21809 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21810 | (eval "$ac_try") 2>&5 |
| 21811 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21812 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21813 | (exit $ac_status); }; }; then |
| 21814 | ac_cv_x87_double_rounding=no |
| 21815 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21816 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 21817 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21819 | |
| 21820 | ( exit $ac_status ) |
| 21821 | ac_cv_x87_double_rounding=yes |
| 21822 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21823 | rm -rf conftest.dSYM |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21824 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21825 | fi |
| 21826 | |
| 21827 | |
| 21828 | fi |
| 21829 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21830 | { $as_echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 21831 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 21832 | if test "$ac_cv_x87_double_rounding" = yes |
| 21833 | then |
| 21834 | |
| 21835 | cat >>confdefs.h <<\_ACEOF |
| 21836 | #define X87_DOUBLE_ROUNDING 1 |
| 21837 | _ACEOF |
| 21838 | |
| 21839 | fi |
| 21840 | |
| 21841 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21842 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 21843 | # -0. on some architectures. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21844 | { $as_echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 21845 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21846 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21847 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21848 | else |
| 21849 | |
| 21850 | if test "$cross_compiling" = yes; then |
| 21851 | ac_cv_tanh_preserves_zero_sign=no |
| 21852 | else |
| 21853 | cat >conftest.$ac_ext <<_ACEOF |
| 21854 | /* confdefs.h. */ |
| 21855 | _ACEOF |
| 21856 | cat confdefs.h >>conftest.$ac_ext |
| 21857 | cat >>conftest.$ac_ext <<_ACEOF |
| 21858 | /* end confdefs.h. */ |
| 21859 | |
| 21860 | #include <math.h> |
| 21861 | #include <stdlib.h> |
| 21862 | int main() { |
| 21863 | /* return 0 if either negative zeros don't exist |
| 21864 | on this platform or if negative zeros exist |
| 21865 | and tanh(-0.) == -0. */ |
| 21866 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 21867 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 21868 | else exit(1); |
| 21869 | } |
| 21870 | |
| 21871 | _ACEOF |
| 21872 | rm -f conftest$ac_exeext |
| 21873 | if { (ac_try="$ac_link" |
| 21874 | case "(($ac_try" in |
| 21875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21876 | *) ac_try_echo=$ac_try;; |
| 21877 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21878 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21879 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21880 | (eval "$ac_link") 2>&5 |
| 21881 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21883 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21884 | { (case "(($ac_try" in |
| 21885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21886 | *) ac_try_echo=$ac_try;; |
| 21887 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21888 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21889 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21890 | (eval "$ac_try") 2>&5 |
| 21891 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21892 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21893 | (exit $ac_status); }; }; then |
| 21894 | ac_cv_tanh_preserves_zero_sign=yes |
| 21895 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21896 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 21897 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21899 | |
| 21900 | ( exit $ac_status ) |
| 21901 | ac_cv_tanh_preserves_zero_sign=no |
| 21902 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21903 | rm -rf conftest.dSYM |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21904 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21905 | fi |
| 21906 | |
| 21907 | |
| 21908 | fi |
| 21909 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21910 | { $as_echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 21911 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21912 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 21913 | then |
| 21914 | |
| 21915 | cat >>confdefs.h <<\_ACEOF |
| 21916 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 21917 | _ACEOF |
| 21918 | |
| 21919 | fi |
| 21920 | |
| 21921 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 21922 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21923 | |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21924 | |
| 21925 | |
| 21926 | |
| 21927 | |
| 21928 | |
Mark Dickinson | 0f63257 | 2009-01-05 17:10:09 +0000 | [diff] [blame] | 21929 | for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21930 | do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21931 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21932 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21933 | $as_echo_n "checking for $ac_func... " >&6; } |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21934 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21935 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21936 | else |
| 21937 | cat >conftest.$ac_ext <<_ACEOF |
| 21938 | /* confdefs.h. */ |
| 21939 | _ACEOF |
| 21940 | cat confdefs.h >>conftest.$ac_ext |
| 21941 | cat >>conftest.$ac_ext <<_ACEOF |
| 21942 | /* end confdefs.h. */ |
| 21943 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21944 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21945 | #define $ac_func innocuous_$ac_func |
| 21946 | |
| 21947 | /* System header to define __stub macros and hopefully few prototypes, |
| 21948 | which can conflict with char $ac_func (); below. |
| 21949 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21950 | <limits.h> exists even on freestanding compilers. */ |
| 21951 | |
| 21952 | #ifdef __STDC__ |
| 21953 | # include <limits.h> |
| 21954 | #else |
| 21955 | # include <assert.h> |
| 21956 | #endif |
| 21957 | |
| 21958 | #undef $ac_func |
| 21959 | |
| 21960 | /* Override any GCC internal prototype to avoid an error. |
| 21961 | Use char because int might match the return type of a GCC |
| 21962 | builtin and then its argument prototype would still apply. */ |
| 21963 | #ifdef __cplusplus |
| 21964 | extern "C" |
| 21965 | #endif |
| 21966 | char $ac_func (); |
| 21967 | /* The GNU C library defines this for functions which it implements |
| 21968 | to always fail with ENOSYS. Some functions are actually named |
| 21969 | something starting with __ and the normal name is an alias. */ |
| 21970 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 21971 | choke me |
| 21972 | #endif |
| 21973 | |
| 21974 | int |
| 21975 | main () |
| 21976 | { |
| 21977 | return $ac_func (); |
| 21978 | ; |
| 21979 | return 0; |
| 21980 | } |
| 21981 | _ACEOF |
| 21982 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21983 | if { (ac_try="$ac_link" |
| 21984 | case "(($ac_try" in |
| 21985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21986 | *) ac_try_echo=$ac_try;; |
| 21987 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21989 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21990 | (eval "$ac_link") 2>conftest.er1 |
| 21991 | ac_status=$? |
| 21992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21993 | rm -f conftest.er1 |
| 21994 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21996 | (exit $ac_status); } && { |
| 21997 | test -z "$ac_c_werror_flag" || |
| 21998 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 21999 | } && test -s conftest$ac_exeext && { |
| 22000 | test "$cross_compiling" = yes || |
| 22001 | $as_test_x conftest$ac_exeext |
| 22002 | }; then |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22003 | eval "$as_ac_var=yes" |
| 22004 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22005 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22007 | |
| 22008 | eval "$as_ac_var=no" |
| 22009 | fi |
| 22010 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22011 | rm -rf conftest.dSYM |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22012 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 22013 | conftest$ac_exeext conftest.$ac_ext |
| 22014 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22015 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 22016 | $as_echo "$as_val"'` |
| 22017 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22018 | $as_echo "$ac_res" >&6; } |
| 22019 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 22020 | $as_echo "$as_val"'` |
| 22021 | if test "x$as_val" = x""yes; then |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22022 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22023 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22024 | _ACEOF |
| 22025 | |
| 22026 | fi |
| 22027 | done |
| 22028 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22029 | { $as_echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 22030 | $as_echo_n "checking whether isinf is declared... " >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22031 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22032 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22033 | else |
| 22034 | cat >conftest.$ac_ext <<_ACEOF |
| 22035 | /* confdefs.h. */ |
| 22036 | _ACEOF |
| 22037 | cat confdefs.h >>conftest.$ac_ext |
| 22038 | cat >>conftest.$ac_ext <<_ACEOF |
| 22039 | /* end confdefs.h. */ |
| 22040 | #include <math.h> |
| 22041 | |
| 22042 | int |
| 22043 | main () |
| 22044 | { |
| 22045 | #ifndef isinf |
| 22046 | (void) isinf; |
| 22047 | #endif |
| 22048 | |
| 22049 | ; |
| 22050 | return 0; |
| 22051 | } |
| 22052 | _ACEOF |
| 22053 | rm -f conftest.$ac_objext |
| 22054 | if { (ac_try="$ac_compile" |
| 22055 | case "(($ac_try" in |
| 22056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22057 | *) ac_try_echo=$ac_try;; |
| 22058 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22059 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22060 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22061 | (eval "$ac_compile") 2>conftest.er1 |
| 22062 | ac_status=$? |
| 22063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22064 | rm -f conftest.er1 |
| 22065 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +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 |
| 22071 | ac_cv_have_decl_isinf=yes |
| 22072 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22073 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22075 | |
| 22076 | ac_cv_have_decl_isinf=no |
| 22077 | fi |
| 22078 | |
| 22079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22080 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22081 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 22082 | $as_echo "$ac_cv_have_decl_isinf" >&6; } |
| 22083 | if test "x$ac_cv_have_decl_isinf" = x""yes; then |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22084 | |
| 22085 | cat >>confdefs.h <<_ACEOF |
| 22086 | #define HAVE_DECL_ISINF 1 |
| 22087 | _ACEOF |
| 22088 | |
| 22089 | |
| 22090 | else |
| 22091 | cat >>confdefs.h <<_ACEOF |
| 22092 | #define HAVE_DECL_ISINF 0 |
| 22093 | _ACEOF |
| 22094 | |
| 22095 | |
| 22096 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22097 | { $as_echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 22098 | $as_echo_n "checking whether isnan is declared... " >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22099 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22100 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22101 | else |
| 22102 | cat >conftest.$ac_ext <<_ACEOF |
| 22103 | /* confdefs.h. */ |
| 22104 | _ACEOF |
| 22105 | cat confdefs.h >>conftest.$ac_ext |
| 22106 | cat >>conftest.$ac_ext <<_ACEOF |
| 22107 | /* end confdefs.h. */ |
| 22108 | #include <math.h> |
| 22109 | |
| 22110 | int |
| 22111 | main () |
| 22112 | { |
| 22113 | #ifndef isnan |
| 22114 | (void) isnan; |
| 22115 | #endif |
| 22116 | |
| 22117 | ; |
| 22118 | return 0; |
| 22119 | } |
| 22120 | _ACEOF |
| 22121 | rm -f conftest.$ac_objext |
| 22122 | if { (ac_try="$ac_compile" |
| 22123 | case "(($ac_try" in |
| 22124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22125 | *) ac_try_echo=$ac_try;; |
| 22126 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22128 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22129 | (eval "$ac_compile") 2>conftest.er1 |
| 22130 | ac_status=$? |
| 22131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22132 | rm -f conftest.er1 |
| 22133 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22135 | (exit $ac_status); } && { |
| 22136 | test -z "$ac_c_werror_flag" || |
| 22137 | test ! -s conftest.err |
| 22138 | } && test -s conftest.$ac_objext; then |
| 22139 | ac_cv_have_decl_isnan=yes |
| 22140 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22141 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22143 | |
| 22144 | ac_cv_have_decl_isnan=no |
| 22145 | fi |
| 22146 | |
| 22147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22148 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22149 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 22150 | $as_echo "$ac_cv_have_decl_isnan" >&6; } |
| 22151 | if test "x$ac_cv_have_decl_isnan" = x""yes; then |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22152 | |
| 22153 | cat >>confdefs.h <<_ACEOF |
| 22154 | #define HAVE_DECL_ISNAN 1 |
| 22155 | _ACEOF |
| 22156 | |
| 22157 | |
| 22158 | else |
| 22159 | cat >>confdefs.h <<_ACEOF |
| 22160 | #define HAVE_DECL_ISNAN 0 |
| 22161 | _ACEOF |
| 22162 | |
| 22163 | |
| 22164 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22165 | { $as_echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 22166 | $as_echo_n "checking whether isfinite is declared... " >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22167 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22168 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22169 | else |
| 22170 | cat >conftest.$ac_ext <<_ACEOF |
| 22171 | /* confdefs.h. */ |
| 22172 | _ACEOF |
| 22173 | cat confdefs.h >>conftest.$ac_ext |
| 22174 | cat >>conftest.$ac_ext <<_ACEOF |
| 22175 | /* end confdefs.h. */ |
| 22176 | #include <math.h> |
| 22177 | |
| 22178 | int |
| 22179 | main () |
| 22180 | { |
| 22181 | #ifndef isfinite |
| 22182 | (void) isfinite; |
| 22183 | #endif |
| 22184 | |
| 22185 | ; |
| 22186 | return 0; |
| 22187 | } |
| 22188 | _ACEOF |
| 22189 | rm -f conftest.$ac_objext |
| 22190 | if { (ac_try="$ac_compile" |
| 22191 | case "(($ac_try" in |
| 22192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22193 | *) ac_try_echo=$ac_try;; |
| 22194 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22196 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22197 | (eval "$ac_compile") 2>conftest.er1 |
| 22198 | ac_status=$? |
| 22199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22200 | rm -f conftest.er1 |
| 22201 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22203 | (exit $ac_status); } && { |
| 22204 | test -z "$ac_c_werror_flag" || |
| 22205 | test ! -s conftest.err |
| 22206 | } && test -s conftest.$ac_objext; then |
| 22207 | ac_cv_have_decl_isfinite=yes |
| 22208 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22209 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22211 | |
| 22212 | ac_cv_have_decl_isfinite=no |
| 22213 | fi |
| 22214 | |
| 22215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22216 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22217 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 22218 | $as_echo "$ac_cv_have_decl_isfinite" >&6; } |
| 22219 | if test "x$ac_cv_have_decl_isfinite" = x""yes; then |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22220 | |
| 22221 | cat >>confdefs.h <<_ACEOF |
| 22222 | #define HAVE_DECL_ISFINITE 1 |
| 22223 | _ACEOF |
| 22224 | |
| 22225 | |
| 22226 | else |
| 22227 | cat >>confdefs.h <<_ACEOF |
| 22228 | #define HAVE_DECL_ISFINITE 0 |
| 22229 | _ACEOF |
| 22230 | |
| 22231 | |
| 22232 | fi |
| 22233 | |
| 22234 | |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22235 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 22236 | LIBS=$LIBS_SAVE |
| 22237 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22238 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22239 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22240 | { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 22241 | $as_echo_n "checking for wchar.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22242 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22243 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22244 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22245 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 22246 | $as_echo "$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22247 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22248 | # Is the header compilable? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22249 | { $as_echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 22250 | $as_echo_n "checking wchar.h usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22251 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22252 | /* confdefs.h. */ |
| 22253 | _ACEOF |
| 22254 | cat confdefs.h >>conftest.$ac_ext |
| 22255 | cat >>conftest.$ac_ext <<_ACEOF |
| 22256 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22257 | $ac_includes_default |
| 22258 | #include <wchar.h> |
| 22259 | _ACEOF |
| 22260 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22261 | if { (ac_try="$ac_compile" |
| 22262 | case "(($ac_try" in |
| 22263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22264 | *) ac_try_echo=$ac_try;; |
| 22265 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22266 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22267 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22268 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22269 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22271 | rm -f conftest.er1 |
| 22272 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22274 | (exit $ac_status); } && { |
| 22275 | test -z "$ac_c_werror_flag" || |
| 22276 | test ! -s conftest.err |
| 22277 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22278 | ac_header_compiler=yes |
| 22279 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22280 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22282 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22283 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22284 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22285 | |
| 22286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22287 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 22288 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22289 | |
| 22290 | # Is the header present? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22291 | { $as_echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 22292 | $as_echo_n "checking wchar.h presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22293 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22294 | /* confdefs.h. */ |
| 22295 | _ACEOF |
| 22296 | cat confdefs.h >>conftest.$ac_ext |
| 22297 | cat >>conftest.$ac_ext <<_ACEOF |
| 22298 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22299 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22300 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22301 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22302 | case "(($ac_try" in |
| 22303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22304 | *) ac_try_echo=$ac_try;; |
| 22305 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22307 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22308 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22309 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22310 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22311 | rm -f conftest.er1 |
| 22312 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22314 | (exit $ac_status); } >/dev/null && { |
| 22315 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 22316 | test ! -s conftest.err |
| 22317 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22318 | ac_header_preproc=yes |
| 22319 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22320 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22323 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22324 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22325 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22326 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22327 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22328 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22329 | |
| 22330 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22331 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22332 | yes:no: ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22333 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22334 | $as_echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 22335 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 22336 | $as_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] | 22337 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22338 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22339 | no:yes:* ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22340 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 22341 | $as_echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 22342 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 22343 | $as_echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 22344 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 22345 | $as_echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 22346 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 22347 | $as_echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 22348 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 22349 | $as_echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 22350 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 22351 | $as_echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22352 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22353 | ## ------------------------------------------------ ## |
| 22354 | ## Report this to http://www.python.org/python-bugs ## |
| 22355 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22356 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22357 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22358 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22359 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22360 | { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 22361 | $as_echo_n "checking for wchar.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22362 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22363 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22364 | else |
| 22365 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22366 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22367 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 22368 | $as_echo "$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22369 | |
| 22370 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22371 | if test "x$ac_cv_header_wchar_h" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22372 | |
| 22373 | |
| 22374 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22375 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22376 | _ACEOF |
| 22377 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22378 | wchar_h="yes" |
| 22379 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22380 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22381 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22382 | |
| 22383 | fi |
| 22384 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22386 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22387 | # determine wchar_t size |
| 22388 | if test "$wchar_h" = yes |
| 22389 | then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22390 | # The cast to long int works around a bug in the HP C Compiler |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22391 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 22392 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 22393 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22394 | { $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 22395 | $as_echo_n "checking size of wchar_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22396 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22397 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22398 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22399 | if test "$cross_compiling" = yes; then |
| 22400 | # Depending upon the size, compute the lo and hi bounds. |
| 22401 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22402 | /* confdefs.h. */ |
| 22403 | _ACEOF |
| 22404 | cat confdefs.h >>conftest.$ac_ext |
| 22405 | cat >>conftest.$ac_ext <<_ACEOF |
| 22406 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22407 | #include <wchar.h> |
| 22408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22409 | int |
| 22410 | main () |
| 22411 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22412 | static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22413 | test_array [0] = 0 |
| 22414 | |
| 22415 | ; |
| 22416 | return 0; |
| 22417 | } |
| 22418 | _ACEOF |
| 22419 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22420 | if { (ac_try="$ac_compile" |
| 22421 | case "(($ac_try" in |
| 22422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22423 | *) ac_try_echo=$ac_try;; |
| 22424 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22425 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22426 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22427 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22428 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22430 | rm -f conftest.er1 |
| 22431 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22432 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22433 | (exit $ac_status); } && { |
| 22434 | test -z "$ac_c_werror_flag" || |
| 22435 | test ! -s conftest.err |
| 22436 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22437 | ac_lo=0 ac_mid=0 |
| 22438 | while :; do |
| 22439 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22440 | /* confdefs.h. */ |
| 22441 | _ACEOF |
| 22442 | cat confdefs.h >>conftest.$ac_ext |
| 22443 | cat >>conftest.$ac_ext <<_ACEOF |
| 22444 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22445 | #include <wchar.h> |
| 22446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22447 | int |
| 22448 | main () |
| 22449 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22450 | static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22451 | test_array [0] = 0 |
| 22452 | |
| 22453 | ; |
| 22454 | return 0; |
| 22455 | } |
| 22456 | _ACEOF |
| 22457 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22458 | if { (ac_try="$ac_compile" |
| 22459 | case "(($ac_try" in |
| 22460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22461 | *) ac_try_echo=$ac_try;; |
| 22462 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22463 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22464 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22465 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22466 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22468 | rm -f conftest.er1 |
| 22469 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22471 | (exit $ac_status); } && { |
| 22472 | test -z "$ac_c_werror_flag" || |
| 22473 | test ! -s conftest.err |
| 22474 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22475 | ac_hi=$ac_mid; break |
| 22476 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22477 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22479 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22480 | ac_lo=`expr $ac_mid + 1` |
| 22481 | if test $ac_lo -le $ac_mid; then |
| 22482 | ac_lo= ac_hi= |
| 22483 | break |
| 22484 | fi |
| 22485 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22486 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22487 | |
| 22488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22489 | done |
| 22490 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22491 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22493 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22494 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22495 | /* confdefs.h. */ |
| 22496 | _ACEOF |
| 22497 | cat confdefs.h >>conftest.$ac_ext |
| 22498 | cat >>conftest.$ac_ext <<_ACEOF |
| 22499 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22500 | #include <wchar.h> |
| 22501 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22502 | int |
| 22503 | main () |
| 22504 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22505 | static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22506 | test_array [0] = 0 |
| 22507 | |
| 22508 | ; |
| 22509 | return 0; |
| 22510 | } |
| 22511 | _ACEOF |
| 22512 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22513 | if { (ac_try="$ac_compile" |
| 22514 | case "(($ac_try" in |
| 22515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22516 | *) ac_try_echo=$ac_try;; |
| 22517 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22518 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22519 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22520 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22521 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22523 | rm -f conftest.er1 |
| 22524 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22525 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22526 | (exit $ac_status); } && { |
| 22527 | test -z "$ac_c_werror_flag" || |
| 22528 | test ! -s conftest.err |
| 22529 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22530 | ac_hi=-1 ac_mid=-1 |
| 22531 | while :; do |
| 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. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22538 | #include <wchar.h> |
| 22539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22540 | int |
| 22541 | main () |
| 22542 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22543 | static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22544 | test_array [0] = 0 |
| 22545 | |
| 22546 | ; |
| 22547 | return 0; |
| 22548 | } |
| 22549 | _ACEOF |
| 22550 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22551 | if { (ac_try="$ac_compile" |
| 22552 | case "(($ac_try" in |
| 22553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22554 | *) ac_try_echo=$ac_try;; |
| 22555 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22556 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22557 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22558 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22559 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22561 | rm -f conftest.er1 |
| 22562 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22564 | (exit $ac_status); } && { |
| 22565 | test -z "$ac_c_werror_flag" || |
| 22566 | test ! -s conftest.err |
| 22567 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22568 | ac_lo=$ac_mid; break |
| 22569 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22570 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22572 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22573 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 22574 | if test $ac_mid -le $ac_hi; then |
| 22575 | ac_lo= ac_hi= |
| 22576 | break |
| 22577 | fi |
| 22578 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22579 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22580 | |
| 22581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22582 | done |
| 22583 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22584 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22586 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22587 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22588 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22589 | |
| 22590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22591 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22592 | |
| 22593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22594 | # Binary search between lo and hi bounds. |
| 22595 | while test "x$ac_lo" != "x$ac_hi"; do |
| 22596 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 22597 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22598 | /* confdefs.h. */ |
| 22599 | _ACEOF |
| 22600 | cat confdefs.h >>conftest.$ac_ext |
| 22601 | cat >>conftest.$ac_ext <<_ACEOF |
| 22602 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22603 | #include <wchar.h> |
| 22604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22605 | int |
| 22606 | main () |
| 22607 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22608 | static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22609 | test_array [0] = 0 |
| 22610 | |
| 22611 | ; |
| 22612 | return 0; |
| 22613 | } |
| 22614 | _ACEOF |
| 22615 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22616 | if { (ac_try="$ac_compile" |
| 22617 | case "(($ac_try" in |
| 22618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22619 | *) ac_try_echo=$ac_try;; |
| 22620 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22622 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22623 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22624 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22626 | rm -f conftest.er1 |
| 22627 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22628 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22629 | (exit $ac_status); } && { |
| 22630 | test -z "$ac_c_werror_flag" || |
| 22631 | test ! -s conftest.err |
| 22632 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22633 | ac_hi=$ac_mid |
| 22634 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22635 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22637 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22638 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22639 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22640 | |
| 22641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22642 | done |
| 22643 | case $ac_lo in |
| 22644 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22645 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22646 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 22647 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 22648 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22649 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22650 | $as_echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22651 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22652 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22653 | else |
| 22654 | ac_cv_sizeof_wchar_t=0 |
| 22655 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22656 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22657 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22658 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22659 | /* confdefs.h. */ |
| 22660 | _ACEOF |
| 22661 | cat confdefs.h >>conftest.$ac_ext |
| 22662 | cat >>conftest.$ac_ext <<_ACEOF |
| 22663 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22664 | #include <wchar.h> |
| 22665 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22666 | static long int longval () { return (long int) (sizeof (wchar_t)); } |
| 22667 | static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22668 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22669 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22670 | int |
| 22671 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22672 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22673 | |
| 22674 | FILE *f = fopen ("conftest.val", "w"); |
| 22675 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22676 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22677 | if (((long int) (sizeof (wchar_t))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22678 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22679 | long int i = longval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22680 | if (i != ((long int) (sizeof (wchar_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22681 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22682 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22683 | } |
| 22684 | else |
| 22685 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22686 | unsigned long int i = ulongval (); |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22687 | if (i != ((long int) (sizeof (wchar_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22688 | return 1; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22689 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22690 | } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22691 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 22692 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22693 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22694 | |
| 22695 | ; |
| 22696 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22697 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22698 | _ACEOF |
| 22699 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22700 | if { (ac_try="$ac_link" |
| 22701 | case "(($ac_try" in |
| 22702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22703 | *) ac_try_echo=$ac_try;; |
| 22704 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22706 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22707 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22708 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22710 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22711 | { (case "(($ac_try" in |
| 22712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22713 | *) ac_try_echo=$ac_try;; |
| 22714 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22716 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22717 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22718 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22719 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22720 | (exit $ac_status); }; }; then |
| 22721 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22722 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22723 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 22724 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22727 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22728 | if test "$ac_cv_type_wchar_t" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22729 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 22730 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 22731 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22732 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22733 | $as_echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22734 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22735 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22736 | else |
| 22737 | ac_cv_sizeof_wchar_t=0 |
| 22738 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22739 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22740 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22741 | 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] | 22742 | fi |
| 22743 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22744 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22745 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 22746 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22747 | |
| 22748 | |
| 22749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22750 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22751 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22752 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22753 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22754 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22755 | fi |
| 22756 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22757 | { $as_echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 22758 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22759 | have_ucs4_tcl=no |
| 22760 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22761 | /* confdefs.h. */ |
| 22762 | _ACEOF |
| 22763 | cat confdefs.h >>conftest.$ac_ext |
| 22764 | cat >>conftest.$ac_ext <<_ACEOF |
| 22765 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22766 | |
| 22767 | #include <tcl.h> |
| 22768 | #if TCL_UTF_MAX != 6 |
| 22769 | # error "NOT UCS4_TCL" |
| 22770 | #endif |
| 22771 | int |
| 22772 | main () |
| 22773 | { |
| 22774 | |
| 22775 | ; |
| 22776 | return 0; |
| 22777 | } |
| 22778 | _ACEOF |
| 22779 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22780 | if { (ac_try="$ac_compile" |
| 22781 | case "(($ac_try" in |
| 22782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22783 | *) ac_try_echo=$ac_try;; |
| 22784 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22785 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22786 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22787 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22788 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22790 | rm -f conftest.er1 |
| 22791 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22793 | (exit $ac_status); } && { |
| 22794 | test -z "$ac_c_werror_flag" || |
| 22795 | test ! -s conftest.err |
| 22796 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22797 | |
| 22798 | |
| 22799 | cat >>confdefs.h <<\_ACEOF |
| 22800 | #define HAVE_UCS4_TCL 1 |
| 22801 | _ACEOF |
| 22802 | |
| 22803 | have_ucs4_tcl=yes |
| 22804 | |
| 22805 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22806 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22808 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22809 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22810 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22811 | |
| 22812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22813 | { $as_echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 22814 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22815 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22816 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22817 | if test "$wchar_h" = yes |
| 22818 | then |
| 22819 | # check whether wchar_t is signed or not |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22820 | { $as_echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 22821 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22822 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22823 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22824 | else |
| 22825 | |
| 22826 | if test "$cross_compiling" = yes; then |
| 22827 | ac_cv_wchar_t_signed=yes |
| 22828 | else |
| 22829 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22830 | /* confdefs.h. */ |
| 22831 | _ACEOF |
| 22832 | cat confdefs.h >>conftest.$ac_ext |
| 22833 | cat >>conftest.$ac_ext <<_ACEOF |
| 22834 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22835 | |
| 22836 | #include <wchar.h> |
| 22837 | int main() |
| 22838 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 22839 | /* Success: exit code 0 */ |
| 22840 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22841 | } |
| 22842 | |
| 22843 | _ACEOF |
| 22844 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22845 | if { (ac_try="$ac_link" |
| 22846 | case "(($ac_try" in |
| 22847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22848 | *) ac_try_echo=$ac_try;; |
| 22849 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22851 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22852 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22853 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22855 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22856 | { (case "(($ac_try" in |
| 22857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22858 | *) ac_try_echo=$ac_try;; |
| 22859 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22861 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22862 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22863 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22865 | (exit $ac_status); }; }; then |
| 22866 | ac_cv_wchar_t_signed=yes |
| 22867 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22868 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 22869 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22871 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22872 | ( exit $ac_status ) |
| 22873 | ac_cv_wchar_t_signed=no |
| 22874 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22875 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22876 | 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] | 22877 | fi |
| 22878 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22879 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22880 | fi |
| 22881 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22882 | { $as_echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 22883 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22884 | fi |
| 22885 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22886 | { $as_echo "$as_me:$LINENO: checking what type to use for str" >&5 |
| 22887 | $as_echo_n "checking what type to use for str... " >&6; } |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22888 | |
| 22889 | # Check whether --with-wide-unicode was given. |
| 22890 | if test "${with_wide_unicode+set}" = set; then |
| 22891 | withval=$with_wide_unicode; |
| 22892 | if test "$withval" != no |
| 22893 | then unicode_size="4" |
| 22894 | else unicode_size="2" |
| 22895 | fi |
| 22896 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22897 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22898 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22899 | case "$have_ucs4_tcl" in |
| 22900 | yes) unicode_size="4" ;; |
| 22901 | *) unicode_size="2" ;; |
| 22902 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22903 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22904 | fi |
| 22905 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 22906 | |
| 22907 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22908 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22909 | case "$unicode_size" in |
| 22910 | 4) cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22911 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22912 | _ACEOF |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22913 | ;; |
| 22914 | *) cat >>confdefs.h <<\_ACEOF |
| 22915 | #define Py_UNICODE_SIZE 2 |
| 22916 | _ACEOF |
| 22917 | ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22918 | esac |
| 22919 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22921 | |
| 22922 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22923 | # wchar_t is only usable if it maps to an unsigned type |
| 22924 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 22925 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22926 | then |
| 22927 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22929 | cat >>confdefs.h <<\_ACEOF |
| 22930 | #define HAVE_USABLE_WCHAR_T 1 |
| 22931 | _ACEOF |
| 22932 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22933 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22934 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22935 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22936 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22937 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 22938 | then |
| 22939 | PY_UNICODE_TYPE="unsigned short" |
| 22940 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22941 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22942 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22943 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22944 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 22945 | then |
| 22946 | PY_UNICODE_TYPE="unsigned long" |
| 22947 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22948 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22949 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22950 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22951 | else |
| 22952 | PY_UNICODE_TYPE="no type found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22953 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22954 | { $as_echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 22955 | $as_echo "$PY_UNICODE_TYPE" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22956 | |
| 22957 | # check for endianness |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22958 | |
| 22959 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 22960 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22961 | if test "${ac_cv_c_bigendian+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22962 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22963 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 22964 | ac_cv_c_bigendian=unknown |
| 22965 | # See if we're dealing with a universal compiler. |
| 22966 | cat >conftest.$ac_ext <<_ACEOF |
| 22967 | /* confdefs.h. */ |
| 22968 | _ACEOF |
| 22969 | cat confdefs.h >>conftest.$ac_ext |
| 22970 | cat >>conftest.$ac_ext <<_ACEOF |
| 22971 | /* end confdefs.h. */ |
| 22972 | #ifndef __APPLE_CC__ |
| 22973 | not a universal capable compiler |
| 22974 | #endif |
| 22975 | typedef int dummy; |
| 22976 | |
| 22977 | _ACEOF |
| 22978 | rm -f conftest.$ac_objext |
| 22979 | if { (ac_try="$ac_compile" |
| 22980 | case "(($ac_try" in |
| 22981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22982 | *) ac_try_echo=$ac_try;; |
| 22983 | esac |
| 22984 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22985 | $as_echo "$ac_try_echo") >&5 |
| 22986 | (eval "$ac_compile") 2>conftest.er1 |
| 22987 | ac_status=$? |
| 22988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22989 | rm -f conftest.er1 |
| 22990 | cat conftest.err >&5 |
| 22991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22992 | (exit $ac_status); } && { |
| 22993 | test -z "$ac_c_werror_flag" || |
| 22994 | test ! -s conftest.err |
| 22995 | } && test -s conftest.$ac_objext; then |
| 22996 | |
| 22997 | # Check for potential -arch flags. It is not universal unless |
| 22998 | # there are some -arch flags. Note that *ppc* also matches |
| 22999 | # ppc64. This check is also rather less than ideal. |
| 23000 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( |
| 23001 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; |
| 23002 | esac |
| 23003 | else |
| 23004 | $as_echo "$as_me: failed program was:" >&5 |
| 23005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23006 | |
| 23007 | |
| 23008 | fi |
| 23009 | |
| 23010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23011 | if test $ac_cv_c_bigendian = unknown; then |
| 23012 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 23013 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23014 | /* confdefs.h. */ |
| 23015 | _ACEOF |
| 23016 | cat confdefs.h >>conftest.$ac_ext |
| 23017 | cat >>conftest.$ac_ext <<_ACEOF |
| 23018 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23019 | #include <sys/types.h> |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23020 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23022 | int |
| 23023 | main () |
| 23024 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23025 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 23026 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 23027 | && LITTLE_ENDIAN) |
| 23028 | bogus endian macros |
| 23029 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23030 | |
| 23031 | ; |
| 23032 | return 0; |
| 23033 | } |
| 23034 | _ACEOF |
| 23035 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23036 | if { (ac_try="$ac_compile" |
| 23037 | case "(($ac_try" in |
| 23038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23039 | *) ac_try_echo=$ac_try;; |
| 23040 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23041 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23042 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23043 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23044 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23046 | rm -f conftest.er1 |
| 23047 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23049 | (exit $ac_status); } && { |
| 23050 | test -z "$ac_c_werror_flag" || |
| 23051 | test ! -s conftest.err |
| 23052 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23053 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23054 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23055 | /* confdefs.h. */ |
| 23056 | _ACEOF |
| 23057 | cat confdefs.h >>conftest.$ac_ext |
| 23058 | cat >>conftest.$ac_ext <<_ACEOF |
| 23059 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23060 | #include <sys/types.h> |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23061 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23063 | int |
| 23064 | main () |
| 23065 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23066 | #if BYTE_ORDER != BIG_ENDIAN |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23067 | not big endian |
| 23068 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23069 | |
| 23070 | ; |
| 23071 | return 0; |
| 23072 | } |
| 23073 | _ACEOF |
| 23074 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23075 | if { (ac_try="$ac_compile" |
| 23076 | case "(($ac_try" in |
| 23077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23078 | *) ac_try_echo=$ac_try;; |
| 23079 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23080 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23081 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23082 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23083 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23085 | rm -f conftest.er1 |
| 23086 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23087 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23088 | (exit $ac_status); } && { |
| 23089 | test -z "$ac_c_werror_flag" || |
| 23090 | test ! -s conftest.err |
| 23091 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23092 | ac_cv_c_bigendian=yes |
| 23093 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23094 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23096 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23097 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23098 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23099 | |
| 23100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23101 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23102 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23104 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23105 | |
| 23106 | fi |
| 23107 | |
| 23108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23109 | fi |
| 23110 | if test $ac_cv_c_bigendian = unknown; then |
| 23111 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 23112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23113 | /* confdefs.h. */ |
| 23114 | _ACEOF |
| 23115 | cat confdefs.h >>conftest.$ac_ext |
| 23116 | cat >>conftest.$ac_ext <<_ACEOF |
| 23117 | /* end confdefs.h. */ |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23118 | #include <limits.h> |
| 23119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23120 | int |
| 23121 | main () |
| 23122 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23123 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 23124 | bogus endian macros |
| 23125 | #endif |
| 23126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23127 | ; |
| 23128 | return 0; |
| 23129 | } |
| 23130 | _ACEOF |
| 23131 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23132 | if { (ac_try="$ac_compile" |
| 23133 | case "(($ac_try" in |
| 23134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23135 | *) ac_try_echo=$ac_try;; |
| 23136 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23137 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23138 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23139 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23140 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23142 | rm -f conftest.er1 |
| 23143 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23144 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23145 | (exit $ac_status); } && { |
| 23146 | test -z "$ac_c_werror_flag" || |
| 23147 | test ! -s conftest.err |
| 23148 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23149 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 23150 | cat >conftest.$ac_ext <<_ACEOF |
| 23151 | /* confdefs.h. */ |
| 23152 | _ACEOF |
| 23153 | cat confdefs.h >>conftest.$ac_ext |
| 23154 | cat >>conftest.$ac_ext <<_ACEOF |
| 23155 | /* end confdefs.h. */ |
| 23156 | #include <limits.h> |
| 23157 | |
| 23158 | int |
| 23159 | main () |
| 23160 | { |
| 23161 | #ifndef _BIG_ENDIAN |
| 23162 | not big endian |
| 23163 | #endif |
| 23164 | |
| 23165 | ; |
| 23166 | return 0; |
| 23167 | } |
| 23168 | _ACEOF |
| 23169 | rm -f conftest.$ac_objext |
| 23170 | if { (ac_try="$ac_compile" |
| 23171 | case "(($ac_try" in |
| 23172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23173 | *) ac_try_echo=$ac_try;; |
| 23174 | esac |
| 23175 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23176 | $as_echo "$ac_try_echo") >&5 |
| 23177 | (eval "$ac_compile") 2>conftest.er1 |
| 23178 | ac_status=$? |
| 23179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23180 | rm -f conftest.er1 |
| 23181 | cat conftest.err >&5 |
| 23182 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23183 | (exit $ac_status); } && { |
| 23184 | test -z "$ac_c_werror_flag" || |
| 23185 | test ! -s conftest.err |
| 23186 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23187 | ac_cv_c_bigendian=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23188 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23189 | $as_echo "$as_me: failed program was:" >&5 |
| 23190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23191 | |
| 23192 | ac_cv_c_bigendian=no |
| 23193 | fi |
| 23194 | |
| 23195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23196 | else |
| 23197 | $as_echo "$as_me: failed program was:" >&5 |
| 23198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23199 | |
| 23200 | |
| 23201 | fi |
| 23202 | |
| 23203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23204 | fi |
| 23205 | if test $ac_cv_c_bigendian = unknown; then |
| 23206 | # Compile a test program. |
| 23207 | if test "$cross_compiling" = yes; then |
| 23208 | # Try to guess by grepping values from an object file. |
| 23209 | cat >conftest.$ac_ext <<_ACEOF |
| 23210 | /* confdefs.h. */ |
| 23211 | _ACEOF |
| 23212 | cat confdefs.h >>conftest.$ac_ext |
| 23213 | cat >>conftest.$ac_ext <<_ACEOF |
| 23214 | /* end confdefs.h. */ |
| 23215 | short int ascii_mm[] = |
| 23216 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 23217 | short int ascii_ii[] = |
| 23218 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 23219 | int use_ascii (int i) { |
| 23220 | return ascii_mm[i] + ascii_ii[i]; |
| 23221 | } |
| 23222 | short int ebcdic_ii[] = |
| 23223 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 23224 | short int ebcdic_mm[] = |
| 23225 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 23226 | int use_ebcdic (int i) { |
| 23227 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 23228 | } |
| 23229 | extern int foo; |
| 23230 | |
| 23231 | int |
| 23232 | main () |
| 23233 | { |
| 23234 | return use_ascii (foo) == use_ebcdic (foo); |
| 23235 | ; |
| 23236 | return 0; |
| 23237 | } |
| 23238 | _ACEOF |
| 23239 | rm -f conftest.$ac_objext |
| 23240 | if { (ac_try="$ac_compile" |
| 23241 | case "(($ac_try" in |
| 23242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23243 | *) ac_try_echo=$ac_try;; |
| 23244 | esac |
| 23245 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23246 | $as_echo "$ac_try_echo") >&5 |
| 23247 | (eval "$ac_compile") 2>conftest.er1 |
| 23248 | ac_status=$? |
| 23249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23250 | rm -f conftest.er1 |
| 23251 | cat conftest.err >&5 |
| 23252 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23253 | (exit $ac_status); } && { |
| 23254 | test -z "$ac_c_werror_flag" || |
| 23255 | test ! -s conftest.err |
| 23256 | } && test -s conftest.$ac_objext; then |
| 23257 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 23258 | ac_cv_c_bigendian=yes |
| 23259 | fi |
| 23260 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 23261 | if test "$ac_cv_c_bigendian" = unknown; then |
| 23262 | ac_cv_c_bigendian=no |
| 23263 | else |
| 23264 | # finding both strings is unlikely to happen, but who knows? |
| 23265 | ac_cv_c_bigendian=unknown |
| 23266 | fi |
| 23267 | fi |
| 23268 | else |
| 23269 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23271 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23273 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23274 | |
| 23275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23276 | else |
| 23277 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23278 | /* confdefs.h. */ |
| 23279 | _ACEOF |
| 23280 | cat confdefs.h >>conftest.$ac_ext |
| 23281 | cat >>conftest.$ac_ext <<_ACEOF |
| 23282 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23283 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23284 | int |
| 23285 | main () |
| 23286 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23287 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23288 | /* Are we little or big endian? From Harbison&Steele. */ |
| 23289 | union |
| 23290 | { |
| 23291 | long int l; |
| 23292 | char c[sizeof (long int)]; |
| 23293 | } u; |
| 23294 | u.l = 1; |
| 23295 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23296 | |
| 23297 | ; |
| 23298 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23299 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23300 | _ACEOF |
| 23301 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23302 | if { (ac_try="$ac_link" |
| 23303 | case "(($ac_try" in |
| 23304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23305 | *) ac_try_echo=$ac_try;; |
| 23306 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23307 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23308 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23309 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23310 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23312 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23313 | { (case "(($ac_try" in |
| 23314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23315 | *) ac_try_echo=$ac_try;; |
| 23316 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23317 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23318 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23319 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23320 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23321 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23322 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23323 | ac_cv_c_bigendian=no |
| 23324 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23325 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 23326 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23329 | ( exit $ac_status ) |
| 23330 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23331 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23332 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23333 | 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] | 23334 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23335 | |
| 23336 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23337 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23338 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23339 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 23340 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 23341 | case $ac_cv_c_bigendian in #( |
| 23342 | yes) |
| 23343 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23344 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23345 | _ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23346 | ;; #( |
| 23347 | no) |
| 23348 | ;; #( |
| 23349 | universal) |
| 23350 | |
| 23351 | cat >>confdefs.h <<\_ACEOF |
| 23352 | #define AC_APPLE_UNIVERSAL_BUILD 1 |
| 23353 | _ACEOF |
| 23354 | |
| 23355 | ;; #( |
| 23356 | *) |
| 23357 | { { $as_echo "$as_me:$LINENO: error: unknown endianness |
| 23358 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 23359 | $as_echo "$as_me: error: unknown endianness |
| 23360 | 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] | 23361 | { (exit 1); exit 1; }; } ;; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23362 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23363 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23364 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23365 | # Check whether right shifting a negative integer extends the sign bit |
| 23366 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23367 | { $as_echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 23368 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23369 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23370 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23371 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23372 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23373 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 23374 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23375 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23376 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23377 | /* confdefs.h. */ |
| 23378 | _ACEOF |
| 23379 | cat confdefs.h >>conftest.$ac_ext |
| 23380 | cat >>conftest.$ac_ext <<_ACEOF |
| 23381 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23382 | |
| 23383 | int main() |
| 23384 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23385 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23386 | } |
| 23387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23388 | _ACEOF |
| 23389 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23390 | if { (ac_try="$ac_link" |
| 23391 | case "(($ac_try" in |
| 23392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23393 | *) ac_try_echo=$ac_try;; |
| 23394 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23396 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23397 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23398 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23399 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23400 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23401 | { (case "(($ac_try" in |
| 23402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23403 | *) ac_try_echo=$ac_try;; |
| 23404 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23405 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23406 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23407 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23408 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23410 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23411 | ac_cv_rshift_extends_sign=yes |
| 23412 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23413 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 23414 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23417 | ( exit $ac_status ) |
| 23418 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23419 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23420 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23421 | 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] | 23422 | fi |
| 23423 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23424 | |
| 23425 | fi |
| 23426 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23427 | { $as_echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 23428 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23429 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23430 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23431 | |
| 23432 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23433 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23434 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23435 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23436 | fi |
| 23437 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23438 | # check for getc_unlocked and related locking functions |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23439 | { $as_echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 23440 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23441 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23442 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23444 | |
| 23445 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23446 | /* confdefs.h. */ |
| 23447 | _ACEOF |
| 23448 | cat confdefs.h >>conftest.$ac_ext |
| 23449 | cat >>conftest.$ac_ext <<_ACEOF |
| 23450 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23451 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23452 | int |
| 23453 | main () |
| 23454 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23455 | |
| 23456 | FILE *f = fopen("/dev/null", "r"); |
| 23457 | flockfile(f); |
| 23458 | getc_unlocked(f); |
| 23459 | funlockfile(f); |
| 23460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23461 | ; |
| 23462 | return 0; |
| 23463 | } |
| 23464 | _ACEOF |
| 23465 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23466 | if { (ac_try="$ac_link" |
| 23467 | case "(($ac_try" in |
| 23468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23469 | *) ac_try_echo=$ac_try;; |
| 23470 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23471 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23472 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23473 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23474 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23476 | rm -f conftest.er1 |
| 23477 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23478 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23479 | (exit $ac_status); } && { |
| 23480 | test -z "$ac_c_werror_flag" || |
| 23481 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23482 | } && test -s conftest$ac_exeext && { |
| 23483 | test "$cross_compiling" = yes || |
| 23484 | $as_test_x conftest$ac_exeext |
| 23485 | }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23486 | ac_cv_have_getc_unlocked=yes |
| 23487 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23488 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23490 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23491 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23492 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23493 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23494 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23495 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23496 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23497 | fi |
| 23498 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23499 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 23500 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23501 | if test "$ac_cv_have_getc_unlocked" = yes |
| 23502 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23503 | |
| 23504 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23505 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23506 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23507 | |
| 23508 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23509 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23510 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 23511 | # save the value of LIBS so we don't actually link Python with readline |
| 23512 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23513 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23514 | # On some systems we need to link readline to a termcap compatible |
| 23515 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 23516 | # with setup.py. |
| 23517 | py_cv_lib_readline=no |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23518 | { $as_echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 23519 | $as_echo_n "checking how to link readline libs... " >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23520 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 23521 | if test -z "$py_libtermcap"; then |
| 23522 | READLINE_LIBS="-lreadline" |
| 23523 | else |
| 23524 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 23525 | fi |
| 23526 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 23527 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23528 | /* confdefs.h. */ |
| 23529 | _ACEOF |
| 23530 | cat confdefs.h >>conftest.$ac_ext |
| 23531 | cat >>conftest.$ac_ext <<_ACEOF |
| 23532 | /* end confdefs.h. */ |
| 23533 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23534 | /* Override any GCC internal prototype to avoid an error. |
| 23535 | Use char because int might match the return type of a GCC |
| 23536 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23537 | #ifdef __cplusplus |
| 23538 | extern "C" |
| 23539 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23540 | char readline (); |
| 23541 | int |
| 23542 | main () |
| 23543 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23544 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23545 | ; |
| 23546 | return 0; |
| 23547 | } |
| 23548 | _ACEOF |
| 23549 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23550 | if { (ac_try="$ac_link" |
| 23551 | case "(($ac_try" in |
| 23552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23553 | *) ac_try_echo=$ac_try;; |
| 23554 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23556 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23557 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23558 | ac_status=$? |
| 23559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23560 | rm -f conftest.er1 |
| 23561 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23563 | (exit $ac_status); } && { |
| 23564 | test -z "$ac_c_werror_flag" || |
| 23565 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23566 | } && test -s conftest$ac_exeext && { |
| 23567 | test "$cross_compiling" = yes || |
| 23568 | $as_test_x conftest$ac_exeext |
| 23569 | }; then |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23570 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23571 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23572 | $as_echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23574 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23575 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23576 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23577 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23578 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23579 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23580 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23581 | if test $py_cv_lib_readline = yes; then |
| 23582 | break |
| 23583 | fi |
| 23584 | done |
| 23585 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 23586 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 23587 | if test $py_cv_lib_readline = no; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23588 | { $as_echo "$as_me:$LINENO: result: none" >&5 |
| 23589 | $as_echo "none" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23590 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23591 | { $as_echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 23592 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23593 | |
| 23594 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23595 | #define HAVE_LIBREADLINE 1 |
| 23596 | _ACEOF |
| 23597 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23598 | fi |
| 23599 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23600 | # check for readline 2.1 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23601 | { $as_echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 23602 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23603 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23604 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23605 | else |
| 23606 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23607 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23608 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23609 | /* confdefs.h. */ |
| 23610 | _ACEOF |
| 23611 | cat confdefs.h >>conftest.$ac_ext |
| 23612 | cat >>conftest.$ac_ext <<_ACEOF |
| 23613 | /* end confdefs.h. */ |
| 23614 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23615 | /* Override any GCC internal prototype to avoid an error. |
| 23616 | Use char because int might match the return type of a GCC |
| 23617 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23618 | #ifdef __cplusplus |
| 23619 | extern "C" |
| 23620 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23621 | char rl_callback_handler_install (); |
| 23622 | int |
| 23623 | main () |
| 23624 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23625 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23626 | ; |
| 23627 | return 0; |
| 23628 | } |
| 23629 | _ACEOF |
| 23630 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23631 | if { (ac_try="$ac_link" |
| 23632 | case "(($ac_try" in |
| 23633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23634 | *) ac_try_echo=$ac_try;; |
| 23635 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23636 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23637 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23638 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23639 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23641 | rm -f conftest.er1 |
| 23642 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23643 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23644 | (exit $ac_status); } && { |
| 23645 | test -z "$ac_c_werror_flag" || |
| 23646 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23647 | } && test -s conftest$ac_exeext && { |
| 23648 | test "$cross_compiling" = yes || |
| 23649 | $as_test_x conftest$ac_exeext |
| 23650 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23651 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 23652 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23653 | $as_echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23655 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23656 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23657 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23658 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23659 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23660 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23661 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23662 | LIBS=$ac_check_lib_save_LIBS |
| 23663 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23664 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 23665 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 23666 | if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23667 | |
| 23668 | cat >>confdefs.h <<\_ACEOF |
| 23669 | #define HAVE_RL_CALLBACK 1 |
| 23670 | _ACEOF |
| 23671 | |
| 23672 | fi |
| 23673 | |
| 23674 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23675 | # check for readline 2.2 |
| 23676 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23677 | /* confdefs.h. */ |
| 23678 | _ACEOF |
| 23679 | cat confdefs.h >>conftest.$ac_ext |
| 23680 | cat >>conftest.$ac_ext <<_ACEOF |
| 23681 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23682 | #include <readline/readline.h> |
| 23683 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23684 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 23685 | case "(($ac_try" in |
| 23686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23687 | *) ac_try_echo=$ac_try;; |
| 23688 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23689 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23690 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23691 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23692 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23693 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23694 | rm -f conftest.er1 |
| 23695 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23697 | (exit $ac_status); } >/dev/null && { |
| 23698 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 23699 | test ! -s conftest.err |
| 23700 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23701 | have_readline=yes |
| 23702 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23703 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23705 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23706 | have_readline=no |
| 23707 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23708 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23709 | rm -f conftest.err conftest.$ac_ext |
| 23710 | if test $have_readline = yes |
| 23711 | then |
| 23712 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23713 | /* confdefs.h. */ |
| 23714 | _ACEOF |
| 23715 | cat confdefs.h >>conftest.$ac_ext |
| 23716 | cat >>conftest.$ac_ext <<_ACEOF |
| 23717 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23718 | #include <readline/readline.h> |
| 23719 | |
| 23720 | _ACEOF |
| 23721 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23722 | $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] | 23723 | |
| 23724 | cat >>confdefs.h <<\_ACEOF |
| 23725 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 23726 | _ACEOF |
| 23727 | |
| 23728 | fi |
| 23729 | rm -f conftest* |
| 23730 | |
| 23731 | fi |
| 23732 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23733 | # check for readline 4.0 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23734 | { $as_echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 23735 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23736 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23737 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23738 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23739 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23740 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23741 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23742 | /* confdefs.h. */ |
| 23743 | _ACEOF |
| 23744 | cat confdefs.h >>conftest.$ac_ext |
| 23745 | cat >>conftest.$ac_ext <<_ACEOF |
| 23746 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23747 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23748 | /* Override any GCC internal prototype to avoid an error. |
| 23749 | Use char because int might match the return type of a GCC |
| 23750 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23751 | #ifdef __cplusplus |
| 23752 | extern "C" |
| 23753 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23754 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23755 | int |
| 23756 | main () |
| 23757 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23758 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23759 | ; |
| 23760 | return 0; |
| 23761 | } |
| 23762 | _ACEOF |
| 23763 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23764 | if { (ac_try="$ac_link" |
| 23765 | case "(($ac_try" in |
| 23766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23767 | *) ac_try_echo=$ac_try;; |
| 23768 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23769 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23770 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23771 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23772 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23774 | rm -f conftest.er1 |
| 23775 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23776 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23777 | (exit $ac_status); } && { |
| 23778 | test -z "$ac_c_werror_flag" || |
| 23779 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23780 | } && test -s conftest$ac_exeext && { |
| 23781 | test "$cross_compiling" = yes || |
| 23782 | $as_test_x conftest$ac_exeext |
| 23783 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23784 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23785 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23786 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23788 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23789 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23790 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23791 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23792 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23794 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23795 | LIBS=$ac_check_lib_save_LIBS |
| 23796 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23797 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 23798 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 23799 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23800 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23801 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23802 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23803 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23804 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23805 | fi |
| 23806 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23807 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23808 | # also in 4.0 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23809 | { $as_echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 23810 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23811 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23812 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23813 | else |
| 23814 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23815 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23816 | cat >conftest.$ac_ext <<_ACEOF |
| 23817 | /* confdefs.h. */ |
| 23818 | _ACEOF |
| 23819 | cat confdefs.h >>conftest.$ac_ext |
| 23820 | cat >>conftest.$ac_ext <<_ACEOF |
| 23821 | /* end confdefs.h. */ |
| 23822 | |
| 23823 | /* Override any GCC internal prototype to avoid an error. |
| 23824 | Use char because int might match the return type of a GCC |
| 23825 | builtin and then its argument prototype would still apply. */ |
| 23826 | #ifdef __cplusplus |
| 23827 | extern "C" |
| 23828 | #endif |
| 23829 | char rl_completion_display_matches_hook (); |
| 23830 | int |
| 23831 | main () |
| 23832 | { |
| 23833 | return rl_completion_display_matches_hook (); |
| 23834 | ; |
| 23835 | return 0; |
| 23836 | } |
| 23837 | _ACEOF |
| 23838 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23839 | if { (ac_try="$ac_link" |
| 23840 | case "(($ac_try" in |
| 23841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23842 | *) ac_try_echo=$ac_try;; |
| 23843 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23844 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23845 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23846 | (eval "$ac_link") 2>conftest.er1 |
| 23847 | ac_status=$? |
| 23848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23849 | rm -f conftest.er1 |
| 23850 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23851 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23852 | (exit $ac_status); } && { |
| 23853 | test -z "$ac_c_werror_flag" || |
| 23854 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23855 | } && test -s conftest$ac_exeext && { |
| 23856 | test "$cross_compiling" = yes || |
| 23857 | $as_test_x conftest$ac_exeext |
| 23858 | }; then |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23859 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 23860 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23861 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23863 | |
| 23864 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 23865 | fi |
| 23866 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23867 | rm -rf conftest.dSYM |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23868 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23869 | conftest$ac_exeext conftest.$ac_ext |
| 23870 | LIBS=$ac_check_lib_save_LIBS |
| 23871 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23872 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 23873 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 23874 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 23875 | |
| 23876 | cat >>confdefs.h <<\_ACEOF |
| 23877 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 23878 | _ACEOF |
| 23879 | |
| 23880 | fi |
| 23881 | |
| 23882 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23883 | # check for readline 4.2 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23884 | { $as_echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 23885 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23886 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23887 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23889 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 23890 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23891 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23892 | /* confdefs.h. */ |
| 23893 | _ACEOF |
| 23894 | cat confdefs.h >>conftest.$ac_ext |
| 23895 | cat >>conftest.$ac_ext <<_ACEOF |
| 23896 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23897 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23898 | /* Override any GCC internal prototype to avoid an error. |
| 23899 | Use char because int might match the return type of a GCC |
| 23900 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23901 | #ifdef __cplusplus |
| 23902 | extern "C" |
| 23903 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23904 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23905 | int |
| 23906 | main () |
| 23907 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23908 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23909 | ; |
| 23910 | return 0; |
| 23911 | } |
| 23912 | _ACEOF |
| 23913 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23914 | if { (ac_try="$ac_link" |
| 23915 | case "(($ac_try" in |
| 23916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23917 | *) ac_try_echo=$ac_try;; |
| 23918 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23919 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23920 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23921 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23922 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23924 | rm -f conftest.er1 |
| 23925 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23927 | (exit $ac_status); } && { |
| 23928 | test -z "$ac_c_werror_flag" || |
| 23929 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23930 | } && test -s conftest$ac_exeext && { |
| 23931 | test "$cross_compiling" = yes || |
| 23932 | $as_test_x conftest$ac_exeext |
| 23933 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23934 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23935 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23936 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23938 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23939 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23940 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23941 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23942 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23943 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23944 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23945 | LIBS=$ac_check_lib_save_LIBS |
| 23946 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23947 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 23948 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 23949 | if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23951 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23952 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23953 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23954 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23955 | fi |
| 23956 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23957 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23958 | # also in readline 4.2 |
| 23959 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23960 | /* confdefs.h. */ |
| 23961 | _ACEOF |
| 23962 | cat confdefs.h >>conftest.$ac_ext |
| 23963 | cat >>conftest.$ac_ext <<_ACEOF |
| 23964 | /* end confdefs.h. */ |
| 23965 | #include <readline/readline.h> |
| 23966 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23967 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 23968 | case "(($ac_try" in |
| 23969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23970 | *) ac_try_echo=$ac_try;; |
| 23971 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23972 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23973 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23974 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23975 | ac_status=$? |
| 23976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23977 | rm -f conftest.er1 |
| 23978 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23980 | (exit $ac_status); } >/dev/null && { |
| 23981 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 23982 | test ! -s conftest.err |
| 23983 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23984 | have_readline=yes |
| 23985 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 23986 | $as_echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23988 | |
| 23989 | have_readline=no |
| 23990 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23991 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23992 | rm -f conftest.err conftest.$ac_ext |
| 23993 | if test $have_readline = yes |
| 23994 | then |
| 23995 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23996 | /* confdefs.h. */ |
| 23997 | _ACEOF |
| 23998 | cat confdefs.h >>conftest.$ac_ext |
| 23999 | cat >>conftest.$ac_ext <<_ACEOF |
| 24000 | /* end confdefs.h. */ |
| 24001 | #include <readline/readline.h> |
| 24002 | |
| 24003 | _ACEOF |
| 24004 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24005 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 24006 | |
| 24007 | cat >>confdefs.h <<\_ACEOF |
| 24008 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 24009 | _ACEOF |
| 24010 | |
| 24011 | fi |
| 24012 | rm -f conftest* |
| 24013 | |
| 24014 | fi |
| 24015 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 24016 | # End of readline checks: restore LIBS |
| 24017 | LIBS=$LIBS_no_readline |
| 24018 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24019 | { $as_echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 24020 | $as_echo_n "checking for broken nice()... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24021 | if test "${ac_cv_broken_nice+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24022 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24024 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24025 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 24026 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24028 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24029 | /* confdefs.h. */ |
| 24030 | _ACEOF |
| 24031 | cat confdefs.h >>conftest.$ac_ext |
| 24032 | cat >>conftest.$ac_ext <<_ACEOF |
| 24033 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24034 | |
| 24035 | int main() |
| 24036 | { |
| 24037 | int val1 = nice(1); |
| 24038 | if (val1 != -1 && val1 == nice(2)) |
| 24039 | exit(0); |
| 24040 | exit(1); |
| 24041 | } |
| 24042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24043 | _ACEOF |
| 24044 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24045 | if { (ac_try="$ac_link" |
| 24046 | case "(($ac_try" in |
| 24047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24048 | *) ac_try_echo=$ac_try;; |
| 24049 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24050 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24051 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24052 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24053 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24055 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24056 | { (case "(($ac_try" in |
| 24057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24058 | *) ac_try_echo=$ac_try;; |
| 24059 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24061 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24062 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24063 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24065 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24066 | ac_cv_broken_nice=yes |
| 24067 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24068 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 24069 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24072 | ( exit $ac_status ) |
| 24073 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24074 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24075 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24076 | 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] | 24077 | fi |
| 24078 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24079 | |
| 24080 | fi |
| 24081 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24082 | { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 24083 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24084 | if test "$ac_cv_broken_nice" = yes |
| 24085 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24086 | |
| 24087 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24088 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24089 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24090 | |
| 24091 | fi |
| 24092 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24093 | { $as_echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 24094 | $as_echo_n "checking for broken poll()... " >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24095 | if test "$cross_compiling" = yes; then |
| 24096 | ac_cv_broken_poll=no |
| 24097 | else |
| 24098 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24099 | /* confdefs.h. */ |
| 24100 | _ACEOF |
| 24101 | cat confdefs.h >>conftest.$ac_ext |
| 24102 | cat >>conftest.$ac_ext <<_ACEOF |
| 24103 | /* end confdefs.h. */ |
| 24104 | |
| 24105 | #include <poll.h> |
| 24106 | |
| 24107 | int main (void) |
| 24108 | { |
| 24109 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 24110 | |
| 24111 | close (42); |
| 24112 | |
| 24113 | int poll_test = poll (&poll_struct, 1, 0); |
| 24114 | |
| 24115 | if (poll_test < 0) |
| 24116 | { |
| 24117 | exit(0); |
| 24118 | } |
| 24119 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 24120 | { |
| 24121 | exit(0); |
| 24122 | } |
| 24123 | else |
| 24124 | { |
| 24125 | exit(1); |
| 24126 | } |
| 24127 | } |
| 24128 | |
| 24129 | _ACEOF |
| 24130 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24131 | if { (ac_try="$ac_link" |
| 24132 | case "(($ac_try" in |
| 24133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24134 | *) ac_try_echo=$ac_try;; |
| 24135 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24137 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24138 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24139 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24140 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24141 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24142 | { (case "(($ac_try" in |
| 24143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24144 | *) ac_try_echo=$ac_try;; |
| 24145 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24146 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24147 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24148 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24149 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24150 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24151 | (exit $ac_status); }; }; then |
| 24152 | ac_cv_broken_poll=yes |
| 24153 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24154 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 24155 | $as_echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24157 | |
| 24158 | ( exit $ac_status ) |
| 24159 | ac_cv_broken_poll=no |
| 24160 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24161 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24162 | 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] | 24163 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24164 | |
| 24165 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24166 | { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 24167 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24168 | if test "$ac_cv_broken_poll" = yes |
| 24169 | then |
| 24170 | |
| 24171 | cat >>confdefs.h <<\_ACEOF |
| 24172 | #define HAVE_BROKEN_POLL 1 |
| 24173 | _ACEOF |
| 24174 | |
| 24175 | fi |
| 24176 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24177 | # 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] | 24178 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 24179 | # tzname[] |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24180 | { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 24181 | $as_echo_n "checking for struct tm.tm_zone... " >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24182 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24183 | $as_echo_n "(cached) " >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24184 | else |
| 24185 | cat >conftest.$ac_ext <<_ACEOF |
| 24186 | /* confdefs.h. */ |
| 24187 | _ACEOF |
| 24188 | cat confdefs.h >>conftest.$ac_ext |
| 24189 | cat >>conftest.$ac_ext <<_ACEOF |
| 24190 | /* end confdefs.h. */ |
| 24191 | #include <sys/types.h> |
| 24192 | #include <$ac_cv_struct_tm> |
| 24193 | |
| 24194 | |
| 24195 | int |
| 24196 | main () |
| 24197 | { |
| 24198 | static struct tm ac_aggr; |
| 24199 | if (ac_aggr.tm_zone) |
| 24200 | return 0; |
| 24201 | ; |
| 24202 | return 0; |
| 24203 | } |
| 24204 | _ACEOF |
| 24205 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24206 | if { (ac_try="$ac_compile" |
| 24207 | case "(($ac_try" in |
| 24208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24209 | *) ac_try_echo=$ac_try;; |
| 24210 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24211 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24212 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24213 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24214 | ac_status=$? |
| 24215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24216 | rm -f conftest.er1 |
| 24217 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24218 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24219 | (exit $ac_status); } && { |
| 24220 | test -z "$ac_c_werror_flag" || |
| 24221 | test ! -s conftest.err |
| 24222 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24223 | ac_cv_member_struct_tm_tm_zone=yes |
| 24224 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24225 | $as_echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24227 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24228 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24229 | /* confdefs.h. */ |
| 24230 | _ACEOF |
| 24231 | cat confdefs.h >>conftest.$ac_ext |
| 24232 | cat >>conftest.$ac_ext <<_ACEOF |
| 24233 | /* end confdefs.h. */ |
| 24234 | #include <sys/types.h> |
| 24235 | #include <$ac_cv_struct_tm> |
| 24236 | |
| 24237 | |
| 24238 | int |
| 24239 | main () |
| 24240 | { |
| 24241 | static struct tm ac_aggr; |
| 24242 | if (sizeof ac_aggr.tm_zone) |
| 24243 | return 0; |
| 24244 | ; |
| 24245 | return 0; |
| 24246 | } |
| 24247 | _ACEOF |
| 24248 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24249 | if { (ac_try="$ac_compile" |
| 24250 | case "(($ac_try" in |
| 24251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24252 | *) ac_try_echo=$ac_try;; |
| 24253 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24254 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24255 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24256 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24257 | ac_status=$? |
| 24258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24259 | rm -f conftest.er1 |
| 24260 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24262 | (exit $ac_status); } && { |
| 24263 | test -z "$ac_c_werror_flag" || |
| 24264 | test ! -s conftest.err |
| 24265 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24266 | ac_cv_member_struct_tm_tm_zone=yes |
| 24267 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24268 | $as_echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24270 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24271 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24272 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24273 | |
| 24274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24275 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24276 | |
| 24277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24278 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24279 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 24280 | $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 24281 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24282 | |
| 24283 | cat >>confdefs.h <<_ACEOF |
| 24284 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 24285 | _ACEOF |
| 24286 | |
| 24287 | |
| 24288 | fi |
| 24289 | |
| 24290 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 24291 | |
| 24292 | cat >>confdefs.h <<\_ACEOF |
| 24293 | #define HAVE_TM_ZONE 1 |
| 24294 | _ACEOF |
| 24295 | |
| 24296 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24297 | { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 24298 | $as_echo_n "checking whether tzname is declared... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24299 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24300 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24301 | else |
| 24302 | cat >conftest.$ac_ext <<_ACEOF |
| 24303 | /* confdefs.h. */ |
| 24304 | _ACEOF |
| 24305 | cat confdefs.h >>conftest.$ac_ext |
| 24306 | cat >>conftest.$ac_ext <<_ACEOF |
| 24307 | /* end confdefs.h. */ |
| 24308 | #include <time.h> |
| 24309 | |
| 24310 | int |
| 24311 | main () |
| 24312 | { |
| 24313 | #ifndef tzname |
| 24314 | (void) tzname; |
| 24315 | #endif |
| 24316 | |
| 24317 | ; |
| 24318 | return 0; |
| 24319 | } |
| 24320 | _ACEOF |
| 24321 | rm -f conftest.$ac_objext |
| 24322 | if { (ac_try="$ac_compile" |
| 24323 | case "(($ac_try" in |
| 24324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24325 | *) ac_try_echo=$ac_try;; |
| 24326 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24327 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24328 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24329 | (eval "$ac_compile") 2>conftest.er1 |
| 24330 | ac_status=$? |
| 24331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24332 | rm -f conftest.er1 |
| 24333 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24335 | (exit $ac_status); } && { |
| 24336 | test -z "$ac_c_werror_flag" || |
| 24337 | test ! -s conftest.err |
| 24338 | } && test -s conftest.$ac_objext; then |
| 24339 | ac_cv_have_decl_tzname=yes |
| 24340 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24341 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24343 | |
| 24344 | ac_cv_have_decl_tzname=no |
| 24345 | fi |
| 24346 | |
| 24347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24348 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24349 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 24350 | $as_echo "$ac_cv_have_decl_tzname" >&6; } |
| 24351 | if test "x$ac_cv_have_decl_tzname" = x""yes; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24352 | |
| 24353 | cat >>confdefs.h <<_ACEOF |
| 24354 | #define HAVE_DECL_TZNAME 1 |
| 24355 | _ACEOF |
| 24356 | |
| 24357 | |
| 24358 | else |
| 24359 | cat >>confdefs.h <<_ACEOF |
| 24360 | #define HAVE_DECL_TZNAME 0 |
| 24361 | _ACEOF |
| 24362 | |
| 24363 | |
| 24364 | fi |
| 24365 | |
| 24366 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24367 | { $as_echo "$as_me:$LINENO: checking for tzname" >&5 |
| 24368 | $as_echo_n "checking for tzname... " >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24369 | if test "${ac_cv_var_tzname+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24370 | $as_echo_n "(cached) " >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24371 | else |
| 24372 | cat >conftest.$ac_ext <<_ACEOF |
| 24373 | /* confdefs.h. */ |
| 24374 | _ACEOF |
| 24375 | cat confdefs.h >>conftest.$ac_ext |
| 24376 | cat >>conftest.$ac_ext <<_ACEOF |
| 24377 | /* end confdefs.h. */ |
| 24378 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24379 | #if !HAVE_DECL_TZNAME |
| 24380 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24381 | #endif |
| 24382 | |
| 24383 | int |
| 24384 | main () |
| 24385 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24386 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24387 | ; |
| 24388 | return 0; |
| 24389 | } |
| 24390 | _ACEOF |
| 24391 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24392 | if { (ac_try="$ac_link" |
| 24393 | case "(($ac_try" in |
| 24394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24395 | *) ac_try_echo=$ac_try;; |
| 24396 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24398 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24399 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24400 | ac_status=$? |
| 24401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24402 | rm -f conftest.er1 |
| 24403 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24405 | (exit $ac_status); } && { |
| 24406 | test -z "$ac_c_werror_flag" || |
| 24407 | test ! -s conftest.err |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24408 | } && test -s conftest$ac_exeext && { |
| 24409 | test "$cross_compiling" = yes || |
| 24410 | $as_test_x conftest$ac_exeext |
| 24411 | }; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24412 | ac_cv_var_tzname=yes |
| 24413 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24414 | $as_echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24416 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24417 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24418 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24419 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24420 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24421 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24422 | conftest$ac_exeext conftest.$ac_ext |
| 24423 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24424 | { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 24425 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24426 | if test $ac_cv_var_tzname = yes; then |
| 24427 | |
| 24428 | cat >>confdefs.h <<\_ACEOF |
| 24429 | #define HAVE_TZNAME 1 |
| 24430 | _ACEOF |
| 24431 | |
| 24432 | fi |
| 24433 | fi |
| 24434 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24435 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 24436 | # check tzset(3) exists and works like we expect it to |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24437 | { $as_echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 24438 | $as_echo_n "checking for working tzset()... " >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24439 | if test "${ac_cv_working_tzset+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24440 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24441 | else |
| 24442 | |
| 24443 | if test "$cross_compiling" = yes; then |
| 24444 | ac_cv_working_tzset=no |
| 24445 | else |
| 24446 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24447 | /* confdefs.h. */ |
| 24448 | _ACEOF |
| 24449 | cat confdefs.h >>conftest.$ac_ext |
| 24450 | cat >>conftest.$ac_ext <<_ACEOF |
| 24451 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24452 | |
| 24453 | #include <stdlib.h> |
| 24454 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24455 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24456 | |
| 24457 | #if HAVE_TZNAME |
| 24458 | extern char *tzname[]; |
| 24459 | #endif |
| 24460 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24461 | int main() |
| 24462 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24463 | /* Note that we need to ensure that not only does tzset(3) |
| 24464 | do 'something' with localtime, but it works as documented |
| 24465 | 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] | 24466 | This includes making sure that tzname is set properly if |
| 24467 | tm->tm_zone does not exist since it is the alternative way |
| 24468 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24469 | |
| 24470 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 24471 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24472 | */ |
| 24473 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 24474 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24475 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 24476 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 24477 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24478 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24479 | if (localtime(&groundhogday)->tm_hour != 0) |
| 24480 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24481 | #if HAVE_TZNAME |
| 24482 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 24483 | if (strcmp(tzname[0], "UTC") || |
| 24484 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 24485 | exit(1); |
| 24486 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24487 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 24488 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24489 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24490 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24491 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24492 | #if HAVE_TZNAME |
| 24493 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 24494 | exit(1); |
| 24495 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24496 | |
| 24497 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 24498 | tzset(); |
| 24499 | if (localtime(&groundhogday)->tm_hour != 11) |
| 24500 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24501 | #if HAVE_TZNAME |
| 24502 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 24503 | exit(1); |
| 24504 | #endif |
| 24505 | |
| 24506 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24507 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 24508 | exit(1); |
| 24509 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 24510 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24511 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24512 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24513 | exit(0); |
| 24514 | } |
| 24515 | |
| 24516 | _ACEOF |
| 24517 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24518 | if { (ac_try="$ac_link" |
| 24519 | case "(($ac_try" in |
| 24520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24521 | *) ac_try_echo=$ac_try;; |
| 24522 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24523 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24524 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24525 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24526 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24527 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24528 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24529 | { (case "(($ac_try" in |
| 24530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24531 | *) ac_try_echo=$ac_try;; |
| 24532 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24533 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24534 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24535 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24536 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24537 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24538 | (exit $ac_status); }; }; then |
| 24539 | ac_cv_working_tzset=yes |
| 24540 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24541 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 24542 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24544 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24545 | ( exit $ac_status ) |
| 24546 | ac_cv_working_tzset=no |
| 24547 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24548 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24549 | 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] | 24550 | fi |
| 24551 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24552 | |
| 24553 | fi |
| 24554 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24555 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 24556 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24557 | if test "$ac_cv_working_tzset" = yes |
| 24558 | then |
| 24559 | |
| 24560 | cat >>confdefs.h <<\_ACEOF |
| 24561 | #define HAVE_WORKING_TZSET 1 |
| 24562 | _ACEOF |
| 24563 | |
| 24564 | fi |
| 24565 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24566 | # Look for subsecond timestamps in struct stat |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24567 | { $as_echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 24568 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24569 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24570 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24571 | else |
| 24572 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24573 | /* confdefs.h. */ |
| 24574 | _ACEOF |
| 24575 | cat confdefs.h >>conftest.$ac_ext |
| 24576 | cat >>conftest.$ac_ext <<_ACEOF |
| 24577 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24578 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24579 | int |
| 24580 | main () |
| 24581 | { |
| 24582 | |
| 24583 | struct stat st; |
| 24584 | st.st_mtim.tv_nsec = 1; |
| 24585 | |
| 24586 | ; |
| 24587 | return 0; |
| 24588 | } |
| 24589 | _ACEOF |
| 24590 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24591 | if { (ac_try="$ac_compile" |
| 24592 | case "(($ac_try" in |
| 24593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24594 | *) ac_try_echo=$ac_try;; |
| 24595 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24596 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24597 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24598 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24599 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24601 | rm -f conftest.er1 |
| 24602 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24604 | (exit $ac_status); } && { |
| 24605 | test -z "$ac_c_werror_flag" || |
| 24606 | test ! -s conftest.err |
| 24607 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 24608 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24609 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24610 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24612 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24613 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24614 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24615 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24617 | fi |
| 24618 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24619 | { $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 24620 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24621 | if test "$ac_cv_stat_tv_nsec" = yes |
| 24622 | then |
| 24623 | |
| 24624 | cat >>confdefs.h <<\_ACEOF |
| 24625 | #define HAVE_STAT_TV_NSEC 1 |
| 24626 | _ACEOF |
| 24627 | |
| 24628 | fi |
| 24629 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24630 | # Look for BSD style subsecond timestamps in struct stat |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24631 | { $as_echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 24632 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24633 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24634 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24635 | else |
| 24636 | cat >conftest.$ac_ext <<_ACEOF |
| 24637 | /* confdefs.h. */ |
| 24638 | _ACEOF |
| 24639 | cat confdefs.h >>conftest.$ac_ext |
| 24640 | cat >>conftest.$ac_ext <<_ACEOF |
| 24641 | /* end confdefs.h. */ |
| 24642 | #include <sys/stat.h> |
| 24643 | int |
| 24644 | main () |
| 24645 | { |
| 24646 | |
| 24647 | struct stat st; |
| 24648 | st.st_mtimespec.tv_nsec = 1; |
| 24649 | |
| 24650 | ; |
| 24651 | return 0; |
| 24652 | } |
| 24653 | _ACEOF |
| 24654 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24655 | if { (ac_try="$ac_compile" |
| 24656 | case "(($ac_try" in |
| 24657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24658 | *) ac_try_echo=$ac_try;; |
| 24659 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24660 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24661 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24662 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24663 | ac_status=$? |
| 24664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24665 | rm -f conftest.er1 |
| 24666 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24667 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24668 | (exit $ac_status); } && { |
| 24669 | test -z "$ac_c_werror_flag" || |
| 24670 | test ! -s conftest.err |
| 24671 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24672 | ac_cv_stat_tv_nsec2=yes |
| 24673 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24674 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24676 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24677 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24678 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24679 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24681 | fi |
| 24682 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24683 | { $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 24684 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24685 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 24686 | then |
| 24687 | |
| 24688 | cat >>confdefs.h <<\_ACEOF |
| 24689 | #define HAVE_STAT_TV_NSEC2 1 |
| 24690 | _ACEOF |
| 24691 | |
| 24692 | fi |
| 24693 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24694 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24695 | { $as_echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 24696 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24697 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24698 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24700 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24701 | /* confdefs.h. */ |
| 24702 | _ACEOF |
| 24703 | cat confdefs.h >>conftest.$ac_ext |
| 24704 | cat >>conftest.$ac_ext <<_ACEOF |
| 24705 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24706 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24707 | int |
| 24708 | main () |
| 24709 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24710 | |
| 24711 | int rtn; |
| 24712 | rtn = mvwdelch(0,0,0); |
| 24713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24714 | ; |
| 24715 | return 0; |
| 24716 | } |
| 24717 | _ACEOF |
| 24718 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24719 | if { (ac_try="$ac_compile" |
| 24720 | case "(($ac_try" in |
| 24721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24722 | *) ac_try_echo=$ac_try;; |
| 24723 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24725 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24726 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24727 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24729 | rm -f conftest.er1 |
| 24730 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24732 | (exit $ac_status); } && { |
| 24733 | test -z "$ac_c_werror_flag" || |
| 24734 | test ! -s conftest.err |
| 24735 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24736 | ac_cv_mvwdelch_is_expression=yes |
| 24737 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24738 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24740 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24741 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24742 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24743 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24745 | fi |
| 24746 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24747 | { $as_echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 24748 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24749 | |
| 24750 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 24751 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24752 | |
| 24753 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24754 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24755 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24756 | |
| 24757 | fi |
| 24758 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24759 | { $as_echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 24760 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24761 | if test "${ac_cv_window_has_flags+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24762 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24764 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24765 | /* confdefs.h. */ |
| 24766 | _ACEOF |
| 24767 | cat confdefs.h >>conftest.$ac_ext |
| 24768 | cat >>conftest.$ac_ext <<_ACEOF |
| 24769 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24770 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24771 | int |
| 24772 | main () |
| 24773 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24774 | |
| 24775 | WINDOW *w; |
| 24776 | w->_flags = 0; |
| 24777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24778 | ; |
| 24779 | return 0; |
| 24780 | } |
| 24781 | _ACEOF |
| 24782 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24783 | if { (ac_try="$ac_compile" |
| 24784 | case "(($ac_try" in |
| 24785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24786 | *) ac_try_echo=$ac_try;; |
| 24787 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24789 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24790 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24791 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24793 | rm -f conftest.er1 |
| 24794 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24795 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24796 | (exit $ac_status); } && { |
| 24797 | test -z "$ac_c_werror_flag" || |
| 24798 | test ! -s conftest.err |
| 24799 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24800 | ac_cv_window_has_flags=yes |
| 24801 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24802 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24804 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24805 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24806 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24807 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24809 | fi |
| 24810 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24811 | { $as_echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 24812 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24813 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24814 | |
| 24815 | if test "$ac_cv_window_has_flags" = yes |
| 24816 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24817 | |
| 24818 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24819 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24820 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24821 | |
| 24822 | fi |
| 24823 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24824 | { $as_echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 24825 | $as_echo_n "checking for is_term_resized... " >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24826 | cat >conftest.$ac_ext <<_ACEOF |
| 24827 | /* confdefs.h. */ |
| 24828 | _ACEOF |
| 24829 | cat confdefs.h >>conftest.$ac_ext |
| 24830 | cat >>conftest.$ac_ext <<_ACEOF |
| 24831 | /* end confdefs.h. */ |
| 24832 | #include <curses.h> |
| 24833 | int |
| 24834 | main () |
| 24835 | { |
| 24836 | void *x=is_term_resized |
| 24837 | ; |
| 24838 | return 0; |
| 24839 | } |
| 24840 | _ACEOF |
| 24841 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24842 | if { (ac_try="$ac_compile" |
| 24843 | case "(($ac_try" in |
| 24844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24845 | *) ac_try_echo=$ac_try;; |
| 24846 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24847 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24848 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24849 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24850 | ac_status=$? |
| 24851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24852 | rm -f conftest.er1 |
| 24853 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24855 | (exit $ac_status); } && { |
| 24856 | test -z "$ac_c_werror_flag" || |
| 24857 | test ! -s conftest.err |
| 24858 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 24859 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24860 | cat >>confdefs.h <<\_ACEOF |
| 24861 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 24862 | _ACEOF |
| 24863 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24864 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 24865 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24866 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24867 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24869 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24870 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 24871 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24872 | |
| 24873 | fi |
| 24874 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24876 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24877 | { $as_echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 24878 | $as_echo_n "checking for resize_term... " >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24879 | cat >conftest.$ac_ext <<_ACEOF |
| 24880 | /* confdefs.h. */ |
| 24881 | _ACEOF |
| 24882 | cat confdefs.h >>conftest.$ac_ext |
| 24883 | cat >>conftest.$ac_ext <<_ACEOF |
| 24884 | /* end confdefs.h. */ |
| 24885 | #include <curses.h> |
| 24886 | int |
| 24887 | main () |
| 24888 | { |
| 24889 | void *x=resize_term |
| 24890 | ; |
| 24891 | return 0; |
| 24892 | } |
| 24893 | _ACEOF |
| 24894 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24895 | if { (ac_try="$ac_compile" |
| 24896 | case "(($ac_try" in |
| 24897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24898 | *) ac_try_echo=$ac_try;; |
| 24899 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24901 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24902 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24903 | ac_status=$? |
| 24904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24905 | rm -f conftest.er1 |
| 24906 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24908 | (exit $ac_status); } && { |
| 24909 | test -z "$ac_c_werror_flag" || |
| 24910 | test ! -s conftest.err |
| 24911 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24912 | |
| 24913 | cat >>confdefs.h <<\_ACEOF |
| 24914 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 24915 | _ACEOF |
| 24916 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24917 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 24918 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24919 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24920 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24922 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24923 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 24924 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24925 | |
| 24926 | fi |
| 24927 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24929 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24930 | { $as_echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 24931 | $as_echo_n "checking for resizeterm... " >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24932 | cat >conftest.$ac_ext <<_ACEOF |
| 24933 | /* confdefs.h. */ |
| 24934 | _ACEOF |
| 24935 | cat confdefs.h >>conftest.$ac_ext |
| 24936 | cat >>conftest.$ac_ext <<_ACEOF |
| 24937 | /* end confdefs.h. */ |
| 24938 | #include <curses.h> |
| 24939 | int |
| 24940 | main () |
| 24941 | { |
| 24942 | void *x=resizeterm |
| 24943 | ; |
| 24944 | return 0; |
| 24945 | } |
| 24946 | _ACEOF |
| 24947 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24948 | if { (ac_try="$ac_compile" |
| 24949 | case "(($ac_try" in |
| 24950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24951 | *) ac_try_echo=$ac_try;; |
| 24952 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24953 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24954 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24955 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24956 | ac_status=$? |
| 24957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24958 | rm -f conftest.er1 |
| 24959 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24960 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24961 | (exit $ac_status); } && { |
| 24962 | test -z "$ac_c_werror_flag" || |
| 24963 | test ! -s conftest.err |
| 24964 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24965 | |
| 24966 | cat >>confdefs.h <<\_ACEOF |
| 24967 | #define HAVE_CURSES_RESIZETERM 1 |
| 24968 | _ACEOF |
| 24969 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24970 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 24971 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24972 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24973 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24975 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24976 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 24977 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24978 | |
| 24979 | fi |
| 24980 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24982 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24983 | { $as_echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 24984 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24985 | |
| 24986 | if test -r /dev/ptmx |
| 24987 | then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24988 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 24989 | $as_echo "yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 24990 | |
| 24991 | cat >>confdefs.h <<\_ACEOF |
| 24992 | #define HAVE_DEV_PTMX 1 |
| 24993 | _ACEOF |
| 24994 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24995 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24996 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 24997 | $as_echo "no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 24998 | fi |
| 24999 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25000 | { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 25001 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 25002 | |
| 25003 | if test -r /dev/ptc |
| 25004 | then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25005 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 25006 | $as_echo "yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 25007 | |
| 25008 | cat >>confdefs.h <<\_ACEOF |
| 25009 | #define HAVE_DEV_PTC 1 |
| 25010 | _ACEOF |
| 25011 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 25012 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25013 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 25014 | $as_echo "no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 25015 | fi |
| 25016 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25017 | { $as_echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 25018 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25019 | if test "$cross_compiling" = yes; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25020 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 25021 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 25022 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25023 | See \`config.log' for more details." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25024 | $as_echo "$as_me: error: cannot run test program while cross compiling |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25025 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25026 | { (exit 1); exit 1; }; }; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25027 | else |
| 25028 | cat >conftest.$ac_ext <<_ACEOF |
| 25029 | /* confdefs.h. */ |
| 25030 | _ACEOF |
| 25031 | cat confdefs.h >>conftest.$ac_ext |
| 25032 | cat >>conftest.$ac_ext <<_ACEOF |
| 25033 | /* end confdefs.h. */ |
| 25034 | #include <stdio.h> |
| 25035 | #include <stddef.h> |
| 25036 | #include <string.h> |
| 25037 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 25038 | #ifdef HAVE_SYS_TYPES_H |
| 25039 | #include <sys/types.h> |
| 25040 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 25041 | |
| 25042 | #ifdef HAVE_SSIZE_T |
| 25043 | typedef ssize_t Py_ssize_t; |
| 25044 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 25045 | typedef long Py_ssize_t; |
| 25046 | #else |
| 25047 | typedef int Py_ssize_t; |
| 25048 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25049 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 25050 | int main() |
| 25051 | { |
| 25052 | char buffer[256]; |
| 25053 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25054 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 25055 | return 1; |
| 25056 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 25057 | if (strcmp(buffer, "123")) |
| 25058 | return 1; |
| 25059 | |
| 25060 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 25061 | return 1; |
| 25062 | |
| 25063 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25064 | return 1; |
| 25065 | |
| 25066 | return 0; |
| 25067 | } |
| 25068 | _ACEOF |
| 25069 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25070 | if { (ac_try="$ac_link" |
| 25071 | case "(($ac_try" in |
| 25072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25073 | *) ac_try_echo=$ac_try;; |
| 25074 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25075 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25076 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25077 | (eval "$ac_link") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25078 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25079 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25080 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25081 | { (case "(($ac_try" in |
| 25082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25083 | *) ac_try_echo=$ac_try;; |
| 25084 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25085 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25086 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25087 | (eval "$ac_try") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25088 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25089 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25090 | (exit $ac_status); }; }; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25091 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 25092 | $as_echo "yes" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25093 | |
| 25094 | cat >>confdefs.h <<\_ACEOF |
| 25095 | #define PY_FORMAT_SIZE_T "z" |
| 25096 | _ACEOF |
| 25097 | |
| 25098 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25099 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 25100 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25102 | |
| 25103 | ( exit $ac_status ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25104 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 25105 | $as_echo "no" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25106 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25107 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25109 | fi |
| 25110 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25111 | |
| 25112 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25113 | { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 25114 | $as_echo_n "checking for socklen_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25115 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25116 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25117 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25118 | ac_cv_type_socklen_t=no |
| 25119 | cat >conftest.$ac_ext <<_ACEOF |
| 25120 | /* confdefs.h. */ |
| 25121 | _ACEOF |
| 25122 | cat confdefs.h >>conftest.$ac_ext |
| 25123 | cat >>conftest.$ac_ext <<_ACEOF |
| 25124 | /* end confdefs.h. */ |
| 25125 | |
| 25126 | #ifdef HAVE_SYS_TYPES_H |
| 25127 | #include <sys/types.h> |
| 25128 | #endif |
| 25129 | #ifdef HAVE_SYS_SOCKET_H |
| 25130 | #include <sys/socket.h> |
| 25131 | #endif |
| 25132 | |
| 25133 | |
| 25134 | int |
| 25135 | main () |
| 25136 | { |
| 25137 | if (sizeof (socklen_t)) |
| 25138 | return 0; |
| 25139 | ; |
| 25140 | return 0; |
| 25141 | } |
| 25142 | _ACEOF |
| 25143 | rm -f conftest.$ac_objext |
| 25144 | if { (ac_try="$ac_compile" |
| 25145 | case "(($ac_try" in |
| 25146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25147 | *) ac_try_echo=$ac_try;; |
| 25148 | esac |
| 25149 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25150 | $as_echo "$ac_try_echo") >&5 |
| 25151 | (eval "$ac_compile") 2>conftest.er1 |
| 25152 | ac_status=$? |
| 25153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25154 | rm -f conftest.er1 |
| 25155 | cat conftest.err >&5 |
| 25156 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25157 | (exit $ac_status); } && { |
| 25158 | test -z "$ac_c_werror_flag" || |
| 25159 | test ! -s conftest.err |
| 25160 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25161 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25162 | /* confdefs.h. */ |
| 25163 | _ACEOF |
| 25164 | cat confdefs.h >>conftest.$ac_ext |
| 25165 | cat >>conftest.$ac_ext <<_ACEOF |
| 25166 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 25167 | |
| 25168 | #ifdef HAVE_SYS_TYPES_H |
| 25169 | #include <sys/types.h> |
| 25170 | #endif |
| 25171 | #ifdef HAVE_SYS_SOCKET_H |
| 25172 | #include <sys/socket.h> |
| 25173 | #endif |
| 25174 | |
| 25175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25176 | int |
| 25177 | main () |
| 25178 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25179 | if (sizeof ((socklen_t))) |
| 25180 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25181 | ; |
| 25182 | return 0; |
| 25183 | } |
| 25184 | _ACEOF |
| 25185 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25186 | if { (ac_try="$ac_compile" |
| 25187 | case "(($ac_try" in |
| 25188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25189 | *) ac_try_echo=$ac_try;; |
| 25190 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25192 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25193 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25194 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25196 | rm -f conftest.er1 |
| 25197 | cat conftest.err >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25199 | (exit $ac_status); } && { |
| 25200 | test -z "$ac_c_werror_flag" || |
| 25201 | test ! -s conftest.err |
| 25202 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25203 | : |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25204 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25205 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25207 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25208 | ac_cv_type_socklen_t=yes |
| 25209 | fi |
| 25210 | |
| 25211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25212 | else |
| 25213 | $as_echo "$as_me: failed program was:" >&5 |
| 25214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25215 | |
| 25216 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25217 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25218 | |
| 25219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25220 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25221 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 25222 | $as_echo "$ac_cv_type_socklen_t" >&6; } |
| 25223 | if test "x$ac_cv_type_socklen_t" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25224 | : |
| 25225 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25226 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 25227 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25228 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25229 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25230 | |
| 25231 | fi |
| 25232 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25233 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25234 | { $as_echo "$as_me:$LINENO: checking for broken mbstowcs" >&5 |
| 25235 | $as_echo_n "checking for broken mbstowcs... " >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 25236 | if test "$cross_compiling" = yes; then |
| 25237 | ac_cv_broken_mbstowcs=no |
| 25238 | else |
| 25239 | cat >conftest.$ac_ext <<_ACEOF |
| 25240 | /* confdefs.h. */ |
| 25241 | _ACEOF |
| 25242 | cat confdefs.h >>conftest.$ac_ext |
| 25243 | cat >>conftest.$ac_ext <<_ACEOF |
| 25244 | /* end confdefs.h. */ |
| 25245 | |
| 25246 | #include<stdlib.h> |
| 25247 | int main() { |
| 25248 | size_t len = -1; |
| 25249 | const char *str = "text"; |
| 25250 | len = mbstowcs(NULL, str, 0); |
| 25251 | return (len != 4); |
| 25252 | } |
| 25253 | |
| 25254 | _ACEOF |
| 25255 | rm -f conftest$ac_exeext |
| 25256 | if { (ac_try="$ac_link" |
| 25257 | case "(($ac_try" in |
| 25258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25259 | *) ac_try_echo=$ac_try;; |
| 25260 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25261 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25262 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 25263 | (eval "$ac_link") 2>&5 |
| 25264 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 25266 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 25267 | { (case "(($ac_try" in |
| 25268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25269 | *) ac_try_echo=$ac_try;; |
| 25270 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25271 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25272 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 25273 | (eval "$ac_try") 2>&5 |
| 25274 | ac_status=$? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25275 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 25276 | (exit $ac_status); }; }; then |
| 25277 | ac_cv_broken_mbstowcs=no |
| 25278 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25279 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 25280 | $as_echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 25281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25282 | |
| 25283 | ( exit $ac_status ) |
| 25284 | ac_cv_broken_mbstowcs=yes |
| 25285 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25286 | rm -rf conftest.dSYM |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 25287 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 25288 | fi |
| 25289 | |
| 25290 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25291 | { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5 |
| 25292 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 25293 | if test "$ac_cv_broken_mbstowcs" = yes |
| 25294 | then |
| 25295 | |
| 25296 | cat >>confdefs.h <<\_ACEOF |
| 25297 | #define HAVE_BROKEN_MBSTOWCS 1 |
| 25298 | _ACEOF |
| 25299 | |
| 25300 | fi |
| 25301 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25302 | # Check for --with-computed-gotos |
| 25303 | { $as_echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5 |
| 25304 | $as_echo_n "checking for --with-computed-gotos... " >&6; } |
| 25305 | |
| 25306 | # Check whether --with-computed-gotos was given. |
| 25307 | if test "${with_computed_gotos+set}" = set; then |
| 25308 | withval=$with_computed_gotos; |
| 25309 | if test "$withval" != no |
| 25310 | then |
| 25311 | |
| 25312 | cat >>confdefs.h <<\_ACEOF |
| 25313 | #define USE_COMPUTED_GOTOS 1 |
| 25314 | _ACEOF |
| 25315 | |
| 25316 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 25317 | $as_echo "yes" >&6; } |
| 25318 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 25319 | $as_echo "no" >&6; } |
| 25320 | fi |
| 25321 | else |
| 25322 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 25323 | $as_echo "no" >&6; } |
| 25324 | fi |
| 25325 | |
| 25326 | |
| 25327 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25328 | |
| 25329 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 25330 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 25331 | do |
| 25332 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 25333 | done |
| 25334 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25335 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 25336 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25337 | { $as_echo "$as_me:$LINENO: checking for build directories" >&5 |
| 25338 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 25339 | for dir in $SRCDIRS; do |
| 25340 | if test ! -d $dir; then |
| 25341 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 25342 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 25343 | done |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25344 | { $as_echo "$as_me:$LINENO: result: done" >&5 |
| 25345 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 25346 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25347 | # generate output files |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25348 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 25349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25350 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25351 | # This file is a shell script that caches the results of configure |
| 25352 | # 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] | 25353 | # scripts and configure runs, see configure's option --config-cache. |
| 25354 | # It is not useful on other systems. If it contains results you don't |
| 25355 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25356 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25357 | # config.status only pays attention to the cache file if you give it |
| 25358 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25359 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25360 | # `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] | 25361 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 25362 | # following values. |
| 25363 | |
| 25364 | _ACEOF |
| 25365 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 25366 | # The following way of writing the cache mishandles newlines in values, |
| 25367 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25368 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25369 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 25370 | # and sets the high bit in the cache file unless we assign to the vars. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25371 | ( |
| 25372 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 25373 | eval ac_val=\$$ac_var |
| 25374 | case $ac_val in #( |
| 25375 | *${as_nl}*) |
| 25376 | case $ac_var in #( |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25377 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 25378 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25379 | esac |
| 25380 | case $ac_var in #( |
| 25381 | _ | IFS | as_nl) ;; #( |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25382 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25383 | *) $as_unset $ac_var ;; |
| 25384 | esac ;; |
| 25385 | esac |
| 25386 | done |
| 25387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25388 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25389 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 25390 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25391 | # `set' does not quote correctly, so add quotes (double-quote |
| 25392 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 25393 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25394 | "s/'/'\\\\''/g; |
| 25395 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25396 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25397 | *) |
| 25398 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25399 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25400 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25401 | esac | |
| 25402 | sort |
| 25403 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25404 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25405 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25406 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25407 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25408 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 25409 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25410 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 25411 | :end' >>confcache |
| 25412 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 25413 | if test -w "$cache_file"; then |
| 25414 | test "x$cache_file" != "x/dev/null" && |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25415 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 25416 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25417 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25418 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25419 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 25420 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25421 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25422 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25423 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 25424 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25425 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 25426 | # Let make expand exec_prefix. |
| 25427 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 25428 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25429 | DEFS=-DHAVE_CONFIG_H |
| 25430 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25431 | ac_libobjs= |
| 25432 | ac_ltlibobjs= |
| 25433 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 25434 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25435 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25436 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25437 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 25438 | # will be set to the directory where LIBOBJS objects are built. |
| 25439 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 25440 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25441 | done |
| 25442 | LIBOBJS=$ac_libobjs |
| 25443 | |
| 25444 | LTLIBOBJS=$ac_ltlibobjs |
| 25445 | |
| 25446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25447 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25448 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25449 | : ${CONFIG_STATUS=./config.status} |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25450 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25451 | ac_clean_files_save=$ac_clean_files |
| 25452 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25453 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 25454 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 25455 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25456 | #! $SHELL |
| 25457 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25458 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25459 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25460 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25462 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25463 | ac_cs_recheck=false |
| 25464 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25465 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 25466 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25467 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25468 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25469 | ## --------------------- ## |
| 25470 | ## M4sh Initialization. ## |
| 25471 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25472 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25473 | # Be more Bourne compatible |
| 25474 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25475 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 25476 | emulate sh |
| 25477 | NULLCMD=: |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25478 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25479 | # is contrary to our usage. Disable this feature. |
| 25480 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25481 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 25482 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25483 | case `(set -o) 2>/dev/null` in |
| 25484 | *posix*) set -o posix ;; |
| 25485 | esac |
| 25486 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25487 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 25488 | |
| 25489 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25490 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25491 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25492 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25493 | # Avoid depending upon Character Ranges. |
| 25494 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 25495 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 25496 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 25497 | as_cr_digits='0123456789' |
| 25498 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 25499 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25500 | as_nl=' |
| 25501 | ' |
| 25502 | export as_nl |
| 25503 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 25504 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 25505 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 25506 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 25507 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 25508 | as_echo='printf %s\n' |
| 25509 | as_echo_n='printf %s' |
| 25510 | else |
| 25511 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 25512 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 25513 | as_echo_n='/usr/ucb/echo -n' |
| 25514 | else |
| 25515 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 25516 | as_echo_n_body='eval |
| 25517 | arg=$1; |
| 25518 | case $arg in |
| 25519 | *"$as_nl"*) |
| 25520 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 25521 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 25522 | esac; |
| 25523 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 25524 | ' |
| 25525 | export as_echo_n_body |
| 25526 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 25527 | fi |
| 25528 | export as_echo_body |
| 25529 | as_echo='sh -c $as_echo_body as_echo' |
| 25530 | fi |
| 25531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25532 | # The user is always right. |
| 25533 | if test "${PATH_SEPARATOR+set}" != set; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25534 | PATH_SEPARATOR=: |
| 25535 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 25536 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 25537 | PATH_SEPARATOR=';' |
| 25538 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25539 | fi |
| 25540 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25541 | # Support unset when possible. |
| 25542 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 25543 | as_unset=unset |
| 25544 | else |
| 25545 | as_unset=false |
| 25546 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25547 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25548 | |
| 25549 | # IFS |
| 25550 | # We need space, tab and new line, in precisely that order. Quoting is |
| 25551 | # there to prevent editors from complaining about space-tab. |
| 25552 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 25553 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25554 | IFS=" "" $as_nl" |
| 25555 | |
| 25556 | # Find who we are. Look in the path if we contain no directory separator. |
| 25557 | case $0 in |
| 25558 | *[\\/]* ) as_myself=$0 ;; |
| 25559 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25560 | for as_dir in $PATH |
| 25561 | do |
| 25562 | IFS=$as_save_IFS |
| 25563 | test -z "$as_dir" && as_dir=. |
| 25564 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 25565 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25566 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25567 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25568 | ;; |
| 25569 | esac |
| 25570 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 25571 | # in which case we are not to be found in the path. |
| 25572 | if test "x$as_myself" = x; then |
| 25573 | as_myself=$0 |
| 25574 | fi |
| 25575 | if test ! -f "$as_myself"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25576 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25577 | { (exit 1); exit 1; } |
| 25578 | fi |
| 25579 | |
| 25580 | # Work around bugs in pre-3.0 UWIN ksh. |
| 25581 | for as_var in ENV MAIL MAILPATH |
| 25582 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 25583 | done |
| 25584 | PS1='$ ' |
| 25585 | PS2='> ' |
| 25586 | PS4='+ ' |
| 25587 | |
| 25588 | # NLS nuisances. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25589 | LC_ALL=C |
| 25590 | export LC_ALL |
| 25591 | LANGUAGE=C |
| 25592 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25593 | |
| 25594 | # Required to use basename. |
| 25595 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 25596 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 25597 | as_expr=expr |
| 25598 | else |
| 25599 | as_expr=false |
| 25600 | fi |
| 25601 | |
| 25602 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 25603 | as_basename=basename |
| 25604 | else |
| 25605 | as_basename=false |
| 25606 | fi |
| 25607 | |
| 25608 | |
| 25609 | # Name of the executable. |
| 25610 | as_me=`$as_basename -- "$0" || |
| 25611 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 25612 | X"$0" : 'X\(//\)$' \| \ |
| 25613 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25614 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25615 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 25616 | s//\1/ |
| 25617 | q |
| 25618 | } |
| 25619 | /^X\/\(\/\/\)$/{ |
| 25620 | s//\1/ |
| 25621 | q |
| 25622 | } |
| 25623 | /^X\/\(\/\).*/{ |
| 25624 | s//\1/ |
| 25625 | q |
| 25626 | } |
| 25627 | s/.*/./; q'` |
| 25628 | |
| 25629 | # CDPATH. |
| 25630 | $as_unset CDPATH |
| 25631 | |
| 25632 | |
| 25633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25634 | as_lineno_1=$LINENO |
| 25635 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25636 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25637 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25639 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 25640 | # uniformly replaced by the line number. The first 'sed' inserts a |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25641 | # line-number line after each line using $LINENO; the second 'sed' |
| 25642 | # does the real work. The second script uses 'N' to pair each |
| 25643 | # line-number line with the line containing $LINENO, and appends |
| 25644 | # trailing '-' during substitution so that $LINENO is not a special |
| 25645 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25646 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25647 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 25648 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 25649 | sed -n ' |
| 25650 | p |
| 25651 | /[$]LINENO/= |
| 25652 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25653 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25654 | s/[$]LINENO.*/&-/ |
| 25655 | t lineno |
| 25656 | b |
| 25657 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25658 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25659 | :loop |
| 25660 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25661 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25662 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25663 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25664 | chmod +x "$as_me.lineno" || |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25665 | { $as_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] | 25666 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25668 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 25669 | # (the dirname of $[0] is not the place where we might find the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25670 | # original and so on. Autoconf is especially sensitive to this). |
| 25671 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25672 | # Exit status is that of the last command. |
| 25673 | exit |
| 25674 | } |
| 25675 | |
| 25676 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25677 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 25678 | as_dirname=dirname |
| 25679 | else |
| 25680 | as_dirname=false |
| 25681 | fi |
| 25682 | |
| 25683 | ECHO_C= ECHO_N= ECHO_T= |
| 25684 | case `echo -n x` in |
| 25685 | -n*) |
| 25686 | case `echo 'x\c'` in |
| 25687 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 25688 | *) ECHO_C='\c';; |
| 25689 | esac;; |
| 25690 | *) |
| 25691 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25692 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25693 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 25694 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25695 | as_expr=expr |
| 25696 | else |
| 25697 | as_expr=false |
| 25698 | fi |
| 25699 | |
| 25700 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25701 | if test -d conf$$.dir; then |
| 25702 | rm -f conf$$.dir/conf$$.file |
| 25703 | else |
| 25704 | rm -f conf$$.dir |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25705 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25706 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25707 | if (echo >conf$$.file) 2>/dev/null; then |
| 25708 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 25709 | as_ln_s='ln -s' |
| 25710 | # ... but there are two gotchas: |
| 25711 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 25712 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 25713 | # In both cases, we have to default to `cp -p'. |
| 25714 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 25715 | as_ln_s='cp -p' |
| 25716 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 25717 | as_ln_s=ln |
| 25718 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25719 | as_ln_s='cp -p' |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25720 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25721 | else |
| 25722 | as_ln_s='cp -p' |
| 25723 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25724 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 25725 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25726 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25727 | if mkdir -p . 2>/dev/null; then |
| 25728 | as_mkdir_p=: |
| 25729 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25730 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25731 | as_mkdir_p=false |
| 25732 | fi |
| 25733 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25734 | if test -x / >/dev/null 2>&1; then |
| 25735 | as_test_x='test -x' |
| 25736 | else |
| 25737 | if ls -dL / >/dev/null 2>&1; then |
| 25738 | as_ls_L_option=L |
| 25739 | else |
| 25740 | as_ls_L_option= |
| 25741 | fi |
| 25742 | as_test_x=' |
| 25743 | eval sh -c '\'' |
| 25744 | if test -d "$1"; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25745 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25746 | else |
| 25747 | case $1 in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25748 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25749 | esac; |
| 25750 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 25751 | ???[sx]*):;;*)false;;esac;fi |
| 25752 | '\'' sh |
| 25753 | ' |
| 25754 | fi |
| 25755 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25756 | |
| 25757 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25758 | 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] | 25759 | |
| 25760 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25761 | 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] | 25762 | |
| 25763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25764 | exec 6>&1 |
| 25765 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25766 | # 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] | 25767 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25768 | # values after options handling. |
| 25769 | ac_log=" |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 25770 | This file was extended by python $as_me 3.1, which was |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25771 | generated by GNU Autoconf 2.63. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25772 | |
| 25773 | CONFIG_FILES = $CONFIG_FILES |
| 25774 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 25775 | CONFIG_LINKS = $CONFIG_LINKS |
| 25776 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 25777 | $ $0 $@ |
| 25778 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25779 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 25780 | " |
| 25781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25782 | _ACEOF |
| 25783 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25784 | case $ac_config_files in *" |
| 25785 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 25786 | esac |
| 25787 | |
| 25788 | case $ac_config_headers in *" |
| 25789 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 25790 | esac |
| 25791 | |
| 25792 | |
| 25793 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25794 | # Files that config.status was made for. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25795 | config_files="`echo $ac_config_files`" |
| 25796 | config_headers="`echo $ac_config_headers`" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25797 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25798 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25799 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25800 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25801 | ac_cs_usage="\ |
| 25802 | \`$as_me' instantiates files from templates according to the |
| 25803 | current configuration. |
| 25804 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25805 | Usage: $0 [OPTION]... [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25806 | |
| 25807 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25808 | -V, --version print version number and configuration settings, then exit |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25809 | -q, --quiet, --silent |
| 25810 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25811 | -d, --debug don't remove temporary files |
| 25812 | --recheck update $as_me by reconfiguring in the same conditions |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25813 | --file=FILE[:TEMPLATE] |
| 25814 | instantiate the configuration file FILE |
| 25815 | --header=FILE[:TEMPLATE] |
| 25816 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25817 | |
| 25818 | Configuration files: |
| 25819 | $config_files |
| 25820 | |
| 25821 | Configuration headers: |
| 25822 | $config_headers |
| 25823 | |
| 25824 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 25825 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25826 | _ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25827 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25828 | ac_cs_version="\\ |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 25829 | python config.status 3.1 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25830 | configured by $0, generated by GNU Autoconf 2.63, |
| 25831 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25832 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25833 | Copyright (C) 2008 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25834 | This config.status script is free software; the Free Software Foundation |
| 25835 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25836 | |
| 25837 | ac_pwd='$ac_pwd' |
| 25838 | srcdir='$srcdir' |
| 25839 | INSTALL='$INSTALL' |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25840 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25841 | _ACEOF |
| 25842 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25843 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25844 | # The default lists apply if the user does not specify any file. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25845 | ac_need_defaults=: |
| 25846 | while test $# != 0 |
| 25847 | do |
| 25848 | case $1 in |
| 25849 | --*=*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25850 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 25851 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25852 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25853 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25854 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25855 | ac_option=$1 |
| 25856 | ac_optarg=$2 |
| 25857 | ac_shift=shift |
| 25858 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25859 | esac |
| 25860 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25861 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25862 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25863 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 25864 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25865 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25866 | $as_echo "$ac_cs_version"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25867 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25868 | debug=: ;; |
| 25869 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25870 | $ac_shift |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25871 | case $ac_optarg in |
| 25872 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 25873 | esac |
| 25874 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25875 | ac_need_defaults=false;; |
| 25876 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25877 | $ac_shift |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25878 | case $ac_optarg in |
| 25879 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 25880 | esac |
| 25881 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25882 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25883 | --he | --h) |
| 25884 | # Conflict between --help and --header |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25885 | { $as_echo "$as_me: error: ambiguous option: $1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25886 | Try \`$0 --help' for more information." >&2 |
| 25887 | { (exit 1); exit 1; }; };; |
| 25888 | --help | --hel | -h ) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25889 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25890 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 25891 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 25892 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25893 | |
| 25894 | # This is an error. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25895 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25896 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25897 | { (exit 1); exit 1; }; } ;; |
| 25898 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25899 | *) ac_config_targets="$ac_config_targets $1" |
| 25900 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25901 | |
| 25902 | esac |
| 25903 | shift |
| 25904 | done |
| 25905 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25906 | ac_configure_extra_args= |
| 25907 | |
| 25908 | if $ac_cs_silent; then |
| 25909 | exec 6>/dev/null |
| 25910 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 25911 | fi |
| 25912 | |
| 25913 | _ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25914 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25915 | if \$ac_cs_recheck; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25916 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 25917 | shift |
| 25918 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 25919 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25920 | export CONFIG_SHELL |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25921 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25922 | fi |
| 25923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25924 | _ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25925 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25926 | exec 5>>config.log |
| 25927 | { |
| 25928 | echo |
| 25929 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 25930 | ## Running $as_me. ## |
| 25931 | _ASBOX |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25932 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25933 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25934 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25935 | _ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25936 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25937 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25938 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25939 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25940 | |
| 25941 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25942 | for ac_config_target in $ac_config_targets |
| 25943 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25944 | case $ac_config_target in |
| 25945 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 25946 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 25947 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 25948 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 25949 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25950 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 25951 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 25952 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25953 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 25954 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25955 | { (exit 1); exit 1; }; };; |
| 25956 | esac |
| 25957 | done |
| 25958 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25960 | # If the user did not use the arguments to specify the items to instantiate, |
| 25961 | # then the envvar interface is used. Set only those that are not. |
| 25962 | # We use the long form for the default assignment because of an extremely |
| 25963 | # bizarre bug on SunOS 4.1.3. |
| 25964 | if $ac_need_defaults; then |
| 25965 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 25966 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 25967 | fi |
| 25968 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25969 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25970 | # 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] | 25971 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25972 | # Hook for its removal unless debugging. |
| 25973 | # Note that there is a small window in which the directory will not be cleaned: |
| 25974 | # 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] | 25975 | $debug || |
| 25976 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25977 | tmp= |
| 25978 | trap 'exit_status=$? |
| 25979 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 25980 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25981 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 25982 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25983 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25984 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25985 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25986 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25987 | test -n "$tmp" && test -d "$tmp" |
| 25988 | } || |
| 25989 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25990 | tmp=./conf$$-$RANDOM |
| 25991 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25992 | } || |
| 25993 | { |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25994 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25995 | { (exit 1); exit 1; } |
| 25996 | } |
| 25997 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 25998 | # Set up the scripts for CONFIG_FILES section. |
| 25999 | # No need to generate them if there are no CONFIG_FILES. |
| 26000 | # This happens for instance with `./config.status config.h'. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26001 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26002 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26003 | |
| 26004 | ac_cr=' |
| 26005 | ' |
| 26006 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 26007 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 26008 | ac_cs_awk_cr='\\r' |
| 26009 | else |
| 26010 | ac_cs_awk_cr=$ac_cr |
| 26011 | fi |
| 26012 | |
| 26013 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26014 | _ACEOF |
| 26015 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26016 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26017 | { |
| 26018 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 26019 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 26020 | echo "_ACEOF" |
| 26021 | } >conf$$subs.sh || |
| 26022 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 26023 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 26024 | { (exit 1); exit 1; }; } |
| 26025 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26026 | ac_delim='%!_!# ' |
| 26027 | for ac_last_try in false false false false false :; do |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26028 | . ./conf$$subs.sh || |
| 26029 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 26030 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 26031 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26032 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26033 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 26034 | if test $ac_delim_n = $ac_delim_num; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26035 | break |
| 26036 | elif $ac_last_try; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26037 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 26038 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26039 | { (exit 1); exit 1; }; } |
| 26040 | else |
| 26041 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26042 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26043 | done |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26044 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26045 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26046 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26047 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26048 | _ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26049 | sed -n ' |
| 26050 | h |
| 26051 | s/^/S["/; s/!.*/"]=/ |
| 26052 | p |
| 26053 | g |
| 26054 | s/^[^!]*!// |
| 26055 | :repl |
| 26056 | t repl |
| 26057 | s/'"$ac_delim"'$// |
| 26058 | t delim |
| 26059 | :nl |
| 26060 | h |
| 26061 | s/\(.\{148\}\).*/\1/ |
| 26062 | t more1 |
| 26063 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 26064 | p |
| 26065 | n |
| 26066 | b repl |
| 26067 | :more1 |
| 26068 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 26069 | p |
| 26070 | g |
| 26071 | s/.\{148\}// |
| 26072 | t nl |
| 26073 | :delim |
| 26074 | h |
| 26075 | s/\(.\{148\}\).*/\1/ |
| 26076 | t more2 |
| 26077 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 26078 | p |
| 26079 | b |
| 26080 | :more2 |
| 26081 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 26082 | p |
| 26083 | g |
| 26084 | s/.\{148\}// |
| 26085 | t delim |
| 26086 | ' <conf$$subs.awk | sed ' |
| 26087 | /^[^""]/{ |
| 26088 | N |
| 26089 | s/\n// |
| 26090 | } |
| 26091 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 26092 | rm -f conf$$subs.awk |
| 26093 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26094 | _ACAWK |
| 26095 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 26096 | for (key in S) S_is_set[key] = 1 |
| 26097 | FS = "" |
| 26098 | |
| 26099 | } |
| 26100 | { |
| 26101 | line = $ 0 |
| 26102 | nfields = split(line, field, "@") |
| 26103 | substed = 0 |
| 26104 | len = length(field[1]) |
| 26105 | for (i = 2; i < nfields; i++) { |
| 26106 | key = field[i] |
| 26107 | keylen = length(key) |
| 26108 | if (S_is_set[key]) { |
| 26109 | value = S[key] |
| 26110 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 26111 | len += length(value) + length(field[++i]) |
| 26112 | substed = 1 |
| 26113 | } else |
| 26114 | len += 1 + keylen |
| 26115 | } |
| 26116 | |
| 26117 | print line |
| 26118 | } |
| 26119 | |
| 26120 | _ACAWK |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26121 | _ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26122 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26123 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 26124 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 26125 | else |
| 26126 | cat |
| 26127 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 26128 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 26129 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26130 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26131 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26132 | |
| 26133 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 26134 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 26135 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 26136 | # (actually we leave an empty line to preserve line numbers). |
| 26137 | if test "x$srcdir" = x.; then |
| 26138 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 26139 | s/:*\$(srcdir):*/:/ |
| 26140 | s/:*\${srcdir}:*/:/ |
| 26141 | s/:*@srcdir@:*/:/ |
| 26142 | s/^\([^=]*=[ ]*\):*/\1/ |
| 26143 | s/:*$// |
| 26144 | s/^[^=]*=[ ]*$// |
| 26145 | }' |
| 26146 | fi |
| 26147 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26148 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26149 | fi # test -n "$CONFIG_FILES" |
| 26150 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26151 | # Set up the scripts for CONFIG_HEADERS section. |
| 26152 | # No need to generate them if there are no CONFIG_HEADERS. |
| 26153 | # This happens for instance with `./config.status Makefile'. |
| 26154 | if test -n "$CONFIG_HEADERS"; then |
| 26155 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 26156 | BEGIN { |
| 26157 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26158 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26159 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 26160 | # here-document in config.status, that substitutes the proper values into |
| 26161 | # config.h.in to produce config.h. |
| 26162 | |
| 26163 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 26164 | # handling of long lines. |
| 26165 | ac_delim='%!_!# ' |
| 26166 | for ac_last_try in false false :; do |
| 26167 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 26168 | if test -z "$ac_t"; then |
| 26169 | break |
| 26170 | elif $ac_last_try; then |
| 26171 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 26172 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 26173 | { (exit 1); exit 1; }; } |
| 26174 | else |
| 26175 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 26176 | fi |
| 26177 | done |
| 26178 | |
| 26179 | # For the awk script, D is an array of macro values keyed by name, |
| 26180 | # likewise P contains macro parameters if any. Preserve backslash |
| 26181 | # newline sequences. |
| 26182 | |
| 26183 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 26184 | sed -n ' |
| 26185 | s/.\{148\}/&'"$ac_delim"'/g |
| 26186 | t rset |
| 26187 | :rset |
| 26188 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 26189 | t def |
| 26190 | d |
| 26191 | :def |
| 26192 | s/\\$// |
| 26193 | t bsnl |
| 26194 | s/["\\]/\\&/g |
| 26195 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 26196 | D["\1"]=" \3"/p |
| 26197 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 26198 | d |
| 26199 | :bsnl |
| 26200 | s/["\\]/\\&/g |
| 26201 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 26202 | D["\1"]=" \3\\\\\\n"\\/p |
| 26203 | t cont |
| 26204 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 26205 | t cont |
| 26206 | d |
| 26207 | :cont |
| 26208 | n |
| 26209 | s/.\{148\}/&'"$ac_delim"'/g |
| 26210 | t clear |
| 26211 | :clear |
| 26212 | s/\\$// |
| 26213 | t bsnlc |
| 26214 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 26215 | d |
| 26216 | :bsnlc |
| 26217 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 26218 | b cont |
| 26219 | ' <confdefs.h | sed ' |
| 26220 | s/'"$ac_delim"'/"\\\ |
| 26221 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 26222 | |
| 26223 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26224 | for (key in D) D_is_set[key] = 1 |
| 26225 | FS = "" |
| 26226 | } |
| 26227 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 26228 | line = \$ 0 |
| 26229 | split(line, arg, " ") |
| 26230 | if (arg[1] == "#") { |
| 26231 | defundef = arg[2] |
| 26232 | mac1 = arg[3] |
| 26233 | } else { |
| 26234 | defundef = substr(arg[1], 2) |
| 26235 | mac1 = arg[2] |
| 26236 | } |
| 26237 | split(mac1, mac2, "(") #) |
| 26238 | macro = mac2[1] |
| 26239 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 26240 | if (D_is_set[macro]) { |
| 26241 | # Preserve the white space surrounding the "#". |
| 26242 | print prefix "define", macro P[macro] D[macro] |
| 26243 | next |
| 26244 | } else { |
| 26245 | # Replace #undef with comments. This is necessary, for example, |
| 26246 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 26247 | # on some systems where configure will not decide to define it. |
| 26248 | if (defundef == "undef") { |
| 26249 | print "/*", prefix defundef, macro, "*/" |
| 26250 | next |
| 26251 | } |
| 26252 | } |
| 26253 | } |
| 26254 | { print } |
| 26255 | _ACAWK |
| 26256 | _ACEOF |
| 26257 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26258 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 26259 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 26260 | { (exit 1); exit 1; }; } |
| 26261 | fi # test -n "$CONFIG_HEADERS" |
| 26262 | |
| 26263 | |
| 26264 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 26265 | shift |
| 26266 | for ac_tag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26267 | do |
| 26268 | case $ac_tag in |
| 26269 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 26270 | esac |
| 26271 | case $ac_mode$ac_tag in |
| 26272 | :[FHL]*:*);; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26273 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
| 26274 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26275 | { (exit 1); exit 1; }; };; |
| 26276 | :[FH]-) ac_tag=-:-;; |
| 26277 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 26278 | esac |
| 26279 | ac_save_IFS=$IFS |
| 26280 | IFS=: |
| 26281 | set x $ac_tag |
| 26282 | IFS=$ac_save_IFS |
| 26283 | shift |
| 26284 | ac_file=$1 |
| 26285 | shift |
| 26286 | |
| 26287 | case $ac_mode in |
| 26288 | :L) ac_source=$1;; |
| 26289 | :[FH]) |
| 26290 | ac_file_inputs= |
| 26291 | for ac_f |
| 26292 | do |
| 26293 | case $ac_f in |
| 26294 | -) ac_f="$tmp/stdin";; |
| 26295 | *) # Look for the file first in the build tree, then in the source tree |
| 26296 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 26297 | # because $ac_f cannot contain `:'. |
| 26298 | test -f "$ac_f" || |
| 26299 | case $ac_f in |
| 26300 | [\\/$]*) false;; |
| 26301 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 26302 | esac || |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26303 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 26304 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26305 | { (exit 1); exit 1; }; };; |
| 26306 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26307 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 26308 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26309 | done |
| 26310 | |
| 26311 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 26312 | # use $as_me), people would be surprised to read: |
| 26313 | # /* config.h. Generated by config.status. */ |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26314 | configure_input='Generated from '` |
| 26315 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 26316 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26317 | if test x"$ac_file" != x-; then |
| 26318 | configure_input="$ac_file. $configure_input" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26319 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 26320 | $as_echo "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26321 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26322 | # Neutralize special characters interpreted by sed in replacement strings. |
| 26323 | case $configure_input in #( |
| 26324 | *\&* | *\|* | *\\* ) |
| 26325 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 26326 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 26327 | *) ac_sed_conf_input=$configure_input;; |
| 26328 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26329 | |
| 26330 | case $ac_tag in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26331 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 26332 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 26333 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 26334 | { (exit 1); exit 1; }; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26335 | esac |
| 26336 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26337 | esac |
| 26338 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26339 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26340 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26341 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 26342 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26343 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26344 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26346 | s//\1/ |
| 26347 | q |
| 26348 | } |
| 26349 | /^X\(\/\/\)[^/].*/{ |
| 26350 | s//\1/ |
| 26351 | q |
| 26352 | } |
| 26353 | /^X\(\/\/\)$/{ |
| 26354 | s//\1/ |
| 26355 | q |
| 26356 | } |
| 26357 | /^X\(\/\).*/{ |
| 26358 | s//\1/ |
| 26359 | q |
| 26360 | } |
| 26361 | s/.*/./; q'` |
| 26362 | { as_dir="$ac_dir" |
| 26363 | case $as_dir in #( |
| 26364 | -*) as_dir=./$as_dir;; |
| 26365 | esac |
| 26366 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26367 | as_dirs= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26368 | while :; do |
| 26369 | case $as_dir in #( |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26370 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26371 | *) as_qdir=$as_dir;; |
| 26372 | esac |
| 26373 | as_dirs="'$as_qdir' $as_dirs" |
| 26374 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26375 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26376 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 26377 | X"$as_dir" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26378 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26379 | $as_echo X"$as_dir" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26381 | s//\1/ |
| 26382 | q |
| 26383 | } |
| 26384 | /^X\(\/\/\)[^/].*/{ |
| 26385 | s//\1/ |
| 26386 | q |
| 26387 | } |
| 26388 | /^X\(\/\/\)$/{ |
| 26389 | s//\1/ |
| 26390 | q |
| 26391 | } |
| 26392 | /^X\(\/\).*/{ |
| 26393 | s//\1/ |
| 26394 | q |
| 26395 | } |
| 26396 | s/.*/./; q'` |
| 26397 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26398 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26399 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26400 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 26401 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26402 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26403 | ac_builddir=. |
| 26404 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26405 | case "$ac_dir" in |
| 26406 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 26407 | *) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26408 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26409 | # A ".." for each directory in $ac_dir_suffix. |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26410 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26411 | case $ac_top_builddir_sub in |
| 26412 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 26413 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 26414 | esac ;; |
| 26415 | esac |
| 26416 | ac_abs_top_builddir=$ac_pwd |
| 26417 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 26418 | # for backward compatibility: |
| 26419 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26420 | |
| 26421 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26422 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26423 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26424 | ac_top_srcdir=$ac_top_builddir_sub |
| 26425 | ac_abs_top_srcdir=$ac_pwd ;; |
| 26426 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26427 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26428 | ac_top_srcdir=$srcdir |
| 26429 | ac_abs_top_srcdir=$srcdir ;; |
| 26430 | *) # Relative name. |
| 26431 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 26432 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 26433 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26434 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26435 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26436 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26437 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26438 | case $ac_mode in |
| 26439 | :F) |
| 26440 | # |
| 26441 | # CONFIG_FILE |
| 26442 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26443 | |
| 26444 | case $INSTALL in |
| 26445 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26446 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26447 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26448 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26449 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26450 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26451 | # If the template does not know about datarootdir, expand it. |
| 26452 | # FIXME: This hack should be removed a few years after 2.60. |
| 26453 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 26454 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26455 | ac_sed_dataroot=' |
| 26456 | /datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26457 | p |
| 26458 | q |
| 26459 | } |
| 26460 | /@datadir@/p |
| 26461 | /@docdir@/p |
| 26462 | /@infodir@/p |
| 26463 | /@localedir@/p |
| 26464 | /@mandir@/p |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26465 | ' |
| 26466 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26467 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 26468 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26469 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 26470 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26471 | _ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26472 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26473 | ac_datarootdir_hack=' |
| 26474 | s&@datadir@&$datadir&g |
| 26475 | s&@docdir@&$docdir&g |
| 26476 | s&@infodir@&$infodir&g |
| 26477 | s&@localedir@&$localedir&g |
| 26478 | s&@mandir@&$mandir&g |
| 26479 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 26480 | esac |
| 26481 | _ACEOF |
| 26482 | |
| 26483 | # Neutralize VPATH when `$srcdir' = `.'. |
| 26484 | # Shell code in configure.ac might set extrasub. |
| 26485 | # FIXME: do we really want to maintain this feature? |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26486 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26487 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26488 | $extrasub |
| 26489 | _ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26490 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26491 | :t |
| 26492 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26493 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26494 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26495 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26496 | s&@srcdir@&$ac_srcdir&;t t |
| 26497 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 26498 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 26499 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 26500 | s&@builddir@&$ac_builddir&;t t |
| 26501 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 26502 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 26503 | s&@INSTALL@&$ac_INSTALL&;t t |
| 26504 | $ac_datarootdir_hack |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26505 | " |
| 26506 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 26507 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 26508 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 26509 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26510 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26511 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 26512 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 26513 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26514 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26515 | which seems to be undefined. Please make sure it is defined." >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26516 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26517 | which seems to be undefined. Please make sure it is defined." >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 26518 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26519 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26520 | case $ac_file in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26521 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 26522 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 26523 | esac \ |
| 26524 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 26525 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 26526 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26527 | ;; |
| 26528 | :H) |
| 26529 | # |
| 26530 | # CONFIG_HEADER |
| 26531 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26532 | if test x"$ac_file" != x-; then |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26533 | { |
| 26534 | $as_echo "/* $configure_input */" \ |
| 26535 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 26536 | } >"$tmp/config.h" \ |
| 26537 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 26538 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 26539 | { (exit 1); exit 1; }; } |
| 26540 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 26541 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 26542 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26543 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26544 | rm -f "$ac_file" |
| 26545 | mv "$tmp/config.h" "$ac_file" \ |
| 26546 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 26547 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 26548 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26549 | fi |
| 26550 | else |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26551 | $as_echo "/* $configure_input */" \ |
| 26552 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 26553 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 26554 | $as_echo "$as_me: error: could not create -" >&2;} |
| 26555 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26556 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26557 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 26558 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26559 | |
| 26560 | esac |
| 26561 | |
| 26562 | done # for ac_tag |
| 26563 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26565 | { (exit 0); exit 0; } |
| 26566 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26567 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26568 | ac_clean_files=$ac_clean_files_save |
| 26569 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26570 | test $ac_write_fail = 0 || |
| 26571 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 26572 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 26573 | { (exit 1); exit 1; }; } |
| 26574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26575 | |
| 26576 | # configure is writing to config.log, and then calls config.status. |
| 26577 | # config.status does its own redirection, appending to config.log. |
| 26578 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 26579 | # by configure, so config.status won't be able to write to it; its |
| 26580 | # output is simply discarded. So we exec the FD to /dev/null, |
| 26581 | # effectively closing config.log, so it can be properly (re)opened and |
| 26582 | # appended to by config.status. When coming back to configure, we |
| 26583 | # need to make the FD available again. |
| 26584 | if test "$no_create" != yes; then |
| 26585 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26586 | ac_config_status_args= |
| 26587 | test "$silent" = yes && |
| 26588 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26589 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26590 | $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] | 26591 | exec 5>>config.log |
| 26592 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 26593 | # would make configure fail if this is the last instruction. |
| 26594 | $ac_cs_success || { (exit 1); exit 1; } |
| 26595 | fi |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26596 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 26597 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 26598 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 26599 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26600 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 26601 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 26602 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 26603 | if test ! -f Modules/Setup |
| 26604 | then |
| 26605 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 26606 | fi |
| 26607 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 26608 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 26609 | if test ! -f Modules/Setup.local |
| 26610 | then |
| 26611 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 26612 | fi |
| 26613 | |
| 26614 | echo "creating Makefile" |
| 26615 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 26616 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 26617 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 26618 | mv config.c Modules |