Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 74044 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4 | # Generated by GNU Autoconf 2.63 for python 2.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +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+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in |
| 27 | *posix*) set -o posix ;; |
| 28 | esac |
| 29 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
| 34 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | # Avoid depending upon Character Ranges. |
| 37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 40 | as_cr_digits='0123456789' |
| 41 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 42 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +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 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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.) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 109 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 110 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 119 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 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. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 132 | LC_ALL=C |
| 133 | export LC_ALL |
| 134 | LANGUAGE=C |
| 135 | export LANGUAGE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 || |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 157 | $as_echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 183 | if test $as_have_required = yes && (eval ": |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
| 244 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 245 | do |
| 246 | IFS=$as_save_IFS |
| 247 | test -z "$as_dir" && as_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 248 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 249 | /*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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=: |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 265 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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=: |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 286 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 350 | as_lineno_1=$LINENO |
| 351 | as_lineno_2=$LINENO |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 352 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +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+"$@"} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +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. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 474 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 475 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 476 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 513 | if test -d conf$$.dir; then |
| 514 | rm -f conf$$.dir/conf$$.file |
| 515 | else |
| 516 | rm -f conf$$.dir |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 517 | mkdir conf$$.dir 2>/dev/null |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 518 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +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' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 557 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 558 | else |
| 559 | case $1 in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 560 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 588 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 589 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 600 | PACKAGE_VERSION='2.7' |
| 601 | PACKAGE_STRING='python 2.7' |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 602 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
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> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 633 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 641 | ac_subst_vars='LTLIBOBJS |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 642 | SRCDIRS |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 643 | THREADHEADERS |
| 644 | UNICODE_OBJS |
| 645 | LIBC |
| 646 | LIBM |
| 647 | HAVE_GETHOSTBYNAME |
| 648 | HAVE_GETHOSTBYNAME_R |
| 649 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 650 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 651 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 652 | LIBOBJS |
| 653 | TRUE |
| 654 | MACHDEP_OBJS |
| 655 | DYNLOADFILE |
| 656 | DLINCLDIR |
| 657 | THREADOBJ |
| 658 | LDLAST |
| 659 | USE_THREAD_MODULE |
| 660 | SIGNAL_OBJS |
| 661 | USE_SIGNAL_MODULE |
| 662 | SHLIBS |
| 663 | CFLAGSFORSHARED |
| 664 | LINKFORSHARED |
| 665 | CCSHARED |
| 666 | BLDSHARED |
| 667 | LDSHARED |
| 668 | SO |
| 669 | LIBTOOL_CRUFT |
| 670 | OTHER_LIBTOOL_OPT |
| 671 | UNIVERSAL_ARCH_FLAGS |
| 672 | BASECFLAGS |
| 673 | OPT |
| 674 | LN |
| 675 | INSTALL_DATA |
| 676 | INSTALL_SCRIPT |
| 677 | INSTALL_PROGRAM |
| 678 | SVNVERSION |
| 679 | ARFLAGS |
| 680 | AR |
| 681 | RANLIB |
| 682 | GNULD |
| 683 | LINKCC |
| 684 | RUNSHARED |
| 685 | INSTSONAME |
| 686 | LDLIBRARYDIR |
| 687 | BLDLIBRARY |
| 688 | DLLLIBRARY |
| 689 | LDLIBRARY |
| 690 | LIBRARY |
| 691 | BUILDEXEEXT |
| 692 | EGREP |
| 693 | GREP |
| 694 | CPP |
| 695 | MAINCC |
| 696 | CXX |
| 697 | OBJEXT |
| 698 | EXEEXT |
| 699 | ac_ct_CC |
| 700 | CPPFLAGS |
| 701 | LDFLAGS |
| 702 | CFLAGS |
| 703 | CC |
| 704 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 705 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 706 | EXTRAMACHDEPPATH |
| 707 | EXTRAPLATDIR |
| 708 | SGI_ABI |
| 709 | MACHDEP |
| 710 | FRAMEWORKUNIXTOOLSPREFIX |
| 711 | FRAMEWORKALTINSTALLLAST |
| 712 | FRAMEWORKALTINSTALLFIRST |
| 713 | FRAMEWORKINSTALLLAST |
| 714 | FRAMEWORKINSTALLFIRST |
| 715 | PYTHONFRAMEWORKINSTALLDIR |
| 716 | PYTHONFRAMEWORKPREFIX |
| 717 | PYTHONFRAMEWORKDIR |
| 718 | PYTHONFRAMEWORKIDENTIFIER |
| 719 | PYTHONFRAMEWORK |
| 720 | ARCH_RUN_32BIT |
| 721 | UNIVERSALSDK |
| 722 | CONFIG_ARGS |
| 723 | SOVERSION |
| 724 | VERSION |
| 725 | target_alias |
| 726 | host_alias |
| 727 | build_alias |
| 728 | LIBS |
| 729 | ECHO_T |
| 730 | ECHO_N |
| 731 | ECHO_C |
| 732 | DEFS |
| 733 | mandir |
| 734 | localedir |
| 735 | libdir |
| 736 | psdir |
| 737 | pdfdir |
| 738 | dvidir |
| 739 | htmldir |
| 740 | infodir |
| 741 | docdir |
| 742 | oldincludedir |
| 743 | includedir |
| 744 | localstatedir |
| 745 | sharedstatedir |
| 746 | sysconfdir |
| 747 | datadir |
| 748 | datarootdir |
| 749 | libexecdir |
| 750 | sbindir |
| 751 | bindir |
| 752 | program_transform_name |
| 753 | prefix |
| 754 | exec_prefix |
| 755 | PACKAGE_BUGREPORT |
| 756 | PACKAGE_STRING |
| 757 | PACKAGE_VERSION |
| 758 | PACKAGE_TARNAME |
| 759 | PACKAGE_NAME |
| 760 | PATH_SEPARATOR |
| 761 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 762 | ac_subst_files='' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 763 | ac_user_opts=' |
| 764 | enable_option_checking |
| 765 | enable_universalsdk |
| 766 | with_universal_archs |
| 767 | with_framework_name |
| 768 | enable_framework |
| 769 | with_gcc |
| 770 | with_cxx_main |
| 771 | with_suffix |
| 772 | enable_shared |
| 773 | enable_profiling |
| 774 | with_pydebug |
| 775 | enable_toolbox_glue |
| 776 | with_libs |
| 777 | with_system_ffi |
| 778 | with_dbmliborder |
| 779 | with_signal_module |
| 780 | with_dec_threads |
| 781 | with_threads |
| 782 | with_thread |
| 783 | with_pth |
| 784 | enable_ipv6 |
| 785 | with_doc_strings |
| 786 | with_tsc |
| 787 | with_pymalloc |
| 788 | with_wctype_functions |
| 789 | with_fpectl |
| 790 | with_libm |
| 791 | with_libc |
| 792 | enable_big_digits |
| 793 | enable_unicode |
| 794 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 795 | ac_precious_vars='build_alias |
| 796 | host_alias |
| 797 | target_alias |
| 798 | CC |
| 799 | CFLAGS |
| 800 | LDFLAGS |
| 801 | LIBS |
| 802 | CPPFLAGS |
| 803 | CPP' |
| 804 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 805 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 806 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 807 | ac_init_help= |
| 808 | ac_init_version=false |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 809 | ac_unrecognized_opts= |
| 810 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 811 | # The variables have the same names as the options, with |
| 812 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 813 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 814 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 815 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 816 | no_recursion= |
| 817 | prefix=NONE |
| 818 | program_prefix=NONE |
| 819 | program_suffix=NONE |
| 820 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 821 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 822 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 823 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 824 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 825 | x_includes=NONE |
| 826 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 827 | |
| 828 | # Installation directory options. |
| 829 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 830 | # and all the variables that are supposed to be based on exec_prefix |
| 831 | # by default will actually change. |
| 832 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 833 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 834 | bindir='${exec_prefix}/bin' |
| 835 | sbindir='${exec_prefix}/sbin' |
| 836 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 837 | datarootdir='${prefix}/share' |
| 838 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 839 | sysconfdir='${prefix}/etc' |
| 840 | sharedstatedir='${prefix}/com' |
| 841 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 842 | includedir='${prefix}/include' |
| 843 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 844 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 845 | infodir='${datarootdir}/info' |
| 846 | htmldir='${docdir}' |
| 847 | dvidir='${docdir}' |
| 848 | pdfdir='${docdir}' |
| 849 | psdir='${docdir}' |
| 850 | libdir='${exec_prefix}/lib' |
| 851 | localedir='${datarootdir}/locale' |
| 852 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 853 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 854 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 855 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 856 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 857 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 858 | # If the previous option needs an argument, assign it. |
| 859 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 860 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 861 | ac_prev= |
| 862 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 863 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 864 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 865 | case $ac_option in |
| 866 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 867 | *) ac_optarg=yes ;; |
| 868 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 869 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 870 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 871 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 872 | case $ac_dashdash$ac_option in |
| 873 | --) |
| 874 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 875 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 876 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 877 | ac_prev=bindir ;; |
| 878 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 879 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 880 | |
| 881 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 882 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 883 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 884 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 885 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 886 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 887 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 888 | ac_prev=cache_file ;; |
| 889 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 890 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 891 | cache_file=$ac_optarg ;; |
| 892 | |
| 893 | --config-cache | -C) |
| 894 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 895 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 896 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 897 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 898 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 899 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 900 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 901 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 902 | | --dataroo | --dataro | --datar) |
| 903 | ac_prev=datarootdir ;; |
| 904 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 905 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 906 | datarootdir=$ac_optarg ;; |
| 907 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 908 | -disable-* | --disable-*) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 909 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 910 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 911 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 912 | { $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] | 913 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 914 | ac_useropt_orig=$ac_useropt |
| 915 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 916 | case $ac_user_opts in |
| 917 | *" |
| 918 | "enable_$ac_useropt" |
| 919 | "*) ;; |
| 920 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 921 | ac_unrecognized_sep=', ';; |
| 922 | esac |
| 923 | eval enable_$ac_useropt=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 924 | |
| 925 | -docdir | --docdir | --docdi | --doc | --do) |
| 926 | ac_prev=docdir ;; |
| 927 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 928 | docdir=$ac_optarg ;; |
| 929 | |
| 930 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 931 | ac_prev=dvidir ;; |
| 932 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 933 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 934 | |
| 935 | -enable-* | --enable-*) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 936 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 937 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 938 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 939 | { $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] | 940 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 941 | ac_useropt_orig=$ac_useropt |
| 942 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 943 | case $ac_user_opts in |
| 944 | *" |
| 945 | "enable_$ac_useropt" |
| 946 | "*) ;; |
| 947 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 948 | ac_unrecognized_sep=', ';; |
| 949 | esac |
| 950 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 951 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 952 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 953 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 954 | | --exec | --exe | --ex) |
| 955 | ac_prev=exec_prefix ;; |
| 956 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 957 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 958 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 959 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 960 | |
| 961 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 962 | # Obsolete; use --with-gas. |
| 963 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 964 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 965 | -help | --help | --hel | --he | -h) |
| 966 | ac_init_help=long ;; |
| 967 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 968 | ac_init_help=recursive ;; |
| 969 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 970 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 971 | |
| 972 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 973 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 974 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 975 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 976 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 977 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 978 | ac_prev=htmldir ;; |
| 979 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 980 | | --ht=*) |
| 981 | htmldir=$ac_optarg ;; |
| 982 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 983 | -includedir | --includedir | --includedi | --included | --include \ |
| 984 | | --includ | --inclu | --incl | --inc) |
| 985 | ac_prev=includedir ;; |
| 986 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 987 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 988 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 989 | |
| 990 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 991 | ac_prev=infodir ;; |
| 992 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 993 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 994 | |
| 995 | -libdir | --libdir | --libdi | --libd) |
| 996 | ac_prev=libdir ;; |
| 997 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 998 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 999 | |
| 1000 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1001 | | --libexe | --libex | --libe) |
| 1002 | ac_prev=libexecdir ;; |
| 1003 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1004 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1005 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1006 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1007 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1008 | ac_prev=localedir ;; |
| 1009 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1010 | localedir=$ac_optarg ;; |
| 1011 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1012 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1013 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1014 | ac_prev=localstatedir ;; |
| 1015 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1016 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1017 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1018 | |
| 1019 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1020 | ac_prev=mandir ;; |
| 1021 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1022 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1023 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1024 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1025 | # Obsolete; use --without-fp. |
| 1026 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1027 | |
| 1028 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1029 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1030 | no_create=yes ;; |
| 1031 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1032 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1033 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1034 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1035 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1036 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1037 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1038 | | --oldin | --oldi | --old | --ol | --o) |
| 1039 | ac_prev=oldincludedir ;; |
| 1040 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1041 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1042 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1043 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1044 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1045 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1046 | ac_prev=prefix ;; |
| 1047 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1048 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1049 | |
| 1050 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1051 | | --program-pre | --program-pr | --program-p) |
| 1052 | ac_prev=program_prefix ;; |
| 1053 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1054 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1055 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1056 | |
| 1057 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1058 | | --program-suf | --program-su | --program-s) |
| 1059 | ac_prev=program_suffix ;; |
| 1060 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1061 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1063 | |
| 1064 | -program-transform-name | --program-transform-name \ |
| 1065 | | --program-transform-nam | --program-transform-na \ |
| 1066 | | --program-transform-n | --program-transform- \ |
| 1067 | | --program-transform | --program-transfor \ |
| 1068 | | --program-transfo | --program-transf \ |
| 1069 | | --program-trans | --program-tran \ |
| 1070 | | --progr-tra | --program-tr | --program-t) |
| 1071 | ac_prev=program_transform_name ;; |
| 1072 | -program-transform-name=* | --program-transform-name=* \ |
| 1073 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1074 | | --program-transform-n=* | --program-transform-=* \ |
| 1075 | | --program-transform=* | --program-transfor=* \ |
| 1076 | | --program-transfo=* | --program-transf=* \ |
| 1077 | | --program-trans=* | --program-tran=* \ |
| 1078 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1079 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1080 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1081 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1082 | ac_prev=pdfdir ;; |
| 1083 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1084 | pdfdir=$ac_optarg ;; |
| 1085 | |
| 1086 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1087 | ac_prev=psdir ;; |
| 1088 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1089 | psdir=$ac_optarg ;; |
| 1090 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1091 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1092 | | -silent | --silent | --silen | --sile | --sil) |
| 1093 | silent=yes ;; |
| 1094 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1095 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1096 | ac_prev=sbindir ;; |
| 1097 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1098 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1099 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1100 | |
| 1101 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1102 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1103 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1104 | | --sha | --sh) |
| 1105 | ac_prev=sharedstatedir ;; |
| 1106 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1107 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1108 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1109 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1110 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1111 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1112 | -site | --site | --sit) |
| 1113 | ac_prev=site ;; |
| 1114 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1115 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1116 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1117 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1118 | ac_prev=srcdir ;; |
| 1119 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1120 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1121 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1122 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1123 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1124 | ac_prev=sysconfdir ;; |
| 1125 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1126 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1127 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1128 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1129 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1131 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1132 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1133 | |
| 1134 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1135 | verbose=yes ;; |
| 1136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1137 | -version | --version | --versio | --versi | --vers | -V) |
| 1138 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1139 | |
| 1140 | -with-* | --with-*) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1141 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1142 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1143 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1144 | { $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] | 1145 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1146 | ac_useropt_orig=$ac_useropt |
| 1147 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1148 | case $ac_user_opts in |
| 1149 | *" |
| 1150 | "with_$ac_useropt" |
| 1151 | "*) ;; |
| 1152 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1153 | ac_unrecognized_sep=', ';; |
| 1154 | esac |
| 1155 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1156 | |
| 1157 | -without-* | --without-*) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1158 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1159 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1160 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1161 | { $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] | 1162 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1163 | ac_useropt_orig=$ac_useropt |
| 1164 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1165 | case $ac_user_opts in |
| 1166 | *" |
| 1167 | "with_$ac_useropt" |
| 1168 | "*) ;; |
| 1169 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1170 | ac_unrecognized_sep=', ';; |
| 1171 | esac |
| 1172 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1173 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1174 | --x) |
| 1175 | # Obsolete; use --with-x. |
| 1176 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1177 | |
| 1178 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1179 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1180 | ac_prev=x_includes ;; |
| 1181 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1182 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1183 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1184 | |
| 1185 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1186 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1187 | ac_prev=x_libraries ;; |
| 1188 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1189 | | --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] | 1190 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1191 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1192 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1193 | Try \`$0 --help' for more information." >&2 |
| 1194 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1195 | ;; |
| 1196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1197 | *=*) |
| 1198 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1199 | # Reject names that are not valid shell variable names. |
| 1200 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1201 | { $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] | 1202 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1203 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1204 | export $ac_envvar ;; |
| 1205 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1206 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1207 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1208 | $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] | 1209 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1210 | $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] | 1211 | : ${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] | 1212 | ;; |
| 1213 | |
| 1214 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1215 | done |
| 1216 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1217 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1218 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1219 | { $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] | 1220 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1221 | fi |
| 1222 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1223 | if test -n "$ac_unrecognized_opts"; then |
| 1224 | case $enable_option_checking in |
| 1225 | no) ;; |
| 1226 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
| 1227 | { (exit 1); exit 1; }; } ;; |
| 1228 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1229 | esac |
| 1230 | fi |
| 1231 | |
| 1232 | # Check all directory arguments for consistency. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1233 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1234 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1235 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1236 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1237 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1238 | eval ac_val=\$$ac_var |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1239 | # Remove trailing slashes. |
| 1240 | case $ac_val in |
| 1241 | */ ) |
| 1242 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1243 | eval $ac_var=\$ac_val;; |
| 1244 | esac |
| 1245 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1246 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1247 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1248 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1249 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1250 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1251 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1252 | done |
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 | # There might be people who depend on the old broken behavior: `$host' |
| 1255 | # used to hold the argument of --host etc. |
| 1256 | # FIXME: To remove some day. |
| 1257 | build=$build_alias |
| 1258 | host=$host_alias |
| 1259 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1261 | # FIXME: To remove some day. |
| 1262 | if test "x$host_alias" != x; then |
| 1263 | if test "x$build_alias" = x; then |
| 1264 | cross_compiling=maybe |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1265 | $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] | 1266 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1267 | elif test "x$build_alias" != "x$host_alias"; then |
| 1268 | cross_compiling=yes |
| 1269 | fi |
| 1270 | fi |
| 1271 | |
| 1272 | ac_tool_prefix= |
| 1273 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1274 | |
| 1275 | test "$silent" = yes && exec 6>/dev/null |
| 1276 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1277 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1278 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1279 | ac_ls_di=`ls -di .` && |
| 1280 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1281 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1282 | { (exit 1); exit 1; }; } |
| 1283 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1284 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1285 | { (exit 1); exit 1; }; } |
| 1286 | |
| 1287 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1288 | # Find the source files, if location was not specified. |
| 1289 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1290 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1291 | # Try the directory containing this script, then the parent directory. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1292 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1293 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1294 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1295 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1296 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1297 | $as_echo X"$as_myself" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1298 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1299 | s//\1/ |
| 1300 | q |
| 1301 | } |
| 1302 | /^X\(\/\/\)[^/].*/{ |
| 1303 | s//\1/ |
| 1304 | q |
| 1305 | } |
| 1306 | /^X\(\/\/\)$/{ |
| 1307 | s//\1/ |
| 1308 | q |
| 1309 | } |
| 1310 | /^X\(\/\).*/{ |
| 1311 | s//\1/ |
| 1312 | q |
| 1313 | } |
| 1314 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1315 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1316 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1317 | srcdir=.. |
| 1318 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1319 | else |
| 1320 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1321 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1322 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1323 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1324 | { $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] | 1325 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1326 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1327 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1328 | ac_abs_confdir=`( |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1329 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1330 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1331 | pwd)` |
| 1332 | # When building in place, set srcdir=. |
| 1333 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1334 | srcdir=. |
| 1335 | fi |
| 1336 | # Remove unnecessary trailing slashes from srcdir. |
| 1337 | # Double slashes in file names in object file debugging info |
| 1338 | # mess up M-x gdb in Emacs. |
| 1339 | case $srcdir in |
| 1340 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1341 | esac |
| 1342 | for ac_var in $ac_precious_vars; do |
| 1343 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1344 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1345 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1346 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1347 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1348 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1349 | # |
| 1350 | # Report the --help message. |
| 1351 | # |
| 1352 | if test "$ac_init_help" = "long"; then |
| 1353 | # Omit some internal or obsolete options to make the list less imposing. |
| 1354 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1355 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1356 | \`configure' configures python 2.7 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1357 | |
| 1358 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1359 | |
| 1360 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1361 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1362 | |
| 1363 | Defaults for the options are specified in brackets. |
| 1364 | |
| 1365 | Configuration: |
| 1366 | -h, --help display this help and exit |
| 1367 | --help=short display options specific to this package |
| 1368 | --help=recursive display the short help of all the included packages |
| 1369 | -V, --version display version information and exit |
| 1370 | -q, --quiet, --silent do not print \`checking...' messages |
| 1371 | --cache-file=FILE cache test results in FILE [disabled] |
| 1372 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1373 | -n, --no-create do not create output files |
| 1374 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1376 | Installation directories: |
| 1377 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1378 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1379 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1380 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1381 | |
| 1382 | By default, \`make install' will install all the files in |
| 1383 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1384 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1385 | for instance \`--prefix=\$HOME'. |
| 1386 | |
| 1387 | For better control, use the options below. |
| 1388 | |
| 1389 | Fine tuning of the installation directories: |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1390 | --bindir=DIR user executables [EPREFIX/bin] |
| 1391 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1392 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1393 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1394 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1395 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1396 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1397 | --includedir=DIR C header files [PREFIX/include] |
| 1398 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1399 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1400 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1401 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1402 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1403 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1404 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1405 | --htmldir=DIR html documentation [DOCDIR] |
| 1406 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1407 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1408 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1409 | _ACEOF |
| 1410 | |
| 1411 | cat <<\_ACEOF |
| 1412 | _ACEOF |
| 1413 | fi |
| 1414 | |
| 1415 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1416 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1417 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1418 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1419 | cat <<\_ACEOF |
| 1420 | |
| 1421 | Optional Features: |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1422 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1424 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1425 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1426 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1427 | --enable-framework[=INSTALLDIR] |
| 1428 | Build (MacOSX|Darwin) framework |
| 1429 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1430 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1431 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1432 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1433 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1434 | --enable-big-digits[=BITS] |
| 1435 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1436 | --enable-unicode[=ucs[24]] |
| 1437 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1438 | |
| 1439 | Optional Packages: |
| 1440 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1441 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1442 | --with-universal-archs=ARCH |
| 1443 | select architectures for universal build ("32-bit", |
| 1444 | "64-bit" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1445 | --with-framework-name=FRAMEWORK |
| 1446 | specify an alternate name of the framework built |
| 1447 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1448 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1449 | --with-cxx-main=<compiler> |
| 1450 | compile main() and link python executable with C++ |
| 1451 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1452 | --with-suffix=.exe set executable suffix |
| 1453 | --with-pydebug build with Py_DEBUG defined |
| 1454 | --with-libs='lib1 ...' link against additional libs |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1455 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1456 | --with-dbmliborder=db1:db2:... |
| 1457 | order to check db backends for dbm. Valid value is a |
| 1458 | colon separated string with the backend names |
| 1459 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1460 | --with-signal-module disable/enable signal module |
| 1461 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1462 | --with(out)-threads[=DIRECTORY] |
| 1463 | disable/enable thread support |
| 1464 | --with(out)-thread[=DIRECTORY] |
| 1465 | deprecated; use --with(out)-threads |
| 1466 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1467 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1468 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1469 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1470 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1471 | --with-fpectl enable SIGFPE catching |
| 1472 | --with-libm=STRING math library |
| 1473 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1474 | |
| 1475 | Some influential environment variables: |
| 1476 | CC C compiler command |
| 1477 | CFLAGS C compiler flags |
| 1478 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1479 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1480 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1481 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1482 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1483 | CPP C preprocessor |
| 1484 | |
| 1485 | Use these variables to override the choices made by `configure' or to help |
| 1486 | it to find libraries and programs with nonstandard names/locations. |
| 1487 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1488 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1489 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1490 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1491 | fi |
| 1492 | |
| 1493 | if test "$ac_init_help" = "recursive"; then |
| 1494 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1495 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1496 | test -d "$ac_dir" || |
| 1497 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1498 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1499 | ac_builddir=. |
| 1500 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1501 | case "$ac_dir" in |
| 1502 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1503 | *) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1504 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1505 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1506 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1507 | case $ac_top_builddir_sub in |
| 1508 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1509 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1510 | esac ;; |
| 1511 | esac |
| 1512 | ac_abs_top_builddir=$ac_pwd |
| 1513 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1514 | # for backward compatibility: |
| 1515 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1516 | |
| 1517 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1518 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1519 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1520 | ac_top_srcdir=$ac_top_builddir_sub |
| 1521 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1522 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1523 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1524 | ac_top_srcdir=$srcdir |
| 1525 | ac_abs_top_srcdir=$srcdir ;; |
| 1526 | *) # Relative name. |
| 1527 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1528 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1529 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1530 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1531 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1532 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1533 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1534 | # Check for guested configure. |
| 1535 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1536 | echo && |
| 1537 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1538 | elif test -f "$ac_srcdir/configure"; then |
| 1539 | echo && |
| 1540 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1541 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1542 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1543 | fi || ac_status=$? |
| 1544 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1545 | done |
| 1546 | fi |
| 1547 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1548 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1549 | if $ac_init_version; then |
| 1550 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1551 | python configure 2.7 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1552 | generated by GNU Autoconf 2.63 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1553 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1554 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1555 | 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] | 1556 | This configure script is free software; the Free Software Foundation |
| 1557 | gives unlimited permission to copy, distribute and modify it. |
| 1558 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1559 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1561 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1562 | This file contains any messages produced by compilers while |
| 1563 | running configure, to aid debugging if configure makes a mistake. |
| 1564 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1565 | It was created by python $as_me 2.7, which was |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1566 | generated by GNU Autoconf 2.63. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1567 | |
| 1568 | $ $0 $@ |
| 1569 | |
| 1570 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1571 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1572 | { |
| 1573 | cat <<_ASUNAME |
| 1574 | ## --------- ## |
| 1575 | ## Platform. ## |
| 1576 | ## --------- ## |
| 1577 | |
| 1578 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1579 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1580 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1581 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1582 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1583 | |
| 1584 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1585 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1586 | |
| 1587 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1588 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1589 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1590 | /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] | 1591 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1592 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1593 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1594 | |
| 1595 | _ASUNAME |
| 1596 | |
| 1597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1598 | for as_dir in $PATH |
| 1599 | do |
| 1600 | IFS=$as_save_IFS |
| 1601 | test -z "$as_dir" && as_dir=. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1602 | $as_echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1603 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1604 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1605 | |
| 1606 | } >&5 |
| 1607 | |
| 1608 | cat >&5 <<_ACEOF |
| 1609 | |
| 1610 | |
| 1611 | ## ----------- ## |
| 1612 | ## Core tests. ## |
| 1613 | ## ----------- ## |
| 1614 | |
| 1615 | _ACEOF |
| 1616 | |
| 1617 | |
| 1618 | # Keep a trace of the command line. |
| 1619 | # 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] | 1620 | # 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] | 1621 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1622 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1623 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1624 | ac_configure_args0= |
| 1625 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1626 | ac_must_keep_next=false |
| 1627 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1628 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1629 | for ac_arg |
| 1630 | do |
| 1631 | case $ac_arg in |
| 1632 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1633 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1634 | | -silent | --silent | --silen | --sile | --sil) |
| 1635 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1636 | *\'*) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1637 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1638 | esac |
| 1639 | case $ac_pass in |
| 1640 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1641 | 2) |
| 1642 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1643 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1644 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1645 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1646 | case $ac_arg in |
| 1647 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1648 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1649 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1650 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1651 | case "$ac_configure_args0 " in |
| 1652 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1653 | esac |
| 1654 | ;; |
| 1655 | -* ) ac_must_keep_next=true ;; |
| 1656 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1657 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1658 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1659 | ;; |
| 1660 | esac |
| 1661 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1662 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1663 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1664 | $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] | 1665 | |
| 1666 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1667 | # config.log. We remove comments because anyway the quotes in there |
| 1668 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1669 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1670 | # 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] | 1671 | trap 'exit_status=$? |
| 1672 | # Save into config.log some information that might help in debugging. |
| 1673 | { |
| 1674 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1676 | cat <<\_ASBOX |
| 1677 | ## ---------------- ## |
| 1678 | ## Cache variables. ## |
| 1679 | ## ---------------- ## |
| 1680 | _ASBOX |
| 1681 | echo |
| 1682 | # The following way of writing the cache mishandles newlines in values, |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1683 | ( |
| 1684 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1685 | eval ac_val=\$$ac_var |
| 1686 | case $ac_val in #( |
| 1687 | *${as_nl}*) |
| 1688 | case $ac_var in #( |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1689 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1690 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1691 | esac |
| 1692 | case $ac_var in #( |
| 1693 | _ | IFS | as_nl) ;; #( |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1694 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1695 | *) $as_unset $ac_var ;; |
| 1696 | esac ;; |
| 1697 | esac |
| 1698 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1699 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1700 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1701 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1702 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1703 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1704 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1705 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1706 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1707 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1708 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1709 | esac | |
| 1710 | sort |
| 1711 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1712 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1713 | |
| 1714 | cat <<\_ASBOX |
| 1715 | ## ----------------- ## |
| 1716 | ## Output variables. ## |
| 1717 | ## ----------------- ## |
| 1718 | _ASBOX |
| 1719 | echo |
| 1720 | for ac_var in $ac_subst_vars |
| 1721 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1722 | eval ac_val=\$$ac_var |
| 1723 | case $ac_val in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1724 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1725 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1726 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1727 | done | sort |
| 1728 | echo |
| 1729 | |
| 1730 | if test -n "$ac_subst_files"; then |
| 1731 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1732 | ## ------------------- ## |
| 1733 | ## File substitutions. ## |
| 1734 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1735 | _ASBOX |
| 1736 | echo |
| 1737 | for ac_var in $ac_subst_files |
| 1738 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1739 | eval ac_val=\$$ac_var |
| 1740 | case $ac_val in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1741 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1742 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1743 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1744 | done | sort |
| 1745 | echo |
| 1746 | fi |
| 1747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1748 | if test -s confdefs.h; then |
| 1749 | cat <<\_ASBOX |
| 1750 | ## ----------- ## |
| 1751 | ## confdefs.h. ## |
| 1752 | ## ----------- ## |
| 1753 | _ASBOX |
| 1754 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1755 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1756 | echo |
| 1757 | fi |
| 1758 | test "$ac_signal" != 0 && |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1759 | $as_echo "$as_me: caught signal $ac_signal" |
| 1760 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1761 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1762 | rm -f core *.core core.conftest.* && |
| 1763 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1764 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1765 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1766 | for ac_signal in 1 2 13 15; do |
| 1767 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1768 | done |
| 1769 | ac_signal=0 |
| 1770 | |
| 1771 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1772 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1773 | |
| 1774 | # Predefined preprocessor variables. |
| 1775 | |
| 1776 | cat >>confdefs.h <<_ACEOF |
| 1777 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1778 | _ACEOF |
| 1779 | |
| 1780 | |
| 1781 | cat >>confdefs.h <<_ACEOF |
| 1782 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1783 | _ACEOF |
| 1784 | |
| 1785 | |
| 1786 | cat >>confdefs.h <<_ACEOF |
| 1787 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1788 | _ACEOF |
| 1789 | |
| 1790 | |
| 1791 | cat >>confdefs.h <<_ACEOF |
| 1792 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1793 | _ACEOF |
| 1794 | |
| 1795 | |
| 1796 | cat >>confdefs.h <<_ACEOF |
| 1797 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1798 | _ACEOF |
| 1799 | |
| 1800 | |
| 1801 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1802 | # Prefer an explicitly selected file to automatically selected ones. |
| 1803 | ac_site_file1=NONE |
| 1804 | ac_site_file2=NONE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1805 | if test -n "$CONFIG_SITE"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1806 | ac_site_file1=$CONFIG_SITE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1807 | elif test "x$prefix" != xNONE; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1808 | ac_site_file1=$prefix/share/config.site |
| 1809 | ac_site_file2=$prefix/etc/config.site |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1810 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1811 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1812 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1813 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1814 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1815 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1816 | test "x$ac_site_file" = xNONE && continue |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1817 | if test -r "$ac_site_file"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1818 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1819 | $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] | 1820 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1821 | . "$ac_site_file" |
| 1822 | fi |
| 1823 | done |
| 1824 | |
| 1825 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1826 | # Some versions of bash will fail to source /dev/null (special |
| 1827 | # files actually), so we avoid doing that. |
| 1828 | if test -f "$cache_file"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1829 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1830 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1831 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1832 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1833 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1834 | esac |
| 1835 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1836 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1837 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1838 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1839 | >$cache_file |
| 1840 | fi |
| 1841 | |
| 1842 | # Check that the precious variables saved in the cache have kept the same |
| 1843 | # value. |
| 1844 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1845 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1846 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1847 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1848 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1849 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1850 | case $ac_old_set,$ac_new_set in |
| 1851 | set,) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1852 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1853 | $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] | 1854 | ac_cache_corrupted=: ;; |
| 1855 | ,set) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1856 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1857 | $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] | 1858 | ac_cache_corrupted=: ;; |
| 1859 | ,);; |
| 1860 | *) |
| 1861 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1862 | # differences in whitespace do not lead to failure. |
| 1863 | ac_old_val_w=`echo x $ac_old_val` |
| 1864 | ac_new_val_w=`echo x $ac_new_val` |
| 1865 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1866 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1867 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1868 | ac_cache_corrupted=: |
| 1869 | else |
| 1870 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1871 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1872 | eval $ac_var=\$ac_old_val |
| 1873 | fi |
| 1874 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1875 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1876 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1877 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1878 | fi;; |
| 1879 | esac |
| 1880 | # Pass precious variables to config.status. |
| 1881 | if test "$ac_new_set" = set; then |
| 1882 | case $ac_new_val in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1883 | *\'*) 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] | 1884 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1885 | esac |
| 1886 | case " $ac_configure_args " in |
| 1887 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1888 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1889 | esac |
| 1890 | fi |
| 1891 | done |
| 1892 | if $ac_cache_corrupted; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 1893 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1894 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1895 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1896 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1897 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1898 | $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] | 1899 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1900 | fi |
| 1901 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
| 1914 | |
| 1915 | |
| 1916 | |
| 1917 | |
| 1918 | |
| 1919 | |
| 1920 | |
| 1921 | |
| 1922 | |
| 1923 | |
| 1924 | |
| 1925 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1926 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1927 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1928 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1929 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1930 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1931 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1932 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1933 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1934 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1935 | |
| 1936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1937 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 1938 | if test "$prefix" != "/"; then |
| 1939 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1940 | fi |
| 1941 | |
| 1942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1943 | |
| 1944 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1945 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1946 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1947 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1948 | # with other autoconf-based packages that include Python.h |
| 1949 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1950 | rm confdefs.h |
| 1951 | mv confdefs.h.new confdefs.h |
| 1952 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1953 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1954 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1955 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1956 | |
| 1957 | SOVERSION=1.0 |
| 1958 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1959 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1960 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1961 | |
| 1962 | cat >>confdefs.h <<\_ACEOF |
| 1963 | #define _GNU_SOURCE 1 |
| 1964 | _ACEOF |
| 1965 | |
| 1966 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1967 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1968 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1969 | # them. |
| 1970 | |
| 1971 | cat >>confdefs.h <<\_ACEOF |
| 1972 | #define _NETBSD_SOURCE 1 |
| 1973 | _ACEOF |
| 1974 | |
| 1975 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1976 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1977 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1978 | # them. |
| 1979 | |
| 1980 | cat >>confdefs.h <<\_ACEOF |
| 1981 | #define __BSD_VISIBLE 1 |
| 1982 | _ACEOF |
| 1983 | |
| 1984 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1985 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1986 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1987 | |
| 1988 | cat >>confdefs.h <<\_ACEOF |
| 1989 | #define _BSD_TYPES 1 |
| 1990 | _ACEOF |
| 1991 | |
| 1992 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1993 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1994 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1995 | # them. |
| 1996 | |
| 1997 | cat >>confdefs.h <<\_ACEOF |
| 1998 | #define _DARWIN_C_SOURCE 1 |
| 1999 | _ACEOF |
| 2000 | |
| 2001 | |
| 2002 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2003 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2004 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2005 | # Arguments passed to configure. |
| 2006 | |
| 2007 | CONFIG_ARGS="$ac_configure_args" |
| 2008 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2009 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2010 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2011 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2012 | case $enableval in |
| 2013 | yes) |
| 2014 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 2015 | ;; |
| 2016 | esac |
| 2017 | case $enableval in |
| 2018 | no) |
| 2019 | UNIVERSALSDK= |
| 2020 | enable_universalsdk= |
| 2021 | ;; |
| 2022 | *) |
| 2023 | UNIVERSALSDK=$enableval |
| 2024 | ;; |
| 2025 | esac |
| 2026 | |
| 2027 | else |
| 2028 | |
| 2029 | UNIVERSALSDK= |
| 2030 | enable_universalsdk= |
| 2031 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2032 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2033 | |
| 2034 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2035 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 2036 | ARCH_RUN_32BIT= |
| 2037 | |
| 2038 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2039 | UNIVERSAL_ARCHS="32-bit" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2040 | { $as_echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 2041 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2042 | |
| 2043 | # Check whether --with-universal-archs was given. |
| 2044 | if test "${with_universal_archs+set}" = set; then |
| 2045 | withval=$with_universal_archs; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2046 | { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 2047 | $as_echo "$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2048 | UNIVERSAL_ARCHS="$withval" |
| 2049 | |
| 2050 | else |
| 2051 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2052 | { $as_echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 2053 | $as_echo "32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2054 | |
| 2055 | fi |
| 2056 | |
| 2057 | |
| 2058 | |
| 2059 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2060 | |
| 2061 | # Check whether --with-framework-name was given. |
| 2062 | if test "${with_framework_name+set}" = set; then |
| 2063 | withval=$with_framework_name; |
| 2064 | PYTHONFRAMEWORK=${withval} |
| 2065 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 2066 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 2067 | |
| 2068 | else |
| 2069 | |
| 2070 | PYTHONFRAMEWORK=Python |
| 2071 | PYTHONFRAMEWORKDIR=Python.framework |
| 2072 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 2073 | |
| 2074 | fi |
| 2075 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2076 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2077 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2078 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2079 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2080 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2081 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2082 | esac |
| 2083 | case $enableval in |
| 2084 | no) |
| 2085 | PYTHONFRAMEWORK= |
| 2086 | PYTHONFRAMEWORKDIR=no-framework |
| 2087 | PYTHONFRAMEWORKPREFIX= |
| 2088 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2089 | FRAMEWORKINSTALLFIRST= |
| 2090 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2091 | FRAMEWORKALTINSTALLFIRST= |
| 2092 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2093 | if test "x${prefix}" = "xNONE"; then |
| 2094 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2095 | else |
| 2096 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2097 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2098 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2099 | ;; |
| 2100 | *) |
| 2101 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2102 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2103 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2104 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
| 2105 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2106 | then |
| 2107 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
Ronald Oussoren | bb8cb0e | 2009-03-30 17:53:39 +0000 | [diff] [blame] | 2108 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2109 | else |
Ronald Oussoren | bb8cb0e | 2009-03-30 17:53:39 +0000 | [diff] [blame] | 2110 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2111 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 2112 | fi |
| 2113 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2114 | if test "x${prefix}" = "xNONE" ; then |
| 2115 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2116 | else |
| 2117 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2118 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2119 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2120 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2121 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2122 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2123 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2124 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2125 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2126 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2127 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2128 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2129 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2130 | |
| 2131 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2132 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2133 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2134 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2136 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2137 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2138 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2139 | PYTHONFRAMEWORKPREFIX= |
| 2140 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2141 | FRAMEWORKINSTALLFIRST= |
| 2142 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2143 | FRAMEWORKALTINSTALLFIRST= |
| 2144 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2145 | if test "x${prefix}" = "xNONE" ; then |
| 2146 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2147 | else |
| 2148 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2149 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2150 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2151 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2152 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2153 | then |
| 2154 | FRAMEWORKINSTALLLAST=update4wayuniversal |
| 2155 | FRAMEWORKALTINSTALLLAST=update4wayuniversal |
| 2156 | fi |
| 2157 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2158 | fi |
| 2159 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2160 | |
| 2161 | |
| 2162 | |
| 2163 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2164 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2165 | |
| 2166 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2167 | |
| 2168 | |
| 2169 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2170 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2171 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2172 | ## AC_HELP_STRING(--with-dyld, |
| 2173 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2174 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2175 | # Set name for machine-dependent library files |
| 2176 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2177 | { $as_echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2178 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2179 | if test -z "$MACHDEP" |
| 2180 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2181 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2182 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 2183 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2184 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2185 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2186 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2187 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2188 | ac_md_system=`echo $ac_sys_system | |
| 2189 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2190 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2191 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2192 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2193 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2194 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2195 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2196 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2197 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2198 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2199 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2200 | esac |
| 2201 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2202 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2203 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2204 | # disable features if it is defined, without any means to access these |
| 2205 | # features as extensions. For these systems, we skip the definition of |
| 2206 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2207 | # some feature, make sure there is no alternative way to access this |
| 2208 | # feature. Also, when using wildcards, make sure you have verified the |
| 2209 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2210 | # wildcard, and that the wildcard does not include future systems |
| 2211 | # (which may remove their limitations). |
| 2212 | case $ac_sys_system/$ac_sys_release in |
| 2213 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2214 | # 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] | 2215 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 2216 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 2217 | define_xopen_source=no |
| 2218 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2219 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2220 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2221 | |
| 2222 | cat >>confdefs.h <<\_ACEOF |
| 2223 | #define _BSD_SOURCE 1 |
| 2224 | _ACEOF |
| 2225 | |
| 2226 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2227 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2228 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2229 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 2230 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2231 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2232 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2233 | # of union __?sigval. Reported by Stuart Bishop. |
| 2234 | SunOS/5.6) |
| 2235 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2236 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2237 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2238 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2239 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2240 | define_xopen_source=no;; |
| 2241 | # 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] | 2242 | # 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] | 2243 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2244 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 2245 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2246 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2247 | FreeBSD/4.*) |
| 2248 | define_xopen_source=no;; |
| 2249 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2250 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2251 | # identifies itself as Darwin/7.* |
| 2252 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2253 | # disables platform specific features beyond repair. |
| 2254 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2255 | # has no effect, don't bother defining them |
| 2256 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2257 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2258 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2259 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2260 | # 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] | 2261 | AIX/4) |
| 2262 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2263 | AIX/5) |
| 2264 | if test `uname -r` -eq 1; then |
| 2265 | define_xopen_source=no |
| 2266 | fi |
| 2267 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 2268 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2269 | # defining NI_NUMERICHOST. |
| 2270 | QNX/6.3.2) |
| 2271 | define_xopen_source=no |
| 2272 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2273 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2274 | esac |
| 2275 | |
| 2276 | if test $define_xopen_source = yes |
| 2277 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2278 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2279 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2280 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2281 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2282 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2283 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2284 | |
| 2285 | cat >>confdefs.h <<\_ACEOF |
| 2286 | #define _XOPEN_SOURCE 500 |
| 2287 | _ACEOF |
| 2288 | |
| 2289 | ;; |
| 2290 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2291 | |
| 2292 | cat >>confdefs.h <<\_ACEOF |
| 2293 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2294 | _ACEOF |
| 2295 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2296 | ;; |
| 2297 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2298 | |
| 2299 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2300 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2301 | # several APIs are not declared. Since this is also needed in some |
| 2302 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2303 | # except for Solaris 10, where it must not be defined, |
| 2304 | # as it implies XPG4.2 |
| 2305 | case $ac_sys_system/$ac_sys_release in |
| 2306 | SunOS/5.10) |
| 2307 | ;; |
| 2308 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2309 | |
| 2310 | cat >>confdefs.h <<\_ACEOF |
| 2311 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2312 | _ACEOF |
| 2313 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2314 | ;; |
| 2315 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2316 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2317 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2318 | cat >>confdefs.h <<\_ACEOF |
| 2319 | #define _POSIX_C_SOURCE 200112L |
| 2320 | _ACEOF |
| 2321 | |
| 2322 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2323 | fi |
| 2324 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2325 | # |
| 2326 | # SGI compilers allow the specification of the both the ABI and the |
| 2327 | # ISA on the command line. Depending on the values of these switches, |
| 2328 | # different and often incompatable code will be generated. |
| 2329 | # |
| 2330 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2331 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2332 | # variable is also adjusted. |
| 2333 | # |
| 2334 | |
| 2335 | if test ! -z "$SGI_ABI" |
| 2336 | then |
| 2337 | CC="cc $SGI_ABI" |
| 2338 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2339 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2340 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2341 | { $as_echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2342 | $as_echo "$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2343 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2344 | # And add extra plat-mac for darwin |
| 2345 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2346 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2347 | { $as_echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2348 | $as_echo_n "checking EXTRAPLATDIR... " >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2349 | if test -z "$EXTRAPLATDIR" |
| 2350 | then |
| 2351 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2352 | darwin) |
| 2353 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2354 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2355 | ;; |
| 2356 | *) |
| 2357 | EXTRAPLATDIR="" |
| 2358 | EXTRAMACHDEPPATH="" |
| 2359 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2360 | esac |
| 2361 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2362 | { $as_echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2363 | $as_echo "$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2364 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2365 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2366 | # it may influence the way we can build extensions, so distutils |
| 2367 | # needs to check it |
| 2368 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2369 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2370 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2371 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2372 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2373 | { $as_echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2374 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2375 | ac_sys_machine=`uname -m` |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2376 | { $as_echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2377 | $as_echo "$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2378 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2379 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2380 | |
| 2381 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2382 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2383 | # just to get things to compile and link. Users are free to override OPT |
| 2384 | # when running configure or make. The build should not break if they do. |
| 2385 | # BASECFLAGS should generally not be messed with, however. |
| 2386 | |
| 2387 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2388 | # on that fiddles with OPT and BASECFLAGS? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2389 | { $as_echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2390 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2391 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2392 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2393 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2394 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2395 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 2396 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2397 | without_gcc=yes;; |
| 2398 | yes) CC=gcc |
| 2399 | without_gcc=no;; |
| 2400 | *) CC=$withval |
| 2401 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2402 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2403 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2404 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2405 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2406 | AIX*) CC=cc_r |
| 2407 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2408 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2409 | case $BE_HOST_CPU in |
| 2410 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2411 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2412 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2413 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2414 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2415 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2416 | ;; |
| 2417 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2418 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2419 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2420 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2421 | ;; |
| 2422 | *) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2423 | { { $as_echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2424 | $as_echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2425 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2426 | ;; |
| 2427 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2428 | AR="\$(srcdir)/Modules/ar_beos" |
| 2429 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2430 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2431 | Monterey*) |
| 2432 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2433 | without_gcc=;; |
| 2434 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2435 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2436 | fi |
| 2437 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2438 | { $as_echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2439 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2440 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2441 | # If the user switches compilers, we can't believe the cache |
| 2442 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2443 | then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2444 | { { $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] | 2445 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2446 | $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] | 2447 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2448 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2449 | fi |
| 2450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2451 | ac_ext=c |
| 2452 | ac_cpp='$CPP $CPPFLAGS' |
| 2453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2456 | if test -n "$ac_tool_prefix"; then |
| 2457 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2458 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2459 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2460 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2461 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2462 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2463 | else |
| 2464 | if test -n "$CC"; then |
| 2465 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2466 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2468 | for as_dir in $PATH |
| 2469 | do |
| 2470 | IFS=$as_save_IFS |
| 2471 | test -z "$as_dir" && as_dir=. |
| 2472 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2473 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2474 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2475 | $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] | 2476 | break 2 |
| 2477 | fi |
| 2478 | done |
| 2479 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2480 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2481 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2482 | fi |
| 2483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2485 | if test -n "$CC"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2486 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2487 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2488 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2489 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2490 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2491 | fi |
| 2492 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2494 | fi |
| 2495 | if test -z "$ac_cv_prog_CC"; then |
| 2496 | ac_ct_CC=$CC |
| 2497 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2498 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2499 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2500 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2501 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2502 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 | else |
| 2504 | if test -n "$ac_ct_CC"; then |
| 2505 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2506 | else |
| 2507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2508 | for as_dir in $PATH |
| 2509 | do |
| 2510 | IFS=$as_save_IFS |
| 2511 | test -z "$as_dir" && as_dir=. |
| 2512 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2513 | 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] | 2514 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2515 | $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] | 2516 | break 2 |
| 2517 | fi |
| 2518 | done |
| 2519 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2520 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | |
| 2522 | fi |
| 2523 | fi |
| 2524 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2525 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2526 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2527 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2528 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2529 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2530 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 | fi |
| 2532 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2533 | if test "x$ac_ct_CC" = x; then |
| 2534 | CC="" |
| 2535 | else |
| 2536 | case $cross_compiling:$ac_tool_warned in |
| 2537 | yes:) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2538 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2539 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2540 | ac_tool_warned=yes ;; |
| 2541 | esac |
| 2542 | CC=$ac_ct_CC |
| 2543 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2544 | else |
| 2545 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2546 | fi |
| 2547 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2548 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2549 | if test -n "$ac_tool_prefix"; then |
| 2550 | # 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] | 2551 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2552 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2553 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2554 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2555 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2556 | else |
| 2557 | if test -n "$CC"; then |
| 2558 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2561 | for as_dir in $PATH |
| 2562 | do |
| 2563 | IFS=$as_save_IFS |
| 2564 | test -z "$as_dir" && as_dir=. |
| 2565 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2566 | 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] | 2567 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2568 | $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] | 2569 | break 2 |
| 2570 | fi |
| 2571 | done |
| 2572 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2573 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2574 | |
| 2575 | fi |
| 2576 | fi |
| 2577 | CC=$ac_cv_prog_CC |
| 2578 | if test -n "$CC"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2579 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2580 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2581 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2582 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2583 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2584 | fi |
| 2585 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2587 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2588 | fi |
| 2589 | if test -z "$CC"; then |
| 2590 | # Extract the first word of "cc", so it can be a program name with args. |
| 2591 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2592 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2593 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2594 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2595 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2596 | else |
| 2597 | if test -n "$CC"; then |
| 2598 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2599 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2600 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2602 | for as_dir in $PATH |
| 2603 | do |
| 2604 | IFS=$as_save_IFS |
| 2605 | test -z "$as_dir" && as_dir=. |
| 2606 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2607 | 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] | 2608 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2609 | ac_prog_rejected=yes |
| 2610 | continue |
| 2611 | fi |
| 2612 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2613 | $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] | 2614 | break 2 |
| 2615 | fi |
| 2616 | done |
| 2617 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2618 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2619 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2620 | if test $ac_prog_rejected = yes; then |
| 2621 | # We found a bogon in the path, so make sure we never use it. |
| 2622 | set dummy $ac_cv_prog_CC |
| 2623 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2625 | # We chose a different compiler from the bogus one. |
| 2626 | # However, it has the same basename, so the bogon will be chosen |
| 2627 | # first if we set CC to just the basename; use the full file name. |
| 2628 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2629 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2630 | fi |
| 2631 | fi |
| 2632 | fi |
| 2633 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2635 | if test -n "$CC"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2636 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2637 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2638 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2639 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2640 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2641 | fi |
| 2642 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2644 | fi |
| 2645 | if test -z "$CC"; then |
| 2646 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2647 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2648 | do |
| 2649 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2650 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2651 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2652 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2653 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2654 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2655 | else |
| 2656 | if test -n "$CC"; then |
| 2657 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2660 | for as_dir in $PATH |
| 2661 | do |
| 2662 | IFS=$as_save_IFS |
| 2663 | test -z "$as_dir" && as_dir=. |
| 2664 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2665 | 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] | 2666 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2667 | $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] | 2668 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2669 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2670 | done |
| 2671 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2672 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 | |
| 2674 | fi |
| 2675 | fi |
| 2676 | CC=$ac_cv_prog_CC |
| 2677 | if test -n "$CC"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2678 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2679 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2680 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2681 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2682 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2683 | fi |
| 2684 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2686 | test -n "$CC" && break |
| 2687 | done |
| 2688 | fi |
| 2689 | if test -z "$CC"; then |
| 2690 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2691 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2692 | do |
| 2693 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2694 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2695 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2696 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2697 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2698 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2699 | else |
| 2700 | if test -n "$ac_ct_CC"; then |
| 2701 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2702 | else |
| 2703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2704 | for as_dir in $PATH |
| 2705 | do |
| 2706 | IFS=$as_save_IFS |
| 2707 | test -z "$as_dir" && as_dir=. |
| 2708 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2709 | 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] | 2710 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2711 | $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] | 2712 | break 2 |
| 2713 | fi |
| 2714 | done |
| 2715 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2716 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2717 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2718 | fi |
| 2719 | fi |
| 2720 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2721 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2722 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2723 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2724 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2725 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2726 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2727 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2728 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2730 | test -n "$ac_ct_CC" && break |
| 2731 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2732 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2733 | if test "x$ac_ct_CC" = x; then |
| 2734 | CC="" |
| 2735 | else |
| 2736 | case $cross_compiling:$ac_tool_warned in |
| 2737 | yes:) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2738 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2739 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2740 | ac_tool_warned=yes ;; |
| 2741 | esac |
| 2742 | CC=$ac_ct_CC |
| 2743 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2744 | fi |
| 2745 | |
| 2746 | fi |
| 2747 | |
| 2748 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2749 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2750 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2751 | { { $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] | 2752 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2753 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2754 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2755 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2756 | |
| 2757 | # Provide some information about the compiler. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2758 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2759 | set X $ac_compile |
| 2760 | ac_compiler=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2761 | { (ac_try="$ac_compiler --version >&5" |
| 2762 | case "(($ac_try" in |
| 2763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2764 | *) ac_try_echo=$ac_try;; |
| 2765 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2766 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2767 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2768 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2769 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2771 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2772 | { (ac_try="$ac_compiler -v >&5" |
| 2773 | case "(($ac_try" in |
| 2774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2775 | *) ac_try_echo=$ac_try;; |
| 2776 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2777 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2778 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2779 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2780 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2782 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2783 | { (ac_try="$ac_compiler -V >&5" |
| 2784 | case "(($ac_try" in |
| 2785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2786 | *) ac_try_echo=$ac_try;; |
| 2787 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2789 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2790 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2791 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2793 | (exit $ac_status); } |
| 2794 | |
| 2795 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2796 | /* confdefs.h. */ |
| 2797 | _ACEOF |
| 2798 | cat confdefs.h >>conftest.$ac_ext |
| 2799 | cat >>conftest.$ac_ext <<_ACEOF |
| 2800 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2802 | int |
| 2803 | main () |
| 2804 | { |
| 2805 | |
| 2806 | ; |
| 2807 | return 0; |
| 2808 | } |
| 2809 | _ACEOF |
| 2810 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2811 | 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] | 2812 | # Try to create an executable without -o first, disregard a.out. |
| 2813 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2814 | # of exeext. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2815 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2816 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2817 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2818 | |
| 2819 | # The possible output files: |
| 2820 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2821 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2822 | ac_rmfiles= |
| 2823 | for ac_file in $ac_files |
| 2824 | do |
| 2825 | case $ac_file in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2826 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2827 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2828 | esac |
| 2829 | done |
| 2830 | rm -f $ac_rmfiles |
| 2831 | |
| 2832 | if { (ac_try="$ac_link_default" |
| 2833 | case "(($ac_try" in |
| 2834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2835 | *) ac_try_echo=$ac_try;; |
| 2836 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2837 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2838 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2839 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2840 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2841 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2842 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2843 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2844 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2845 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2846 | # so that the user can short-circuit this test for compilers unknown to |
| 2847 | # Autoconf. |
| 2848 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2849 | do |
| 2850 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2851 | case $ac_file in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2852 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2853 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2854 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2855 | # We found the default executable, but exeext='' is most |
| 2856 | # certainly right. |
| 2857 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2858 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2859 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2860 | then :; else |
| 2861 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2862 | fi |
| 2863 | # We set ac_cv_exeext here because the later test for it is not |
| 2864 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2865 | # argument, so we may need to know it at that point already. |
| 2866 | # Even if this section looks crufty: it has the advantage of |
| 2867 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2868 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2869 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2870 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2871 | esac |
| 2872 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2873 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2874 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2875 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2876 | ac_file='' |
| 2877 | fi |
| 2878 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2879 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2880 | $as_echo "$ac_file" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2881 | if test -z "$ac_file"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2882 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2884 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2885 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2886 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2887 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2888 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2889 | $as_echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2890 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2891 | { (exit 77); exit 77; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2892 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2894 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2895 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2896 | # 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] | 2897 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2898 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2899 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2900 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2901 | # If not cross compiling, check that we can run a simple program. |
| 2902 | if test "$cross_compiling" != yes; then |
| 2903 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2904 | { (case "(($ac_try" in |
| 2905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2906 | *) ac_try_echo=$ac_try;; |
| 2907 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2908 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2909 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2910 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2911 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2913 | (exit $ac_status); }; }; then |
| 2914 | cross_compiling=no |
| 2915 | else |
| 2916 | if test "$cross_compiling" = maybe; then |
| 2917 | cross_compiling=yes |
| 2918 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2919 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2920 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2921 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2922 | If you meant to cross compile, use \`--host'. |
| 2923 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2924 | $as_echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2925 | If you meant to cross compile, use \`--host'. |
| 2926 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2927 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2928 | fi |
| 2929 | fi |
| 2930 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2931 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2932 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2933 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2934 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2935 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2936 | # 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] | 2937 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2938 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2939 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2940 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2941 | $as_echo "$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2942 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2943 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2944 | $as_echo_n "checking for suffix of executables... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2945 | if { (ac_try="$ac_link" |
| 2946 | case "(($ac_try" in |
| 2947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2948 | *) ac_try_echo=$ac_try;; |
| 2949 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2950 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2951 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2952 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2953 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2954 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2955 | (exit $ac_status); }; then |
| 2956 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2957 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2958 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2959 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2960 | for ac_file in conftest.exe conftest conftest.*; do |
| 2961 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2962 | case $ac_file in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2963 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2964 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2965 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2966 | * ) break;; |
| 2967 | esac |
| 2968 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2969 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2970 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2971 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2972 | { { $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] | 2973 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2974 | $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] | 2975 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2976 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2977 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2979 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2980 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2981 | $as_echo "$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2982 | |
| 2983 | rm -f conftest.$ac_ext |
| 2984 | EXEEXT=$ac_cv_exeext |
| 2985 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2986 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2987 | $as_echo_n "checking for suffix of object files... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2988 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 2989 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2991 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2992 | /* confdefs.h. */ |
| 2993 | _ACEOF |
| 2994 | cat confdefs.h >>conftest.$ac_ext |
| 2995 | cat >>conftest.$ac_ext <<_ACEOF |
| 2996 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2998 | int |
| 2999 | main () |
| 3000 | { |
| 3001 | |
| 3002 | ; |
| 3003 | return 0; |
| 3004 | } |
| 3005 | _ACEOF |
| 3006 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3007 | if { (ac_try="$ac_compile" |
| 3008 | case "(($ac_try" in |
| 3009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3010 | *) ac_try_echo=$ac_try;; |
| 3011 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3012 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3013 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3014 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3015 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3017 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3018 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3019 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3020 | case $ac_file in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3021 | *.$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] | 3022 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3023 | break;; |
| 3024 | esac |
| 3025 | done |
| 3026 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3027 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3029 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3030 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3031 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3032 | { { $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] | 3033 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3034 | $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] | 3035 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3036 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3037 | fi |
| 3038 | |
| 3039 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3040 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3041 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3042 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3043 | OBJEXT=$ac_cv_objext |
| 3044 | ac_objext=$OBJEXT |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3045 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3046 | $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] | 3047 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3048 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3049 | else |
| 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 | #ifndef __GNUC__ |
| 3061 | choke me |
| 3062 | #endif |
| 3063 | |
| 3064 | ; |
| 3065 | return 0; |
| 3066 | } |
| 3067 | _ACEOF |
| 3068 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3069 | if { (ac_try="$ac_compile" |
| 3070 | case "(($ac_try" in |
| 3071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3072 | *) ac_try_echo=$ac_try;; |
| 3073 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3074 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3075 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3076 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3077 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3079 | rm -f conftest.er1 |
| 3080 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3081 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3082 | (exit $ac_status); } && { |
| 3083 | test -z "$ac_c_werror_flag" || |
| 3084 | test ! -s conftest.err |
| 3085 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3086 | ac_compiler_gnu=yes |
| 3087 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3088 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3090 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3091 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3092 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3093 | |
| 3094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3095 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3096 | |
| 3097 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3098 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3099 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3100 | if test $ac_compiler_gnu = yes; then |
| 3101 | GCC=yes |
| 3102 | else |
| 3103 | GCC= |
| 3104 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3105 | ac_test_CFLAGS=${CFLAGS+set} |
| 3106 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3107 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3108 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3109 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3110 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3111 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3112 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3113 | ac_c_werror_flag=yes |
| 3114 | ac_cv_prog_cc_g=no |
| 3115 | CFLAGS="-g" |
| 3116 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3117 | /* confdefs.h. */ |
| 3118 | _ACEOF |
| 3119 | cat confdefs.h >>conftest.$ac_ext |
| 3120 | cat >>conftest.$ac_ext <<_ACEOF |
| 3121 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3123 | int |
| 3124 | main () |
| 3125 | { |
| 3126 | |
| 3127 | ; |
| 3128 | return 0; |
| 3129 | } |
| 3130 | _ACEOF |
| 3131 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3132 | if { (ac_try="$ac_compile" |
| 3133 | case "(($ac_try" in |
| 3134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3135 | *) ac_try_echo=$ac_try;; |
| 3136 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3137 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3138 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3139 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3140 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3142 | rm -f conftest.er1 |
| 3143 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3144 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3145 | (exit $ac_status); } && { |
| 3146 | test -z "$ac_c_werror_flag" || |
| 3147 | test ! -s conftest.err |
| 3148 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3149 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3150 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3151 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3153 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3154 | CFLAGS="" |
| 3155 | cat >conftest.$ac_ext <<_ACEOF |
| 3156 | /* confdefs.h. */ |
| 3157 | _ACEOF |
| 3158 | cat confdefs.h >>conftest.$ac_ext |
| 3159 | cat >>conftest.$ac_ext <<_ACEOF |
| 3160 | /* end confdefs.h. */ |
| 3161 | |
| 3162 | int |
| 3163 | main () |
| 3164 | { |
| 3165 | |
| 3166 | ; |
| 3167 | return 0; |
| 3168 | } |
| 3169 | _ACEOF |
| 3170 | rm -f conftest.$ac_objext |
| 3171 | if { (ac_try="$ac_compile" |
| 3172 | case "(($ac_try" in |
| 3173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3174 | *) ac_try_echo=$ac_try;; |
| 3175 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3177 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3178 | (eval "$ac_compile") 2>conftest.er1 |
| 3179 | ac_status=$? |
| 3180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3181 | rm -f conftest.er1 |
| 3182 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3184 | (exit $ac_status); } && { |
| 3185 | test -z "$ac_c_werror_flag" || |
| 3186 | test ! -s conftest.err |
| 3187 | } && test -s conftest.$ac_objext; then |
| 3188 | : |
| 3189 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3190 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3192 | |
| 3193 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3194 | CFLAGS="-g" |
| 3195 | cat >conftest.$ac_ext <<_ACEOF |
| 3196 | /* confdefs.h. */ |
| 3197 | _ACEOF |
| 3198 | cat confdefs.h >>conftest.$ac_ext |
| 3199 | cat >>conftest.$ac_ext <<_ACEOF |
| 3200 | /* end confdefs.h. */ |
| 3201 | |
| 3202 | int |
| 3203 | main () |
| 3204 | { |
| 3205 | |
| 3206 | ; |
| 3207 | return 0; |
| 3208 | } |
| 3209 | _ACEOF |
| 3210 | rm -f conftest.$ac_objext |
| 3211 | if { (ac_try="$ac_compile" |
| 3212 | case "(($ac_try" in |
| 3213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3214 | *) ac_try_echo=$ac_try;; |
| 3215 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3216 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3217 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3218 | (eval "$ac_compile") 2>conftest.er1 |
| 3219 | ac_status=$? |
| 3220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3221 | rm -f conftest.er1 |
| 3222 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3223 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3224 | (exit $ac_status); } && { |
| 3225 | test -z "$ac_c_werror_flag" || |
| 3226 | test ! -s conftest.err |
| 3227 | } && test -s conftest.$ac_objext; then |
| 3228 | ac_cv_prog_cc_g=yes |
| 3229 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3230 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3232 | |
| 3233 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3234 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3235 | |
| 3236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3237 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3238 | |
| 3239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3240 | fi |
| 3241 | |
| 3242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3243 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3244 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3245 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3246 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3247 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3248 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3249 | elif test $ac_cv_prog_cc_g = yes; then |
| 3250 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3251 | CFLAGS="-g -O2" |
| 3252 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3253 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3254 | fi |
| 3255 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3256 | if test "$GCC" = yes; then |
| 3257 | CFLAGS="-O2" |
| 3258 | else |
| 3259 | CFLAGS= |
| 3260 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3261 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3262 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3263 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3264 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3265 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3266 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3267 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3268 | ac_save_CC=$CC |
| 3269 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3270 | /* confdefs.h. */ |
| 3271 | _ACEOF |
| 3272 | cat confdefs.h >>conftest.$ac_ext |
| 3273 | cat >>conftest.$ac_ext <<_ACEOF |
| 3274 | /* end confdefs.h. */ |
| 3275 | #include <stdarg.h> |
| 3276 | #include <stdio.h> |
| 3277 | #include <sys/types.h> |
| 3278 | #include <sys/stat.h> |
| 3279 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3280 | struct buf { int x; }; |
| 3281 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3282 | static char *e (p, i) |
| 3283 | char **p; |
| 3284 | int i; |
| 3285 | { |
| 3286 | return p[i]; |
| 3287 | } |
| 3288 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3289 | { |
| 3290 | char *s; |
| 3291 | va_list v; |
| 3292 | va_start (v,p); |
| 3293 | s = g (p, va_arg (v,int)); |
| 3294 | va_end (v); |
| 3295 | return s; |
| 3296 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3297 | |
| 3298 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3299 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3300 | These don't provoke an error unfortunately, instead are silently treated |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3301 | 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] | 3302 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3303 | array size at least. It's necessary to write '\x00'==0 to get something |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3304 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3305 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3306 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3307 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3308 | inside strings and character constants. */ |
| 3309 | #define FOO(x) 'x' |
| 3310 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3311 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3312 | int test (int i, double x); |
| 3313 | struct s1 {int (*f) (int a);}; |
| 3314 | struct s2 {int (*f) (double a);}; |
| 3315 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3316 | int argc; |
| 3317 | char **argv; |
| 3318 | int |
| 3319 | main () |
| 3320 | { |
| 3321 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3322 | ; |
| 3323 | return 0; |
| 3324 | } |
| 3325 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3326 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3327 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3328 | do |
| 3329 | CC="$ac_save_CC $ac_arg" |
| 3330 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3331 | if { (ac_try="$ac_compile" |
| 3332 | case "(($ac_try" in |
| 3333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3334 | *) ac_try_echo=$ac_try;; |
| 3335 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3336 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3337 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3338 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3339 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3341 | rm -f conftest.er1 |
| 3342 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3343 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3344 | (exit $ac_status); } && { |
| 3345 | test -z "$ac_c_werror_flag" || |
| 3346 | test ! -s conftest.err |
| 3347 | } && test -s conftest.$ac_objext; then |
| 3348 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3349 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3350 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3352 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3353 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3354 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3355 | |
| 3356 | rm -f core conftest.err conftest.$ac_objext |
| 3357 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3358 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3359 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3360 | CC=$ac_save_CC |
| 3361 | |
| 3362 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3363 | # AC_CACHE_VAL |
| 3364 | case "x$ac_cv_prog_cc_c89" in |
| 3365 | x) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3366 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 3367 | $as_echo "none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3368 | xno) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3369 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3370 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3371 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3372 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3373 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3374 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3375 | esac |
| 3376 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3378 | ac_ext=c |
| 3379 | ac_cpp='$CPP $CPPFLAGS' |
| 3380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3383 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3384 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3385 | |
| 3386 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3387 | { $as_echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3388 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3389 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3390 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3391 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3392 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3393 | |
| 3394 | case $withval in |
| 3395 | no) with_cxx_main=no |
| 3396 | MAINCC='$(CC)';; |
| 3397 | yes) with_cxx_main=yes |
| 3398 | MAINCC='$(CXX)';; |
| 3399 | *) with_cxx_main=yes |
| 3400 | MAINCC=$withval |
| 3401 | if test -z "$CXX" |
| 3402 | then |
| 3403 | CXX=$withval |
| 3404 | fi;; |
| 3405 | esac |
| 3406 | else |
| 3407 | |
| 3408 | with_cxx_main=no |
| 3409 | MAINCC='$(CC)' |
| 3410 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3411 | fi |
| 3412 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3413 | { $as_echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3414 | $as_echo "$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3415 | |
| 3416 | preset_cxx="$CXX" |
| 3417 | if test -z "$CXX" |
| 3418 | then |
| 3419 | case "$CC" in |
| 3420 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3421 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3422 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3423 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3424 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3425 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3426 | else |
| 3427 | case $CXX in |
| 3428 | [\\/]* | ?:[\\/]*) |
| 3429 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3430 | ;; |
| 3431 | *) |
| 3432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3433 | for as_dir in notfound |
| 3434 | do |
| 3435 | IFS=$as_save_IFS |
| 3436 | test -z "$as_dir" && as_dir=. |
| 3437 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3438 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3439 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3440 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3441 | break 2 |
| 3442 | fi |
| 3443 | done |
| 3444 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3445 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3446 | |
| 3447 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3448 | ;; |
| 3449 | esac |
| 3450 | fi |
| 3451 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3452 | if test -n "$CXX"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3453 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3454 | $as_echo "$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3455 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3456 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3457 | $as_echo "no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3458 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3459 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3460 | ;; |
| 3461 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3462 | set dummy c++; ac_word=$2 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3463 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3464 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3465 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3466 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3467 | else |
| 3468 | case $CXX in |
| 3469 | [\\/]* | ?:[\\/]*) |
| 3470 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3471 | ;; |
| 3472 | *) |
| 3473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3474 | for as_dir in notfound |
| 3475 | do |
| 3476 | IFS=$as_save_IFS |
| 3477 | test -z "$as_dir" && as_dir=. |
| 3478 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3480 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3481 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3482 | break 2 |
| 3483 | fi |
| 3484 | done |
| 3485 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3486 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3487 | |
| 3488 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3489 | ;; |
| 3490 | esac |
| 3491 | fi |
| 3492 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3493 | if test -n "$CXX"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3494 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3495 | $as_echo "$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3496 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3497 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3498 | $as_echo "no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3499 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3500 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3501 | ;; |
| 3502 | esac |
| 3503 | if test "$CXX" = "notfound" |
| 3504 | then |
| 3505 | CXX="" |
| 3506 | fi |
| 3507 | fi |
| 3508 | if test -z "$CXX" |
| 3509 | then |
| 3510 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3511 | do |
| 3512 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3513 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3514 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3515 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3516 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3517 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3518 | else |
| 3519 | if test -n "$CXX"; then |
| 3520 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3521 | else |
| 3522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3523 | for as_dir in $PATH |
| 3524 | do |
| 3525 | IFS=$as_save_IFS |
| 3526 | test -z "$as_dir" && as_dir=. |
| 3527 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3529 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3530 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3531 | break 2 |
| 3532 | fi |
| 3533 | done |
| 3534 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3535 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3536 | |
| 3537 | fi |
| 3538 | fi |
| 3539 | CXX=$ac_cv_prog_CXX |
| 3540 | if test -n "$CXX"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3541 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3542 | $as_echo "$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3543 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3544 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3545 | $as_echo "no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3546 | fi |
| 3547 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3548 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3549 | test -n "$CXX" && break |
| 3550 | done |
| 3551 | test -n "$CXX" || CXX="notfound" |
| 3552 | |
| 3553 | if test "$CXX" = "notfound" |
| 3554 | then |
| 3555 | CXX="" |
| 3556 | fi |
| 3557 | fi |
| 3558 | if test "$preset_cxx" != "$CXX" |
| 3559 | then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3560 | { $as_echo "$as_me:$LINENO: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3561 | |
| 3562 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3563 | If this is not intended, then set CXX on the configure command line. |
| 3564 | " >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3565 | $as_echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3566 | |
| 3567 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3568 | If this is not intended, then set CXX on the configure command line. |
| 3569 | " >&2;} |
| 3570 | fi |
| 3571 | |
| 3572 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3573 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3574 | |
| 3575 | ac_ext=c |
| 3576 | ac_cpp='$CPP $CPPFLAGS' |
| 3577 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3578 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3579 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3580 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3581 | $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] | 3582 | # On Suns, sometimes $CPP names a directory. |
| 3583 | if test -n "$CPP" && test -d "$CPP"; then |
| 3584 | CPP= |
| 3585 | fi |
| 3586 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3587 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3588 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3590 | # Double quotes because CPP needs to be expanded |
| 3591 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3592 | do |
| 3593 | ac_preproc_ok=false |
| 3594 | for ac_c_preproc_warn_flag in '' yes |
| 3595 | do |
| 3596 | # Use a header file that comes with gcc, so configuring glibc |
| 3597 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3598 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3599 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3600 | # 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] | 3601 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3602 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3603 | /* confdefs.h. */ |
| 3604 | _ACEOF |
| 3605 | cat confdefs.h >>conftest.$ac_ext |
| 3606 | cat >>conftest.$ac_ext <<_ACEOF |
| 3607 | /* end confdefs.h. */ |
| 3608 | #ifdef __STDC__ |
| 3609 | # include <limits.h> |
| 3610 | #else |
| 3611 | # include <assert.h> |
| 3612 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3613 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3614 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3615 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3616 | case "(($ac_try" in |
| 3617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3618 | *) ac_try_echo=$ac_try;; |
| 3619 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3621 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3622 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3623 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3624 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3625 | rm -f conftest.er1 |
| 3626 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3627 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3628 | (exit $ac_status); } >/dev/null && { |
| 3629 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3630 | test ! -s conftest.err |
| 3631 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3632 | : |
| 3633 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3634 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3637 | # Broken: fails on valid input. |
| 3638 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3639 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3641 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3642 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3643 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3644 | # can be detected and how. |
| 3645 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3646 | /* confdefs.h. */ |
| 3647 | _ACEOF |
| 3648 | cat confdefs.h >>conftest.$ac_ext |
| 3649 | cat >>conftest.$ac_ext <<_ACEOF |
| 3650 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | #include <ac_nonexistent.h> |
| 3652 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3653 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3654 | case "(($ac_try" in |
| 3655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3656 | *) ac_try_echo=$ac_try;; |
| 3657 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3658 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3659 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3660 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3661 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3662 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3663 | rm -f conftest.er1 |
| 3664 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3665 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3666 | (exit $ac_status); } >/dev/null && { |
| 3667 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3668 | test ! -s conftest.err |
| 3669 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3670 | # Broken: success on invalid input. |
| 3671 | continue |
| 3672 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3673 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3676 | # Passes both tests. |
| 3677 | ac_preproc_ok=: |
| 3678 | break |
| 3679 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3681 | rm -f conftest.err conftest.$ac_ext |
| 3682 | |
| 3683 | done |
| 3684 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3685 | rm -f conftest.err conftest.$ac_ext |
| 3686 | if $ac_preproc_ok; then |
| 3687 | break |
| 3688 | fi |
| 3689 | |
| 3690 | done |
| 3691 | ac_cv_prog_CPP=$CPP |
| 3692 | |
| 3693 | fi |
| 3694 | CPP=$ac_cv_prog_CPP |
| 3695 | else |
| 3696 | ac_cv_prog_CPP=$CPP |
| 3697 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3698 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3699 | $as_echo "$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3700 | ac_preproc_ok=false |
| 3701 | for ac_c_preproc_warn_flag in '' yes |
| 3702 | do |
| 3703 | # Use a header file that comes with gcc, so configuring glibc |
| 3704 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3705 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3706 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3707 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3708 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3709 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3710 | /* confdefs.h. */ |
| 3711 | _ACEOF |
| 3712 | cat confdefs.h >>conftest.$ac_ext |
| 3713 | cat >>conftest.$ac_ext <<_ACEOF |
| 3714 | /* end confdefs.h. */ |
| 3715 | #ifdef __STDC__ |
| 3716 | # include <limits.h> |
| 3717 | #else |
| 3718 | # include <assert.h> |
| 3719 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3720 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3721 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3722 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3723 | case "(($ac_try" in |
| 3724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3725 | *) ac_try_echo=$ac_try;; |
| 3726 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3728 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3729 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3730 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3731 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3732 | rm -f conftest.er1 |
| 3733 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3735 | (exit $ac_status); } >/dev/null && { |
| 3736 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3737 | test ! -s conftest.err |
| 3738 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3739 | : |
| 3740 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3741 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3744 | # Broken: fails on valid input. |
| 3745 | continue |
| 3746 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3748 | rm -f conftest.err conftest.$ac_ext |
| 3749 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3750 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3751 | # can be detected and how. |
| 3752 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3753 | /* confdefs.h. */ |
| 3754 | _ACEOF |
| 3755 | cat confdefs.h >>conftest.$ac_ext |
| 3756 | cat >>conftest.$ac_ext <<_ACEOF |
| 3757 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3758 | #include <ac_nonexistent.h> |
| 3759 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3760 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3761 | case "(($ac_try" in |
| 3762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3763 | *) ac_try_echo=$ac_try;; |
| 3764 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3765 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3766 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3767 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3768 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3769 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 | rm -f conftest.er1 |
| 3771 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3772 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3773 | (exit $ac_status); } >/dev/null && { |
| 3774 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3775 | test ! -s conftest.err |
| 3776 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3777 | # Broken: success on invalid input. |
| 3778 | continue |
| 3779 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3780 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3783 | # Passes both tests. |
| 3784 | ac_preproc_ok=: |
| 3785 | break |
| 3786 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3787 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3788 | rm -f conftest.err conftest.$ac_ext |
| 3789 | |
| 3790 | done |
| 3791 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3792 | rm -f conftest.err conftest.$ac_ext |
| 3793 | if $ac_preproc_ok; then |
| 3794 | : |
| 3795 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3796 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3797 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3798 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3799 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3800 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3801 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3802 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3803 | fi |
| 3804 | |
| 3805 | ac_ext=c |
| 3806 | ac_cpp='$CPP $CPPFLAGS' |
| 3807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3810 | |
| 3811 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3812 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3813 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3814 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3815 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3816 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3817 | if test -z "$GREP"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3818 | ac_path_GREP_found=false |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3819 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3821 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3822 | do |
| 3823 | IFS=$as_save_IFS |
| 3824 | test -z "$as_dir" && as_dir=. |
| 3825 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3826 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3827 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3828 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3829 | # Check for GNU ac_path_GREP and select it if it is found. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3830 | # Check for GNU $ac_path_GREP |
| 3831 | case `"$ac_path_GREP" --version 2>&1` in |
| 3832 | *GNU*) |
| 3833 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3834 | *) |
| 3835 | ac_count=0 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3836 | $as_echo_n 0123456789 >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3837 | while : |
| 3838 | do |
| 3839 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3840 | mv "conftest.tmp" "conftest.in" |
| 3841 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3842 | $as_echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3843 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3844 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3845 | ac_count=`expr $ac_count + 1` |
| 3846 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3847 | # Best one so far, save it but keep looking for a better one |
| 3848 | ac_cv_path_GREP="$ac_path_GREP" |
| 3849 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3850 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3851 | # 10*(2^10) chars as input seems more than enough |
| 3852 | test $ac_count -gt 10 && break |
| 3853 | done |
| 3854 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3855 | esac |
| 3856 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3857 | $ac_path_GREP_found && break 3 |
| 3858 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3859 | done |
| 3860 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3861 | IFS=$as_save_IFS |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3862 | if test -z "$ac_cv_path_GREP"; then |
| 3863 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3864 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3865 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3866 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3867 | else |
| 3868 | ac_cv_path_GREP=$GREP |
| 3869 | fi |
| 3870 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3871 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3872 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3873 | $as_echo "$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3874 | GREP="$ac_cv_path_GREP" |
| 3875 | |
| 3876 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3877 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3878 | $as_echo_n "checking for egrep... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3879 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3880 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3881 | else |
| 3882 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3883 | then ac_cv_path_EGREP="$GREP -E" |
| 3884 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3885 | if test -z "$EGREP"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3886 | ac_path_EGREP_found=false |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3887 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3889 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3890 | do |
| 3891 | IFS=$as_save_IFS |
| 3892 | test -z "$as_dir" && as_dir=. |
| 3893 | for ac_prog in egrep; do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3894 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3895 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3896 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3897 | # Check for GNU ac_path_EGREP and select it if it is found. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3898 | # Check for GNU $ac_path_EGREP |
| 3899 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3900 | *GNU*) |
| 3901 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3902 | *) |
| 3903 | ac_count=0 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3904 | $as_echo_n 0123456789 >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3905 | while : |
| 3906 | do |
| 3907 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3908 | mv "conftest.tmp" "conftest.in" |
| 3909 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3910 | $as_echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3911 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3912 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3913 | ac_count=`expr $ac_count + 1` |
| 3914 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3915 | # Best one so far, save it but keep looking for a better one |
| 3916 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3917 | ac_path_EGREP_max=$ac_count |
| 3918 | fi |
| 3919 | # 10*(2^10) chars as input seems more than enough |
| 3920 | test $ac_count -gt 10 && break |
| 3921 | done |
| 3922 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3923 | esac |
| 3924 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3925 | $ac_path_EGREP_found && break 3 |
| 3926 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3927 | done |
| 3928 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3929 | IFS=$as_save_IFS |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3930 | if test -z "$ac_cv_path_EGREP"; then |
| 3931 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3932 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3933 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3934 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3935 | else |
| 3936 | ac_cv_path_EGREP=$EGREP |
| 3937 | fi |
| 3938 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3939 | fi |
| 3940 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3941 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3942 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3943 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3944 | |
| 3945 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3946 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3947 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3948 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3949 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3950 | else |
| 3951 | cat >conftest.$ac_ext <<_ACEOF |
| 3952 | /* confdefs.h. */ |
| 3953 | _ACEOF |
| 3954 | cat confdefs.h >>conftest.$ac_ext |
| 3955 | cat >>conftest.$ac_ext <<_ACEOF |
| 3956 | /* end confdefs.h. */ |
| 3957 | #include <stdlib.h> |
| 3958 | #include <stdarg.h> |
| 3959 | #include <string.h> |
| 3960 | #include <float.h> |
| 3961 | |
| 3962 | int |
| 3963 | main () |
| 3964 | { |
| 3965 | |
| 3966 | ; |
| 3967 | return 0; |
| 3968 | } |
| 3969 | _ACEOF |
| 3970 | rm -f conftest.$ac_objext |
| 3971 | if { (ac_try="$ac_compile" |
| 3972 | case "(($ac_try" in |
| 3973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3974 | *) ac_try_echo=$ac_try;; |
| 3975 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3976 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3977 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3978 | (eval "$ac_compile") 2>conftest.er1 |
| 3979 | ac_status=$? |
| 3980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3981 | rm -f conftest.er1 |
| 3982 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3984 | (exit $ac_status); } && { |
| 3985 | test -z "$ac_c_werror_flag" || |
| 3986 | test ! -s conftest.err |
| 3987 | } && test -s conftest.$ac_objext; then |
| 3988 | ac_cv_header_stdc=yes |
| 3989 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 3990 | $as_echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3992 | |
| 3993 | ac_cv_header_stdc=no |
| 3994 | fi |
| 3995 | |
| 3996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3997 | |
| 3998 | if test $ac_cv_header_stdc = yes; then |
| 3999 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4000 | cat >conftest.$ac_ext <<_ACEOF |
| 4001 | /* confdefs.h. */ |
| 4002 | _ACEOF |
| 4003 | cat confdefs.h >>conftest.$ac_ext |
| 4004 | cat >>conftest.$ac_ext <<_ACEOF |
| 4005 | /* end confdefs.h. */ |
| 4006 | #include <string.h> |
| 4007 | |
| 4008 | _ACEOF |
| 4009 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4010 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4011 | : |
| 4012 | else |
| 4013 | ac_cv_header_stdc=no |
| 4014 | fi |
| 4015 | rm -f conftest* |
| 4016 | |
| 4017 | fi |
| 4018 | |
| 4019 | if test $ac_cv_header_stdc = yes; then |
| 4020 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4021 | cat >conftest.$ac_ext <<_ACEOF |
| 4022 | /* confdefs.h. */ |
| 4023 | _ACEOF |
| 4024 | cat confdefs.h >>conftest.$ac_ext |
| 4025 | cat >>conftest.$ac_ext <<_ACEOF |
| 4026 | /* end confdefs.h. */ |
| 4027 | #include <stdlib.h> |
| 4028 | |
| 4029 | _ACEOF |
| 4030 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4031 | $EGREP "free" >/dev/null 2>&1; then |
| 4032 | : |
| 4033 | else |
| 4034 | ac_cv_header_stdc=no |
| 4035 | fi |
| 4036 | rm -f conftest* |
| 4037 | |
| 4038 | fi |
| 4039 | |
| 4040 | if test $ac_cv_header_stdc = yes; then |
| 4041 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4042 | if test "$cross_compiling" = yes; then |
| 4043 | : |
| 4044 | else |
| 4045 | cat >conftest.$ac_ext <<_ACEOF |
| 4046 | /* confdefs.h. */ |
| 4047 | _ACEOF |
| 4048 | cat confdefs.h >>conftest.$ac_ext |
| 4049 | cat >>conftest.$ac_ext <<_ACEOF |
| 4050 | /* end confdefs.h. */ |
| 4051 | #include <ctype.h> |
| 4052 | #include <stdlib.h> |
| 4053 | #if ((' ' & 0x0FF) == 0x020) |
| 4054 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4055 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4056 | #else |
| 4057 | # define ISLOWER(c) \ |
| 4058 | (('a' <= (c) && (c) <= 'i') \ |
| 4059 | || ('j' <= (c) && (c) <= 'r') \ |
| 4060 | || ('s' <= (c) && (c) <= 'z')) |
| 4061 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4062 | #endif |
| 4063 | |
| 4064 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4065 | int |
| 4066 | main () |
| 4067 | { |
| 4068 | int i; |
| 4069 | for (i = 0; i < 256; i++) |
| 4070 | if (XOR (islower (i), ISLOWER (i)) |
| 4071 | || toupper (i) != TOUPPER (i)) |
| 4072 | return 2; |
| 4073 | return 0; |
| 4074 | } |
| 4075 | _ACEOF |
| 4076 | rm -f conftest$ac_exeext |
| 4077 | if { (ac_try="$ac_link" |
| 4078 | case "(($ac_try" in |
| 4079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4080 | *) ac_try_echo=$ac_try;; |
| 4081 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4082 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4083 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4084 | (eval "$ac_link") 2>&5 |
| 4085 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4086 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4087 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4088 | { (case "(($ac_try" in |
| 4089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4090 | *) ac_try_echo=$ac_try;; |
| 4091 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4093 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4094 | (eval "$ac_try") 2>&5 |
| 4095 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4096 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4097 | (exit $ac_status); }; }; then |
| 4098 | : |
| 4099 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4100 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 4101 | $as_echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4103 | |
| 4104 | ( exit $ac_status ) |
| 4105 | ac_cv_header_stdc=no |
| 4106 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4107 | rm -rf conftest.dSYM |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4109 | fi |
| 4110 | |
| 4111 | |
| 4112 | fi |
| 4113 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4114 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4115 | $as_echo "$ac_cv_header_stdc" >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4116 | if test $ac_cv_header_stdc = yes; then |
| 4117 | |
| 4118 | cat >>confdefs.h <<\_ACEOF |
| 4119 | #define STDC_HEADERS 1 |
| 4120 | _ACEOF |
| 4121 | |
| 4122 | fi |
| 4123 | |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 4124 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4125 | |
| 4126 | |
| 4127 | |
| 4128 | |
| 4129 | |
| 4130 | |
| 4131 | |
| 4132 | |
| 4133 | |
| 4134 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4135 | inttypes.h stdint.h unistd.h |
| 4136 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4137 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4138 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4139 | $as_echo_n "checking for $ac_header... " >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 4140 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4141 | $as_echo_n "(cached) " >&6 |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 4142 | else |
| 4143 | cat >conftest.$ac_ext <<_ACEOF |
| 4144 | /* confdefs.h. */ |
| 4145 | _ACEOF |
| 4146 | cat confdefs.h >>conftest.$ac_ext |
| 4147 | cat >>conftest.$ac_ext <<_ACEOF |
| 4148 | /* end confdefs.h. */ |
| 4149 | $ac_includes_default |
| 4150 | |
| 4151 | #include <$ac_header> |
| 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 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4159 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4160 | $as_echo "$ac_try_echo") >&5 |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 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 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4166 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 4167 | (exit $ac_status); } && { |
| 4168 | test -z "$ac_c_werror_flag" || |
| 4169 | test ! -s conftest.err |
| 4170 | } && test -s conftest.$ac_objext; then |
| 4171 | eval "$as_ac_Header=yes" |
| 4172 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4173 | $as_echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 4174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4175 | |
| 4176 | eval "$as_ac_Header=no" |
| 4177 | fi |
| 4178 | |
| 4179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4180 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4181 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 4182 | $as_echo "$as_val"'` |
| 4183 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4184 | $as_echo "$ac_res" >&6; } |
| 4185 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 4186 | $as_echo "$as_val"'` |
| 4187 | if test "x$as_val" = x""yes; then |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 4188 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4189 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 4190 | _ACEOF |
| 4191 | |
| 4192 | fi |
| 4193 | |
| 4194 | done |
| 4195 | |
| 4196 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4197 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 4198 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 4199 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 4200 | $as_echo_n "checking for minix/config.h... " >&6; } |
| 4201 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 4202 | $as_echo_n "(cached) " >&6 |
| 4203 | fi |
| 4204 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 4205 | $as_echo "$ac_cv_header_minix_config_h" >&6; } |
| 4206 | else |
| 4207 | # Is the header compilable? |
| 4208 | { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 4209 | $as_echo_n "checking minix/config.h usability... " >&6; } |
| 4210 | cat >conftest.$ac_ext <<_ACEOF |
| 4211 | /* confdefs.h. */ |
| 4212 | _ACEOF |
| 4213 | cat confdefs.h >>conftest.$ac_ext |
| 4214 | cat >>conftest.$ac_ext <<_ACEOF |
| 4215 | /* end confdefs.h. */ |
| 4216 | $ac_includes_default |
| 4217 | #include <minix/config.h> |
| 4218 | _ACEOF |
| 4219 | rm -f conftest.$ac_objext |
| 4220 | if { (ac_try="$ac_compile" |
| 4221 | case "(($ac_try" in |
| 4222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4223 | *) ac_try_echo=$ac_try;; |
| 4224 | esac |
| 4225 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4226 | $as_echo "$ac_try_echo") >&5 |
| 4227 | (eval "$ac_compile") 2>conftest.er1 |
| 4228 | ac_status=$? |
| 4229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4230 | rm -f conftest.er1 |
| 4231 | cat conftest.err >&5 |
| 4232 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4233 | (exit $ac_status); } && { |
| 4234 | test -z "$ac_c_werror_flag" || |
| 4235 | test ! -s conftest.err |
| 4236 | } && test -s conftest.$ac_objext; then |
| 4237 | ac_header_compiler=yes |
| 4238 | else |
| 4239 | $as_echo "$as_me: failed program was:" >&5 |
| 4240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4241 | |
| 4242 | ac_header_compiler=no |
| 4243 | fi |
| 4244 | |
| 4245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4246 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4247 | $as_echo "$ac_header_compiler" >&6; } |
| 4248 | |
| 4249 | # Is the header present? |
| 4250 | { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 4251 | $as_echo_n "checking minix/config.h presence... " >&6; } |
| 4252 | cat >conftest.$ac_ext <<_ACEOF |
| 4253 | /* confdefs.h. */ |
| 4254 | _ACEOF |
| 4255 | cat confdefs.h >>conftest.$ac_ext |
| 4256 | cat >>conftest.$ac_ext <<_ACEOF |
| 4257 | /* end confdefs.h. */ |
| 4258 | #include <minix/config.h> |
| 4259 | _ACEOF |
| 4260 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4261 | case "(($ac_try" in |
| 4262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4263 | *) ac_try_echo=$ac_try;; |
| 4264 | esac |
| 4265 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4266 | $as_echo "$ac_try_echo") >&5 |
| 4267 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4268 | ac_status=$? |
| 4269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4270 | rm -f conftest.er1 |
| 4271 | cat conftest.err >&5 |
| 4272 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4273 | (exit $ac_status); } >/dev/null && { |
| 4274 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4275 | test ! -s conftest.err |
| 4276 | }; then |
| 4277 | ac_header_preproc=yes |
| 4278 | else |
| 4279 | $as_echo "$as_me: failed program was:" >&5 |
| 4280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4281 | |
| 4282 | ac_header_preproc=no |
| 4283 | fi |
| 4284 | |
| 4285 | rm -f conftest.err conftest.$ac_ext |
| 4286 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4287 | $as_echo "$ac_header_preproc" >&6; } |
| 4288 | |
| 4289 | # So? What about this header? |
| 4290 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4291 | yes:no: ) |
| 4292 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4293 | $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4294 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 |
| 4295 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} |
| 4296 | ac_header_preproc=yes |
| 4297 | ;; |
| 4298 | no:yes:* ) |
| 4299 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 4300 | $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 4301 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 4302 | $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 4303 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 |
| 4304 | $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} |
| 4305 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4306 | $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4307 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 4308 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 4309 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 |
| 4310 | $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} |
| 4311 | ( cat <<\_ASBOX |
| 4312 | ## -------------------------------------- ## |
| 4313 | ## Report this to http://bugs.python.org/ ## |
| 4314 | ## -------------------------------------- ## |
| 4315 | _ASBOX |
| 4316 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 4317 | ;; |
| 4318 | esac |
| 4319 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 4320 | $as_echo_n "checking for minix/config.h... " >&6; } |
| 4321 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 4322 | $as_echo_n "(cached) " >&6 |
| 4323 | else |
| 4324 | ac_cv_header_minix_config_h=$ac_header_preproc |
| 4325 | fi |
| 4326 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 4327 | $as_echo "$ac_cv_header_minix_config_h" >&6; } |
| 4328 | |
| 4329 | fi |
| 4330 | if test "x$ac_cv_header_minix_config_h" = x""yes; then |
| 4331 | MINIX=yes |
| 4332 | else |
| 4333 | MINIX= |
| 4334 | fi |
| 4335 | |
| 4336 | |
| 4337 | if test "$MINIX" = yes; then |
| 4338 | |
| 4339 | cat >>confdefs.h <<\_ACEOF |
| 4340 | #define _POSIX_SOURCE 1 |
| 4341 | _ACEOF |
| 4342 | |
| 4343 | |
| 4344 | cat >>confdefs.h <<\_ACEOF |
| 4345 | #define _POSIX_1_SOURCE 2 |
| 4346 | _ACEOF |
| 4347 | |
| 4348 | |
| 4349 | cat >>confdefs.h <<\_ACEOF |
| 4350 | #define _MINIX 1 |
| 4351 | _ACEOF |
| 4352 | |
| 4353 | fi |
| 4354 | |
| 4355 | |
| 4356 | |
| 4357 | { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4358 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 4359 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then |
| 4360 | $as_echo_n "(cached) " >&6 |
| 4361 | else |
| 4362 | cat >conftest.$ac_ext <<_ACEOF |
| 4363 | /* confdefs.h. */ |
| 4364 | _ACEOF |
| 4365 | cat confdefs.h >>conftest.$ac_ext |
| 4366 | cat >>conftest.$ac_ext <<_ACEOF |
| 4367 | /* end confdefs.h. */ |
| 4368 | |
| 4369 | # define __EXTENSIONS__ 1 |
| 4370 | $ac_includes_default |
| 4371 | int |
| 4372 | main () |
| 4373 | { |
| 4374 | |
| 4375 | ; |
| 4376 | return 0; |
| 4377 | } |
| 4378 | _ACEOF |
| 4379 | rm -f conftest.$ac_objext |
| 4380 | if { (ac_try="$ac_compile" |
| 4381 | case "(($ac_try" in |
| 4382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4383 | *) ac_try_echo=$ac_try;; |
| 4384 | esac |
| 4385 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4386 | $as_echo "$ac_try_echo") >&5 |
| 4387 | (eval "$ac_compile") 2>conftest.er1 |
| 4388 | ac_status=$? |
| 4389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4390 | rm -f conftest.er1 |
| 4391 | cat conftest.err >&5 |
| 4392 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4393 | (exit $ac_status); } && { |
| 4394 | test -z "$ac_c_werror_flag" || |
| 4395 | test ! -s conftest.err |
| 4396 | } && test -s conftest.$ac_objext; then |
| 4397 | ac_cv_safe_to_define___extensions__=yes |
| 4398 | else |
| 4399 | $as_echo "$as_me: failed program was:" >&5 |
| 4400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4401 | |
| 4402 | ac_cv_safe_to_define___extensions__=no |
| 4403 | fi |
| 4404 | |
| 4405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4406 | fi |
| 4407 | { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4408 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4409 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4410 | cat >>confdefs.h <<\_ACEOF |
| 4411 | #define __EXTENSIONS__ 1 |
| 4412 | _ACEOF |
| 4413 | |
| 4414 | cat >>confdefs.h <<\_ACEOF |
| 4415 | #define _ALL_SOURCE 1 |
| 4416 | _ACEOF |
| 4417 | |
| 4418 | cat >>confdefs.h <<\_ACEOF |
| 4419 | #define _GNU_SOURCE 1 |
| 4420 | _ACEOF |
| 4421 | |
| 4422 | cat >>confdefs.h <<\_ACEOF |
| 4423 | #define _POSIX_PTHREAD_SEMANTICS 1 |
| 4424 | _ACEOF |
| 4425 | |
| 4426 | cat >>confdefs.h <<\_ACEOF |
| 4427 | #define _TANDEM_SOURCE 1 |
| 4428 | _ACEOF |
| 4429 | |
| 4430 | |
| 4431 | |
| 4432 | # Check for unsupported systems |
| 4433 | case $ac_sys_system/$ac_sys_release in |
| 4434 | atheos*|Linux*/1*) |
| 4435 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 4436 | echo See README for details. |
| 4437 | exit 1;; |
| 4438 | esac |
| 4439 | |
| 4440 | |
| 4441 | { $as_echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 4442 | $as_echo_n "checking for --with-suffix... " >&6; } |
| 4443 | |
| 4444 | # Check whether --with-suffix was given. |
| 4445 | if test "${with_suffix+set}" = set; then |
| 4446 | withval=$with_suffix; |
| 4447 | case $withval in |
| 4448 | no) EXEEXT=;; |
| 4449 | yes) EXEEXT=.exe;; |
| 4450 | *) EXEEXT=$withval;; |
| 4451 | esac |
| 4452 | fi |
| 4453 | |
| 4454 | { $as_echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 4455 | $as_echo "$EXEEXT" >&6; } |
| 4456 | |
| 4457 | # Test whether we're running on a non-case-sensitive system, in which |
| 4458 | # case we give a warning if no ext is given |
| 4459 | |
| 4460 | { $as_echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 4461 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
| 4462 | if test ! -d CaseSensitiveTestDir; then |
| 4463 | mkdir CaseSensitiveTestDir |
| 4464 | fi |
| 4465 | |
| 4466 | if test -d casesensitivetestdir |
| 4467 | then |
| 4468 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4469 | $as_echo "yes" >&6; } |
| 4470 | BUILDEXEEXT=.exe |
| 4471 | else |
| 4472 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4473 | $as_echo "no" >&6; } |
| 4474 | BUILDEXEEXT=$EXEEXT |
| 4475 | fi |
| 4476 | rmdir CaseSensitiveTestDir |
| 4477 | |
| 4478 | case $MACHDEP in |
| 4479 | bsdos*) |
| 4480 | case $CC in |
| 4481 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 4482 | esac;; |
| 4483 | esac |
| 4484 | |
| 4485 | case $ac_sys_system in |
| 4486 | hp*|HP*) |
| 4487 | case $CC in |
| 4488 | cc|*/cc) CC="$CC -Ae";; |
| 4489 | esac;; |
| 4490 | Monterey*) |
| 4491 | case $CC in |
| 4492 | cc) CC="$CC -Wl,-Bexport";; |
| 4493 | esac;; |
| 4494 | SunOS*) |
| 4495 | # Some functions have a prototype only with that define, e.g. confstr |
| 4496 | |
| 4497 | cat >>confdefs.h <<\_ACEOF |
| 4498 | #define __EXTENSIONS__ 1 |
| 4499 | _ACEOF |
| 4500 | |
| 4501 | ;; |
| 4502 | esac |
| 4503 | |
| 4504 | |
| 4505 | |
| 4506 | { $as_echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 4507 | $as_echo_n "checking LIBRARY... " >&6; } |
| 4508 | if test -z "$LIBRARY" |
| 4509 | then |
| 4510 | LIBRARY='libpython$(VERSION).a' |
| 4511 | fi |
| 4512 | { $as_echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 4513 | $as_echo "$LIBRARY" >&6; } |
| 4514 | |
| 4515 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 4516 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 4517 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 4518 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 4519 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 4520 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 4521 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 4522 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 4523 | # |
| 4524 | # RUNSHARED is used to run shared python without installed libraries |
| 4525 | # |
| 4526 | # INSTSONAME is the name of the shared library that will be use to install |
| 4527 | # on the system - some systems like version suffix, others don't |
| 4528 | |
| 4529 | |
| 4530 | |
| 4531 | |
| 4532 | |
| 4533 | |
| 4534 | LDLIBRARY="$LIBRARY" |
| 4535 | BLDLIBRARY='$(LDLIBRARY)' |
| 4536 | INSTSONAME='$(LDLIBRARY)' |
| 4537 | DLLLIBRARY='' |
| 4538 | LDLIBRARYDIR='' |
| 4539 | RUNSHARED='' |
| 4540 | |
| 4541 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4542 | # If CXX is set, and if it is needed to link a main function that was |
| 4543 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4544 | # python might then depend on the C++ runtime |
| 4545 | # This is altered for AIX in order to build the export list before |
| 4546 | # linking. |
| 4547 | |
| 4548 | { $as_echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 4549 | $as_echo_n "checking LINKCC... " >&6; } |
| 4550 | if test -z "$LINKCC" |
| 4551 | then |
| 4552 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4553 | case $ac_sys_system in |
| 4554 | AIX*) |
| 4555 | exp_extra="\"\"" |
| 4556 | if test $ac_sys_release -ge 5 -o \ |
| 4557 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4558 | exp_extra="." |
| 4559 | fi |
| 4560 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
| 4561 | Monterey64*) |
| 4562 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
| 4563 | QNX*) |
| 4564 | # qcc must be used because the other compilers do not |
| 4565 | # support -N. |
| 4566 | LINKCC=qcc;; |
| 4567 | esac |
| 4568 | fi |
| 4569 | { $as_echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 4570 | $as_echo "$LINKCC" >&6; } |
| 4571 | |
| 4572 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4573 | # make sure we default having it set to "no": this is used by |
| 4574 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4575 | # to linker command lines, and failing to detect GNU ld simply results |
| 4576 | # in the same bahaviour as before. |
| 4577 | |
| 4578 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4579 | $as_echo_n "checking for GNU ld... " >&6; } |
| 4580 | ac_prog=ld |
| 4581 | if test "$GCC" = yes; then |
| 4582 | ac_prog=`$CC -print-prog-name=ld` |
| 4583 | fi |
| 4584 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4585 | *GNU*) |
| 4586 | GNULD=yes;; |
| 4587 | *) |
| 4588 | GNULD=no;; |
| 4589 | esac |
| 4590 | { $as_echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4591 | $as_echo "$GNULD" >&6; } |
| 4592 | |
| 4593 | { $as_echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4594 | $as_echo_n "checking for --enable-shared... " >&6; } |
| 4595 | # Check whether --enable-shared was given. |
| 4596 | if test "${enable_shared+set}" = set; then |
| 4597 | enableval=$enable_shared; |
| 4598 | fi |
| 4599 | |
| 4600 | |
| 4601 | if test -z "$enable_shared" |
| 4602 | then |
| 4603 | case $ac_sys_system in |
| 4604 | CYGWIN* | atheos*) |
| 4605 | enable_shared="yes";; |
| 4606 | *) |
| 4607 | enable_shared="no";; |
| 4608 | esac |
| 4609 | fi |
| 4610 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4611 | $as_echo "$enable_shared" >&6; } |
| 4612 | |
| 4613 | { $as_echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4614 | $as_echo_n "checking for --enable-profiling... " >&6; } |
| 4615 | # Check whether --enable-profiling was given. |
| 4616 | if test "${enable_profiling+set}" = set; then |
| 4617 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4618 | CC="$CC -pg" |
| 4619 | if test "$cross_compiling" = yes; then |
| 4620 | ac_enable_profiling="no" |
| 4621 | else |
| 4622 | cat >conftest.$ac_ext <<_ACEOF |
| 4623 | /* confdefs.h. */ |
| 4624 | _ACEOF |
| 4625 | cat confdefs.h >>conftest.$ac_ext |
| 4626 | cat >>conftest.$ac_ext <<_ACEOF |
| 4627 | /* end confdefs.h. */ |
| 4628 | int main() { return 0; } |
| 4629 | _ACEOF |
| 4630 | rm -f conftest$ac_exeext |
| 4631 | if { (ac_try="$ac_link" |
| 4632 | case "(($ac_try" in |
| 4633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4634 | *) ac_try_echo=$ac_try;; |
| 4635 | esac |
| 4636 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4637 | $as_echo "$ac_try_echo") >&5 |
| 4638 | (eval "$ac_link") 2>&5 |
| 4639 | ac_status=$? |
| 4640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4641 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4642 | { (case "(($ac_try" in |
| 4643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4644 | *) ac_try_echo=$ac_try;; |
| 4645 | esac |
| 4646 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4647 | $as_echo "$ac_try_echo") >&5 |
| 4648 | (eval "$ac_try") 2>&5 |
| 4649 | ac_status=$? |
| 4650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4651 | (exit $ac_status); }; }; then |
| 4652 | ac_enable_profiling="yes" |
| 4653 | else |
| 4654 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 4655 | $as_echo "$as_me: failed program was:" >&5 |
| 4656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4657 | |
| 4658 | ( exit $ac_status ) |
| 4659 | ac_enable_profiling="no" |
| 4660 | fi |
| 4661 | rm -rf conftest.dSYM |
| 4662 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4663 | fi |
| 4664 | |
| 4665 | |
| 4666 | CC="$ac_save_cc" |
| 4667 | fi |
| 4668 | |
| 4669 | { $as_echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4670 | $as_echo "$ac_enable_profiling" >&6; } |
| 4671 | |
| 4672 | case "$ac_enable_profiling" in |
| 4673 | "yes") |
| 4674 | BASECFLAGS="-pg $BASECFLAGS" |
| 4675 | LDFLAGS="-pg $LDFLAGS" |
| 4676 | ;; |
| 4677 | esac |
| 4678 | |
| 4679 | { $as_echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4680 | $as_echo_n "checking LDLIBRARY... " >&6; } |
| 4681 | |
| 4682 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4683 | # library that we build, but we do not want to link against it (we |
| 4684 | # will find it with a -framework option). For this reason there is an |
| 4685 | # extra variable BLDLIBRARY against which Python and the extension |
| 4686 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4687 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4688 | if test "$enable_framework" |
| 4689 | then |
| 4690 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4691 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4692 | BLDLIBRARY='' |
| 4693 | else |
| 4694 | BLDLIBRARY='$(LDLIBRARY)' |
| 4695 | fi |
| 4696 | |
| 4697 | # Other platforms follow |
| 4698 | if test $enable_shared = "yes"; then |
| 4699 | |
| 4700 | cat >>confdefs.h <<\_ACEOF |
| 4701 | #define Py_ENABLE_SHARED 1 |
| 4702 | _ACEOF |
| 4703 | |
| 4704 | case $ac_sys_system in |
| 4705 | BeOS*) |
| 4706 | LDLIBRARY='libpython$(VERSION).so' |
| 4707 | ;; |
| 4708 | CYGWIN*) |
| 4709 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4710 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4711 | ;; |
| 4712 | SunOS*) |
| 4713 | LDLIBRARY='libpython$(VERSION).so' |
| 4714 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4715 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4716 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4717 | ;; |
| 4718 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4719 | LDLIBRARY='libpython$(VERSION).so' |
| 4720 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4721 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4722 | case $ac_sys_system in |
| 4723 | FreeBSD*) |
| 4724 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4725 | ;; |
| 4726 | esac |
| 4727 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4728 | ;; |
| 4729 | hp*|HP*) |
| 4730 | case `uname -m` in |
| 4731 | ia64) |
| 4732 | LDLIBRARY='libpython$(VERSION).so' |
| 4733 | ;; |
| 4734 | *) |
| 4735 | LDLIBRARY='libpython$(VERSION).sl' |
| 4736 | ;; |
| 4737 | esac |
| 4738 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4739 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4740 | ;; |
| 4741 | OSF*) |
| 4742 | LDLIBRARY='libpython$(VERSION).so' |
| 4743 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4744 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4745 | ;; |
| 4746 | atheos*) |
| 4747 | LDLIBRARY='libpython$(VERSION).so' |
| 4748 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4749 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4750 | ;; |
| 4751 | Darwin*) |
| 4752 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4753 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4754 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4755 | ;; |
| 4756 | |
| 4757 | esac |
| 4758 | else # shared is disabled |
| 4759 | case $ac_sys_system in |
| 4760 | CYGWIN*) |
| 4761 | BLDLIBRARY='$(LIBRARY)' |
| 4762 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4763 | ;; |
| 4764 | esac |
| 4765 | fi |
| 4766 | |
| 4767 | { $as_echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4768 | $as_echo "$LDLIBRARY" >&6; } |
| 4769 | |
| 4770 | if test -n "$ac_tool_prefix"; then |
| 4771 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4772 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4773 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4774 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4775 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4776 | $as_echo_n "(cached) " >&6 |
| 4777 | else |
| 4778 | if test -n "$RANLIB"; then |
| 4779 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4780 | else |
| 4781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4782 | for as_dir in $PATH |
| 4783 | do |
| 4784 | IFS=$as_save_IFS |
| 4785 | test -z "$as_dir" && as_dir=. |
| 4786 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4787 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4788 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4789 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4790 | break 2 |
| 4791 | fi |
| 4792 | done |
| 4793 | done |
| 4794 | IFS=$as_save_IFS |
| 4795 | |
| 4796 | fi |
| 4797 | fi |
| 4798 | RANLIB=$ac_cv_prog_RANLIB |
| 4799 | if test -n "$RANLIB"; then |
| 4800 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4801 | $as_echo "$RANLIB" >&6; } |
| 4802 | else |
| 4803 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4804 | $as_echo "no" >&6; } |
| 4805 | fi |
| 4806 | |
| 4807 | |
| 4808 | fi |
| 4809 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4810 | ac_ct_RANLIB=$RANLIB |
| 4811 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4812 | set dummy ranlib; ac_word=$2 |
| 4813 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4814 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4815 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4816 | $as_echo_n "(cached) " >&6 |
| 4817 | else |
| 4818 | if test -n "$ac_ct_RANLIB"; then |
| 4819 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4820 | else |
| 4821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4822 | for as_dir in $PATH |
| 4823 | do |
| 4824 | IFS=$as_save_IFS |
| 4825 | test -z "$as_dir" && as_dir=. |
| 4826 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4827 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4828 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4829 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4830 | break 2 |
| 4831 | fi |
| 4832 | done |
| 4833 | done |
| 4834 | IFS=$as_save_IFS |
| 4835 | |
| 4836 | fi |
| 4837 | fi |
| 4838 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4839 | if test -n "$ac_ct_RANLIB"; then |
| 4840 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4841 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 4842 | else |
| 4843 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4844 | $as_echo "no" >&6; } |
| 4845 | fi |
| 4846 | |
| 4847 | if test "x$ac_ct_RANLIB" = x; then |
| 4848 | RANLIB=":" |
| 4849 | else |
| 4850 | case $cross_compiling:$ac_tool_warned in |
| 4851 | yes:) |
| 4852 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4853 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4854 | ac_tool_warned=yes ;; |
| 4855 | esac |
| 4856 | RANLIB=$ac_ct_RANLIB |
| 4857 | fi |
| 4858 | else |
| 4859 | RANLIB="$ac_cv_prog_RANLIB" |
| 4860 | fi |
| 4861 | |
| 4862 | |
| 4863 | for ac_prog in ar aal |
| 4864 | do |
| 4865 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4866 | set dummy $ac_prog; ac_word=$2 |
| 4867 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4868 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4869 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4870 | $as_echo_n "(cached) " >&6 |
| 4871 | else |
| 4872 | if test -n "$AR"; then |
| 4873 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4874 | else |
| 4875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4876 | for as_dir in $PATH |
| 4877 | do |
| 4878 | IFS=$as_save_IFS |
| 4879 | test -z "$as_dir" && as_dir=. |
| 4880 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4881 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4882 | ac_cv_prog_AR="$ac_prog" |
| 4883 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4884 | break 2 |
| 4885 | fi |
| 4886 | done |
| 4887 | done |
| 4888 | IFS=$as_save_IFS |
| 4889 | |
| 4890 | fi |
| 4891 | fi |
| 4892 | AR=$ac_cv_prog_AR |
| 4893 | if test -n "$AR"; then |
| 4894 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
| 4895 | $as_echo "$AR" >&6; } |
| 4896 | else |
| 4897 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4898 | $as_echo "no" >&6; } |
| 4899 | fi |
| 4900 | |
| 4901 | |
| 4902 | test -n "$AR" && break |
| 4903 | done |
| 4904 | test -n "$AR" || AR="ar" |
| 4905 | |
| 4906 | |
| 4907 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4908 | |
| 4909 | if test -z "$ARFLAGS" |
| 4910 | then |
| 4911 | ARFLAGS="rc" |
| 4912 | fi |
| 4913 | |
| 4914 | |
| 4915 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4916 | set dummy svnversion; ac_word=$2 |
| 4917 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4918 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4919 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 4920 | $as_echo_n "(cached) " >&6 |
| 4921 | else |
| 4922 | if test -n "$SVNVERSION"; then |
| 4923 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4924 | else |
| 4925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4926 | for as_dir in $PATH |
| 4927 | do |
| 4928 | IFS=$as_save_IFS |
| 4929 | test -z "$as_dir" && as_dir=. |
| 4930 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4931 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4932 | ac_cv_prog_SVNVERSION="found" |
| 4933 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4934 | break 2 |
| 4935 | fi |
| 4936 | done |
| 4937 | done |
| 4938 | IFS=$as_save_IFS |
| 4939 | |
| 4940 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4941 | fi |
| 4942 | fi |
| 4943 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4944 | if test -n "$SVNVERSION"; then |
| 4945 | { $as_echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4946 | $as_echo "$SVNVERSION" >&6; } |
| 4947 | else |
| 4948 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4949 | $as_echo "no" >&6; } |
| 4950 | fi |
| 4951 | |
| 4952 | |
| 4953 | if test $SVNVERSION = found |
| 4954 | then |
| 4955 | SVNVERSION="svnversion \$(srcdir)" |
| 4956 | else |
| 4957 | SVNVERSION="echo Unversioned directory" |
| 4958 | fi |
| 4959 | |
| 4960 | case $MACHDEP in |
| 4961 | bsdos*|hp*|HP*) |
| 4962 | # install -d does not work on BSDI or HP-UX |
| 4963 | if test -z "$INSTALL" |
| 4964 | then |
| 4965 | INSTALL="${srcdir}/install-sh -c" |
| 4966 | fi |
| 4967 | esac |
| 4968 | ac_aux_dir= |
| 4969 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4970 | if test -f "$ac_dir/install-sh"; then |
| 4971 | ac_aux_dir=$ac_dir |
| 4972 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4973 | break |
| 4974 | elif test -f "$ac_dir/install.sh"; then |
| 4975 | ac_aux_dir=$ac_dir |
| 4976 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4977 | break |
| 4978 | elif test -f "$ac_dir/shtool"; then |
| 4979 | ac_aux_dir=$ac_dir |
| 4980 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4981 | break |
| 4982 | fi |
| 4983 | done |
| 4984 | if test -z "$ac_aux_dir"; then |
| 4985 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4986 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
| 4987 | { (exit 1); exit 1; }; } |
| 4988 | fi |
| 4989 | |
| 4990 | # These three variables are undocumented and unsupported, |
| 4991 | # and are intended to be withdrawn in a future Autoconf release. |
| 4992 | # They can cause serious problems if a builder's source tree is in a directory |
| 4993 | # whose full name contains unusual characters. |
| 4994 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4995 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4996 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4997 | |
| 4998 | |
| 4999 | # Find a good install program. We prefer a C program (faster), |
| 5000 | # so one script is as good as another. But avoid the broken or |
| 5001 | # incompatible versions: |
| 5002 | # SysV /etc/install, /usr/sbin/install |
| 5003 | # SunOS /usr/etc/install |
| 5004 | # IRIX /sbin/install |
| 5005 | # AIX /bin/install |
| 5006 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5007 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5008 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5009 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5010 | # OS/2's system install, which has a completely different semantic |
| 5011 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5012 | # Reject install programs that cannot install multiple files. |
| 5013 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 5014 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 5015 | if test -z "$INSTALL"; then |
| 5016 | if test "${ac_cv_path_install+set}" = set; then |
| 5017 | $as_echo_n "(cached) " >&6 |
| 5018 | else |
| 5019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5020 | for as_dir in $PATH |
| 5021 | do |
| 5022 | IFS=$as_save_IFS |
| 5023 | test -z "$as_dir" && as_dir=. |
| 5024 | # Account for people who put trailing slashes in PATH elements. |
| 5025 | case $as_dir/ in |
| 5026 | ./ | .// | /cC/* | \ |
| 5027 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5028 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 5029 | /usr/ucb/* ) ;; |
| 5030 | *) |
| 5031 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5032 | # Don't use installbsd from OSF since it installs stuff as root |
| 5033 | # by default. |
| 5034 | for ac_prog in ginstall scoinst install; do |
| 5035 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5036 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 5037 | if test $ac_prog = install && |
| 5038 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5039 | # AIX install. It has an incompatible calling convention. |
| 5040 | : |
| 5041 | elif test $ac_prog = install && |
| 5042 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5043 | # program-specific install script used by HP pwplus--don't use. |
| 5044 | : |
| 5045 | else |
| 5046 | rm -rf conftest.one conftest.two conftest.dir |
| 5047 | echo one > conftest.one |
| 5048 | echo two > conftest.two |
| 5049 | mkdir conftest.dir |
| 5050 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5051 | test -s conftest.one && test -s conftest.two && |
| 5052 | test -s conftest.dir/conftest.one && |
| 5053 | test -s conftest.dir/conftest.two |
| 5054 | then |
| 5055 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5056 | break 3 |
| 5057 | fi |
| 5058 | fi |
| 5059 | fi |
| 5060 | done |
| 5061 | done |
| 5062 | ;; |
| 5063 | esac |
| 5064 | |
| 5065 | done |
| 5066 | IFS=$as_save_IFS |
| 5067 | |
| 5068 | rm -rf conftest.one conftest.two conftest.dir |
| 5069 | |
| 5070 | fi |
| 5071 | if test "${ac_cv_path_install+set}" = set; then |
| 5072 | INSTALL=$ac_cv_path_install |
| 5073 | else |
| 5074 | # As a last resort, use the slow shell script. Don't cache a |
| 5075 | # value for INSTALL within a source directory, because that will |
| 5076 | # break other packages using the cache if that directory is |
| 5077 | # removed, or if the value is a relative name. |
| 5078 | INSTALL=$ac_install_sh |
| 5079 | fi |
| 5080 | fi |
| 5081 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5082 | $as_echo "$INSTALL" >&6; } |
| 5083 | |
| 5084 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5085 | # It thinks the first close brace ends the variable substitution. |
| 5086 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5087 | |
| 5088 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5089 | |
| 5090 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5091 | |
| 5092 | |
| 5093 | # Not every filesystem supports hard links |
| 5094 | |
| 5095 | if test -z "$LN" ; then |
| 5096 | case $ac_sys_system in |
| 5097 | BeOS*) LN="ln -s";; |
| 5098 | CYGWIN*) LN="ln -s";; |
| 5099 | atheos*) LN="ln -s";; |
| 5100 | *) LN=ln;; |
| 5101 | esac |
| 5102 | fi |
| 5103 | |
| 5104 | # Check for --with-pydebug |
| 5105 | { $as_echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 5106 | $as_echo_n "checking for --with-pydebug... " >&6; } |
| 5107 | |
| 5108 | # Check whether --with-pydebug was given. |
| 5109 | if test "${with_pydebug+set}" = set; then |
| 5110 | withval=$with_pydebug; |
| 5111 | if test "$withval" != no |
| 5112 | then |
| 5113 | |
| 5114 | cat >>confdefs.h <<\_ACEOF |
| 5115 | #define Py_DEBUG 1 |
| 5116 | _ACEOF |
| 5117 | |
| 5118 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5119 | $as_echo "yes" >&6; }; |
| 5120 | Py_DEBUG='true' |
| 5121 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5122 | $as_echo "no" >&6; }; Py_DEBUG='false' |
| 5123 | fi |
| 5124 | else |
| 5125 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5126 | $as_echo "no" >&6; } |
| 5127 | fi |
| 5128 | |
| 5129 | |
| 5130 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 5131 | # merged with this chunk of code? |
| 5132 | |
| 5133 | # Optimizer/debugger flags |
| 5134 | # ------------------------ |
| 5135 | # (The following bit of code is complicated enough - please keep things |
| 5136 | # indented properly. Just pretend you're editing Python code. ;-) |
| 5137 | |
| 5138 | # There are two parallel sets of case statements below, one that checks to |
| 5139 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 5140 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 5141 | # user set OPT. |
| 5142 | |
| 5143 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 5144 | # it on the command line |
| 5145 | |
| 5146 | if test -z "$OPT" |
| 5147 | then |
| 5148 | case $GCC in |
| 5149 | yes) |
| 5150 | if test "$CC" != 'g++' ; then |
| 5151 | STRICT_PROTO="-Wstrict-prototypes" |
| 5152 | fi |
| 5153 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 5154 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 5155 | WRAP="-fwrapv" |
| 5156 | fi |
| 5157 | case $ac_cv_prog_cc_g in |
| 5158 | yes) |
| 5159 | if test "$Py_DEBUG" = 'true' ; then |
| 5160 | # Optimization messes up debuggers, so turn it off for |
| 5161 | # debug builds. |
| 5162 | OPT="-g -Wall $STRICT_PROTO" |
| 5163 | else |
| 5164 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 5165 | fi |
| 5166 | ;; |
| 5167 | *) |
| 5168 | OPT="-O3 -Wall $STRICT_PROTO" |
| 5169 | ;; |
| 5170 | esac |
| 5171 | case $ac_sys_system in |
| 5172 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 5173 | ;; |
| 5174 | esac |
| 5175 | ;; |
| 5176 | |
| 5177 | *) |
| 5178 | OPT="-O" |
| 5179 | ;; |
| 5180 | esac |
| 5181 | |
| 5182 | # The current (beta) Monterey compiler dies with optimizations |
| 5183 | # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
| 5184 | case $ac_sys_system in |
| 5185 | Monterey*) |
| 5186 | OPT="" |
| 5187 | ;; |
| 5188 | esac |
| 5189 | |
| 5190 | fi |
| 5191 | |
| 5192 | |
| 5193 | |
| 5194 | # The -arch flags for universal builds on OSX |
| 5195 | UNIVERSAL_ARCH_FLAGS= |
| 5196 | |
| 5197 | |
| 5198 | # tweak BASECFLAGS based on compiler and platform |
| 5199 | case $GCC in |
| 5200 | yes) |
| 5201 | # Python violates C99 rules, by casting between incompatible |
| 5202 | # pointer types. GCC may generate bad code as a result of that, |
| 5203 | # so use -fno-strict-aliasing if supported. |
| 5204 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 5205 | $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } |
| 5206 | ac_save_cc="$CC" |
| 5207 | CC="$CC -fno-strict-aliasing" |
| 5208 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then |
| 5209 | $as_echo_n "(cached) " >&6 |
| 5210 | else |
| 5211 | if test "$cross_compiling" = yes; then |
| 5212 | ac_cv_no_strict_aliasing_ok=no |
| 5213 | else |
| 5214 | cat >conftest.$ac_ext <<_ACEOF |
| 5215 | /* confdefs.h. */ |
| 5216 | _ACEOF |
| 5217 | cat confdefs.h >>conftest.$ac_ext |
| 5218 | cat >>conftest.$ac_ext <<_ACEOF |
| 5219 | /* end confdefs.h. */ |
| 5220 | int main() { return 0; } |
| 5221 | _ACEOF |
| 5222 | rm -f conftest$ac_exeext |
| 5223 | if { (ac_try="$ac_link" |
| 5224 | case "(($ac_try" in |
| 5225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5226 | *) ac_try_echo=$ac_try;; |
| 5227 | esac |
| 5228 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5229 | $as_echo "$ac_try_echo") >&5 |
| 5230 | (eval "$ac_link") 2>&5 |
| 5231 | ac_status=$? |
| 5232 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5233 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5234 | { (case "(($ac_try" in |
| 5235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5236 | *) ac_try_echo=$ac_try;; |
| 5237 | esac |
| 5238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5239 | $as_echo "$ac_try_echo") >&5 |
| 5240 | (eval "$ac_try") 2>&5 |
| 5241 | ac_status=$? |
| 5242 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5243 | (exit $ac_status); }; }; then |
| 5244 | ac_cv_no_strict_aliasing_ok=yes |
| 5245 | else |
| 5246 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5247 | $as_echo "$as_me: failed program was:" >&5 |
| 5248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5249 | |
| 5250 | ( exit $ac_status ) |
| 5251 | ac_cv_no_strict_aliasing_ok=no |
| 5252 | fi |
| 5253 | rm -rf conftest.dSYM |
| 5254 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5255 | fi |
| 5256 | |
| 5257 | |
| 5258 | fi |
| 5259 | |
| 5260 | CC="$ac_save_cc" |
| 5261 | { $as_echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 5262 | $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } |
| 5263 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 5264 | then |
| 5265 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 5266 | fi |
| 5267 | |
| 5268 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 5269 | # support. Without this, treatment of subnormals doesn't follow |
| 5270 | # the standard. |
| 5271 | case $ac_sys_machine in |
| 5272 | alpha*) |
| 5273 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5274 | ;; |
| 5275 | esac |
| 5276 | |
| 5277 | case $ac_sys_system in |
| 5278 | SCO_SV*) |
| 5279 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 5280 | ;; |
| 5281 | # is there any other compiler on Darwin besides gcc? |
| 5282 | Darwin*) |
| 5283 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 5284 | # used to be here, but non-Apple gcc doesn't accept them. |
| 5285 | |
| 5286 | |
| 5287 | if test "${enable_universalsdk}"; then |
| 5288 | UNIVERSAL_ARCH_FLAGS="" |
| 5289 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 5290 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 5291 | ARCH_RUN_32BIT="" |
| 5292 | |
| 5293 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 5294 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 5295 | |
| 5296 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 5297 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 5298 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 5299 | |
| 5300 | else |
| 5301 | { { $as_echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5 |
| 5302 | $as_echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;} |
| 5303 | { (exit 1); exit 1; }; } |
| 5304 | |
| 5305 | fi |
| 5306 | |
| 5307 | |
| 5308 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 5309 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 5310 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 5311 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 5312 | fi |
| 5313 | fi |
| 5314 | |
| 5315 | # Calculate the right deployment target for this build. |
| 5316 | # |
| 5317 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 5318 | if test ${cur_target} '>' 10.2; then |
| 5319 | cur_target=10.3 |
| 5320 | fi |
| 5321 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 5322 | # Ensure that the default platform for a 4-way |
| 5323 | # universal build is OSX 10.5, that's the first |
| 5324 | # OS release where 4-way builds make sense. |
| 5325 | cur_target='10.5' |
| 5326 | fi |
| 5327 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 5328 | |
| 5329 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 5330 | # environment with a value that is the same as what we'll use |
| 5331 | # in the Makefile to ensure that we'll get the same compiler |
| 5332 | # environment during configure and build time. |
| 5333 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 5334 | export MACOSX_DEPLOYMENT_TARGET |
| 5335 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 5336 | |
| 5337 | ;; |
| 5338 | OSF*) |
| 5339 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5340 | ;; |
| 5341 | esac |
| 5342 | ;; |
| 5343 | |
| 5344 | *) |
| 5345 | case $ac_sys_system in |
| 5346 | OpenUNIX*|UnixWare*) |
| 5347 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 5348 | ;; |
| 5349 | OSF*) |
| 5350 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 5351 | ;; |
| 5352 | SCO_SV*) |
| 5353 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 5354 | ;; |
| 5355 | esac |
| 5356 | ;; |
| 5357 | esac |
| 5358 | |
| 5359 | if test "$Py_DEBUG" = 'true'; then |
| 5360 | : |
| 5361 | else |
| 5362 | OPT="-DNDEBUG $OPT" |
| 5363 | fi |
| 5364 | |
| 5365 | if test "$ac_arch_flags" |
| 5366 | then |
| 5367 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 5368 | fi |
| 5369 | |
| 5370 | # disable check for icc since it seems to pass, but generates a warning |
| 5371 | if test "$CC" = icc |
| 5372 | then |
| 5373 | ac_cv_opt_olimit_ok=no |
| 5374 | fi |
| 5375 | |
| 5376 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 5377 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } |
| 5378 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 5379 | $as_echo_n "(cached) " >&6 |
| 5380 | else |
| 5381 | ac_save_cc="$CC" |
| 5382 | CC="$CC -OPT:Olimit=0" |
| 5383 | if test "$cross_compiling" = yes; then |
| 5384 | ac_cv_opt_olimit_ok=no |
| 5385 | else |
| 5386 | cat >conftest.$ac_ext <<_ACEOF |
| 5387 | /* confdefs.h. */ |
| 5388 | _ACEOF |
| 5389 | cat confdefs.h >>conftest.$ac_ext |
| 5390 | cat >>conftest.$ac_ext <<_ACEOF |
| 5391 | /* end confdefs.h. */ |
| 5392 | int main() { return 0; } |
| 5393 | _ACEOF |
| 5394 | rm -f conftest$ac_exeext |
| 5395 | if { (ac_try="$ac_link" |
| 5396 | case "(($ac_try" in |
| 5397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5398 | *) ac_try_echo=$ac_try;; |
| 5399 | esac |
| 5400 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5401 | $as_echo "$ac_try_echo") >&5 |
| 5402 | (eval "$ac_link") 2>&5 |
| 5403 | ac_status=$? |
| 5404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5405 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5406 | { (case "(($ac_try" in |
| 5407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5408 | *) ac_try_echo=$ac_try;; |
| 5409 | esac |
| 5410 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5411 | $as_echo "$ac_try_echo") >&5 |
| 5412 | (eval "$ac_try") 2>&5 |
| 5413 | ac_status=$? |
| 5414 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5415 | (exit $ac_status); }; }; then |
| 5416 | ac_cv_opt_olimit_ok=yes |
| 5417 | else |
| 5418 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5419 | $as_echo "$as_me: failed program was:" >&5 |
| 5420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5421 | |
| 5422 | ( exit $ac_status ) |
| 5423 | ac_cv_opt_olimit_ok=no |
| 5424 | fi |
| 5425 | rm -rf conftest.dSYM |
| 5426 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5427 | fi |
| 5428 | |
| 5429 | |
| 5430 | CC="$ac_save_cc" |
| 5431 | fi |
| 5432 | |
| 5433 | { $as_echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 5434 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } |
| 5435 | if test $ac_cv_opt_olimit_ok = yes; then |
| 5436 | case $ac_sys_system in |
| 5437 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 5438 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 5439 | # environment? |
| 5440 | Darwin*) |
| 5441 | ;; |
| 5442 | *) |
| 5443 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 5444 | ;; |
| 5445 | esac |
| 5446 | else |
| 5447 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 5448 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } |
| 5449 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 5450 | $as_echo_n "(cached) " >&6 |
| 5451 | else |
| 5452 | ac_save_cc="$CC" |
| 5453 | CC="$CC -Olimit 1500" |
| 5454 | if test "$cross_compiling" = yes; then |
| 5455 | ac_cv_olimit_ok=no |
| 5456 | else |
| 5457 | cat >conftest.$ac_ext <<_ACEOF |
| 5458 | /* confdefs.h. */ |
| 5459 | _ACEOF |
| 5460 | cat confdefs.h >>conftest.$ac_ext |
| 5461 | cat >>conftest.$ac_ext <<_ACEOF |
| 5462 | /* end confdefs.h. */ |
| 5463 | int main() { return 0; } |
| 5464 | _ACEOF |
| 5465 | rm -f conftest$ac_exeext |
| 5466 | if { (ac_try="$ac_link" |
| 5467 | case "(($ac_try" in |
| 5468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5469 | *) ac_try_echo=$ac_try;; |
| 5470 | esac |
| 5471 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5472 | $as_echo "$ac_try_echo") >&5 |
| 5473 | (eval "$ac_link") 2>&5 |
| 5474 | ac_status=$? |
| 5475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5476 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5477 | { (case "(($ac_try" in |
| 5478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5479 | *) ac_try_echo=$ac_try;; |
| 5480 | esac |
| 5481 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5482 | $as_echo "$ac_try_echo") >&5 |
| 5483 | (eval "$ac_try") 2>&5 |
| 5484 | ac_status=$? |
| 5485 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5486 | (exit $ac_status); }; }; then |
| 5487 | ac_cv_olimit_ok=yes |
| 5488 | else |
| 5489 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5490 | $as_echo "$as_me: failed program was:" >&5 |
| 5491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5492 | |
| 5493 | ( exit $ac_status ) |
| 5494 | ac_cv_olimit_ok=no |
| 5495 | fi |
| 5496 | rm -rf conftest.dSYM |
| 5497 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5498 | fi |
| 5499 | |
| 5500 | |
| 5501 | CC="$ac_save_cc" |
| 5502 | fi |
| 5503 | |
| 5504 | { $as_echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 5505 | $as_echo "$ac_cv_olimit_ok" >&6; } |
| 5506 | if test $ac_cv_olimit_ok = yes; then |
| 5507 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 5508 | fi |
| 5509 | fi |
| 5510 | |
| 5511 | # Check whether GCC supports PyArg_ParseTuple format |
| 5512 | if test "$GCC" = "yes" |
| 5513 | then |
| 5514 | { $as_echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 5515 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } |
| 5516 | save_CFLAGS=$CFLAGS |
| 5517 | CFLAGS="$CFLAGS -Werror" |
| 5518 | cat >conftest.$ac_ext <<_ACEOF |
| 5519 | /* confdefs.h. */ |
| 5520 | _ACEOF |
| 5521 | cat confdefs.h >>conftest.$ac_ext |
| 5522 | cat >>conftest.$ac_ext <<_ACEOF |
| 5523 | /* end confdefs.h. */ |
| 5524 | |
| 5525 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 5526 | |
| 5527 | int |
| 5528 | main () |
| 5529 | { |
| 5530 | |
| 5531 | ; |
| 5532 | return 0; |
| 5533 | } |
| 5534 | _ACEOF |
| 5535 | rm -f conftest.$ac_objext |
| 5536 | if { (ac_try="$ac_compile" |
| 5537 | case "(($ac_try" in |
| 5538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5539 | *) ac_try_echo=$ac_try;; |
| 5540 | esac |
| 5541 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5542 | $as_echo "$ac_try_echo") >&5 |
| 5543 | (eval "$ac_compile") 2>conftest.er1 |
| 5544 | ac_status=$? |
| 5545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5546 | rm -f conftest.er1 |
| 5547 | cat conftest.err >&5 |
| 5548 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5549 | (exit $ac_status); } && { |
| 5550 | test -z "$ac_c_werror_flag" || |
| 5551 | test ! -s conftest.err |
| 5552 | } && test -s conftest.$ac_objext; then |
| 5553 | |
| 5554 | cat >>confdefs.h <<\_ACEOF |
| 5555 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 5556 | _ACEOF |
| 5557 | |
| 5558 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5559 | $as_echo "yes" >&6; } |
| 5560 | else |
| 5561 | $as_echo "$as_me: failed program was:" >&5 |
| 5562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5563 | |
| 5564 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5565 | $as_echo "no" >&6; } |
| 5566 | |
| 5567 | fi |
| 5568 | |
| 5569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5570 | CFLAGS=$save_CFLAGS |
| 5571 | fi |
| 5572 | |
| 5573 | # On some compilers, pthreads are available without further options |
| 5574 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5575 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5576 | # So we have to see first whether pthreads are available without |
| 5577 | # options before we can check whether -Kpthread improves anything. |
| 5578 | { $as_echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 5579 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
| 5580 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 5581 | $as_echo_n "(cached) " >&6 |
| 5582 | else |
| 5583 | if test "$cross_compiling" = yes; then |
| 5584 | ac_cv_pthread_is_default=no |
| 5585 | else |
| 5586 | cat >conftest.$ac_ext <<_ACEOF |
| 5587 | /* confdefs.h. */ |
| 5588 | _ACEOF |
| 5589 | cat confdefs.h >>conftest.$ac_ext |
| 5590 | cat >>conftest.$ac_ext <<_ACEOF |
| 5591 | /* end confdefs.h. */ |
| 5592 | |
| 5593 | #include <pthread.h> |
| 5594 | |
| 5595 | void* routine(void* p){return NULL;} |
| 5596 | |
| 5597 | int main(){ |
| 5598 | pthread_t p; |
| 5599 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5600 | return 1; |
| 5601 | (void)pthread_detach(p); |
| 5602 | return 0; |
| 5603 | } |
| 5604 | |
| 5605 | _ACEOF |
| 5606 | rm -f conftest$ac_exeext |
| 5607 | if { (ac_try="$ac_link" |
| 5608 | case "(($ac_try" in |
| 5609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5610 | *) ac_try_echo=$ac_try;; |
| 5611 | esac |
| 5612 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5613 | $as_echo "$ac_try_echo") >&5 |
| 5614 | (eval "$ac_link") 2>&5 |
| 5615 | ac_status=$? |
| 5616 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5617 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5618 | { (case "(($ac_try" in |
| 5619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5620 | *) ac_try_echo=$ac_try;; |
| 5621 | esac |
| 5622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5623 | $as_echo "$ac_try_echo") >&5 |
| 5624 | (eval "$ac_try") 2>&5 |
| 5625 | ac_status=$? |
| 5626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5627 | (exit $ac_status); }; }; then |
| 5628 | |
| 5629 | ac_cv_pthread_is_default=yes |
| 5630 | ac_cv_kthread=no |
| 5631 | ac_cv_pthread=no |
| 5632 | |
| 5633 | else |
| 5634 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5635 | $as_echo "$as_me: failed program was:" >&5 |
| 5636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5637 | |
| 5638 | ( exit $ac_status ) |
| 5639 | ac_cv_pthread_is_default=no |
| 5640 | fi |
| 5641 | rm -rf conftest.dSYM |
| 5642 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5643 | fi |
| 5644 | |
| 5645 | |
| 5646 | |
| 5647 | fi |
| 5648 | |
| 5649 | { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5650 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
| 5651 | |
| 5652 | |
| 5653 | if test $ac_cv_pthread_is_default = yes |
| 5654 | then |
| 5655 | ac_cv_kpthread=no |
| 5656 | else |
| 5657 | # -Kpthread, if available, provides the right #defines |
| 5658 | # and linker options to make pthread_create available |
| 5659 | # Some compilers won't report that they do not support -Kpthread, |
| 5660 | # so we need to run a program to see whether it really made the |
| 5661 | # function available. |
| 5662 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5663 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
| 5664 | if test "${ac_cv_kpthread+set}" = set; then |
| 5665 | $as_echo_n "(cached) " >&6 |
| 5666 | else |
| 5667 | ac_save_cc="$CC" |
| 5668 | CC="$CC -Kpthread" |
| 5669 | if test "$cross_compiling" = yes; then |
| 5670 | ac_cv_kpthread=no |
| 5671 | else |
| 5672 | cat >conftest.$ac_ext <<_ACEOF |
| 5673 | /* confdefs.h. */ |
| 5674 | _ACEOF |
| 5675 | cat confdefs.h >>conftest.$ac_ext |
| 5676 | cat >>conftest.$ac_ext <<_ACEOF |
| 5677 | /* end confdefs.h. */ |
| 5678 | |
| 5679 | #include <pthread.h> |
| 5680 | |
| 5681 | void* routine(void* p){return NULL;} |
| 5682 | |
| 5683 | int main(){ |
| 5684 | pthread_t p; |
| 5685 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5686 | return 1; |
| 5687 | (void)pthread_detach(p); |
| 5688 | return 0; |
| 5689 | } |
| 5690 | |
| 5691 | _ACEOF |
| 5692 | rm -f conftest$ac_exeext |
| 5693 | if { (ac_try="$ac_link" |
| 5694 | case "(($ac_try" in |
| 5695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5696 | *) ac_try_echo=$ac_try;; |
| 5697 | esac |
| 5698 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5699 | $as_echo "$ac_try_echo") >&5 |
| 5700 | (eval "$ac_link") 2>&5 |
| 5701 | ac_status=$? |
| 5702 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5703 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5704 | { (case "(($ac_try" in |
| 5705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5706 | *) ac_try_echo=$ac_try;; |
| 5707 | esac |
| 5708 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5709 | $as_echo "$ac_try_echo") >&5 |
| 5710 | (eval "$ac_try") 2>&5 |
| 5711 | ac_status=$? |
| 5712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5713 | (exit $ac_status); }; }; then |
| 5714 | ac_cv_kpthread=yes |
| 5715 | else |
| 5716 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5717 | $as_echo "$as_me: failed program was:" >&5 |
| 5718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5719 | |
| 5720 | ( exit $ac_status ) |
| 5721 | ac_cv_kpthread=no |
| 5722 | fi |
| 5723 | rm -rf conftest.dSYM |
| 5724 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5725 | fi |
| 5726 | |
| 5727 | |
| 5728 | CC="$ac_save_cc" |
| 5729 | fi |
| 5730 | |
| 5731 | { $as_echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5732 | $as_echo "$ac_cv_kpthread" >&6; } |
| 5733 | fi |
| 5734 | |
| 5735 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5736 | then |
| 5737 | # -Kthread, if available, provides the right #defines |
| 5738 | # and linker options to make pthread_create available |
| 5739 | # Some compilers won't report that they do not support -Kthread, |
| 5740 | # so we need to run a program to see whether it really made the |
| 5741 | # function available. |
| 5742 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5743 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
| 5744 | if test "${ac_cv_kthread+set}" = set; then |
| 5745 | $as_echo_n "(cached) " >&6 |
| 5746 | else |
| 5747 | ac_save_cc="$CC" |
| 5748 | CC="$CC -Kthread" |
| 5749 | if test "$cross_compiling" = yes; then |
| 5750 | ac_cv_kthread=no |
| 5751 | else |
| 5752 | cat >conftest.$ac_ext <<_ACEOF |
| 5753 | /* confdefs.h. */ |
| 5754 | _ACEOF |
| 5755 | cat confdefs.h >>conftest.$ac_ext |
| 5756 | cat >>conftest.$ac_ext <<_ACEOF |
| 5757 | /* end confdefs.h. */ |
| 5758 | |
| 5759 | #include <pthread.h> |
| 5760 | |
| 5761 | void* routine(void* p){return NULL;} |
| 5762 | |
| 5763 | int main(){ |
| 5764 | pthread_t p; |
| 5765 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5766 | return 1; |
| 5767 | (void)pthread_detach(p); |
| 5768 | return 0; |
| 5769 | } |
| 5770 | |
| 5771 | _ACEOF |
| 5772 | rm -f conftest$ac_exeext |
| 5773 | if { (ac_try="$ac_link" |
| 5774 | case "(($ac_try" in |
| 5775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5776 | *) ac_try_echo=$ac_try;; |
| 5777 | esac |
| 5778 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5779 | $as_echo "$ac_try_echo") >&5 |
| 5780 | (eval "$ac_link") 2>&5 |
| 5781 | ac_status=$? |
| 5782 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5783 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5784 | { (case "(($ac_try" in |
| 5785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5786 | *) ac_try_echo=$ac_try;; |
| 5787 | esac |
| 5788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5789 | $as_echo "$ac_try_echo") >&5 |
| 5790 | (eval "$ac_try") 2>&5 |
| 5791 | ac_status=$? |
| 5792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5793 | (exit $ac_status); }; }; then |
| 5794 | ac_cv_kthread=yes |
| 5795 | else |
| 5796 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5797 | $as_echo "$as_me: failed program was:" >&5 |
| 5798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5799 | |
| 5800 | ( exit $ac_status ) |
| 5801 | ac_cv_kthread=no |
| 5802 | fi |
| 5803 | rm -rf conftest.dSYM |
| 5804 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5805 | fi |
| 5806 | |
| 5807 | |
| 5808 | CC="$ac_save_cc" |
| 5809 | fi |
| 5810 | |
| 5811 | { $as_echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5812 | $as_echo "$ac_cv_kthread" >&6; } |
| 5813 | fi |
| 5814 | |
| 5815 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5816 | then |
| 5817 | # -pthread, if available, provides the right #defines |
| 5818 | # and linker options to make pthread_create available |
| 5819 | # Some compilers won't report that they do not support -pthread, |
| 5820 | # so we need to run a program to see whether it really made the |
| 5821 | # function available. |
| 5822 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5823 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
| 5824 | if test "${ac_cv_thread+set}" = set; then |
| 5825 | $as_echo_n "(cached) " >&6 |
| 5826 | else |
| 5827 | ac_save_cc="$CC" |
| 5828 | CC="$CC -pthread" |
| 5829 | if test "$cross_compiling" = yes; then |
| 5830 | ac_cv_pthread=no |
| 5831 | else |
| 5832 | cat >conftest.$ac_ext <<_ACEOF |
| 5833 | /* confdefs.h. */ |
| 5834 | _ACEOF |
| 5835 | cat confdefs.h >>conftest.$ac_ext |
| 5836 | cat >>conftest.$ac_ext <<_ACEOF |
| 5837 | /* end confdefs.h. */ |
| 5838 | |
| 5839 | #include <pthread.h> |
| 5840 | |
| 5841 | void* routine(void* p){return NULL;} |
| 5842 | |
| 5843 | int main(){ |
| 5844 | pthread_t p; |
| 5845 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5846 | return 1; |
| 5847 | (void)pthread_detach(p); |
| 5848 | return 0; |
| 5849 | } |
| 5850 | |
| 5851 | _ACEOF |
| 5852 | rm -f conftest$ac_exeext |
| 5853 | if { (ac_try="$ac_link" |
| 5854 | case "(($ac_try" in |
| 5855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5856 | *) ac_try_echo=$ac_try;; |
| 5857 | esac |
| 5858 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5859 | $as_echo "$ac_try_echo") >&5 |
| 5860 | (eval "$ac_link") 2>&5 |
| 5861 | ac_status=$? |
| 5862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5863 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5864 | { (case "(($ac_try" in |
| 5865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5866 | *) ac_try_echo=$ac_try;; |
| 5867 | esac |
| 5868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5869 | $as_echo "$ac_try_echo") >&5 |
| 5870 | (eval "$ac_try") 2>&5 |
| 5871 | ac_status=$? |
| 5872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5873 | (exit $ac_status); }; }; then |
| 5874 | ac_cv_pthread=yes |
| 5875 | else |
| 5876 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5877 | $as_echo "$as_me: failed program was:" >&5 |
| 5878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5879 | |
| 5880 | ( exit $ac_status ) |
| 5881 | ac_cv_pthread=no |
| 5882 | fi |
| 5883 | rm -rf conftest.dSYM |
| 5884 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5885 | fi |
| 5886 | |
| 5887 | |
| 5888 | CC="$ac_save_cc" |
| 5889 | fi |
| 5890 | |
| 5891 | { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5892 | $as_echo "$ac_cv_pthread" >&6; } |
| 5893 | fi |
| 5894 | |
| 5895 | # If we have set a CC compiler flag for thread support then |
| 5896 | # check if it works for CXX, too. |
| 5897 | ac_cv_cxx_thread=no |
| 5898 | if test ! -z "$CXX" |
| 5899 | then |
| 5900 | { $as_echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5901 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } |
| 5902 | ac_save_cxx="$CXX" |
| 5903 | |
| 5904 | if test "$ac_cv_kpthread" = "yes" |
| 5905 | then |
| 5906 | CXX="$CXX -Kpthread" |
| 5907 | ac_cv_cxx_thread=yes |
| 5908 | elif test "$ac_cv_kthread" = "yes" |
| 5909 | then |
| 5910 | CXX="$CXX -Kthread" |
| 5911 | ac_cv_cxx_thread=yes |
| 5912 | elif test "$ac_cv_pthread" = "yes" |
| 5913 | then |
| 5914 | CXX="$CXX -pthread" |
| 5915 | ac_cv_cxx_thread=yes |
| 5916 | fi |
| 5917 | |
| 5918 | if test $ac_cv_cxx_thread = yes |
| 5919 | then |
| 5920 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5921 | $CXX -c conftest.$ac_ext 2>&5 |
| 5922 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5923 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5924 | then |
| 5925 | ac_cv_cxx_thread=yes |
| 5926 | else |
| 5927 | ac_cv_cxx_thread=no |
| 5928 | fi |
| 5929 | rm -fr conftest* |
| 5930 | fi |
| 5931 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5932 | $as_echo "$ac_cv_cxx_thread" >&6; } |
| 5933 | fi |
| 5934 | CXX="$ac_save_cxx" |
| 5935 | |
| 5936 | |
| 5937 | # checks for header files |
| 5938 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5939 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 5940 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5941 | $as_echo_n "(cached) " >&6 |
| 5942 | else |
| 5943 | cat >conftest.$ac_ext <<_ACEOF |
| 5944 | /* confdefs.h. */ |
| 5945 | _ACEOF |
| 5946 | cat confdefs.h >>conftest.$ac_ext |
| 5947 | cat >>conftest.$ac_ext <<_ACEOF |
| 5948 | /* end confdefs.h. */ |
| 5949 | #include <stdlib.h> |
| 5950 | #include <stdarg.h> |
| 5951 | #include <string.h> |
| 5952 | #include <float.h> |
| 5953 | |
| 5954 | int |
| 5955 | main () |
| 5956 | { |
| 5957 | |
| 5958 | ; |
| 5959 | return 0; |
| 5960 | } |
| 5961 | _ACEOF |
| 5962 | rm -f conftest.$ac_objext |
| 5963 | if { (ac_try="$ac_compile" |
| 5964 | case "(($ac_try" in |
| 5965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5966 | *) ac_try_echo=$ac_try;; |
| 5967 | esac |
| 5968 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5969 | $as_echo "$ac_try_echo") >&5 |
| 5970 | (eval "$ac_compile") 2>conftest.er1 |
| 5971 | ac_status=$? |
| 5972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5973 | rm -f conftest.er1 |
| 5974 | cat conftest.err >&5 |
| 5975 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5976 | (exit $ac_status); } && { |
| 5977 | test -z "$ac_c_werror_flag" || |
| 5978 | test ! -s conftest.err |
| 5979 | } && test -s conftest.$ac_objext; then |
| 5980 | ac_cv_header_stdc=yes |
| 5981 | else |
| 5982 | $as_echo "$as_me: failed program was:" >&5 |
| 5983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5984 | |
| 5985 | ac_cv_header_stdc=no |
| 5986 | fi |
| 5987 | |
| 5988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5989 | |
| 5990 | if test $ac_cv_header_stdc = yes; then |
| 5991 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5992 | cat >conftest.$ac_ext <<_ACEOF |
| 5993 | /* confdefs.h. */ |
| 5994 | _ACEOF |
| 5995 | cat confdefs.h >>conftest.$ac_ext |
| 5996 | cat >>conftest.$ac_ext <<_ACEOF |
| 5997 | /* end confdefs.h. */ |
| 5998 | #include <string.h> |
| 5999 | |
| 6000 | _ACEOF |
| 6001 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6002 | $EGREP "memchr" >/dev/null 2>&1; then |
| 6003 | : |
| 6004 | else |
| 6005 | ac_cv_header_stdc=no |
| 6006 | fi |
| 6007 | rm -f conftest* |
| 6008 | |
| 6009 | fi |
| 6010 | |
| 6011 | if test $ac_cv_header_stdc = yes; then |
| 6012 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6013 | cat >conftest.$ac_ext <<_ACEOF |
| 6014 | /* confdefs.h. */ |
| 6015 | _ACEOF |
| 6016 | cat confdefs.h >>conftest.$ac_ext |
| 6017 | cat >>conftest.$ac_ext <<_ACEOF |
| 6018 | /* end confdefs.h. */ |
| 6019 | #include <stdlib.h> |
| 6020 | |
| 6021 | _ACEOF |
| 6022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6023 | $EGREP "free" >/dev/null 2>&1; then |
| 6024 | : |
| 6025 | else |
| 6026 | ac_cv_header_stdc=no |
| 6027 | fi |
| 6028 | rm -f conftest* |
| 6029 | |
| 6030 | fi |
| 6031 | |
| 6032 | if test $ac_cv_header_stdc = yes; then |
| 6033 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6034 | if test "$cross_compiling" = yes; then |
| 6035 | : |
| 6036 | else |
| 6037 | cat >conftest.$ac_ext <<_ACEOF |
| 6038 | /* confdefs.h. */ |
| 6039 | _ACEOF |
| 6040 | cat confdefs.h >>conftest.$ac_ext |
| 6041 | cat >>conftest.$ac_ext <<_ACEOF |
| 6042 | /* end confdefs.h. */ |
| 6043 | #include <ctype.h> |
| 6044 | #include <stdlib.h> |
| 6045 | #if ((' ' & 0x0FF) == 0x020) |
| 6046 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6047 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6048 | #else |
| 6049 | # define ISLOWER(c) \ |
| 6050 | (('a' <= (c) && (c) <= 'i') \ |
| 6051 | || ('j' <= (c) && (c) <= 'r') \ |
| 6052 | || ('s' <= (c) && (c) <= 'z')) |
| 6053 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6054 | #endif |
| 6055 | |
| 6056 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6057 | int |
| 6058 | main () |
| 6059 | { |
| 6060 | int i; |
| 6061 | for (i = 0; i < 256; i++) |
| 6062 | if (XOR (islower (i), ISLOWER (i)) |
| 6063 | || toupper (i) != TOUPPER (i)) |
| 6064 | return 2; |
| 6065 | return 0; |
| 6066 | } |
| 6067 | _ACEOF |
| 6068 | rm -f conftest$ac_exeext |
| 6069 | if { (ac_try="$ac_link" |
| 6070 | case "(($ac_try" in |
| 6071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6072 | *) ac_try_echo=$ac_try;; |
| 6073 | esac |
| 6074 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6075 | $as_echo "$ac_try_echo") >&5 |
| 6076 | (eval "$ac_link") 2>&5 |
| 6077 | ac_status=$? |
| 6078 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6080 | { (case "(($ac_try" in |
| 6081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6082 | *) ac_try_echo=$ac_try;; |
| 6083 | esac |
| 6084 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6085 | $as_echo "$ac_try_echo") >&5 |
| 6086 | (eval "$ac_try") 2>&5 |
| 6087 | ac_status=$? |
| 6088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6089 | (exit $ac_status); }; }; then |
| 6090 | : |
| 6091 | else |
| 6092 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 6093 | $as_echo "$as_me: failed program was:" >&5 |
| 6094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6095 | |
| 6096 | ( exit $ac_status ) |
| 6097 | ac_cv_header_stdc=no |
| 6098 | fi |
| 6099 | rm -rf conftest.dSYM |
| 6100 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6101 | fi |
| 6102 | |
| 6103 | |
| 6104 | fi |
| 6105 | fi |
| 6106 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6107 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6108 | if test $ac_cv_header_stdc = yes; then |
| 6109 | |
| 6110 | cat >>confdefs.h <<\_ACEOF |
| 6111 | #define STDC_HEADERS 1 |
| 6112 | _ACEOF |
| 6113 | |
| 6114 | fi |
| 6115 | |
| 6116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6117 | |
| 6118 | |
| 6119 | |
| 6120 | |
| 6121 | |
| 6122 | |
| 6123 | |
| 6124 | |
| 6125 | |
| 6126 | |
| 6127 | |
| 6128 | |
| 6129 | |
| 6130 | |
| 6131 | |
| 6132 | |
| 6133 | |
| 6134 | |
| 6135 | |
| 6136 | |
| 6137 | |
| 6138 | |
| 6139 | |
| 6140 | |
| 6141 | |
| 6142 | |
| 6143 | |
| 6144 | |
| 6145 | |
| 6146 | |
| 6147 | |
| 6148 | |
| 6149 | |
| 6150 | |
| 6151 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 6152 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 6153 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6154 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 6155 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6156 | |
| 6157 | |
| 6158 | |
| 6159 | |
| 6160 | |
| 6161 | |
| 6162 | |
| 6163 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 6164 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 6165 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 6166 | |
| 6167 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 6168 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 6169 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6170 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 6171 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 6172 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 6173 | 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] | 6174 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 6175 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 6176 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6177 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 6178 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6179 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Martin v. Löwis | 0347a9a | 2006-10-27 07:06:52 +0000 | [diff] [blame] | 6180 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 6181 | bluetooth/bluetooth.h linux/tipc.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6182 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6183 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6184 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6185 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6186 | $as_echo_n "checking for $ac_header... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6187 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6188 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6189 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6190 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6191 | $as_echo "$as_val"'` |
| 6192 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6193 | $as_echo "$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6194 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6195 | # Is the header compilable? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6196 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6197 | $as_echo_n "checking $ac_header usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6198 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6199 | /* confdefs.h. */ |
| 6200 | _ACEOF |
| 6201 | cat confdefs.h >>conftest.$ac_ext |
| 6202 | cat >>conftest.$ac_ext <<_ACEOF |
| 6203 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6204 | $ac_includes_default |
| 6205 | #include <$ac_header> |
| 6206 | _ACEOF |
| 6207 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6208 | if { (ac_try="$ac_compile" |
| 6209 | case "(($ac_try" in |
| 6210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6211 | *) ac_try_echo=$ac_try;; |
| 6212 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6213 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6214 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6215 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6216 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6218 | rm -f conftest.er1 |
| 6219 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6220 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6221 | (exit $ac_status); } && { |
| 6222 | test -z "$ac_c_werror_flag" || |
| 6223 | test ! -s conftest.err |
| 6224 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6225 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6226 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6227 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6229 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6230 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6231 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6232 | |
| 6233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6234 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6235 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6236 | |
| 6237 | # Is the header present? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6238 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6239 | $as_echo_n "checking $ac_header presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6240 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6241 | /* confdefs.h. */ |
| 6242 | _ACEOF |
| 6243 | cat confdefs.h >>conftest.$ac_ext |
| 6244 | cat >>conftest.$ac_ext <<_ACEOF |
| 6245 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6246 | #include <$ac_header> |
| 6247 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6248 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6249 | case "(($ac_try" in |
| 6250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6251 | *) ac_try_echo=$ac_try;; |
| 6252 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6253 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6254 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6255 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6256 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6257 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6258 | rm -f conftest.er1 |
| 6259 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6260 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6261 | (exit $ac_status); } >/dev/null && { |
| 6262 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6263 | test ! -s conftest.err |
| 6264 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6265 | ac_header_preproc=yes |
| 6266 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6267 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6270 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6271 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6273 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6274 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6275 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6276 | |
| 6277 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6278 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6279 | yes:no: ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6280 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6281 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6282 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6283 | $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] | 6284 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6285 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6286 | no:yes:* ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6287 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6288 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6289 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6290 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6291 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6292 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6293 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6294 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6295 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6296 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6297 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6298 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6299 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6300 | ## -------------------------------------- ## |
| 6301 | ## Report this to http://bugs.python.org/ ## |
| 6302 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6303 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6304 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6305 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6306 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6307 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6308 | $as_echo_n "checking for $ac_header... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6309 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6310 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6311 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6312 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6313 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6314 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6315 | $as_echo "$as_val"'` |
| 6316 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6317 | $as_echo "$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6318 | |
| 6319 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6320 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 6321 | $as_echo "$as_val"'` |
| 6322 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6323 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6324 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6325 | _ACEOF |
| 6326 | |
| 6327 | fi |
| 6328 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6329 | done |
| 6330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6331 | |
| 6332 | |
| 6333 | |
| 6334 | |
| 6335 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6336 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6337 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6338 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6339 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 6340 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6341 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6342 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6344 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6345 | /* confdefs.h. */ |
| 6346 | _ACEOF |
| 6347 | cat confdefs.h >>conftest.$ac_ext |
| 6348 | cat >>conftest.$ac_ext <<_ACEOF |
| 6349 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6350 | #include <sys/types.h> |
| 6351 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6353 | int |
| 6354 | main () |
| 6355 | { |
| 6356 | if ((DIR *) 0) |
| 6357 | return 0; |
| 6358 | ; |
| 6359 | return 0; |
| 6360 | } |
| 6361 | _ACEOF |
| 6362 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6363 | if { (ac_try="$ac_compile" |
| 6364 | case "(($ac_try" in |
| 6365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6366 | *) ac_try_echo=$ac_try;; |
| 6367 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6369 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6370 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6371 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6373 | rm -f conftest.er1 |
| 6374 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6376 | (exit $ac_status); } && { |
| 6377 | test -z "$ac_c_werror_flag" || |
| 6378 | test ! -s conftest.err |
| 6379 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6380 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6381 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6382 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6384 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6385 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6386 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6387 | |
| 6388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6389 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6390 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6391 | $as_echo "$as_val"'` |
| 6392 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6393 | $as_echo "$ac_res" >&6; } |
| 6394 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 6395 | $as_echo "$as_val"'` |
| 6396 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6397 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6398 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6399 | _ACEOF |
| 6400 | |
| 6401 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6403 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6404 | done |
| 6405 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6406 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6407 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6408 | $as_echo_n "checking for library containing opendir... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6409 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6410 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6412 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6413 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6414 | /* confdefs.h. */ |
| 6415 | _ACEOF |
| 6416 | cat confdefs.h >>conftest.$ac_ext |
| 6417 | cat >>conftest.$ac_ext <<_ACEOF |
| 6418 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6419 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6420 | /* Override any GCC internal prototype to avoid an error. |
| 6421 | Use char because int might match the return type of a GCC |
| 6422 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6423 | #ifdef __cplusplus |
| 6424 | extern "C" |
| 6425 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6426 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6427 | int |
| 6428 | main () |
| 6429 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6430 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6431 | ; |
| 6432 | return 0; |
| 6433 | } |
| 6434 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6435 | for ac_lib in '' dir; do |
| 6436 | if test -z "$ac_lib"; then |
| 6437 | ac_res="none required" |
| 6438 | else |
| 6439 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6440 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6441 | fi |
| 6442 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6443 | if { (ac_try="$ac_link" |
| 6444 | case "(($ac_try" in |
| 6445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6446 | *) ac_try_echo=$ac_try;; |
| 6447 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6448 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6449 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6450 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6451 | ac_status=$? |
| 6452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6453 | rm -f conftest.er1 |
| 6454 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6455 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6456 | (exit $ac_status); } && { |
| 6457 | test -z "$ac_c_werror_flag" || |
| 6458 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6459 | } && test -s conftest$ac_exeext && { |
| 6460 | test "$cross_compiling" = yes || |
| 6461 | $as_test_x conftest$ac_exeext |
| 6462 | }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6463 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6464 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6465 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6467 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6468 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6469 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6470 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6471 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6472 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6473 | conftest$ac_exeext |
| 6474 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6475 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6476 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6477 | done |
| 6478 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6479 | : |
| 6480 | else |
| 6481 | ac_cv_search_opendir=no |
| 6482 | fi |
| 6483 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6484 | LIBS=$ac_func_search_save_LIBS |
| 6485 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6486 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6487 | $as_echo "$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6488 | ac_res=$ac_cv_search_opendir |
| 6489 | if test "$ac_res" != no; then |
| 6490 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6491 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6492 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6493 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6494 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6495 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6496 | $as_echo_n "checking for library containing opendir... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6497 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6498 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6499 | else |
| 6500 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6501 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6502 | /* confdefs.h. */ |
| 6503 | _ACEOF |
| 6504 | cat confdefs.h >>conftest.$ac_ext |
| 6505 | cat >>conftest.$ac_ext <<_ACEOF |
| 6506 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6507 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6508 | /* Override any GCC internal prototype to avoid an error. |
| 6509 | Use char because int might match the return type of a GCC |
| 6510 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6511 | #ifdef __cplusplus |
| 6512 | extern "C" |
| 6513 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6514 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6515 | int |
| 6516 | main () |
| 6517 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6518 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6519 | ; |
| 6520 | return 0; |
| 6521 | } |
| 6522 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6523 | for ac_lib in '' x; do |
| 6524 | if test -z "$ac_lib"; then |
| 6525 | ac_res="none required" |
| 6526 | else |
| 6527 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6528 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6529 | fi |
| 6530 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6531 | if { (ac_try="$ac_link" |
| 6532 | case "(($ac_try" in |
| 6533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6534 | *) ac_try_echo=$ac_try;; |
| 6535 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6536 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6537 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6538 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6539 | ac_status=$? |
| 6540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6541 | rm -f conftest.er1 |
| 6542 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6544 | (exit $ac_status); } && { |
| 6545 | test -z "$ac_c_werror_flag" || |
| 6546 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6547 | } && test -s conftest$ac_exeext && { |
| 6548 | test "$cross_compiling" = yes || |
| 6549 | $as_test_x conftest$ac_exeext |
| 6550 | }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6551 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6552 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6553 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6555 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6556 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6557 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6558 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6559 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6560 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6561 | conftest$ac_exeext |
| 6562 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6563 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6564 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6565 | done |
| 6566 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6567 | : |
| 6568 | else |
| 6569 | ac_cv_search_opendir=no |
| 6570 | fi |
| 6571 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6572 | LIBS=$ac_func_search_save_LIBS |
| 6573 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6574 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6575 | $as_echo "$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6576 | ac_res=$ac_cv_search_opendir |
| 6577 | if test "$ac_res" != no; then |
| 6578 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6579 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6580 | fi |
| 6581 | |
| 6582 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6583 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6584 | { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6585 | $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] | 6586 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6587 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6588 | else |
| 6589 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6590 | /* confdefs.h. */ |
| 6591 | _ACEOF |
| 6592 | cat confdefs.h >>conftest.$ac_ext |
| 6593 | cat >>conftest.$ac_ext <<_ACEOF |
| 6594 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6595 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6596 | int |
| 6597 | main () |
| 6598 | { |
| 6599 | return makedev(0, 0); |
| 6600 | ; |
| 6601 | return 0; |
| 6602 | } |
| 6603 | _ACEOF |
| 6604 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6605 | if { (ac_try="$ac_link" |
| 6606 | case "(($ac_try" in |
| 6607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6608 | *) ac_try_echo=$ac_try;; |
| 6609 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6611 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6612 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6613 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6615 | rm -f conftest.er1 |
| 6616 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6618 | (exit $ac_status); } && { |
| 6619 | test -z "$ac_c_werror_flag" || |
| 6620 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6621 | } && test -s conftest$ac_exeext && { |
| 6622 | test "$cross_compiling" = yes || |
| 6623 | $as_test_x conftest$ac_exeext |
| 6624 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6625 | ac_cv_header_sys_types_h_makedev=yes |
| 6626 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6627 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6629 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6630 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6631 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6632 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6633 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6634 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6635 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6636 | |
| 6637 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6638 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6639 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6640 | |
| 6641 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6642 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6643 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6644 | $as_echo_n "checking for sys/mkdev.h... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6645 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6646 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6647 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6648 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6649 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6650 | else |
| 6651 | # Is the header compilable? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6652 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6653 | $as_echo_n "checking sys/mkdev.h usability... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6654 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6655 | /* confdefs.h. */ |
| 6656 | _ACEOF |
| 6657 | cat confdefs.h >>conftest.$ac_ext |
| 6658 | cat >>conftest.$ac_ext <<_ACEOF |
| 6659 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6660 | $ac_includes_default |
| 6661 | #include <sys/mkdev.h> |
| 6662 | _ACEOF |
| 6663 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6664 | if { (ac_try="$ac_compile" |
| 6665 | case "(($ac_try" in |
| 6666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6667 | *) ac_try_echo=$ac_try;; |
| 6668 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6670 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6671 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6672 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6674 | rm -f conftest.er1 |
| 6675 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6677 | (exit $ac_status); } && { |
| 6678 | test -z "$ac_c_werror_flag" || |
| 6679 | test ! -s conftest.err |
| 6680 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6681 | ac_header_compiler=yes |
| 6682 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6683 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6685 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6686 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6687 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6688 | |
| 6689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6690 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6691 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6692 | |
| 6693 | # Is the header present? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6694 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6695 | $as_echo_n "checking sys/mkdev.h presence... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6696 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6697 | /* confdefs.h. */ |
| 6698 | _ACEOF |
| 6699 | cat confdefs.h >>conftest.$ac_ext |
| 6700 | cat >>conftest.$ac_ext <<_ACEOF |
| 6701 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6702 | #include <sys/mkdev.h> |
| 6703 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6704 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6705 | case "(($ac_try" in |
| 6706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6707 | *) ac_try_echo=$ac_try;; |
| 6708 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6709 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6710 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6711 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6712 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6713 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6714 | rm -f conftest.er1 |
| 6715 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6717 | (exit $ac_status); } >/dev/null && { |
| 6718 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6719 | test ! -s conftest.err |
| 6720 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6721 | ac_header_preproc=yes |
| 6722 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +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 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6726 | ac_header_preproc=no |
| 6727 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6728 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6729 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6730 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6731 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6732 | |
| 6733 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6734 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6735 | yes:no: ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6736 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6737 | $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6738 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6739 | $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] | 6740 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6741 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6742 | no:yes:* ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6743 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6744 | $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6745 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6746 | $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6747 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6748 | $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6749 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6750 | $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6751 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6752 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6753 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6754 | $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6755 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6756 | ## -------------------------------------- ## |
| 6757 | ## Report this to http://bugs.python.org/ ## |
| 6758 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6759 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6760 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6761 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6762 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6763 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6764 | $as_echo_n "checking for sys/mkdev.h... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6765 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6766 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6767 | else |
| 6768 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6769 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6770 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6771 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6772 | |
| 6773 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6774 | 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] | 6775 | |
| 6776 | cat >>confdefs.h <<\_ACEOF |
| 6777 | #define MAJOR_IN_MKDEV 1 |
| 6778 | _ACEOF |
| 6779 | |
| 6780 | fi |
| 6781 | |
| 6782 | |
| 6783 | |
| 6784 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6785 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6786 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6787 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6788 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6789 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6790 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6791 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6792 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6793 | else |
| 6794 | # Is the header compilable? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6795 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6796 | $as_echo_n "checking sys/sysmacros.h usability... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6797 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6798 | /* confdefs.h. */ |
| 6799 | _ACEOF |
| 6800 | cat confdefs.h >>conftest.$ac_ext |
| 6801 | cat >>conftest.$ac_ext <<_ACEOF |
| 6802 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6803 | $ac_includes_default |
| 6804 | #include <sys/sysmacros.h> |
| 6805 | _ACEOF |
| 6806 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6807 | if { (ac_try="$ac_compile" |
| 6808 | case "(($ac_try" in |
| 6809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6810 | *) ac_try_echo=$ac_try;; |
| 6811 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6812 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6813 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6814 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6815 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6817 | rm -f conftest.er1 |
| 6818 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6819 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6820 | (exit $ac_status); } && { |
| 6821 | test -z "$ac_c_werror_flag" || |
| 6822 | test ! -s conftest.err |
| 6823 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6824 | ac_header_compiler=yes |
| 6825 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6826 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6828 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6829 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6830 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6831 | |
| 6832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6833 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6834 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6835 | |
| 6836 | # Is the header present? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6837 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6838 | $as_echo_n "checking sys/sysmacros.h presence... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6839 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6840 | /* confdefs.h. */ |
| 6841 | _ACEOF |
| 6842 | cat confdefs.h >>conftest.$ac_ext |
| 6843 | cat >>conftest.$ac_ext <<_ACEOF |
| 6844 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6845 | #include <sys/sysmacros.h> |
| 6846 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6847 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6848 | case "(($ac_try" in |
| 6849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6850 | *) ac_try_echo=$ac_try;; |
| 6851 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6853 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6854 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6855 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6856 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6857 | rm -f conftest.er1 |
| 6858 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6860 | (exit $ac_status); } >/dev/null && { |
| 6861 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6862 | test ! -s conftest.err |
| 6863 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6864 | ac_header_preproc=yes |
| 6865 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6866 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6868 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6869 | ac_header_preproc=no |
| 6870 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6871 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6872 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6873 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6874 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6875 | |
| 6876 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6877 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6878 | yes:no: ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6879 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6880 | $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6881 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6882 | $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] | 6883 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6884 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6885 | no:yes:* ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6886 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6887 | $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6888 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6889 | $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6890 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6891 | $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6892 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6893 | $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6894 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6895 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6896 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6897 | $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6898 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6899 | ## -------------------------------------- ## |
| 6900 | ## Report this to http://bugs.python.org/ ## |
| 6901 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6902 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6903 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6904 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6905 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6906 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6907 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6908 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6909 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6910 | else |
| 6911 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6912 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6913 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6914 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6915 | |
| 6916 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6917 | 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] | 6918 | |
| 6919 | cat >>confdefs.h <<\_ACEOF |
| 6920 | #define MAJOR_IN_SYSMACROS 1 |
| 6921 | _ACEOF |
| 6922 | |
| 6923 | fi |
| 6924 | |
| 6925 | |
| 6926 | fi |
| 6927 | fi |
| 6928 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6929 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6930 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6931 | |
| 6932 | for ac_header in term.h |
| 6933 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6934 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6935 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6936 | $as_echo_n "checking for $ac_header... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6937 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6938 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6939 | else |
| 6940 | cat >conftest.$ac_ext <<_ACEOF |
| 6941 | /* confdefs.h. */ |
| 6942 | _ACEOF |
| 6943 | cat confdefs.h >>conftest.$ac_ext |
| 6944 | cat >>conftest.$ac_ext <<_ACEOF |
| 6945 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6946 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6947 | #ifdef HAVE_CURSES_H |
| 6948 | #include <curses.h> |
| 6949 | #endif |
| 6950 | |
| 6951 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6952 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6953 | _ACEOF |
| 6954 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6955 | if { (ac_try="$ac_compile" |
| 6956 | case "(($ac_try" in |
| 6957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6958 | *) ac_try_echo=$ac_try;; |
| 6959 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6960 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6961 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6962 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6963 | ac_status=$? |
| 6964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6965 | rm -f conftest.er1 |
| 6966 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6968 | (exit $ac_status); } && { |
| 6969 | test -z "$ac_c_werror_flag" || |
| 6970 | test ! -s conftest.err |
| 6971 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6972 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6973 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6974 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6976 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6977 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6978 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6979 | |
| 6980 | 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] | 6981 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6982 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6983 | $as_echo "$as_val"'` |
| 6984 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6985 | $as_echo "$ac_res" >&6; } |
| 6986 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 6987 | $as_echo "$as_val"'` |
| 6988 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6989 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 6990 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6991 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6992 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6993 | fi |
| 6994 | |
| 6995 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6996 | |
| 6997 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6998 | # On Linux, netlink.h requires asm/types.h |
| 6999 | |
| 7000 | for ac_header in linux/netlink.h |
| 7001 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7002 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7003 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7004 | $as_echo_n "checking for $ac_header... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7005 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7006 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7007 | else |
| 7008 | cat >conftest.$ac_ext <<_ACEOF |
| 7009 | /* confdefs.h. */ |
| 7010 | _ACEOF |
| 7011 | cat confdefs.h >>conftest.$ac_ext |
| 7012 | cat >>conftest.$ac_ext <<_ACEOF |
| 7013 | /* end confdefs.h. */ |
| 7014 | |
| 7015 | #ifdef HAVE_ASM_TYPES_H |
| 7016 | #include <asm/types.h> |
| 7017 | #endif |
| 7018 | #ifdef HAVE_SYS_SOCKET_H |
| 7019 | #include <sys/socket.h> |
| 7020 | #endif |
| 7021 | |
| 7022 | |
| 7023 | #include <$ac_header> |
| 7024 | _ACEOF |
| 7025 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7026 | if { (ac_try="$ac_compile" |
| 7027 | case "(($ac_try" in |
| 7028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7029 | *) ac_try_echo=$ac_try;; |
| 7030 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7031 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7032 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7033 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7034 | ac_status=$? |
| 7035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7036 | rm -f conftest.er1 |
| 7037 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7038 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7039 | (exit $ac_status); } && { |
| 7040 | test -z "$ac_c_werror_flag" || |
| 7041 | test ! -s conftest.err |
| 7042 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7043 | eval "$as_ac_Header=yes" |
| 7044 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7045 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7047 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7048 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7049 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7050 | |
| 7051 | 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] | 7052 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7053 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 7054 | $as_echo "$as_val"'` |
| 7055 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7056 | $as_echo "$ac_res" >&6; } |
| 7057 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 7058 | $as_echo "$as_val"'` |
| 7059 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7060 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7061 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7062 | _ACEOF |
| 7063 | |
| 7064 | fi |
| 7065 | |
| 7066 | done |
| 7067 | |
| 7068 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7069 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7070 | was_it_defined=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7071 | { $as_echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 7072 | $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] | 7073 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7074 | /* confdefs.h. */ |
| 7075 | _ACEOF |
| 7076 | cat confdefs.h >>conftest.$ac_ext |
| 7077 | cat >>conftest.$ac_ext <<_ACEOF |
| 7078 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7079 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7080 | |
| 7081 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7082 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7083 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7084 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7086 | |
| 7087 | |
| 7088 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7089 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7090 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7091 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7092 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7093 | fi |
| 7094 | rm -f conftest* |
| 7095 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7096 | { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 7097 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7098 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7099 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7100 | { $as_echo "$as_me:$LINENO: checking for makedev" >&5 |
| 7101 | $as_echo_n "checking for makedev... " >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7102 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7103 | /* confdefs.h. */ |
| 7104 | _ACEOF |
| 7105 | cat confdefs.h >>conftest.$ac_ext |
| 7106 | cat >>conftest.$ac_ext <<_ACEOF |
| 7107 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 7108 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7109 | int |
| 7110 | main () |
| 7111 | { |
| 7112 | makedev(0, 0) |
| 7113 | ; |
| 7114 | return 0; |
| 7115 | } |
| 7116 | _ACEOF |
| 7117 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7118 | if { (ac_try="$ac_link" |
| 7119 | case "(($ac_try" in |
| 7120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7121 | *) ac_try_echo=$ac_try;; |
| 7122 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7123 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7124 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7125 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7126 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7128 | rm -f conftest.er1 |
| 7129 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7130 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7131 | (exit $ac_status); } && { |
| 7132 | test -z "$ac_c_werror_flag" || |
| 7133 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7134 | } && test -s conftest$ac_exeext && { |
| 7135 | test "$cross_compiling" = yes || |
| 7136 | $as_test_x conftest$ac_exeext |
| 7137 | }; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7138 | ac_cv_has_makedev=yes |
| 7139 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7140 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7142 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7143 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7144 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7145 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7146 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7148 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7149 | if test "$ac_cv_has_makedev" = "no"; then |
| 7150 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 7151 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7152 | /* confdefs.h. */ |
| 7153 | _ACEOF |
| 7154 | cat confdefs.h >>conftest.$ac_ext |
| 7155 | cat >>conftest.$ac_ext <<_ACEOF |
| 7156 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7157 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 7158 | #define _OSF_SOURCE 1 |
| 7159 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7160 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7161 | int |
| 7162 | main () |
| 7163 | { |
| 7164 | makedev(0, 0) |
| 7165 | ; |
| 7166 | return 0; |
| 7167 | } |
| 7168 | _ACEOF |
| 7169 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7170 | if { (ac_try="$ac_link" |
| 7171 | case "(($ac_try" in |
| 7172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7173 | *) ac_try_echo=$ac_try;; |
| 7174 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7175 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7176 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7177 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7178 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7180 | rm -f conftest.er1 |
| 7181 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7182 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7183 | (exit $ac_status); } && { |
| 7184 | test -z "$ac_c_werror_flag" || |
| 7185 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7186 | } && test -s conftest$ac_exeext && { |
| 7187 | test "$cross_compiling" = yes || |
| 7188 | $as_test_x conftest$ac_exeext |
| 7189 | }; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7190 | ac_cv_has_makedev=yes |
| 7191 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7192 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7194 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7195 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7196 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7197 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7198 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7199 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7200 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7201 | if test "$ac_cv_has_makedev" = "yes"; then |
| 7202 | |
| 7203 | cat >>confdefs.h <<\_ACEOF |
| 7204 | #define _OSF_SOURCE 1 |
| 7205 | _ACEOF |
| 7206 | |
| 7207 | fi |
| 7208 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7209 | { $as_echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 7210 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7211 | if test "$ac_cv_has_makedev" = "yes"; then |
| 7212 | |
| 7213 | cat >>confdefs.h <<\_ACEOF |
| 7214 | #define HAVE_MAKEDEV 1 |
| 7215 | _ACEOF |
| 7216 | |
| 7217 | fi |
| 7218 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7219 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 7220 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 7221 | # defined, but the compiler does not support pragma redefine_extname, |
| 7222 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 7223 | # structures (such as rlimit64) without declaring them. As a |
| 7224 | # work-around, disable LFS on such configurations |
| 7225 | |
| 7226 | use_lfs=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7227 | { $as_echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 7228 | $as_echo_n "checking Solaris LFS bug... " >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7229 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7230 | /* confdefs.h. */ |
| 7231 | _ACEOF |
| 7232 | cat confdefs.h >>conftest.$ac_ext |
| 7233 | cat >>conftest.$ac_ext <<_ACEOF |
| 7234 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7235 | |
| 7236 | #define _LARGEFILE_SOURCE 1 |
| 7237 | #define _FILE_OFFSET_BITS 64 |
| 7238 | #include <sys/resource.h> |
| 7239 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7240 | int |
| 7241 | main () |
| 7242 | { |
| 7243 | struct rlimit foo; |
| 7244 | ; |
| 7245 | return 0; |
| 7246 | } |
| 7247 | _ACEOF |
| 7248 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7249 | if { (ac_try="$ac_compile" |
| 7250 | case "(($ac_try" in |
| 7251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7252 | *) ac_try_echo=$ac_try;; |
| 7253 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7254 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7255 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7256 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7257 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7259 | rm -f conftest.er1 |
| 7260 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7262 | (exit $ac_status); } && { |
| 7263 | test -z "$ac_c_werror_flag" || |
| 7264 | test ! -s conftest.err |
| 7265 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7266 | sol_lfs_bug=no |
| 7267 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7268 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7270 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7271 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7272 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7273 | |
| 7274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7275 | { $as_echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 7276 | $as_echo "$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7277 | if test "$sol_lfs_bug" = "yes"; then |
| 7278 | use_lfs=no |
| 7279 | fi |
| 7280 | |
| 7281 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7282 | # Two defines needed to enable largefile support on various platforms |
| 7283 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7284 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7285 | cat >>confdefs.h <<\_ACEOF |
| 7286 | #define _LARGEFILE_SOURCE 1 |
| 7287 | _ACEOF |
| 7288 | |
| 7289 | |
| 7290 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7291 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7292 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7293 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7294 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7295 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 7296 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 7297 | cat >> confdefs.h <<\EOF |
| 7298 | #if defined(SCO_DS) |
| 7299 | #undef _OFF_T |
| 7300 | #endif |
| 7301 | EOF |
| 7302 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7303 | # Type availability checks |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7304 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 7305 | $as_echo_n "checking for mode_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7306 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7307 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7308 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7309 | ac_cv_type_mode_t=no |
| 7310 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7311 | /* confdefs.h. */ |
| 7312 | _ACEOF |
| 7313 | cat confdefs.h >>conftest.$ac_ext |
| 7314 | cat >>conftest.$ac_ext <<_ACEOF |
| 7315 | /* end confdefs.h. */ |
| 7316 | $ac_includes_default |
| 7317 | int |
| 7318 | main () |
| 7319 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7320 | if (sizeof (mode_t)) |
| 7321 | return 0; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7322 | ; |
| 7323 | return 0; |
| 7324 | } |
| 7325 | _ACEOF |
| 7326 | rm -f conftest.$ac_objext |
| 7327 | if { (ac_try="$ac_compile" |
| 7328 | case "(($ac_try" in |
| 7329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7330 | *) ac_try_echo=$ac_try;; |
| 7331 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7332 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7333 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7334 | (eval "$ac_compile") 2>conftest.er1 |
| 7335 | ac_status=$? |
| 7336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7337 | rm -f conftest.er1 |
| 7338 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7340 | (exit $ac_status); } && { |
| 7341 | test -z "$ac_c_werror_flag" || |
| 7342 | test ! -s conftest.err |
| 7343 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7344 | cat >conftest.$ac_ext <<_ACEOF |
| 7345 | /* confdefs.h. */ |
| 7346 | _ACEOF |
| 7347 | cat confdefs.h >>conftest.$ac_ext |
| 7348 | cat >>conftest.$ac_ext <<_ACEOF |
| 7349 | /* end confdefs.h. */ |
| 7350 | $ac_includes_default |
| 7351 | int |
| 7352 | main () |
| 7353 | { |
| 7354 | if (sizeof ((mode_t))) |
| 7355 | return 0; |
| 7356 | ; |
| 7357 | return 0; |
| 7358 | } |
| 7359 | _ACEOF |
| 7360 | rm -f conftest.$ac_objext |
| 7361 | if { (ac_try="$ac_compile" |
| 7362 | case "(($ac_try" in |
| 7363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7364 | *) ac_try_echo=$ac_try;; |
| 7365 | esac |
| 7366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7367 | $as_echo "$ac_try_echo") >&5 |
| 7368 | (eval "$ac_compile") 2>conftest.er1 |
| 7369 | ac_status=$? |
| 7370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7371 | rm -f conftest.er1 |
| 7372 | cat conftest.err >&5 |
| 7373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7374 | (exit $ac_status); } && { |
| 7375 | test -z "$ac_c_werror_flag" || |
| 7376 | test ! -s conftest.err |
| 7377 | } && test -s conftest.$ac_objext; then |
| 7378 | : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7379 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7380 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7382 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7383 | ac_cv_type_mode_t=yes |
| 7384 | fi |
| 7385 | |
| 7386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7387 | else |
| 7388 | $as_echo "$as_me: failed program was:" >&5 |
| 7389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7390 | |
| 7391 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7392 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7393 | |
| 7394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7395 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7396 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 7397 | $as_echo "$ac_cv_type_mode_t" >&6; } |
| 7398 | 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] | 7399 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7401 | |
| 7402 | cat >>confdefs.h <<_ACEOF |
| 7403 | #define mode_t int |
| 7404 | _ACEOF |
| 7405 | |
| 7406 | fi |
| 7407 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7408 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
| 7409 | $as_echo_n "checking for off_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7410 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7411 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7412 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7413 | ac_cv_type_off_t=no |
| 7414 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7415 | /* confdefs.h. */ |
| 7416 | _ACEOF |
| 7417 | cat confdefs.h >>conftest.$ac_ext |
| 7418 | cat >>conftest.$ac_ext <<_ACEOF |
| 7419 | /* end confdefs.h. */ |
| 7420 | $ac_includes_default |
| 7421 | int |
| 7422 | main () |
| 7423 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7424 | if (sizeof (off_t)) |
| 7425 | return 0; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7426 | ; |
| 7427 | return 0; |
| 7428 | } |
| 7429 | _ACEOF |
| 7430 | rm -f conftest.$ac_objext |
| 7431 | if { (ac_try="$ac_compile" |
| 7432 | case "(($ac_try" in |
| 7433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7434 | *) ac_try_echo=$ac_try;; |
| 7435 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7436 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7437 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7438 | (eval "$ac_compile") 2>conftest.er1 |
| 7439 | ac_status=$? |
| 7440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7441 | rm -f conftest.er1 |
| 7442 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7443 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7444 | (exit $ac_status); } && { |
| 7445 | test -z "$ac_c_werror_flag" || |
| 7446 | test ! -s conftest.err |
| 7447 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7448 | cat >conftest.$ac_ext <<_ACEOF |
| 7449 | /* confdefs.h. */ |
| 7450 | _ACEOF |
| 7451 | cat confdefs.h >>conftest.$ac_ext |
| 7452 | cat >>conftest.$ac_ext <<_ACEOF |
| 7453 | /* end confdefs.h. */ |
| 7454 | $ac_includes_default |
| 7455 | int |
| 7456 | main () |
| 7457 | { |
| 7458 | if (sizeof ((off_t))) |
| 7459 | return 0; |
| 7460 | ; |
| 7461 | return 0; |
| 7462 | } |
| 7463 | _ACEOF |
| 7464 | rm -f conftest.$ac_objext |
| 7465 | if { (ac_try="$ac_compile" |
| 7466 | case "(($ac_try" in |
| 7467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7468 | *) ac_try_echo=$ac_try;; |
| 7469 | esac |
| 7470 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7471 | $as_echo "$ac_try_echo") >&5 |
| 7472 | (eval "$ac_compile") 2>conftest.er1 |
| 7473 | ac_status=$? |
| 7474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7475 | rm -f conftest.er1 |
| 7476 | cat conftest.err >&5 |
| 7477 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7478 | (exit $ac_status); } && { |
| 7479 | test -z "$ac_c_werror_flag" || |
| 7480 | test ! -s conftest.err |
| 7481 | } && test -s conftest.$ac_objext; then |
| 7482 | : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7483 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7484 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7486 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7487 | ac_cv_type_off_t=yes |
| 7488 | fi |
| 7489 | |
| 7490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7491 | else |
| 7492 | $as_echo "$as_me: failed program was:" >&5 |
| 7493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7494 | |
| 7495 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7496 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7497 | |
| 7498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7499 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7500 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 7501 | $as_echo "$ac_cv_type_off_t" >&6; } |
| 7502 | 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] | 7503 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7504 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7505 | |
| 7506 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7507 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7508 | _ACEOF |
| 7509 | |
| 7510 | fi |
| 7511 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7512 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 7513 | $as_echo_n "checking for pid_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7514 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7515 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7516 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7517 | ac_cv_type_pid_t=no |
| 7518 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +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. */ |
| 7524 | $ac_includes_default |
| 7525 | int |
| 7526 | main () |
| 7527 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7528 | if (sizeof (pid_t)) |
| 7529 | return 0; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7530 | ; |
| 7531 | return 0; |
| 7532 | } |
| 7533 | _ACEOF |
| 7534 | rm -f conftest.$ac_objext |
| 7535 | if { (ac_try="$ac_compile" |
| 7536 | case "(($ac_try" in |
| 7537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7538 | *) ac_try_echo=$ac_try;; |
| 7539 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7540 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7541 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7542 | (eval "$ac_compile") 2>conftest.er1 |
| 7543 | ac_status=$? |
| 7544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7545 | rm -f conftest.er1 |
| 7546 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7547 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7548 | (exit $ac_status); } && { |
| 7549 | test -z "$ac_c_werror_flag" || |
| 7550 | test ! -s conftest.err |
| 7551 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7552 | cat >conftest.$ac_ext <<_ACEOF |
| 7553 | /* confdefs.h. */ |
| 7554 | _ACEOF |
| 7555 | cat confdefs.h >>conftest.$ac_ext |
| 7556 | cat >>conftest.$ac_ext <<_ACEOF |
| 7557 | /* end confdefs.h. */ |
| 7558 | $ac_includes_default |
| 7559 | int |
| 7560 | main () |
| 7561 | { |
| 7562 | if (sizeof ((pid_t))) |
| 7563 | return 0; |
| 7564 | ; |
| 7565 | return 0; |
| 7566 | } |
| 7567 | _ACEOF |
| 7568 | rm -f conftest.$ac_objext |
| 7569 | if { (ac_try="$ac_compile" |
| 7570 | case "(($ac_try" in |
| 7571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7572 | *) ac_try_echo=$ac_try;; |
| 7573 | esac |
| 7574 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7575 | $as_echo "$ac_try_echo") >&5 |
| 7576 | (eval "$ac_compile") 2>conftest.er1 |
| 7577 | ac_status=$? |
| 7578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7579 | rm -f conftest.er1 |
| 7580 | cat conftest.err >&5 |
| 7581 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7582 | (exit $ac_status); } && { |
| 7583 | test -z "$ac_c_werror_flag" || |
| 7584 | test ! -s conftest.err |
| 7585 | } && test -s conftest.$ac_objext; then |
| 7586 | : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7587 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7588 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7590 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7591 | ac_cv_type_pid_t=yes |
| 7592 | fi |
| 7593 | |
| 7594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7595 | else |
| 7596 | $as_echo "$as_me: failed program was:" >&5 |
| 7597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7598 | |
| 7599 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7600 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7601 | |
| 7602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7603 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7604 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 7605 | $as_echo "$ac_cv_type_pid_t" >&6; } |
| 7606 | 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] | 7607 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7609 | |
| 7610 | cat >>confdefs.h <<_ACEOF |
| 7611 | #define pid_t int |
| 7612 | _ACEOF |
| 7613 | |
| 7614 | fi |
| 7615 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7616 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 7617 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7618 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7619 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7620 | else |
| 7621 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7622 | /* confdefs.h. */ |
| 7623 | _ACEOF |
| 7624 | cat confdefs.h >>conftest.$ac_ext |
| 7625 | cat >>conftest.$ac_ext <<_ACEOF |
| 7626 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7627 | #include <sys/types.h> |
| 7628 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7629 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7630 | int |
| 7631 | main () |
| 7632 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7633 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7634 | ; |
| 7635 | return 0; |
| 7636 | } |
| 7637 | _ACEOF |
| 7638 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7639 | if { (ac_try="$ac_compile" |
| 7640 | case "(($ac_try" in |
| 7641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7642 | *) ac_try_echo=$ac_try;; |
| 7643 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7645 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7646 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7647 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7649 | rm -f conftest.er1 |
| 7650 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7651 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7652 | (exit $ac_status); } && { |
| 7653 | test -z "$ac_c_werror_flag" || |
| 7654 | test ! -s conftest.err |
| 7655 | } && test -s conftest.$ac_objext; then |
| 7656 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7657 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7658 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7660 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7661 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7662 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7663 | |
| 7664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7665 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7666 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 7667 | $as_echo "$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7669 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7670 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7671 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7672 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7673 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7674 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
| 7675 | $as_echo_n "checking for size_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7676 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7677 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7678 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7679 | ac_cv_type_size_t=no |
| 7680 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +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. */ |
| 7686 | $ac_includes_default |
| 7687 | int |
| 7688 | main () |
| 7689 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7690 | if (sizeof (size_t)) |
| 7691 | return 0; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7692 | ; |
| 7693 | return 0; |
| 7694 | } |
| 7695 | _ACEOF |
| 7696 | rm -f conftest.$ac_objext |
| 7697 | if { (ac_try="$ac_compile" |
| 7698 | case "(($ac_try" in |
| 7699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7700 | *) ac_try_echo=$ac_try;; |
| 7701 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7702 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7703 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7704 | (eval "$ac_compile") 2>conftest.er1 |
| 7705 | ac_status=$? |
| 7706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7707 | rm -f conftest.er1 |
| 7708 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 7710 | (exit $ac_status); } && { |
| 7711 | test -z "$ac_c_werror_flag" || |
| 7712 | test ! -s conftest.err |
| 7713 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7714 | cat >conftest.$ac_ext <<_ACEOF |
| 7715 | /* confdefs.h. */ |
| 7716 | _ACEOF |
| 7717 | cat confdefs.h >>conftest.$ac_ext |
| 7718 | cat >>conftest.$ac_ext <<_ACEOF |
| 7719 | /* end confdefs.h. */ |
| 7720 | $ac_includes_default |
| 7721 | int |
| 7722 | main () |
| 7723 | { |
| 7724 | if (sizeof ((size_t))) |
| 7725 | return 0; |
| 7726 | ; |
| 7727 | return 0; |
| 7728 | } |
| 7729 | _ACEOF |
| 7730 | rm -f conftest.$ac_objext |
| 7731 | if { (ac_try="$ac_compile" |
| 7732 | case "(($ac_try" in |
| 7733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7734 | *) ac_try_echo=$ac_try;; |
| 7735 | esac |
| 7736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7737 | $as_echo "$ac_try_echo") >&5 |
| 7738 | (eval "$ac_compile") 2>conftest.er1 |
| 7739 | ac_status=$? |
| 7740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7741 | rm -f conftest.er1 |
| 7742 | cat conftest.err >&5 |
| 7743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7744 | (exit $ac_status); } && { |
| 7745 | test -z "$ac_c_werror_flag" || |
| 7746 | test ! -s conftest.err |
| 7747 | } && test -s conftest.$ac_objext; then |
| 7748 | : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7749 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7750 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7752 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7753 | ac_cv_type_size_t=yes |
| 7754 | fi |
| 7755 | |
| 7756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7757 | else |
| 7758 | $as_echo "$as_me: failed program was:" >&5 |
| 7759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7760 | |
| 7761 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7762 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7763 | |
| 7764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7765 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7766 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7767 | $as_echo "$ac_cv_type_size_t" >&6; } |
| 7768 | 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] | 7769 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7770 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7771 | |
| 7772 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7773 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7774 | _ACEOF |
| 7775 | |
| 7776 | fi |
| 7777 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7778 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7779 | $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] | 7780 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7781 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7782 | else |
| 7783 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7784 | /* confdefs.h. */ |
| 7785 | _ACEOF |
| 7786 | cat confdefs.h >>conftest.$ac_ext |
| 7787 | cat >>conftest.$ac_ext <<_ACEOF |
| 7788 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7789 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7790 | |
| 7791 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7792 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7793 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7794 | ac_cv_type_uid_t=yes |
| 7795 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7796 | ac_cv_type_uid_t=no |
| 7797 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7798 | rm -f conftest* |
| 7799 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7800 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7801 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7802 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7803 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7804 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7805 | cat >>confdefs.h <<\_ACEOF |
| 7806 | #define uid_t int |
| 7807 | _ACEOF |
| 7808 | |
| 7809 | |
| 7810 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7811 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7812 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7813 | |
| 7814 | fi |
| 7815 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7816 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7817 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7818 | $as_echo_n "checking for uint32_t... " >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7819 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7820 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7821 | else |
| 7822 | ac_cv_c_uint32_t=no |
| 7823 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7824 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7825 | cat >conftest.$ac_ext <<_ACEOF |
| 7826 | /* confdefs.h. */ |
| 7827 | _ACEOF |
| 7828 | cat confdefs.h >>conftest.$ac_ext |
| 7829 | cat >>conftest.$ac_ext <<_ACEOF |
| 7830 | /* end confdefs.h. */ |
| 7831 | $ac_includes_default |
| 7832 | int |
| 7833 | main () |
| 7834 | { |
| 7835 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7836 | test_array [0] = 0 |
| 7837 | |
| 7838 | ; |
| 7839 | return 0; |
| 7840 | } |
| 7841 | _ACEOF |
| 7842 | rm -f conftest.$ac_objext |
| 7843 | if { (ac_try="$ac_compile" |
| 7844 | case "(($ac_try" in |
| 7845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7846 | *) ac_try_echo=$ac_try;; |
| 7847 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7848 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7849 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7850 | (eval "$ac_compile") 2>conftest.er1 |
| 7851 | ac_status=$? |
| 7852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7853 | rm -f conftest.er1 |
| 7854 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7856 | (exit $ac_status); } && { |
| 7857 | test -z "$ac_c_werror_flag" || |
| 7858 | test ! -s conftest.err |
| 7859 | } && test -s conftest.$ac_objext; then |
| 7860 | case $ac_type in |
| 7861 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7862 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7863 | esac |
| 7864 | |
| 7865 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7866 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7868 | |
| 7869 | |
| 7870 | fi |
| 7871 | |
| 7872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7873 | test "$ac_cv_c_uint32_t" != no && break |
| 7874 | done |
| 7875 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7876 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7877 | $as_echo "$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7878 | case $ac_cv_c_uint32_t in #( |
| 7879 | no|yes) ;; #( |
| 7880 | *) |
| 7881 | |
| 7882 | cat >>confdefs.h <<\_ACEOF |
| 7883 | #define _UINT32_T 1 |
| 7884 | _ACEOF |
| 7885 | |
| 7886 | |
| 7887 | cat >>confdefs.h <<_ACEOF |
| 7888 | #define uint32_t $ac_cv_c_uint32_t |
| 7889 | _ACEOF |
| 7890 | ;; |
| 7891 | esac |
| 7892 | |
| 7893 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7894 | { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7895 | $as_echo_n "checking for uint64_t... " >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7896 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7897 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7898 | else |
| 7899 | ac_cv_c_uint64_t=no |
| 7900 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7901 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7902 | cat >conftest.$ac_ext <<_ACEOF |
| 7903 | /* confdefs.h. */ |
| 7904 | _ACEOF |
| 7905 | cat confdefs.h >>conftest.$ac_ext |
| 7906 | cat >>conftest.$ac_ext <<_ACEOF |
| 7907 | /* end confdefs.h. */ |
| 7908 | $ac_includes_default |
| 7909 | int |
| 7910 | main () |
| 7911 | { |
| 7912 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7913 | test_array [0] = 0 |
| 7914 | |
| 7915 | ; |
| 7916 | return 0; |
| 7917 | } |
| 7918 | _ACEOF |
| 7919 | rm -f conftest.$ac_objext |
| 7920 | if { (ac_try="$ac_compile" |
| 7921 | case "(($ac_try" in |
| 7922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7923 | *) ac_try_echo=$ac_try;; |
| 7924 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7925 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7926 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7927 | (eval "$ac_compile") 2>conftest.er1 |
| 7928 | ac_status=$? |
| 7929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7930 | rm -f conftest.er1 |
| 7931 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7933 | (exit $ac_status); } && { |
| 7934 | test -z "$ac_c_werror_flag" || |
| 7935 | test ! -s conftest.err |
| 7936 | } && test -s conftest.$ac_objext; then |
| 7937 | case $ac_type in |
| 7938 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7939 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7940 | esac |
| 7941 | |
| 7942 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7943 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7945 | |
| 7946 | |
| 7947 | fi |
| 7948 | |
| 7949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7950 | test "$ac_cv_c_uint64_t" != no && break |
| 7951 | done |
| 7952 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7953 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7954 | $as_echo "$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7955 | case $ac_cv_c_uint64_t in #( |
| 7956 | no|yes) ;; #( |
| 7957 | *) |
| 7958 | |
| 7959 | cat >>confdefs.h <<\_ACEOF |
| 7960 | #define _UINT64_T 1 |
| 7961 | _ACEOF |
| 7962 | |
| 7963 | |
| 7964 | cat >>confdefs.h <<_ACEOF |
| 7965 | #define uint64_t $ac_cv_c_uint64_t |
| 7966 | _ACEOF |
| 7967 | ;; |
| 7968 | esac |
| 7969 | |
| 7970 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7971 | { $as_echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7972 | $as_echo_n "checking for int32_t... " >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7973 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 7974 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7975 | else |
| 7976 | ac_cv_c_int32_t=no |
| 7977 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7978 | 'long long int' 'short int' 'signed char'; do |
| 7979 | cat >conftest.$ac_ext <<_ACEOF |
| 7980 | /* confdefs.h. */ |
| 7981 | _ACEOF |
| 7982 | cat confdefs.h >>conftest.$ac_ext |
| 7983 | cat >>conftest.$ac_ext <<_ACEOF |
| 7984 | /* end confdefs.h. */ |
| 7985 | $ac_includes_default |
| 7986 | int |
| 7987 | main () |
| 7988 | { |
| 7989 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7990 | test_array [0] = 0 |
| 7991 | |
| 7992 | ; |
| 7993 | return 0; |
| 7994 | } |
| 7995 | _ACEOF |
| 7996 | rm -f conftest.$ac_objext |
| 7997 | if { (ac_try="$ac_compile" |
| 7998 | case "(($ac_try" in |
| 7999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8000 | *) ac_try_echo=$ac_try;; |
| 8001 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8002 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8003 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8004 | (eval "$ac_compile") 2>conftest.er1 |
| 8005 | ac_status=$? |
| 8006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8007 | rm -f conftest.er1 |
| 8008 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8009 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8010 | (exit $ac_status); } && { |
| 8011 | test -z "$ac_c_werror_flag" || |
| 8012 | test ! -s conftest.err |
| 8013 | } && test -s conftest.$ac_objext; then |
| 8014 | cat >conftest.$ac_ext <<_ACEOF |
| 8015 | /* confdefs.h. */ |
| 8016 | _ACEOF |
| 8017 | cat confdefs.h >>conftest.$ac_ext |
| 8018 | cat >>conftest.$ac_ext <<_ACEOF |
| 8019 | /* end confdefs.h. */ |
| 8020 | $ac_includes_default |
| 8021 | int |
| 8022 | main () |
| 8023 | { |
| 8024 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8025 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8026 | test_array [0] = 0 |
| 8027 | |
| 8028 | ; |
| 8029 | return 0; |
| 8030 | } |
| 8031 | _ACEOF |
| 8032 | rm -f conftest.$ac_objext |
| 8033 | if { (ac_try="$ac_compile" |
| 8034 | case "(($ac_try" in |
| 8035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8036 | *) ac_try_echo=$ac_try;; |
| 8037 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8038 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8039 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8040 | (eval "$ac_compile") 2>conftest.er1 |
| 8041 | ac_status=$? |
| 8042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8043 | rm -f conftest.er1 |
| 8044 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8045 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8046 | (exit $ac_status); } && { |
| 8047 | test -z "$ac_c_werror_flag" || |
| 8048 | test ! -s conftest.err |
| 8049 | } && test -s conftest.$ac_objext; then |
| 8050 | : |
| 8051 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8052 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8054 | |
| 8055 | case $ac_type in |
| 8056 | int32_t) ac_cv_c_int32_t=yes ;; |
| 8057 | *) ac_cv_c_int32_t=$ac_type ;; |
| 8058 | esac |
| 8059 | |
| 8060 | fi |
| 8061 | |
| 8062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8063 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8064 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8066 | |
| 8067 | |
| 8068 | fi |
| 8069 | |
| 8070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8071 | test "$ac_cv_c_int32_t" != no && break |
| 8072 | done |
| 8073 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8074 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 8075 | $as_echo "$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8076 | case $ac_cv_c_int32_t in #( |
| 8077 | no|yes) ;; #( |
| 8078 | *) |
| 8079 | |
| 8080 | cat >>confdefs.h <<_ACEOF |
| 8081 | #define int32_t $ac_cv_c_int32_t |
| 8082 | _ACEOF |
| 8083 | ;; |
| 8084 | esac |
| 8085 | |
| 8086 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8087 | { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 8088 | $as_echo_n "checking for int64_t... " >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8089 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8090 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8091 | else |
| 8092 | ac_cv_c_int64_t=no |
| 8093 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 8094 | 'long long int' 'short int' 'signed char'; do |
| 8095 | cat >conftest.$ac_ext <<_ACEOF |
| 8096 | /* confdefs.h. */ |
| 8097 | _ACEOF |
| 8098 | cat confdefs.h >>conftest.$ac_ext |
| 8099 | cat >>conftest.$ac_ext <<_ACEOF |
| 8100 | /* end confdefs.h. */ |
| 8101 | $ac_includes_default |
| 8102 | int |
| 8103 | main () |
| 8104 | { |
| 8105 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 8106 | test_array [0] = 0 |
| 8107 | |
| 8108 | ; |
| 8109 | return 0; |
| 8110 | } |
| 8111 | _ACEOF |
| 8112 | rm -f conftest.$ac_objext |
| 8113 | if { (ac_try="$ac_compile" |
| 8114 | case "(($ac_try" in |
| 8115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8116 | *) ac_try_echo=$ac_try;; |
| 8117 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8118 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8119 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8120 | (eval "$ac_compile") 2>conftest.er1 |
| 8121 | ac_status=$? |
| 8122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8123 | rm -f conftest.er1 |
| 8124 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8125 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8126 | (exit $ac_status); } && { |
| 8127 | test -z "$ac_c_werror_flag" || |
| 8128 | test ! -s conftest.err |
| 8129 | } && test -s conftest.$ac_objext; then |
| 8130 | cat >conftest.$ac_ext <<_ACEOF |
| 8131 | /* confdefs.h. */ |
| 8132 | _ACEOF |
| 8133 | cat confdefs.h >>conftest.$ac_ext |
| 8134 | cat >>conftest.$ac_ext <<_ACEOF |
| 8135 | /* end confdefs.h. */ |
| 8136 | $ac_includes_default |
| 8137 | int |
| 8138 | main () |
| 8139 | { |
| 8140 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8141 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8142 | test_array [0] = 0 |
| 8143 | |
| 8144 | ; |
| 8145 | return 0; |
| 8146 | } |
| 8147 | _ACEOF |
| 8148 | rm -f conftest.$ac_objext |
| 8149 | if { (ac_try="$ac_compile" |
| 8150 | case "(($ac_try" in |
| 8151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8152 | *) ac_try_echo=$ac_try;; |
| 8153 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8154 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8155 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8156 | (eval "$ac_compile") 2>conftest.er1 |
| 8157 | ac_status=$? |
| 8158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8159 | rm -f conftest.er1 |
| 8160 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8161 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8162 | (exit $ac_status); } && { |
| 8163 | test -z "$ac_c_werror_flag" || |
| 8164 | test ! -s conftest.err |
| 8165 | } && test -s conftest.$ac_objext; then |
| 8166 | : |
| 8167 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8168 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8170 | |
| 8171 | case $ac_type in |
| 8172 | int64_t) ac_cv_c_int64_t=yes ;; |
| 8173 | *) ac_cv_c_int64_t=$ac_type ;; |
| 8174 | esac |
| 8175 | |
| 8176 | fi |
| 8177 | |
| 8178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8179 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8180 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8182 | |
| 8183 | |
| 8184 | fi |
| 8185 | |
| 8186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8187 | test "$ac_cv_c_int64_t" != no && break |
| 8188 | done |
| 8189 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8190 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 8191 | $as_echo "$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 8192 | case $ac_cv_c_int64_t in #( |
| 8193 | no|yes) ;; #( |
| 8194 | *) |
| 8195 | |
| 8196 | cat >>confdefs.h <<_ACEOF |
| 8197 | #define int64_t $ac_cv_c_int64_t |
| 8198 | _ACEOF |
| 8199 | ;; |
| 8200 | esac |
| 8201 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8202 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 8203 | $as_echo_n "checking for ssize_t... " >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8204 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8205 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8206 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8207 | ac_cv_type_ssize_t=no |
| 8208 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 8209 | /* confdefs.h. */ |
| 8210 | _ACEOF |
| 8211 | cat confdefs.h >>conftest.$ac_ext |
| 8212 | cat >>conftest.$ac_ext <<_ACEOF |
| 8213 | /* end confdefs.h. */ |
| 8214 | $ac_includes_default |
| 8215 | int |
| 8216 | main () |
| 8217 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8218 | if (sizeof (ssize_t)) |
| 8219 | return 0; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 8220 | ; |
| 8221 | return 0; |
| 8222 | } |
| 8223 | _ACEOF |
| 8224 | rm -f conftest.$ac_objext |
| 8225 | if { (ac_try="$ac_compile" |
| 8226 | case "(($ac_try" in |
| 8227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8228 | *) ac_try_echo=$ac_try;; |
| 8229 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8230 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8231 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 8232 | (eval "$ac_compile") 2>conftest.er1 |
| 8233 | ac_status=$? |
| 8234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8235 | rm -f conftest.er1 |
| 8236 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8237 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 8238 | (exit $ac_status); } && { |
| 8239 | test -z "$ac_c_werror_flag" || |
| 8240 | test ! -s conftest.err |
| 8241 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8242 | cat >conftest.$ac_ext <<_ACEOF |
| 8243 | /* confdefs.h. */ |
| 8244 | _ACEOF |
| 8245 | cat confdefs.h >>conftest.$ac_ext |
| 8246 | cat >>conftest.$ac_ext <<_ACEOF |
| 8247 | /* end confdefs.h. */ |
| 8248 | $ac_includes_default |
| 8249 | int |
| 8250 | main () |
| 8251 | { |
| 8252 | if (sizeof ((ssize_t))) |
| 8253 | return 0; |
| 8254 | ; |
| 8255 | return 0; |
| 8256 | } |
| 8257 | _ACEOF |
| 8258 | rm -f conftest.$ac_objext |
| 8259 | if { (ac_try="$ac_compile" |
| 8260 | case "(($ac_try" in |
| 8261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8262 | *) ac_try_echo=$ac_try;; |
| 8263 | esac |
| 8264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8265 | $as_echo "$ac_try_echo") >&5 |
| 8266 | (eval "$ac_compile") 2>conftest.er1 |
| 8267 | ac_status=$? |
| 8268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8269 | rm -f conftest.er1 |
| 8270 | cat conftest.err >&5 |
| 8271 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8272 | (exit $ac_status); } && { |
| 8273 | test -z "$ac_c_werror_flag" || |
| 8274 | test ! -s conftest.err |
| 8275 | } && test -s conftest.$ac_objext; then |
| 8276 | : |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8277 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8278 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8280 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8281 | ac_cv_type_ssize_t=yes |
| 8282 | fi |
| 8283 | |
| 8284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8285 | else |
| 8286 | $as_echo "$as_me: failed program was:" >&5 |
| 8287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8288 | |
| 8289 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8290 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8291 | |
| 8292 | 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] | 8293 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8294 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 8295 | $as_echo "$ac_cv_type_ssize_t" >&6; } |
| 8296 | 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] | 8297 | |
| 8298 | cat >>confdefs.h <<\_ACEOF |
| 8299 | #define HAVE_SSIZE_T 1 |
| 8300 | _ACEOF |
| 8301 | |
| 8302 | fi |
| 8303 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8304 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8305 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8306 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8307 | # The cast to long int works around a bug in the HP C Compiler |
| 8308 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8309 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8310 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8311 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
| 8312 | $as_echo_n "checking size of int... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8313 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8314 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8316 | if test "$cross_compiling" = yes; then |
| 8317 | # Depending upon the size, compute the lo and hi bounds. |
| 8318 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8319 | /* confdefs.h. */ |
| 8320 | _ACEOF |
| 8321 | cat confdefs.h >>conftest.$ac_ext |
| 8322 | cat >>conftest.$ac_ext <<_ACEOF |
| 8323 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8325 | int |
| 8326 | main () |
| 8327 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8328 | 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] | 8329 | test_array [0] = 0 |
| 8330 | |
| 8331 | ; |
| 8332 | return 0; |
| 8333 | } |
| 8334 | _ACEOF |
| 8335 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8336 | if { (ac_try="$ac_compile" |
| 8337 | case "(($ac_try" in |
| 8338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8339 | *) ac_try_echo=$ac_try;; |
| 8340 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8341 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8342 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8343 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8344 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8346 | rm -f conftest.er1 |
| 8347 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8348 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8349 | (exit $ac_status); } && { |
| 8350 | test -z "$ac_c_werror_flag" || |
| 8351 | test ! -s conftest.err |
| 8352 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8353 | ac_lo=0 ac_mid=0 |
| 8354 | while :; do |
| 8355 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8356 | /* confdefs.h. */ |
| 8357 | _ACEOF |
| 8358 | cat confdefs.h >>conftest.$ac_ext |
| 8359 | cat >>conftest.$ac_ext <<_ACEOF |
| 8360 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8361 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8362 | int |
| 8363 | main () |
| 8364 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8365 | 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] | 8366 | test_array [0] = 0 |
| 8367 | |
| 8368 | ; |
| 8369 | return 0; |
| 8370 | } |
| 8371 | _ACEOF |
| 8372 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8373 | if { (ac_try="$ac_compile" |
| 8374 | case "(($ac_try" in |
| 8375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8376 | *) ac_try_echo=$ac_try;; |
| 8377 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8379 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8380 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8381 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8383 | rm -f conftest.er1 |
| 8384 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8386 | (exit $ac_status); } && { |
| 8387 | test -z "$ac_c_werror_flag" || |
| 8388 | test ! -s conftest.err |
| 8389 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 | ac_hi=$ac_mid; break |
| 8391 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8392 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8394 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8395 | ac_lo=`expr $ac_mid + 1` |
| 8396 | if test $ac_lo -le $ac_mid; then |
| 8397 | ac_lo= ac_hi= |
| 8398 | break |
| 8399 | fi |
| 8400 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8401 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8402 | |
| 8403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8404 | done |
| 8405 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8406 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8408 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8409 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8410 | /* confdefs.h. */ |
| 8411 | _ACEOF |
| 8412 | cat confdefs.h >>conftest.$ac_ext |
| 8413 | cat >>conftest.$ac_ext <<_ACEOF |
| 8414 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | int |
| 8417 | main () |
| 8418 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8419 | 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] | 8420 | test_array [0] = 0 |
| 8421 | |
| 8422 | ; |
| 8423 | return 0; |
| 8424 | } |
| 8425 | _ACEOF |
| 8426 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8427 | if { (ac_try="$ac_compile" |
| 8428 | case "(($ac_try" in |
| 8429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8430 | *) ac_try_echo=$ac_try;; |
| 8431 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8432 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8433 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8434 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8435 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8437 | rm -f conftest.er1 |
| 8438 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8439 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8440 | (exit $ac_status); } && { |
| 8441 | test -z "$ac_c_werror_flag" || |
| 8442 | test ! -s conftest.err |
| 8443 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8444 | ac_hi=-1 ac_mid=-1 |
| 8445 | while :; do |
| 8446 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8447 | /* confdefs.h. */ |
| 8448 | _ACEOF |
| 8449 | cat confdefs.h >>conftest.$ac_ext |
| 8450 | cat >>conftest.$ac_ext <<_ACEOF |
| 8451 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8452 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8453 | int |
| 8454 | main () |
| 8455 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8456 | 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] | 8457 | test_array [0] = 0 |
| 8458 | |
| 8459 | ; |
| 8460 | return 0; |
| 8461 | } |
| 8462 | _ACEOF |
| 8463 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8464 | if { (ac_try="$ac_compile" |
| 8465 | case "(($ac_try" in |
| 8466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8467 | *) ac_try_echo=$ac_try;; |
| 8468 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8469 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8470 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8471 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8472 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8474 | rm -f conftest.er1 |
| 8475 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8477 | (exit $ac_status); } && { |
| 8478 | test -z "$ac_c_werror_flag" || |
| 8479 | test ! -s conftest.err |
| 8480 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | ac_lo=$ac_mid; break |
| 8482 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8483 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8486 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8487 | if test $ac_mid -le $ac_hi; then |
| 8488 | ac_lo= ac_hi= |
| 8489 | break |
| 8490 | fi |
| 8491 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8492 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8493 | |
| 8494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8495 | done |
| 8496 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8497 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8499 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8500 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8501 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8502 | |
| 8503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8504 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8505 | |
| 8506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | # Binary search between lo and hi bounds. |
| 8508 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8509 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8510 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8511 | /* confdefs.h. */ |
| 8512 | _ACEOF |
| 8513 | cat confdefs.h >>conftest.$ac_ext |
| 8514 | cat >>conftest.$ac_ext <<_ACEOF |
| 8515 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8516 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8517 | int |
| 8518 | main () |
| 8519 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8520 | 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] | 8521 | test_array [0] = 0 |
| 8522 | |
| 8523 | ; |
| 8524 | return 0; |
| 8525 | } |
| 8526 | _ACEOF |
| 8527 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8528 | if { (ac_try="$ac_compile" |
| 8529 | case "(($ac_try" in |
| 8530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8531 | *) ac_try_echo=$ac_try;; |
| 8532 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8533 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8534 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8535 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8536 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8538 | rm -f conftest.er1 |
| 8539 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8540 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8541 | (exit $ac_status); } && { |
| 8542 | test -z "$ac_c_werror_flag" || |
| 8543 | test ! -s conftest.err |
| 8544 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8545 | ac_hi=$ac_mid |
| 8546 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8547 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8549 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8550 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8551 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8552 | |
| 8553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | done |
| 8555 | case $ac_lo in |
| 8556 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8557 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8558 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8559 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8560 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8561 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8562 | $as_echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8563 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8564 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8565 | else |
| 8566 | ac_cv_sizeof_int=0 |
| 8567 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8568 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8569 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8571 | /* confdefs.h. */ |
| 8572 | _ACEOF |
| 8573 | cat confdefs.h >>conftest.$ac_ext |
| 8574 | cat >>conftest.$ac_ext <<_ACEOF |
| 8575 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8577 | static long int longval () { return (long int) (sizeof (int)); } |
| 8578 | static unsigned long int ulongval () { return (long int) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8579 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8581 | int |
| 8582 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8583 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8584 | |
| 8585 | FILE *f = fopen ("conftest.val", "w"); |
| 8586 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8587 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8588 | if (((long int) (sizeof (int))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8589 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8590 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8591 | if (i != ((long int) (sizeof (int)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8592 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8593 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8594 | } |
| 8595 | else |
| 8596 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8597 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8598 | if (i != ((long int) (sizeof (int)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8599 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8600 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8601 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8602 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8603 | on some platforms. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8604 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | |
| 8606 | ; |
| 8607 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8608 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8609 | _ACEOF |
| 8610 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8611 | if { (ac_try="$ac_link" |
| 8612 | case "(($ac_try" in |
| 8613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8614 | *) ac_try_echo=$ac_try;; |
| 8615 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8616 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8617 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8618 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8619 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8620 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8621 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8622 | { (case "(($ac_try" in |
| 8623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8624 | *) ac_try_echo=$ac_try;; |
| 8625 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8627 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8628 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8629 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8630 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8631 | (exit $ac_status); }; }; then |
| 8632 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8633 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8634 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 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 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8638 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8639 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8640 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8641 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8642 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8643 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8644 | $as_echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8645 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8646 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8647 | else |
| 8648 | ac_cv_sizeof_int=0 |
| 8649 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8650 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8651 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8652 | 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] | 8653 | fi |
| 8654 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8655 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8656 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 8657 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8658 | |
| 8659 | |
| 8660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8662 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8663 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8664 | |
| 8665 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8666 | # The cast to long int works around a bug in the HP C Compiler |
| 8667 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8668 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8669 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8670 | { $as_echo "$as_me:$LINENO: checking size of long" >&5 |
| 8671 | $as_echo_n "checking size of long... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8673 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8674 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8675 | if test "$cross_compiling" = yes; then |
| 8676 | # Depending upon the size, compute the lo and hi bounds. |
| 8677 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8678 | /* confdefs.h. */ |
| 8679 | _ACEOF |
| 8680 | cat confdefs.h >>conftest.$ac_ext |
| 8681 | cat >>conftest.$ac_ext <<_ACEOF |
| 8682 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8683 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8684 | int |
| 8685 | main () |
| 8686 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8687 | 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] | 8688 | test_array [0] = 0 |
| 8689 | |
| 8690 | ; |
| 8691 | return 0; |
| 8692 | } |
| 8693 | _ACEOF |
| 8694 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8695 | if { (ac_try="$ac_compile" |
| 8696 | case "(($ac_try" in |
| 8697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8698 | *) ac_try_echo=$ac_try;; |
| 8699 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8700 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8701 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8702 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8703 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8705 | rm -f conftest.er1 |
| 8706 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8708 | (exit $ac_status); } && { |
| 8709 | test -z "$ac_c_werror_flag" || |
| 8710 | test ! -s conftest.err |
| 8711 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8712 | ac_lo=0 ac_mid=0 |
| 8713 | while :; do |
| 8714 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8715 | /* confdefs.h. */ |
| 8716 | _ACEOF |
| 8717 | cat confdefs.h >>conftest.$ac_ext |
| 8718 | cat >>conftest.$ac_ext <<_ACEOF |
| 8719 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8720 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8721 | int |
| 8722 | main () |
| 8723 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8724 | 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] | 8725 | test_array [0] = 0 |
| 8726 | |
| 8727 | ; |
| 8728 | return 0; |
| 8729 | } |
| 8730 | _ACEOF |
| 8731 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8732 | if { (ac_try="$ac_compile" |
| 8733 | case "(($ac_try" in |
| 8734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8735 | *) ac_try_echo=$ac_try;; |
| 8736 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8738 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8739 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8740 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8742 | rm -f conftest.er1 |
| 8743 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8744 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8745 | (exit $ac_status); } && { |
| 8746 | test -z "$ac_c_werror_flag" || |
| 8747 | test ! -s conftest.err |
| 8748 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8749 | ac_hi=$ac_mid; break |
| 8750 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8751 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8753 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8754 | ac_lo=`expr $ac_mid + 1` |
| 8755 | if test $ac_lo -le $ac_mid; then |
| 8756 | ac_lo= ac_hi= |
| 8757 | break |
| 8758 | fi |
| 8759 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8760 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8761 | |
| 8762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8763 | done |
| 8764 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8765 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8767 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8769 | /* confdefs.h. */ |
| 8770 | _ACEOF |
| 8771 | cat confdefs.h >>conftest.$ac_ext |
| 8772 | cat >>conftest.$ac_ext <<_ACEOF |
| 8773 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8775 | int |
| 8776 | main () |
| 8777 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8778 | 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] | 8779 | test_array [0] = 0 |
| 8780 | |
| 8781 | ; |
| 8782 | return 0; |
| 8783 | } |
| 8784 | _ACEOF |
| 8785 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8786 | if { (ac_try="$ac_compile" |
| 8787 | case "(($ac_try" in |
| 8788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8789 | *) ac_try_echo=$ac_try;; |
| 8790 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8791 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8792 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8793 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8794 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8796 | rm -f conftest.er1 |
| 8797 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8799 | (exit $ac_status); } && { |
| 8800 | test -z "$ac_c_werror_flag" || |
| 8801 | test ! -s conftest.err |
| 8802 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8803 | ac_hi=-1 ac_mid=-1 |
| 8804 | while :; do |
| 8805 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8806 | /* confdefs.h. */ |
| 8807 | _ACEOF |
| 8808 | cat confdefs.h >>conftest.$ac_ext |
| 8809 | cat >>conftest.$ac_ext <<_ACEOF |
| 8810 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8811 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8812 | int |
| 8813 | main () |
| 8814 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8815 | 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] | 8816 | test_array [0] = 0 |
| 8817 | |
| 8818 | ; |
| 8819 | return 0; |
| 8820 | } |
| 8821 | _ACEOF |
| 8822 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8823 | if { (ac_try="$ac_compile" |
| 8824 | case "(($ac_try" in |
| 8825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8826 | *) ac_try_echo=$ac_try;; |
| 8827 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8828 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8829 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8830 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8831 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8833 | rm -f conftest.er1 |
| 8834 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8836 | (exit $ac_status); } && { |
| 8837 | test -z "$ac_c_werror_flag" || |
| 8838 | test ! -s conftest.err |
| 8839 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8840 | ac_lo=$ac_mid; break |
| 8841 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8842 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8845 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8846 | if test $ac_mid -le $ac_hi; then |
| 8847 | ac_lo= ac_hi= |
| 8848 | break |
| 8849 | fi |
| 8850 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8851 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8852 | |
| 8853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8854 | done |
| 8855 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8856 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8858 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8859 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8860 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8861 | |
| 8862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8863 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8864 | |
| 8865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8866 | # Binary search between lo and hi bounds. |
| 8867 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8868 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8869 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8870 | /* confdefs.h. */ |
| 8871 | _ACEOF |
| 8872 | cat confdefs.h >>conftest.$ac_ext |
| 8873 | cat >>conftest.$ac_ext <<_ACEOF |
| 8874 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8875 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | int |
| 8877 | main () |
| 8878 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8879 | 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] | 8880 | test_array [0] = 0 |
| 8881 | |
| 8882 | ; |
| 8883 | return 0; |
| 8884 | } |
| 8885 | _ACEOF |
| 8886 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8887 | if { (ac_try="$ac_compile" |
| 8888 | case "(($ac_try" in |
| 8889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8890 | *) ac_try_echo=$ac_try;; |
| 8891 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8892 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8893 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8894 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8895 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8897 | rm -f conftest.er1 |
| 8898 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8899 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8900 | (exit $ac_status); } && { |
| 8901 | test -z "$ac_c_werror_flag" || |
| 8902 | test ! -s conftest.err |
| 8903 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8904 | ac_hi=$ac_mid |
| 8905 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8906 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8908 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8909 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8910 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8911 | |
| 8912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8913 | done |
| 8914 | case $ac_lo in |
| 8915 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8916 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8917 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8918 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8919 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8920 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8921 | $as_echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8922 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8923 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8924 | else |
| 8925 | ac_cv_sizeof_long=0 |
| 8926 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8929 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8930 | /* confdefs.h. */ |
| 8931 | _ACEOF |
| 8932 | cat confdefs.h >>conftest.$ac_ext |
| 8933 | cat >>conftest.$ac_ext <<_ACEOF |
| 8934 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8935 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8936 | static long int longval () { return (long int) (sizeof (long)); } |
| 8937 | static unsigned long int ulongval () { return (long int) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8938 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8939 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8940 | int |
| 8941 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8942 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8943 | |
| 8944 | FILE *f = fopen ("conftest.val", "w"); |
| 8945 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8946 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8947 | if (((long int) (sizeof (long))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8948 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8949 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8950 | if (i != ((long int) (sizeof (long)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8951 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8952 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8953 | } |
| 8954 | else |
| 8955 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8956 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8957 | if (i != ((long int) (sizeof (long)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8958 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8959 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8960 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8961 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8962 | on some platforms. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8963 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | |
| 8965 | ; |
| 8966 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8967 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8968 | _ACEOF |
| 8969 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8970 | if { (ac_try="$ac_link" |
| 8971 | case "(($ac_try" in |
| 8972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8973 | *) ac_try_echo=$ac_try;; |
| 8974 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8975 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8976 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8977 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8978 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8980 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8981 | { (case "(($ac_try" in |
| 8982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8983 | *) ac_try_echo=$ac_try;; |
| 8984 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8986 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8987 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8988 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8990 | (exit $ac_status); }; }; then |
| 8991 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8992 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8993 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 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 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8997 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8998 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 8999 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9000 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9001 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9002 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9003 | $as_echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9004 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9005 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9006 | else |
| 9007 | ac_cv_sizeof_long=0 |
| 9008 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9009 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9010 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9011 | 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] | 9012 | fi |
| 9013 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9014 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9015 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 9016 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9017 | |
| 9018 | |
| 9019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9020 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9021 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9023 | |
| 9024 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9025 | # The cast to long int works around a bug in the HP C Compiler |
| 9026 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9027 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9028 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9029 | { $as_echo "$as_me:$LINENO: checking size of void *" >&5 |
| 9030 | $as_echo_n "checking size of void *... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9031 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9032 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9033 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9034 | if test "$cross_compiling" = yes; then |
| 9035 | # Depending upon the size, compute the lo and hi bounds. |
| 9036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9037 | /* confdefs.h. */ |
| 9038 | _ACEOF |
| 9039 | cat confdefs.h >>conftest.$ac_ext |
| 9040 | cat >>conftest.$ac_ext <<_ACEOF |
| 9041 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9042 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9043 | int |
| 9044 | main () |
| 9045 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9046 | 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] | 9047 | test_array [0] = 0 |
| 9048 | |
| 9049 | ; |
| 9050 | return 0; |
| 9051 | } |
| 9052 | _ACEOF |
| 9053 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9054 | if { (ac_try="$ac_compile" |
| 9055 | case "(($ac_try" in |
| 9056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9057 | *) ac_try_echo=$ac_try;; |
| 9058 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9059 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9060 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9061 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9062 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9064 | rm -f conftest.er1 |
| 9065 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9067 | (exit $ac_status); } && { |
| 9068 | test -z "$ac_c_werror_flag" || |
| 9069 | test ! -s conftest.err |
| 9070 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9071 | ac_lo=0 ac_mid=0 |
| 9072 | while :; do |
| 9073 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9074 | /* confdefs.h. */ |
| 9075 | _ACEOF |
| 9076 | cat confdefs.h >>conftest.$ac_ext |
| 9077 | cat >>conftest.$ac_ext <<_ACEOF |
| 9078 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9079 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9080 | int |
| 9081 | main () |
| 9082 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9083 | 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] | 9084 | test_array [0] = 0 |
| 9085 | |
| 9086 | ; |
| 9087 | return 0; |
| 9088 | } |
| 9089 | _ACEOF |
| 9090 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9091 | if { (ac_try="$ac_compile" |
| 9092 | case "(($ac_try" in |
| 9093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9094 | *) ac_try_echo=$ac_try;; |
| 9095 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9097 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9098 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9099 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9101 | rm -f conftest.er1 |
| 9102 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9103 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9104 | (exit $ac_status); } && { |
| 9105 | test -z "$ac_c_werror_flag" || |
| 9106 | test ! -s conftest.err |
| 9107 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9108 | ac_hi=$ac_mid; break |
| 9109 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9110 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9112 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9113 | ac_lo=`expr $ac_mid + 1` |
| 9114 | if test $ac_lo -le $ac_mid; then |
| 9115 | ac_lo= ac_hi= |
| 9116 | break |
| 9117 | fi |
| 9118 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9119 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9120 | |
| 9121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9122 | done |
| 9123 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9124 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9126 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9127 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9128 | /* confdefs.h. */ |
| 9129 | _ACEOF |
| 9130 | cat confdefs.h >>conftest.$ac_ext |
| 9131 | cat >>conftest.$ac_ext <<_ACEOF |
| 9132 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9133 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9134 | int |
| 9135 | main () |
| 9136 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9137 | 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] | 9138 | test_array [0] = 0 |
| 9139 | |
| 9140 | ; |
| 9141 | return 0; |
| 9142 | } |
| 9143 | _ACEOF |
| 9144 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9145 | if { (ac_try="$ac_compile" |
| 9146 | case "(($ac_try" in |
| 9147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9148 | *) ac_try_echo=$ac_try;; |
| 9149 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9150 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9151 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9152 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9153 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9155 | rm -f conftest.er1 |
| 9156 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9157 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9158 | (exit $ac_status); } && { |
| 9159 | test -z "$ac_c_werror_flag" || |
| 9160 | test ! -s conftest.err |
| 9161 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9162 | ac_hi=-1 ac_mid=-1 |
| 9163 | while :; do |
| 9164 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9165 | /* confdefs.h. */ |
| 9166 | _ACEOF |
| 9167 | cat confdefs.h >>conftest.$ac_ext |
| 9168 | cat >>conftest.$ac_ext <<_ACEOF |
| 9169 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9170 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9171 | int |
| 9172 | main () |
| 9173 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9174 | 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] | 9175 | test_array [0] = 0 |
| 9176 | |
| 9177 | ; |
| 9178 | return 0; |
| 9179 | } |
| 9180 | _ACEOF |
| 9181 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9182 | if { (ac_try="$ac_compile" |
| 9183 | case "(($ac_try" in |
| 9184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9185 | *) ac_try_echo=$ac_try;; |
| 9186 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9187 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9188 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9189 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9192 | rm -f conftest.er1 |
| 9193 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9194 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9195 | (exit $ac_status); } && { |
| 9196 | test -z "$ac_c_werror_flag" || |
| 9197 | test ! -s conftest.err |
| 9198 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9199 | ac_lo=$ac_mid; break |
| 9200 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9201 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9203 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9204 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9205 | if test $ac_mid -le $ac_hi; then |
| 9206 | ac_lo= ac_hi= |
| 9207 | break |
| 9208 | fi |
| 9209 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9210 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9211 | |
| 9212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9213 | done |
| 9214 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9215 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9217 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9218 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9220 | |
| 9221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9222 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9223 | |
| 9224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9225 | # Binary search between lo and hi bounds. |
| 9226 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9227 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9228 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9229 | /* confdefs.h. */ |
| 9230 | _ACEOF |
| 9231 | cat confdefs.h >>conftest.$ac_ext |
| 9232 | cat >>conftest.$ac_ext <<_ACEOF |
| 9233 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9234 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9235 | int |
| 9236 | main () |
| 9237 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9238 | 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] | 9239 | test_array [0] = 0 |
| 9240 | |
| 9241 | ; |
| 9242 | return 0; |
| 9243 | } |
| 9244 | _ACEOF |
| 9245 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9246 | if { (ac_try="$ac_compile" |
| 9247 | case "(($ac_try" in |
| 9248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9249 | *) ac_try_echo=$ac_try;; |
| 9250 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9251 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9252 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9253 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9254 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9256 | rm -f conftest.er1 |
| 9257 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9258 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9259 | (exit $ac_status); } && { |
| 9260 | test -z "$ac_c_werror_flag" || |
| 9261 | test ! -s conftest.err |
| 9262 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9263 | ac_hi=$ac_mid |
| 9264 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9265 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9267 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9268 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9269 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9270 | |
| 9271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9272 | done |
| 9273 | case $ac_lo in |
| 9274 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9275 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9276 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9277 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9278 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9279 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9280 | $as_echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9281 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9282 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9283 | else |
| 9284 | ac_cv_sizeof_void_p=0 |
| 9285 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9286 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9287 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9288 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9289 | /* confdefs.h. */ |
| 9290 | _ACEOF |
| 9291 | cat confdefs.h >>conftest.$ac_ext |
| 9292 | cat >>conftest.$ac_ext <<_ACEOF |
| 9293 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9294 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9295 | static long int longval () { return (long int) (sizeof (void *)); } |
| 9296 | static unsigned long int ulongval () { return (long int) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9297 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9298 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9299 | int |
| 9300 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9301 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9302 | |
| 9303 | FILE *f = fopen ("conftest.val", "w"); |
| 9304 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9305 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9306 | if (((long int) (sizeof (void *))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9307 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9308 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9309 | if (i != ((long int) (sizeof (void *)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9310 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9311 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9312 | } |
| 9313 | else |
| 9314 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9315 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9316 | if (i != ((long int) (sizeof (void *)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9317 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9318 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9319 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9320 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 9321 | on some platforms. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9322 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9323 | |
| 9324 | ; |
| 9325 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9326 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9327 | _ACEOF |
| 9328 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9329 | if { (ac_try="$ac_link" |
| 9330 | case "(($ac_try" in |
| 9331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9332 | *) ac_try_echo=$ac_try;; |
| 9333 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9334 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9335 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9336 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9337 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9338 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9339 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9340 | { (case "(($ac_try" in |
| 9341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9342 | *) ac_try_echo=$ac_try;; |
| 9343 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9344 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9345 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9346 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9347 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9348 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9349 | (exit $ac_status); }; }; then |
| 9350 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9351 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9352 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 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 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9356 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9357 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9358 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9359 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9360 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9361 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9362 | $as_echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9363 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9364 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9365 | else |
| 9366 | ac_cv_sizeof_void_p=0 |
| 9367 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9368 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9369 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9370 | 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] | 9371 | fi |
| 9372 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9373 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9374 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 9375 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9376 | |
| 9377 | |
| 9378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9379 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9380 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9382 | |
| 9383 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9384 | # The cast to long int works around a bug in the HP C Compiler |
| 9385 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9386 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9387 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9388 | { $as_echo "$as_me:$LINENO: checking size of short" >&5 |
| 9389 | $as_echo_n "checking size of short... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9390 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9391 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9393 | if test "$cross_compiling" = yes; then |
| 9394 | # Depending upon the size, compute the lo and hi bounds. |
| 9395 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9396 | /* confdefs.h. */ |
| 9397 | _ACEOF |
| 9398 | cat confdefs.h >>conftest.$ac_ext |
| 9399 | cat >>conftest.$ac_ext <<_ACEOF |
| 9400 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9401 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9402 | int |
| 9403 | main () |
| 9404 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9405 | 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] | 9406 | test_array [0] = 0 |
| 9407 | |
| 9408 | ; |
| 9409 | return 0; |
| 9410 | } |
| 9411 | _ACEOF |
| 9412 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9413 | if { (ac_try="$ac_compile" |
| 9414 | case "(($ac_try" in |
| 9415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9416 | *) ac_try_echo=$ac_try;; |
| 9417 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9418 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9419 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9420 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9421 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9423 | rm -f conftest.er1 |
| 9424 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9425 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9426 | (exit $ac_status); } && { |
| 9427 | test -z "$ac_c_werror_flag" || |
| 9428 | test ! -s conftest.err |
| 9429 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9430 | ac_lo=0 ac_mid=0 |
| 9431 | while :; do |
| 9432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9433 | /* confdefs.h. */ |
| 9434 | _ACEOF |
| 9435 | cat confdefs.h >>conftest.$ac_ext |
| 9436 | cat >>conftest.$ac_ext <<_ACEOF |
| 9437 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9438 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | int |
| 9440 | main () |
| 9441 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9442 | 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] | 9443 | test_array [0] = 0 |
| 9444 | |
| 9445 | ; |
| 9446 | return 0; |
| 9447 | } |
| 9448 | _ACEOF |
| 9449 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9450 | if { (ac_try="$ac_compile" |
| 9451 | case "(($ac_try" in |
| 9452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9453 | *) ac_try_echo=$ac_try;; |
| 9454 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9455 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9456 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9457 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9458 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9460 | rm -f conftest.er1 |
| 9461 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9463 | (exit $ac_status); } && { |
| 9464 | test -z "$ac_c_werror_flag" || |
| 9465 | test ! -s conftest.err |
| 9466 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9467 | ac_hi=$ac_mid; break |
| 9468 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9469 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9471 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9472 | ac_lo=`expr $ac_mid + 1` |
| 9473 | if test $ac_lo -le $ac_mid; then |
| 9474 | ac_lo= ac_hi= |
| 9475 | break |
| 9476 | fi |
| 9477 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9478 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9479 | |
| 9480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9481 | done |
| 9482 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9483 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9486 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9487 | /* confdefs.h. */ |
| 9488 | _ACEOF |
| 9489 | cat confdefs.h >>conftest.$ac_ext |
| 9490 | cat >>conftest.$ac_ext <<_ACEOF |
| 9491 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9492 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9493 | int |
| 9494 | main () |
| 9495 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9496 | 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] | 9497 | test_array [0] = 0 |
| 9498 | |
| 9499 | ; |
| 9500 | return 0; |
| 9501 | } |
| 9502 | _ACEOF |
| 9503 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9504 | if { (ac_try="$ac_compile" |
| 9505 | case "(($ac_try" in |
| 9506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9507 | *) ac_try_echo=$ac_try;; |
| 9508 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9509 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9510 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9511 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9512 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9514 | rm -f conftest.er1 |
| 9515 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9516 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9517 | (exit $ac_status); } && { |
| 9518 | test -z "$ac_c_werror_flag" || |
| 9519 | test ! -s conftest.err |
| 9520 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 | ac_hi=-1 ac_mid=-1 |
| 9522 | while :; do |
| 9523 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9524 | /* confdefs.h. */ |
| 9525 | _ACEOF |
| 9526 | cat confdefs.h >>conftest.$ac_ext |
| 9527 | cat >>conftest.$ac_ext <<_ACEOF |
| 9528 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9529 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9530 | int |
| 9531 | main () |
| 9532 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9533 | 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] | 9534 | test_array [0] = 0 |
| 9535 | |
| 9536 | ; |
| 9537 | return 0; |
| 9538 | } |
| 9539 | _ACEOF |
| 9540 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9541 | if { (ac_try="$ac_compile" |
| 9542 | case "(($ac_try" in |
| 9543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9544 | *) ac_try_echo=$ac_try;; |
| 9545 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9546 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9547 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9548 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9549 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9551 | rm -f conftest.er1 |
| 9552 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9554 | (exit $ac_status); } && { |
| 9555 | test -z "$ac_c_werror_flag" || |
| 9556 | test ! -s conftest.err |
| 9557 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9558 | ac_lo=$ac_mid; break |
| 9559 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9560 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9562 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9563 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9564 | if test $ac_mid -le $ac_hi; then |
| 9565 | ac_lo= ac_hi= |
| 9566 | break |
| 9567 | fi |
| 9568 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9569 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9570 | |
| 9571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9572 | done |
| 9573 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9574 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9576 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9577 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9578 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9579 | |
| 9580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9581 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9582 | |
| 9583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9584 | # Binary search between lo and hi bounds. |
| 9585 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9586 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9587 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9588 | /* confdefs.h. */ |
| 9589 | _ACEOF |
| 9590 | cat confdefs.h >>conftest.$ac_ext |
| 9591 | cat >>conftest.$ac_ext <<_ACEOF |
| 9592 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9594 | int |
| 9595 | main () |
| 9596 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9597 | 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] | 9598 | test_array [0] = 0 |
| 9599 | |
| 9600 | ; |
| 9601 | return 0; |
| 9602 | } |
| 9603 | _ACEOF |
| 9604 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9605 | if { (ac_try="$ac_compile" |
| 9606 | case "(($ac_try" in |
| 9607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9608 | *) ac_try_echo=$ac_try;; |
| 9609 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9611 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9612 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9615 | rm -f conftest.er1 |
| 9616 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9618 | (exit $ac_status); } && { |
| 9619 | test -z "$ac_c_werror_flag" || |
| 9620 | test ! -s conftest.err |
| 9621 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9622 | ac_hi=$ac_mid |
| 9623 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9624 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9626 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9627 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9628 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9629 | |
| 9630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9631 | done |
| 9632 | case $ac_lo in |
| 9633 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9634 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9635 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9636 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9637 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9638 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9639 | $as_echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9640 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9641 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9642 | else |
| 9643 | ac_cv_sizeof_short=0 |
| 9644 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9645 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9647 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9648 | /* confdefs.h. */ |
| 9649 | _ACEOF |
| 9650 | cat confdefs.h >>conftest.$ac_ext |
| 9651 | cat >>conftest.$ac_ext <<_ACEOF |
| 9652 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9653 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9654 | static long int longval () { return (long int) (sizeof (short)); } |
| 9655 | static unsigned long int ulongval () { return (long int) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9656 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9657 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9658 | int |
| 9659 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9660 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9661 | |
| 9662 | FILE *f = fopen ("conftest.val", "w"); |
| 9663 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9664 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9665 | if (((long int) (sizeof (short))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9666 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9667 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9668 | if (i != ((long int) (sizeof (short)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9669 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9670 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9671 | } |
| 9672 | else |
| 9673 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9674 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9675 | if (i != ((long int) (sizeof (short)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9676 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9677 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9678 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9679 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 9680 | on some platforms. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9681 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 | |
| 9683 | ; |
| 9684 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9685 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9686 | _ACEOF |
| 9687 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9688 | if { (ac_try="$ac_link" |
| 9689 | case "(($ac_try" in |
| 9690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9691 | *) ac_try_echo=$ac_try;; |
| 9692 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9693 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9694 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9695 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9696 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9697 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9698 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9699 | { (case "(($ac_try" in |
| 9700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9701 | *) ac_try_echo=$ac_try;; |
| 9702 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9704 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9705 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9706 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9708 | (exit $ac_status); }; }; then |
| 9709 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9710 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9711 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 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 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9716 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9717 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9718 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9719 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9720 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9721 | $as_echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9722 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9723 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9724 | else |
| 9725 | ac_cv_sizeof_short=0 |
| 9726 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9727 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9728 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9729 | 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] | 9730 | fi |
| 9731 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9732 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9733 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9734 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9735 | |
| 9736 | |
| 9737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9738 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9739 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9740 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9741 | |
| 9742 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9743 | # The cast to long int works around a bug in the HP C Compiler |
| 9744 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9745 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9746 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9747 | { $as_echo "$as_me:$LINENO: checking size of float" >&5 |
| 9748 | $as_echo_n "checking size of float... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9750 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9752 | if test "$cross_compiling" = yes; then |
| 9753 | # Depending upon the size, compute the lo and hi bounds. |
| 9754 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9755 | /* confdefs.h. */ |
| 9756 | _ACEOF |
| 9757 | cat confdefs.h >>conftest.$ac_ext |
| 9758 | cat >>conftest.$ac_ext <<_ACEOF |
| 9759 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9760 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 | int |
| 9762 | main () |
| 9763 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9764 | 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] | 9765 | test_array [0] = 0 |
| 9766 | |
| 9767 | ; |
| 9768 | return 0; |
| 9769 | } |
| 9770 | _ACEOF |
| 9771 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9772 | if { (ac_try="$ac_compile" |
| 9773 | case "(($ac_try" in |
| 9774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9775 | *) ac_try_echo=$ac_try;; |
| 9776 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9777 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9778 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9779 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9780 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9782 | rm -f conftest.er1 |
| 9783 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9784 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9785 | (exit $ac_status); } && { |
| 9786 | test -z "$ac_c_werror_flag" || |
| 9787 | test ! -s conftest.err |
| 9788 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9789 | ac_lo=0 ac_mid=0 |
| 9790 | while :; do |
| 9791 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9792 | /* confdefs.h. */ |
| 9793 | _ACEOF |
| 9794 | cat confdefs.h >>conftest.$ac_ext |
| 9795 | cat >>conftest.$ac_ext <<_ACEOF |
| 9796 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9797 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9798 | int |
| 9799 | main () |
| 9800 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9801 | 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] | 9802 | test_array [0] = 0 |
| 9803 | |
| 9804 | ; |
| 9805 | return 0; |
| 9806 | } |
| 9807 | _ACEOF |
| 9808 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9809 | if { (ac_try="$ac_compile" |
| 9810 | case "(($ac_try" in |
| 9811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9812 | *) ac_try_echo=$ac_try;; |
| 9813 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9814 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9815 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9816 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9817 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9819 | rm -f conftest.er1 |
| 9820 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9821 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9822 | (exit $ac_status); } && { |
| 9823 | test -z "$ac_c_werror_flag" || |
| 9824 | test ! -s conftest.err |
| 9825 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9826 | ac_hi=$ac_mid; break |
| 9827 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9828 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9830 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9831 | ac_lo=`expr $ac_mid + 1` |
| 9832 | if test $ac_lo -le $ac_mid; then |
| 9833 | ac_lo= ac_hi= |
| 9834 | break |
| 9835 | fi |
| 9836 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9837 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9838 | |
| 9839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9840 | done |
| 9841 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9842 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9845 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9846 | /* confdefs.h. */ |
| 9847 | _ACEOF |
| 9848 | cat confdefs.h >>conftest.$ac_ext |
| 9849 | cat >>conftest.$ac_ext <<_ACEOF |
| 9850 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9851 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9852 | int |
| 9853 | main () |
| 9854 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9855 | 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] | 9856 | test_array [0] = 0 |
| 9857 | |
| 9858 | ; |
| 9859 | return 0; |
| 9860 | } |
| 9861 | _ACEOF |
| 9862 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9863 | if { (ac_try="$ac_compile" |
| 9864 | case "(($ac_try" in |
| 9865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9866 | *) ac_try_echo=$ac_try;; |
| 9867 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9869 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9870 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9871 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9873 | rm -f conftest.er1 |
| 9874 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9876 | (exit $ac_status); } && { |
| 9877 | test -z "$ac_c_werror_flag" || |
| 9878 | test ! -s conftest.err |
| 9879 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9880 | ac_hi=-1 ac_mid=-1 |
| 9881 | while :; do |
| 9882 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9883 | /* confdefs.h. */ |
| 9884 | _ACEOF |
| 9885 | cat confdefs.h >>conftest.$ac_ext |
| 9886 | cat >>conftest.$ac_ext <<_ACEOF |
| 9887 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9888 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9889 | int |
| 9890 | main () |
| 9891 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9892 | 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] | 9893 | test_array [0] = 0 |
| 9894 | |
| 9895 | ; |
| 9896 | return 0; |
| 9897 | } |
| 9898 | _ACEOF |
| 9899 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9900 | if { (ac_try="$ac_compile" |
| 9901 | case "(($ac_try" in |
| 9902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9903 | *) ac_try_echo=$ac_try;; |
| 9904 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9905 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9906 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9907 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9908 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9910 | rm -f conftest.er1 |
| 9911 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9913 | (exit $ac_status); } && { |
| 9914 | test -z "$ac_c_werror_flag" || |
| 9915 | test ! -s conftest.err |
| 9916 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9917 | ac_lo=$ac_mid; break |
| 9918 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9919 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9921 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9922 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9923 | if test $ac_mid -le $ac_hi; then |
| 9924 | ac_lo= ac_hi= |
| 9925 | break |
| 9926 | fi |
| 9927 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9928 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9929 | |
| 9930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9931 | done |
| 9932 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9933 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9935 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9936 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9937 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9938 | |
| 9939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9940 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9941 | |
| 9942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9943 | # Binary search between lo and hi bounds. |
| 9944 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9945 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9946 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9947 | /* confdefs.h. */ |
| 9948 | _ACEOF |
| 9949 | cat confdefs.h >>conftest.$ac_ext |
| 9950 | cat >>conftest.$ac_ext <<_ACEOF |
| 9951 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9953 | int |
| 9954 | main () |
| 9955 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9956 | 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] | 9957 | test_array [0] = 0 |
| 9958 | |
| 9959 | ; |
| 9960 | return 0; |
| 9961 | } |
| 9962 | _ACEOF |
| 9963 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9964 | if { (ac_try="$ac_compile" |
| 9965 | case "(($ac_try" in |
| 9966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9967 | *) ac_try_echo=$ac_try;; |
| 9968 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9970 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9971 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9972 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9974 | rm -f conftest.er1 |
| 9975 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9976 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9977 | (exit $ac_status); } && { |
| 9978 | test -z "$ac_c_werror_flag" || |
| 9979 | test ! -s conftest.err |
| 9980 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | ac_hi=$ac_mid |
| 9982 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9983 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9985 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9986 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9987 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9988 | |
| 9989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9990 | done |
| 9991 | case $ac_lo in |
| 9992 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9993 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9994 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9995 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9996 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9997 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 9998 | $as_echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9999 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10000 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10001 | else |
| 10002 | ac_cv_sizeof_float=0 |
| 10003 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10004 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10005 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10006 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10007 | /* confdefs.h. */ |
| 10008 | _ACEOF |
| 10009 | cat confdefs.h >>conftest.$ac_ext |
| 10010 | cat >>conftest.$ac_ext <<_ACEOF |
| 10011 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10012 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10013 | static long int longval () { return (long int) (sizeof (float)); } |
| 10014 | static unsigned long int ulongval () { return (long int) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10015 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10016 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10017 | int |
| 10018 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10019 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10020 | |
| 10021 | FILE *f = fopen ("conftest.val", "w"); |
| 10022 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10023 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10024 | if (((long int) (sizeof (float))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10025 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10026 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10027 | if (i != ((long int) (sizeof (float)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10028 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10029 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10030 | } |
| 10031 | else |
| 10032 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10033 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10034 | if (i != ((long int) (sizeof (float)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10035 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10036 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10037 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10038 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 10039 | on some platforms. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10040 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10041 | |
| 10042 | ; |
| 10043 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10044 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10045 | _ACEOF |
| 10046 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10047 | if { (ac_try="$ac_link" |
| 10048 | case "(($ac_try" in |
| 10049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10050 | *) ac_try_echo=$ac_try;; |
| 10051 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10052 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10053 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10054 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10055 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10057 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10058 | { (case "(($ac_try" in |
| 10059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10060 | *) ac_try_echo=$ac_try;; |
| 10061 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10063 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10064 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10065 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10067 | (exit $ac_status); }; }; then |
| 10068 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10069 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10070 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 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 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10074 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10075 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10076 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10077 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10078 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10079 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10080 | $as_echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10081 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10082 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10083 | else |
| 10084 | ac_cv_sizeof_float=0 |
| 10085 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10086 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10087 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10088 | 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] | 10089 | fi |
| 10090 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10091 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10092 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 10093 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10094 | |
| 10095 | |
| 10096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10097 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10098 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10099 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10100 | |
| 10101 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10102 | # The cast to long int works around a bug in the HP C Compiler |
| 10103 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10104 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10105 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10106 | { $as_echo "$as_me:$LINENO: checking size of double" >&5 |
| 10107 | $as_echo_n "checking size of double... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10108 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10109 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10110 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10111 | if test "$cross_compiling" = yes; then |
| 10112 | # Depending upon the size, compute the lo and hi bounds. |
| 10113 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10114 | /* confdefs.h. */ |
| 10115 | _ACEOF |
| 10116 | cat confdefs.h >>conftest.$ac_ext |
| 10117 | cat >>conftest.$ac_ext <<_ACEOF |
| 10118 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10120 | int |
| 10121 | main () |
| 10122 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10123 | 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] | 10124 | test_array [0] = 0 |
| 10125 | |
| 10126 | ; |
| 10127 | return 0; |
| 10128 | } |
| 10129 | _ACEOF |
| 10130 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10131 | if { (ac_try="$ac_compile" |
| 10132 | case "(($ac_try" in |
| 10133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10134 | *) ac_try_echo=$ac_try;; |
| 10135 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10137 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10138 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10139 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10141 | rm -f conftest.er1 |
| 10142 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10144 | (exit $ac_status); } && { |
| 10145 | test -z "$ac_c_werror_flag" || |
| 10146 | test ! -s conftest.err |
| 10147 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10148 | ac_lo=0 ac_mid=0 |
| 10149 | while :; do |
| 10150 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10151 | /* confdefs.h. */ |
| 10152 | _ACEOF |
| 10153 | cat confdefs.h >>conftest.$ac_ext |
| 10154 | cat >>conftest.$ac_ext <<_ACEOF |
| 10155 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10156 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10157 | int |
| 10158 | main () |
| 10159 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10160 | 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] | 10161 | test_array [0] = 0 |
| 10162 | |
| 10163 | ; |
| 10164 | return 0; |
| 10165 | } |
| 10166 | _ACEOF |
| 10167 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10168 | if { (ac_try="$ac_compile" |
| 10169 | case "(($ac_try" in |
| 10170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10171 | *) ac_try_echo=$ac_try;; |
| 10172 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10173 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10174 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10175 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10178 | rm -f conftest.er1 |
| 10179 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10180 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10181 | (exit $ac_status); } && { |
| 10182 | test -z "$ac_c_werror_flag" || |
| 10183 | test ! -s conftest.err |
| 10184 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10185 | ac_hi=$ac_mid; break |
| 10186 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10187 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10189 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10190 | ac_lo=`expr $ac_mid + 1` |
| 10191 | if test $ac_lo -le $ac_mid; then |
| 10192 | ac_lo= ac_hi= |
| 10193 | break |
| 10194 | fi |
| 10195 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10197 | |
| 10198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10199 | done |
| 10200 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10201 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10203 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10204 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10205 | /* confdefs.h. */ |
| 10206 | _ACEOF |
| 10207 | cat confdefs.h >>conftest.$ac_ext |
| 10208 | cat >>conftest.$ac_ext <<_ACEOF |
| 10209 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10210 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10211 | int |
| 10212 | main () |
| 10213 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10214 | 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] | 10215 | test_array [0] = 0 |
| 10216 | |
| 10217 | ; |
| 10218 | return 0; |
| 10219 | } |
| 10220 | _ACEOF |
| 10221 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10222 | if { (ac_try="$ac_compile" |
| 10223 | case "(($ac_try" in |
| 10224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10225 | *) ac_try_echo=$ac_try;; |
| 10226 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10227 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10228 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10229 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10232 | rm -f conftest.er1 |
| 10233 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10234 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10235 | (exit $ac_status); } && { |
| 10236 | test -z "$ac_c_werror_flag" || |
| 10237 | test ! -s conftest.err |
| 10238 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 | ac_hi=-1 ac_mid=-1 |
| 10240 | while :; do |
| 10241 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10242 | /* confdefs.h. */ |
| 10243 | _ACEOF |
| 10244 | cat confdefs.h >>conftest.$ac_ext |
| 10245 | cat >>conftest.$ac_ext <<_ACEOF |
| 10246 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10247 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10248 | int |
| 10249 | main () |
| 10250 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10251 | 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] | 10252 | test_array [0] = 0 |
| 10253 | |
| 10254 | ; |
| 10255 | return 0; |
| 10256 | } |
| 10257 | _ACEOF |
| 10258 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10259 | if { (ac_try="$ac_compile" |
| 10260 | case "(($ac_try" in |
| 10261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10262 | *) ac_try_echo=$ac_try;; |
| 10263 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10265 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10266 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10267 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10269 | rm -f conftest.er1 |
| 10270 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10271 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10272 | (exit $ac_status); } && { |
| 10273 | test -z "$ac_c_werror_flag" || |
| 10274 | test ! -s conftest.err |
| 10275 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10276 | ac_lo=$ac_mid; break |
| 10277 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10278 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10280 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10281 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10282 | if test $ac_mid -le $ac_hi; then |
| 10283 | ac_lo= ac_hi= |
| 10284 | break |
| 10285 | fi |
| 10286 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10288 | |
| 10289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10290 | done |
| 10291 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10292 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10294 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10295 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10297 | |
| 10298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10299 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10300 | |
| 10301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10302 | # Binary search between lo and hi bounds. |
| 10303 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10304 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10305 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10306 | /* confdefs.h. */ |
| 10307 | _ACEOF |
| 10308 | cat confdefs.h >>conftest.$ac_ext |
| 10309 | cat >>conftest.$ac_ext <<_ACEOF |
| 10310 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10312 | int |
| 10313 | main () |
| 10314 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10315 | 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] | 10316 | test_array [0] = 0 |
| 10317 | |
| 10318 | ; |
| 10319 | return 0; |
| 10320 | } |
| 10321 | _ACEOF |
| 10322 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10323 | if { (ac_try="$ac_compile" |
| 10324 | case "(($ac_try" in |
| 10325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10326 | *) ac_try_echo=$ac_try;; |
| 10327 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10329 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10330 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10331 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10333 | rm -f conftest.er1 |
| 10334 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10336 | (exit $ac_status); } && { |
| 10337 | test -z "$ac_c_werror_flag" || |
| 10338 | test ! -s conftest.err |
| 10339 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10340 | ac_hi=$ac_mid |
| 10341 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10342 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10344 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10345 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10346 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10347 | |
| 10348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10349 | done |
| 10350 | case $ac_lo in |
| 10351 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10352 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10353 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10354 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10355 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10356 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10357 | $as_echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10358 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10359 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10360 | else |
| 10361 | ac_cv_sizeof_double=0 |
| 10362 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10363 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10364 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10365 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10366 | /* confdefs.h. */ |
| 10367 | _ACEOF |
| 10368 | cat confdefs.h >>conftest.$ac_ext |
| 10369 | cat >>conftest.$ac_ext <<_ACEOF |
| 10370 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10371 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10372 | static long int longval () { return (long int) (sizeof (double)); } |
| 10373 | static unsigned long int ulongval () { return (long int) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10374 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10375 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 | int |
| 10377 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10378 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10379 | |
| 10380 | FILE *f = fopen ("conftest.val", "w"); |
| 10381 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10382 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10383 | if (((long int) (sizeof (double))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10385 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10386 | if (i != ((long int) (sizeof (double)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10387 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10388 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10389 | } |
| 10390 | else |
| 10391 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10392 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10393 | if (i != ((long int) (sizeof (double)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10394 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10395 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10396 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10397 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 10398 | on some platforms. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10399 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10400 | |
| 10401 | ; |
| 10402 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10403 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10404 | _ACEOF |
| 10405 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10406 | if { (ac_try="$ac_link" |
| 10407 | case "(($ac_try" in |
| 10408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10409 | *) ac_try_echo=$ac_try;; |
| 10410 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10412 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10413 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10414 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10415 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10416 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10417 | { (case "(($ac_try" in |
| 10418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10419 | *) ac_try_echo=$ac_try;; |
| 10420 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10421 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10422 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10423 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10424 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10425 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10426 | (exit $ac_status); }; }; then |
| 10427 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10428 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10429 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10430 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10433 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10434 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10435 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10436 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10437 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10438 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10439 | $as_echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10440 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10441 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10442 | else |
| 10443 | ac_cv_sizeof_double=0 |
| 10444 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10445 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10446 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10447 | 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] | 10448 | fi |
| 10449 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10450 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10451 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 10452 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10453 | |
| 10454 | |
| 10455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10456 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10457 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10458 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10459 | |
| 10460 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10461 | # The cast to long int works around a bug in the HP C Compiler |
| 10462 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10463 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10464 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10465 | { $as_echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 10466 | $as_echo_n "checking size of fpos_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10467 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10468 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10470 | if test "$cross_compiling" = yes; then |
| 10471 | # Depending upon the size, compute the lo and hi bounds. |
| 10472 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10473 | /* confdefs.h. */ |
| 10474 | _ACEOF |
| 10475 | cat confdefs.h >>conftest.$ac_ext |
| 10476 | cat >>conftest.$ac_ext <<_ACEOF |
| 10477 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10478 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10479 | int |
| 10480 | main () |
| 10481 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10482 | 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] | 10483 | test_array [0] = 0 |
| 10484 | |
| 10485 | ; |
| 10486 | return 0; |
| 10487 | } |
| 10488 | _ACEOF |
| 10489 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10490 | if { (ac_try="$ac_compile" |
| 10491 | case "(($ac_try" in |
| 10492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10493 | *) ac_try_echo=$ac_try;; |
| 10494 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10496 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10497 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10498 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10500 | rm -f conftest.er1 |
| 10501 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10503 | (exit $ac_status); } && { |
| 10504 | test -z "$ac_c_werror_flag" || |
| 10505 | test ! -s conftest.err |
| 10506 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10507 | ac_lo=0 ac_mid=0 |
| 10508 | while :; do |
| 10509 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10510 | /* confdefs.h. */ |
| 10511 | _ACEOF |
| 10512 | cat confdefs.h >>conftest.$ac_ext |
| 10513 | cat >>conftest.$ac_ext <<_ACEOF |
| 10514 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10515 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10516 | int |
| 10517 | main () |
| 10518 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10519 | 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] | 10520 | test_array [0] = 0 |
| 10521 | |
| 10522 | ; |
| 10523 | return 0; |
| 10524 | } |
| 10525 | _ACEOF |
| 10526 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10527 | if { (ac_try="$ac_compile" |
| 10528 | case "(($ac_try" in |
| 10529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10530 | *) ac_try_echo=$ac_try;; |
| 10531 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10532 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10533 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10534 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10535 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10537 | rm -f conftest.er1 |
| 10538 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10540 | (exit $ac_status); } && { |
| 10541 | test -z "$ac_c_werror_flag" || |
| 10542 | test ! -s conftest.err |
| 10543 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10544 | ac_hi=$ac_mid; break |
| 10545 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10546 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10548 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10549 | ac_lo=`expr $ac_mid + 1` |
| 10550 | if test $ac_lo -le $ac_mid; then |
| 10551 | ac_lo= ac_hi= |
| 10552 | break |
| 10553 | fi |
| 10554 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10555 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10556 | |
| 10557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10558 | done |
| 10559 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10560 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10562 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10563 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10564 | /* confdefs.h. */ |
| 10565 | _ACEOF |
| 10566 | cat confdefs.h >>conftest.$ac_ext |
| 10567 | cat >>conftest.$ac_ext <<_ACEOF |
| 10568 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10569 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10570 | int |
| 10571 | main () |
| 10572 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10573 | 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] | 10574 | test_array [0] = 0 |
| 10575 | |
| 10576 | ; |
| 10577 | return 0; |
| 10578 | } |
| 10579 | _ACEOF |
| 10580 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10581 | if { (ac_try="$ac_compile" |
| 10582 | case "(($ac_try" in |
| 10583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10584 | *) ac_try_echo=$ac_try;; |
| 10585 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10586 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10587 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10588 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10589 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10591 | rm -f conftest.er1 |
| 10592 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10593 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10594 | (exit $ac_status); } && { |
| 10595 | test -z "$ac_c_werror_flag" || |
| 10596 | test ! -s conftest.err |
| 10597 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10598 | ac_hi=-1 ac_mid=-1 |
| 10599 | while :; do |
| 10600 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10601 | /* confdefs.h. */ |
| 10602 | _ACEOF |
| 10603 | cat confdefs.h >>conftest.$ac_ext |
| 10604 | cat >>conftest.$ac_ext <<_ACEOF |
| 10605 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10606 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10607 | int |
| 10608 | main () |
| 10609 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10610 | 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] | 10611 | test_array [0] = 0 |
| 10612 | |
| 10613 | ; |
| 10614 | return 0; |
| 10615 | } |
| 10616 | _ACEOF |
| 10617 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10618 | if { (ac_try="$ac_compile" |
| 10619 | case "(($ac_try" in |
| 10620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10621 | *) ac_try_echo=$ac_try;; |
| 10622 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10623 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10624 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10625 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10626 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10628 | rm -f conftest.er1 |
| 10629 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10630 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10631 | (exit $ac_status); } && { |
| 10632 | test -z "$ac_c_werror_flag" || |
| 10633 | test ! -s conftest.err |
| 10634 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10635 | ac_lo=$ac_mid; break |
| 10636 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10637 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10639 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10640 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10641 | if test $ac_mid -le $ac_hi; then |
| 10642 | ac_lo= ac_hi= |
| 10643 | break |
| 10644 | fi |
| 10645 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10646 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10647 | |
| 10648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10649 | done |
| 10650 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10651 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10653 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10654 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10655 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10656 | |
| 10657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10658 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10659 | |
| 10660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10661 | # Binary search between lo and hi bounds. |
| 10662 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10663 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10664 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10665 | /* confdefs.h. */ |
| 10666 | _ACEOF |
| 10667 | cat confdefs.h >>conftest.$ac_ext |
| 10668 | cat >>conftest.$ac_ext <<_ACEOF |
| 10669 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10670 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10671 | int |
| 10672 | main () |
| 10673 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10674 | 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] | 10675 | test_array [0] = 0 |
| 10676 | |
| 10677 | ; |
| 10678 | return 0; |
| 10679 | } |
| 10680 | _ACEOF |
| 10681 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10682 | if { (ac_try="$ac_compile" |
| 10683 | case "(($ac_try" in |
| 10684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10685 | *) ac_try_echo=$ac_try;; |
| 10686 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10687 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10688 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10689 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10690 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10692 | rm -f conftest.er1 |
| 10693 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10694 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10695 | (exit $ac_status); } && { |
| 10696 | test -z "$ac_c_werror_flag" || |
| 10697 | test ! -s conftest.err |
| 10698 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10699 | ac_hi=$ac_mid |
| 10700 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10701 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10703 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10704 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10705 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10706 | |
| 10707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10708 | done |
| 10709 | case $ac_lo in |
| 10710 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10711 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10712 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10713 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10714 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10715 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10716 | $as_echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10717 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10718 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10719 | else |
| 10720 | ac_cv_sizeof_fpos_t=0 |
| 10721 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10722 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10723 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10724 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10725 | /* confdefs.h. */ |
| 10726 | _ACEOF |
| 10727 | cat confdefs.h >>conftest.$ac_ext |
| 10728 | cat >>conftest.$ac_ext <<_ACEOF |
| 10729 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10730 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10731 | static long int longval () { return (long int) (sizeof (fpos_t)); } |
| 10732 | static unsigned long int ulongval () { return (long int) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10733 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10734 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10735 | int |
| 10736 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10737 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10738 | |
| 10739 | FILE *f = fopen ("conftest.val", "w"); |
| 10740 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10741 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10742 | if (((long int) (sizeof (fpos_t))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10743 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10744 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10745 | if (i != ((long int) (sizeof (fpos_t)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10746 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10747 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10748 | } |
| 10749 | else |
| 10750 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10751 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10752 | if (i != ((long int) (sizeof (fpos_t)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10753 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10754 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10755 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10756 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 10757 | on some platforms. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10758 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10759 | |
| 10760 | ; |
| 10761 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10762 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10763 | _ACEOF |
| 10764 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10765 | if { (ac_try="$ac_link" |
| 10766 | case "(($ac_try" in |
| 10767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10768 | *) ac_try_echo=$ac_try;; |
| 10769 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10770 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10771 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10772 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10773 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10774 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10775 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10776 | { (case "(($ac_try" in |
| 10777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10778 | *) ac_try_echo=$ac_try;; |
| 10779 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10780 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10781 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10782 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10783 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10784 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10785 | (exit $ac_status); }; }; then |
| 10786 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10787 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10788 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10789 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10792 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10793 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10794 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10796 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10797 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10798 | $as_echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10799 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10800 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10801 | else |
| 10802 | ac_cv_sizeof_fpos_t=0 |
| 10803 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10804 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10805 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10806 | 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] | 10807 | fi |
| 10808 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10809 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10810 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10811 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10812 | |
| 10813 | |
| 10814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10815 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10816 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10817 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10818 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10819 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10820 | # The cast to long int works around a bug in the HP C Compiler |
| 10821 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10822 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10823 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10824 | { $as_echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10825 | $as_echo_n "checking size of size_t... " >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10826 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10827 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10828 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10829 | if test "$cross_compiling" = yes; then |
| 10830 | # Depending upon the size, compute the lo and hi bounds. |
| 10831 | cat >conftest.$ac_ext <<_ACEOF |
| 10832 | /* confdefs.h. */ |
| 10833 | _ACEOF |
| 10834 | cat confdefs.h >>conftest.$ac_ext |
| 10835 | cat >>conftest.$ac_ext <<_ACEOF |
| 10836 | /* end confdefs.h. */ |
| 10837 | $ac_includes_default |
| 10838 | int |
| 10839 | main () |
| 10840 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10841 | 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] | 10842 | test_array [0] = 0 |
| 10843 | |
| 10844 | ; |
| 10845 | return 0; |
| 10846 | } |
| 10847 | _ACEOF |
| 10848 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10849 | if { (ac_try="$ac_compile" |
| 10850 | case "(($ac_try" in |
| 10851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10852 | *) ac_try_echo=$ac_try;; |
| 10853 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10854 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10855 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10856 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10857 | ac_status=$? |
| 10858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10859 | rm -f conftest.er1 |
| 10860 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10861 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10862 | (exit $ac_status); } && { |
| 10863 | test -z "$ac_c_werror_flag" || |
| 10864 | test ! -s conftest.err |
| 10865 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10866 | ac_lo=0 ac_mid=0 |
| 10867 | while :; do |
| 10868 | cat >conftest.$ac_ext <<_ACEOF |
| 10869 | /* confdefs.h. */ |
| 10870 | _ACEOF |
| 10871 | cat confdefs.h >>conftest.$ac_ext |
| 10872 | cat >>conftest.$ac_ext <<_ACEOF |
| 10873 | /* end confdefs.h. */ |
| 10874 | $ac_includes_default |
| 10875 | int |
| 10876 | main () |
| 10877 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10878 | 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] | 10879 | test_array [0] = 0 |
| 10880 | |
| 10881 | ; |
| 10882 | return 0; |
| 10883 | } |
| 10884 | _ACEOF |
| 10885 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10886 | if { (ac_try="$ac_compile" |
| 10887 | case "(($ac_try" in |
| 10888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10889 | *) ac_try_echo=$ac_try;; |
| 10890 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10891 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10892 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10893 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10894 | ac_status=$? |
| 10895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10896 | rm -f conftest.er1 |
| 10897 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10898 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10899 | (exit $ac_status); } && { |
| 10900 | test -z "$ac_c_werror_flag" || |
| 10901 | test ! -s conftest.err |
| 10902 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10903 | ac_hi=$ac_mid; break |
| 10904 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10905 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10907 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10908 | ac_lo=`expr $ac_mid + 1` |
| 10909 | if test $ac_lo -le $ac_mid; then |
| 10910 | ac_lo= ac_hi= |
| 10911 | break |
| 10912 | fi |
| 10913 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10914 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10915 | |
| 10916 | 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] | 10917 | done |
| 10918 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10919 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10921 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10922 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10923 | /* confdefs.h. */ |
| 10924 | _ACEOF |
| 10925 | cat confdefs.h >>conftest.$ac_ext |
| 10926 | cat >>conftest.$ac_ext <<_ACEOF |
| 10927 | /* end confdefs.h. */ |
| 10928 | $ac_includes_default |
| 10929 | int |
| 10930 | main () |
| 10931 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10932 | 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] | 10933 | test_array [0] = 0 |
| 10934 | |
| 10935 | ; |
| 10936 | return 0; |
| 10937 | } |
| 10938 | _ACEOF |
| 10939 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10940 | if { (ac_try="$ac_compile" |
| 10941 | case "(($ac_try" in |
| 10942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10943 | *) ac_try_echo=$ac_try;; |
| 10944 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10945 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10946 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10947 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10948 | ac_status=$? |
| 10949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10950 | rm -f conftest.er1 |
| 10951 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10952 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10953 | (exit $ac_status); } && { |
| 10954 | test -z "$ac_c_werror_flag" || |
| 10955 | test ! -s conftest.err |
| 10956 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10957 | ac_hi=-1 ac_mid=-1 |
| 10958 | while :; do |
| 10959 | cat >conftest.$ac_ext <<_ACEOF |
| 10960 | /* confdefs.h. */ |
| 10961 | _ACEOF |
| 10962 | cat confdefs.h >>conftest.$ac_ext |
| 10963 | cat >>conftest.$ac_ext <<_ACEOF |
| 10964 | /* end confdefs.h. */ |
| 10965 | $ac_includes_default |
| 10966 | int |
| 10967 | main () |
| 10968 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10969 | 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] | 10970 | test_array [0] = 0 |
| 10971 | |
| 10972 | ; |
| 10973 | return 0; |
| 10974 | } |
| 10975 | _ACEOF |
| 10976 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10977 | if { (ac_try="$ac_compile" |
| 10978 | case "(($ac_try" in |
| 10979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10980 | *) ac_try_echo=$ac_try;; |
| 10981 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10982 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10983 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10984 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10985 | ac_status=$? |
| 10986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10987 | rm -f conftest.er1 |
| 10988 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10990 | (exit $ac_status); } && { |
| 10991 | test -z "$ac_c_werror_flag" || |
| 10992 | test ! -s conftest.err |
| 10993 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10994 | ac_lo=$ac_mid; break |
| 10995 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 10996 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10998 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10999 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11000 | if test $ac_mid -le $ac_hi; then |
| 11001 | ac_lo= ac_hi= |
| 11002 | break |
| 11003 | fi |
| 11004 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11005 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11006 | |
| 11007 | 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] | 11008 | done |
| 11009 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11010 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11012 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11013 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11014 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11015 | |
| 11016 | 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] | 11017 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11018 | |
| 11019 | 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] | 11020 | # Binary search between lo and hi bounds. |
| 11021 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11022 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11023 | cat >conftest.$ac_ext <<_ACEOF |
| 11024 | /* confdefs.h. */ |
| 11025 | _ACEOF |
| 11026 | cat confdefs.h >>conftest.$ac_ext |
| 11027 | cat >>conftest.$ac_ext <<_ACEOF |
| 11028 | /* end confdefs.h. */ |
| 11029 | $ac_includes_default |
| 11030 | int |
| 11031 | main () |
| 11032 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11033 | 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] | 11034 | test_array [0] = 0 |
| 11035 | |
| 11036 | ; |
| 11037 | return 0; |
| 11038 | } |
| 11039 | _ACEOF |
| 11040 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11041 | if { (ac_try="$ac_compile" |
| 11042 | case "(($ac_try" in |
| 11043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11044 | *) ac_try_echo=$ac_try;; |
| 11045 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11046 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11047 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11048 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11049 | ac_status=$? |
| 11050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11051 | rm -f conftest.er1 |
| 11052 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11053 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11054 | (exit $ac_status); } && { |
| 11055 | test -z "$ac_c_werror_flag" || |
| 11056 | test ! -s conftest.err |
| 11057 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11058 | ac_hi=$ac_mid |
| 11059 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11060 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11062 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11063 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11064 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11065 | |
| 11066 | 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] | 11067 | done |
| 11068 | case $ac_lo in |
| 11069 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11070 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11071 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11072 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11073 | { { $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] | 11074 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11075 | $as_echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11076 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11077 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11078 | else |
| 11079 | ac_cv_sizeof_size_t=0 |
| 11080 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11081 | esac |
| 11082 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11083 | cat >conftest.$ac_ext <<_ACEOF |
| 11084 | /* confdefs.h. */ |
| 11085 | _ACEOF |
| 11086 | cat confdefs.h >>conftest.$ac_ext |
| 11087 | cat >>conftest.$ac_ext <<_ACEOF |
| 11088 | /* end confdefs.h. */ |
| 11089 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11090 | static long int longval () { return (long int) (sizeof (size_t)); } |
| 11091 | 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] | 11092 | #include <stdio.h> |
| 11093 | #include <stdlib.h> |
| 11094 | int |
| 11095 | main () |
| 11096 | { |
| 11097 | |
| 11098 | FILE *f = fopen ("conftest.val", "w"); |
| 11099 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11100 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11101 | if (((long int) (sizeof (size_t))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11102 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11103 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11104 | if (i != ((long int) (sizeof (size_t)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11105 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11106 | fprintf (f, "%ld", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11107 | } |
| 11108 | else |
| 11109 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11110 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11111 | if (i != ((long int) (sizeof (size_t)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11112 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11113 | fprintf (f, "%lu", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11114 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11115 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 11116 | on some platforms. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11117 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11118 | |
| 11119 | ; |
| 11120 | return 0; |
| 11121 | } |
| 11122 | _ACEOF |
| 11123 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11124 | if { (ac_try="$ac_link" |
| 11125 | case "(($ac_try" in |
| 11126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11127 | *) ac_try_echo=$ac_try;; |
| 11128 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11129 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11130 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11131 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11132 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11133 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11134 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11135 | { (case "(($ac_try" in |
| 11136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11137 | *) ac_try_echo=$ac_try;; |
| 11138 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11139 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11140 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11141 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11142 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11144 | (exit $ac_status); }; }; then |
| 11145 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 11146 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11147 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 11148 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11150 | |
| 11151 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11152 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11153 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11154 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11155 | { { $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] | 11156 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11157 | $as_echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11158 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11159 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11160 | else |
| 11161 | ac_cv_sizeof_size_t=0 |
| 11162 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11163 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11164 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11165 | 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] | 11166 | fi |
| 11167 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11168 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11169 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 11170 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11171 | |
| 11172 | |
| 11173 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11174 | cat >>confdefs.h <<_ACEOF |
| 11175 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 11176 | _ACEOF |
| 11177 | |
| 11178 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11179 | # The cast to long int works around a bug in the HP C Compiler |
| 11180 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11181 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11182 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11183 | { $as_echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 11184 | $as_echo_n "checking size of pid_t... " >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11185 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11186 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11187 | else |
| 11188 | if test "$cross_compiling" = yes; then |
| 11189 | # Depending upon the size, compute the lo and hi bounds. |
| 11190 | cat >conftest.$ac_ext <<_ACEOF |
| 11191 | /* confdefs.h. */ |
| 11192 | _ACEOF |
| 11193 | cat confdefs.h >>conftest.$ac_ext |
| 11194 | cat >>conftest.$ac_ext <<_ACEOF |
| 11195 | /* end confdefs.h. */ |
| 11196 | $ac_includes_default |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11197 | int |
| 11198 | main () |
| 11199 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11200 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= 0)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11201 | test_array [0] = 0 |
| 11202 | |
| 11203 | ; |
| 11204 | return 0; |
| 11205 | } |
| 11206 | _ACEOF |
| 11207 | rm -f conftest.$ac_objext |
| 11208 | if { (ac_try="$ac_compile" |
| 11209 | case "(($ac_try" in |
| 11210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11211 | *) ac_try_echo=$ac_try;; |
| 11212 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11213 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11214 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11215 | (eval "$ac_compile") 2>conftest.er1 |
| 11216 | ac_status=$? |
| 11217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11218 | rm -f conftest.er1 |
| 11219 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11220 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11221 | (exit $ac_status); } && { |
| 11222 | test -z "$ac_c_werror_flag" || |
| 11223 | test ! -s conftest.err |
| 11224 | } && test -s conftest.$ac_objext; then |
| 11225 | ac_lo=0 ac_mid=0 |
| 11226 | while :; do |
| 11227 | cat >conftest.$ac_ext <<_ACEOF |
| 11228 | /* confdefs.h. */ |
| 11229 | _ACEOF |
| 11230 | cat confdefs.h >>conftest.$ac_ext |
| 11231 | cat >>conftest.$ac_ext <<_ACEOF |
| 11232 | /* end confdefs.h. */ |
| 11233 | $ac_includes_default |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11234 | int |
| 11235 | main () |
| 11236 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11237 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11238 | test_array [0] = 0 |
| 11239 | |
| 11240 | ; |
| 11241 | return 0; |
| 11242 | } |
| 11243 | _ACEOF |
| 11244 | rm -f conftest.$ac_objext |
| 11245 | if { (ac_try="$ac_compile" |
| 11246 | case "(($ac_try" in |
| 11247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11248 | *) ac_try_echo=$ac_try;; |
| 11249 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11250 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11251 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11252 | (eval "$ac_compile") 2>conftest.er1 |
| 11253 | ac_status=$? |
| 11254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11255 | rm -f conftest.er1 |
| 11256 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11257 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11258 | (exit $ac_status); } && { |
| 11259 | test -z "$ac_c_werror_flag" || |
| 11260 | test ! -s conftest.err |
| 11261 | } && test -s conftest.$ac_objext; then |
| 11262 | ac_hi=$ac_mid; break |
| 11263 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11264 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11266 | |
| 11267 | ac_lo=`expr $ac_mid + 1` |
| 11268 | if test $ac_lo -le $ac_mid; then |
| 11269 | ac_lo= ac_hi= |
| 11270 | break |
| 11271 | fi |
| 11272 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11273 | fi |
| 11274 | |
| 11275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11276 | done |
| 11277 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11278 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11280 | |
| 11281 | cat >conftest.$ac_ext <<_ACEOF |
| 11282 | /* confdefs.h. */ |
| 11283 | _ACEOF |
| 11284 | cat confdefs.h >>conftest.$ac_ext |
| 11285 | cat >>conftest.$ac_ext <<_ACEOF |
| 11286 | /* end confdefs.h. */ |
| 11287 | $ac_includes_default |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11288 | int |
| 11289 | main () |
| 11290 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11291 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) < 0)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11292 | test_array [0] = 0 |
| 11293 | |
| 11294 | ; |
| 11295 | return 0; |
| 11296 | } |
| 11297 | _ACEOF |
| 11298 | rm -f conftest.$ac_objext |
| 11299 | if { (ac_try="$ac_compile" |
| 11300 | case "(($ac_try" in |
| 11301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11302 | *) ac_try_echo=$ac_try;; |
| 11303 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11304 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11305 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11306 | (eval "$ac_compile") 2>conftest.er1 |
| 11307 | ac_status=$? |
| 11308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11309 | rm -f conftest.er1 |
| 11310 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11312 | (exit $ac_status); } && { |
| 11313 | test -z "$ac_c_werror_flag" || |
| 11314 | test ! -s conftest.err |
| 11315 | } && test -s conftest.$ac_objext; then |
| 11316 | ac_hi=-1 ac_mid=-1 |
| 11317 | while :; do |
| 11318 | cat >conftest.$ac_ext <<_ACEOF |
| 11319 | /* confdefs.h. */ |
| 11320 | _ACEOF |
| 11321 | cat confdefs.h >>conftest.$ac_ext |
| 11322 | cat >>conftest.$ac_ext <<_ACEOF |
| 11323 | /* end confdefs.h. */ |
| 11324 | $ac_includes_default |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11325 | int |
| 11326 | main () |
| 11327 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11328 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= $ac_mid)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11329 | test_array [0] = 0 |
| 11330 | |
| 11331 | ; |
| 11332 | return 0; |
| 11333 | } |
| 11334 | _ACEOF |
| 11335 | rm -f conftest.$ac_objext |
| 11336 | if { (ac_try="$ac_compile" |
| 11337 | case "(($ac_try" in |
| 11338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11339 | *) ac_try_echo=$ac_try;; |
| 11340 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11341 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11342 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11343 | (eval "$ac_compile") 2>conftest.er1 |
| 11344 | ac_status=$? |
| 11345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11346 | rm -f conftest.er1 |
| 11347 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11348 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11349 | (exit $ac_status); } && { |
| 11350 | test -z "$ac_c_werror_flag" || |
| 11351 | test ! -s conftest.err |
| 11352 | } && test -s conftest.$ac_objext; then |
| 11353 | ac_lo=$ac_mid; break |
| 11354 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11355 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11357 | |
| 11358 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11359 | if test $ac_mid -le $ac_hi; then |
| 11360 | ac_lo= ac_hi= |
| 11361 | break |
| 11362 | fi |
| 11363 | ac_mid=`expr 2 '*' $ac_mid` |
| 11364 | fi |
| 11365 | |
| 11366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11367 | done |
| 11368 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11369 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11371 | |
| 11372 | ac_lo= ac_hi= |
| 11373 | fi |
| 11374 | |
| 11375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11376 | fi |
| 11377 | |
| 11378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11379 | # Binary search between lo and hi bounds. |
| 11380 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11381 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11382 | cat >conftest.$ac_ext <<_ACEOF |
| 11383 | /* confdefs.h. */ |
| 11384 | _ACEOF |
| 11385 | cat confdefs.h >>conftest.$ac_ext |
| 11386 | cat >>conftest.$ac_ext <<_ACEOF |
| 11387 | /* end confdefs.h. */ |
| 11388 | $ac_includes_default |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11389 | int |
| 11390 | main () |
| 11391 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11392 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11393 | test_array [0] = 0 |
| 11394 | |
| 11395 | ; |
| 11396 | return 0; |
| 11397 | } |
| 11398 | _ACEOF |
| 11399 | rm -f conftest.$ac_objext |
| 11400 | if { (ac_try="$ac_compile" |
| 11401 | case "(($ac_try" in |
| 11402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11403 | *) ac_try_echo=$ac_try;; |
| 11404 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11405 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11406 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11407 | (eval "$ac_compile") 2>conftest.er1 |
| 11408 | ac_status=$? |
| 11409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11410 | rm -f conftest.er1 |
| 11411 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11412 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11413 | (exit $ac_status); } && { |
| 11414 | test -z "$ac_c_werror_flag" || |
| 11415 | test ! -s conftest.err |
| 11416 | } && test -s conftest.$ac_objext; then |
| 11417 | ac_hi=$ac_mid |
| 11418 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11419 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11421 | |
| 11422 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11423 | fi |
| 11424 | |
| 11425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11426 | done |
| 11427 | case $ac_lo in |
| 11428 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11429 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11430 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11431 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11432 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11433 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11434 | $as_echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11435 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11436 | { (exit 77); exit 77; }; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11437 | else |
| 11438 | ac_cv_sizeof_pid_t=0 |
| 11439 | fi ;; |
| 11440 | esac |
| 11441 | else |
| 11442 | cat >conftest.$ac_ext <<_ACEOF |
| 11443 | /* confdefs.h. */ |
| 11444 | _ACEOF |
| 11445 | cat confdefs.h >>conftest.$ac_ext |
| 11446 | cat >>conftest.$ac_ext <<_ACEOF |
| 11447 | /* end confdefs.h. */ |
| 11448 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11449 | static long int longval () { return (long int) (sizeof (pid_t)); } |
| 11450 | static unsigned long int ulongval () { return (long int) (sizeof (pid_t)); } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11451 | #include <stdio.h> |
| 11452 | #include <stdlib.h> |
| 11453 | int |
| 11454 | main () |
| 11455 | { |
| 11456 | |
| 11457 | FILE *f = fopen ("conftest.val", "w"); |
| 11458 | if (! f) |
| 11459 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11460 | if (((long int) (sizeof (pid_t))) < 0) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11461 | { |
| 11462 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11463 | if (i != ((long int) (sizeof (pid_t)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11464 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11465 | fprintf (f, "%ld", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11466 | } |
| 11467 | else |
| 11468 | { |
| 11469 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11470 | if (i != ((long int) (sizeof (pid_t)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11471 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11472 | fprintf (f, "%lu", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11473 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11474 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 11475 | on some platforms. */ |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11476 | return ferror (f) || fclose (f) != 0; |
| 11477 | |
| 11478 | ; |
| 11479 | return 0; |
| 11480 | } |
| 11481 | _ACEOF |
| 11482 | rm -f conftest$ac_exeext |
| 11483 | if { (ac_try="$ac_link" |
| 11484 | case "(($ac_try" in |
| 11485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11486 | *) ac_try_echo=$ac_try;; |
| 11487 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11488 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11489 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11490 | (eval "$ac_link") 2>&5 |
| 11491 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11492 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11493 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11494 | { (case "(($ac_try" in |
| 11495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11496 | *) ac_try_echo=$ac_try;; |
| 11497 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11499 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11500 | (eval "$ac_try") 2>&5 |
| 11501 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11503 | (exit $ac_status); }; }; then |
| 11504 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11505 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11506 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 11507 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11509 | |
| 11510 | ( exit $ac_status ) |
| 11511 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11512 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11514 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11515 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11516 | $as_echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11517 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11518 | { (exit 77); exit 77; }; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11519 | else |
| 11520 | ac_cv_sizeof_pid_t=0 |
| 11521 | fi |
| 11522 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11523 | rm -rf conftest.dSYM |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11524 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11525 | fi |
| 11526 | rm -f conftest.val |
| 11527 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11528 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11529 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11530 | |
| 11531 | |
| 11532 | |
| 11533 | cat >>confdefs.h <<_ACEOF |
| 11534 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11535 | _ACEOF |
| 11536 | |
| 11537 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11538 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11539 | { $as_echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11540 | $as_echo_n "checking for long long support... " >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11541 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11542 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11543 | /* confdefs.h. */ |
| 11544 | _ACEOF |
| 11545 | cat confdefs.h >>conftest.$ac_ext |
| 11546 | cat >>conftest.$ac_ext <<_ACEOF |
| 11547 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11549 | int |
| 11550 | main () |
| 11551 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11552 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11553 | ; |
| 11554 | return 0; |
| 11555 | } |
| 11556 | _ACEOF |
| 11557 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11558 | if { (ac_try="$ac_compile" |
| 11559 | case "(($ac_try" in |
| 11560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11561 | *) ac_try_echo=$ac_try;; |
| 11562 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11563 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11564 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11565 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11568 | rm -f conftest.er1 |
| 11569 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11570 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11571 | (exit $ac_status); } && { |
| 11572 | test -z "$ac_c_werror_flag" || |
| 11573 | test ! -s conftest.err |
| 11574 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | |
| 11576 | |
| 11577 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11578 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11579 | _ACEOF |
| 11580 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11581 | have_long_long=yes |
| 11582 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11583 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11584 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11586 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11587 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11588 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11589 | |
| 11590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11591 | { $as_echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11592 | $as_echo "$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11593 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11594 | # The cast to long int works around a bug in the HP C Compiler |
| 11595 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11596 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11597 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11598 | { $as_echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11599 | $as_echo_n "checking size of long long... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11600 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11601 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11602 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11603 | if test "$cross_compiling" = yes; then |
| 11604 | # Depending upon the size, compute the lo and hi bounds. |
| 11605 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11606 | /* confdefs.h. */ |
| 11607 | _ACEOF |
| 11608 | cat confdefs.h >>conftest.$ac_ext |
| 11609 | cat >>conftest.$ac_ext <<_ACEOF |
| 11610 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11611 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11612 | int |
| 11613 | main () |
| 11614 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11615 | 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] | 11616 | test_array [0] = 0 |
| 11617 | |
| 11618 | ; |
| 11619 | return 0; |
| 11620 | } |
| 11621 | _ACEOF |
| 11622 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11623 | if { (ac_try="$ac_compile" |
| 11624 | case "(($ac_try" in |
| 11625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11626 | *) ac_try_echo=$ac_try;; |
| 11627 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11628 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11629 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11630 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11631 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11633 | rm -f conftest.er1 |
| 11634 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11636 | (exit $ac_status); } && { |
| 11637 | test -z "$ac_c_werror_flag" || |
| 11638 | test ! -s conftest.err |
| 11639 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 | ac_lo=0 ac_mid=0 |
| 11641 | while :; do |
| 11642 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11643 | /* confdefs.h. */ |
| 11644 | _ACEOF |
| 11645 | cat confdefs.h >>conftest.$ac_ext |
| 11646 | cat >>conftest.$ac_ext <<_ACEOF |
| 11647 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11649 | int |
| 11650 | main () |
| 11651 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11652 | 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] | 11653 | test_array [0] = 0 |
| 11654 | |
| 11655 | ; |
| 11656 | return 0; |
| 11657 | } |
| 11658 | _ACEOF |
| 11659 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11660 | if { (ac_try="$ac_compile" |
| 11661 | case "(($ac_try" in |
| 11662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11663 | *) ac_try_echo=$ac_try;; |
| 11664 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11665 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11666 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11667 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11670 | rm -f conftest.er1 |
| 11671 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11673 | (exit $ac_status); } && { |
| 11674 | test -z "$ac_c_werror_flag" || |
| 11675 | test ! -s conftest.err |
| 11676 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11677 | ac_hi=$ac_mid; break |
| 11678 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11679 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11681 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11682 | ac_lo=`expr $ac_mid + 1` |
| 11683 | if test $ac_lo -le $ac_mid; then |
| 11684 | ac_lo= ac_hi= |
| 11685 | break |
| 11686 | fi |
| 11687 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11688 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11689 | |
| 11690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11691 | done |
| 11692 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11693 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11695 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11696 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11697 | /* confdefs.h. */ |
| 11698 | _ACEOF |
| 11699 | cat confdefs.h >>conftest.$ac_ext |
| 11700 | cat >>conftest.$ac_ext <<_ACEOF |
| 11701 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11702 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11703 | int |
| 11704 | main () |
| 11705 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11706 | 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] | 11707 | test_array [0] = 0 |
| 11708 | |
| 11709 | ; |
| 11710 | return 0; |
| 11711 | } |
| 11712 | _ACEOF |
| 11713 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11714 | if { (ac_try="$ac_compile" |
| 11715 | case "(($ac_try" in |
| 11716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11717 | *) ac_try_echo=$ac_try;; |
| 11718 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11719 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11720 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11721 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11722 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11724 | rm -f conftest.er1 |
| 11725 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11727 | (exit $ac_status); } && { |
| 11728 | test -z "$ac_c_werror_flag" || |
| 11729 | test ! -s conftest.err |
| 11730 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11731 | ac_hi=-1 ac_mid=-1 |
| 11732 | while :; do |
| 11733 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11734 | /* confdefs.h. */ |
| 11735 | _ACEOF |
| 11736 | cat confdefs.h >>conftest.$ac_ext |
| 11737 | cat >>conftest.$ac_ext <<_ACEOF |
| 11738 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11739 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11740 | int |
| 11741 | main () |
| 11742 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11743 | 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] | 11744 | test_array [0] = 0 |
| 11745 | |
| 11746 | ; |
| 11747 | return 0; |
| 11748 | } |
| 11749 | _ACEOF |
| 11750 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11751 | if { (ac_try="$ac_compile" |
| 11752 | case "(($ac_try" in |
| 11753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11754 | *) ac_try_echo=$ac_try;; |
| 11755 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11757 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11758 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11759 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11761 | rm -f conftest.er1 |
| 11762 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11764 | (exit $ac_status); } && { |
| 11765 | test -z "$ac_c_werror_flag" || |
| 11766 | test ! -s conftest.err |
| 11767 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11768 | ac_lo=$ac_mid; break |
| 11769 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11770 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11772 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11773 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11774 | if test $ac_mid -le $ac_hi; then |
| 11775 | ac_lo= ac_hi= |
| 11776 | break |
| 11777 | fi |
| 11778 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11779 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11780 | |
| 11781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11782 | done |
| 11783 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11784 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11786 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11787 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11788 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11789 | |
| 11790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11791 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11792 | |
| 11793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11794 | # Binary search between lo and hi bounds. |
| 11795 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11796 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11797 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11798 | /* confdefs.h. */ |
| 11799 | _ACEOF |
| 11800 | cat confdefs.h >>conftest.$ac_ext |
| 11801 | cat >>conftest.$ac_ext <<_ACEOF |
| 11802 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11803 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11804 | int |
| 11805 | main () |
| 11806 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11807 | 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] | 11808 | test_array [0] = 0 |
| 11809 | |
| 11810 | ; |
| 11811 | return 0; |
| 11812 | } |
| 11813 | _ACEOF |
| 11814 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11815 | if { (ac_try="$ac_compile" |
| 11816 | case "(($ac_try" in |
| 11817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11818 | *) ac_try_echo=$ac_try;; |
| 11819 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11820 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11821 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11822 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11823 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11825 | rm -f conftest.er1 |
| 11826 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11827 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11828 | (exit $ac_status); } && { |
| 11829 | test -z "$ac_c_werror_flag" || |
| 11830 | test ! -s conftest.err |
| 11831 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11832 | ac_hi=$ac_mid |
| 11833 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11834 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11836 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11837 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11838 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11839 | |
| 11840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11841 | done |
| 11842 | case $ac_lo in |
| 11843 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11844 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11845 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11846 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11847 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11848 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11849 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11850 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11851 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11852 | else |
| 11853 | ac_cv_sizeof_long_long=0 |
| 11854 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11855 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11856 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11857 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11858 | /* confdefs.h. */ |
| 11859 | _ACEOF |
| 11860 | cat confdefs.h >>conftest.$ac_ext |
| 11861 | cat >>conftest.$ac_ext <<_ACEOF |
| 11862 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11863 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11864 | static long int longval () { return (long int) (sizeof (long long)); } |
| 11865 | static unsigned long int ulongval () { return (long int) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11866 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11867 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11868 | int |
| 11869 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11870 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11871 | |
| 11872 | FILE *f = fopen ("conftest.val", "w"); |
| 11873 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11874 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11875 | if (((long int) (sizeof (long long))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11876 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11877 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11878 | if (i != ((long int) (sizeof (long long)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11879 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11880 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11881 | } |
| 11882 | else |
| 11883 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11884 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11885 | if (i != ((long int) (sizeof (long long)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11886 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11887 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11888 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11889 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 11890 | on some platforms. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11891 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11892 | |
| 11893 | ; |
| 11894 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11895 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11896 | _ACEOF |
| 11897 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11898 | if { (ac_try="$ac_link" |
| 11899 | case "(($ac_try" in |
| 11900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11901 | *) ac_try_echo=$ac_try;; |
| 11902 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11903 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11904 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11905 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11906 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11908 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11909 | { (case "(($ac_try" in |
| 11910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11911 | *) ac_try_echo=$ac_try;; |
| 11912 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11914 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11915 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11916 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11918 | (exit $ac_status); }; }; then |
| 11919 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11920 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11921 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 11922 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11924 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11925 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11926 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11927 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11928 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11929 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11930 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11931 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11932 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11933 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11934 | else |
| 11935 | ac_cv_sizeof_long_long=0 |
| 11936 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11937 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11938 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11939 | 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] | 11940 | fi |
| 11941 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11942 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11943 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11944 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11945 | |
| 11946 | |
| 11947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11948 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11949 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11950 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11951 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11952 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11953 | fi |
| 11954 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11955 | { $as_echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11956 | $as_echo_n "checking for long double support... " >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11957 | have_long_double=no |
| 11958 | cat >conftest.$ac_ext <<_ACEOF |
| 11959 | /* confdefs.h. */ |
| 11960 | _ACEOF |
| 11961 | cat confdefs.h >>conftest.$ac_ext |
| 11962 | cat >>conftest.$ac_ext <<_ACEOF |
| 11963 | /* end confdefs.h. */ |
| 11964 | |
| 11965 | int |
| 11966 | main () |
| 11967 | { |
| 11968 | long double x; x = (long double)0.; |
| 11969 | ; |
| 11970 | return 0; |
| 11971 | } |
| 11972 | _ACEOF |
| 11973 | rm -f conftest.$ac_objext |
| 11974 | if { (ac_try="$ac_compile" |
| 11975 | case "(($ac_try" in |
| 11976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11977 | *) ac_try_echo=$ac_try;; |
| 11978 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11979 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11980 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11981 | (eval "$ac_compile") 2>conftest.er1 |
| 11982 | ac_status=$? |
| 11983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11984 | rm -f conftest.er1 |
| 11985 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 11986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11987 | (exit $ac_status); } && { |
| 11988 | test -z "$ac_c_werror_flag" || |
| 11989 | test ! -s conftest.err |
| 11990 | } && test -s conftest.$ac_objext; then |
| 11991 | |
| 11992 | |
| 11993 | cat >>confdefs.h <<\_ACEOF |
| 11994 | #define HAVE_LONG_DOUBLE 1 |
| 11995 | _ACEOF |
| 11996 | |
| 11997 | have_long_double=yes |
| 11998 | |
| 11999 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12000 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12002 | |
| 12003 | |
| 12004 | fi |
| 12005 | |
| 12006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12007 | { $as_echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 12008 | $as_echo "$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12009 | if test "$have_long_double" = yes ; then |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12010 | # The cast to long int works around a bug in the HP C Compiler |
| 12011 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12012 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12013 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12014 | { $as_echo "$as_me:$LINENO: checking size of long double" >&5 |
| 12015 | $as_echo_n "checking size of long double... " >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12016 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12017 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12018 | else |
| 12019 | if test "$cross_compiling" = yes; then |
| 12020 | # Depending upon the size, compute the lo and hi bounds. |
| 12021 | cat >conftest.$ac_ext <<_ACEOF |
| 12022 | /* confdefs.h. */ |
| 12023 | _ACEOF |
| 12024 | cat confdefs.h >>conftest.$ac_ext |
| 12025 | cat >>conftest.$ac_ext <<_ACEOF |
| 12026 | /* end confdefs.h. */ |
| 12027 | $ac_includes_default |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12028 | int |
| 12029 | main () |
| 12030 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12031 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12032 | test_array [0] = 0 |
| 12033 | |
| 12034 | ; |
| 12035 | return 0; |
| 12036 | } |
| 12037 | _ACEOF |
| 12038 | rm -f conftest.$ac_objext |
| 12039 | if { (ac_try="$ac_compile" |
| 12040 | case "(($ac_try" in |
| 12041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12042 | *) ac_try_echo=$ac_try;; |
| 12043 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12045 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12046 | (eval "$ac_compile") 2>conftest.er1 |
| 12047 | ac_status=$? |
| 12048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12049 | rm -f conftest.er1 |
| 12050 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12052 | (exit $ac_status); } && { |
| 12053 | test -z "$ac_c_werror_flag" || |
| 12054 | test ! -s conftest.err |
| 12055 | } && test -s conftest.$ac_objext; then |
| 12056 | ac_lo=0 ac_mid=0 |
| 12057 | while :; do |
| 12058 | cat >conftest.$ac_ext <<_ACEOF |
| 12059 | /* confdefs.h. */ |
| 12060 | _ACEOF |
| 12061 | cat confdefs.h >>conftest.$ac_ext |
| 12062 | cat >>conftest.$ac_ext <<_ACEOF |
| 12063 | /* end confdefs.h. */ |
| 12064 | $ac_includes_default |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12065 | int |
| 12066 | main () |
| 12067 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12068 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12069 | test_array [0] = 0 |
| 12070 | |
| 12071 | ; |
| 12072 | return 0; |
| 12073 | } |
| 12074 | _ACEOF |
| 12075 | rm -f conftest.$ac_objext |
| 12076 | if { (ac_try="$ac_compile" |
| 12077 | case "(($ac_try" in |
| 12078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12079 | *) ac_try_echo=$ac_try;; |
| 12080 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12081 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12082 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12083 | (eval "$ac_compile") 2>conftest.er1 |
| 12084 | ac_status=$? |
| 12085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12086 | rm -f conftest.er1 |
| 12087 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12089 | (exit $ac_status); } && { |
| 12090 | test -z "$ac_c_werror_flag" || |
| 12091 | test ! -s conftest.err |
| 12092 | } && test -s conftest.$ac_objext; then |
| 12093 | ac_hi=$ac_mid; break |
| 12094 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12095 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12097 | |
| 12098 | ac_lo=`expr $ac_mid + 1` |
| 12099 | if test $ac_lo -le $ac_mid; then |
| 12100 | ac_lo= ac_hi= |
| 12101 | break |
| 12102 | fi |
| 12103 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 12104 | fi |
| 12105 | |
| 12106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12107 | done |
| 12108 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12109 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12111 | |
| 12112 | cat >conftest.$ac_ext <<_ACEOF |
| 12113 | /* confdefs.h. */ |
| 12114 | _ACEOF |
| 12115 | cat confdefs.h >>conftest.$ac_ext |
| 12116 | cat >>conftest.$ac_ext <<_ACEOF |
| 12117 | /* end confdefs.h. */ |
| 12118 | $ac_includes_default |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12119 | int |
| 12120 | main () |
| 12121 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12122 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12123 | test_array [0] = 0 |
| 12124 | |
| 12125 | ; |
| 12126 | return 0; |
| 12127 | } |
| 12128 | _ACEOF |
| 12129 | rm -f conftest.$ac_objext |
| 12130 | if { (ac_try="$ac_compile" |
| 12131 | case "(($ac_try" in |
| 12132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12133 | *) ac_try_echo=$ac_try;; |
| 12134 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12136 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12137 | (eval "$ac_compile") 2>conftest.er1 |
| 12138 | ac_status=$? |
| 12139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12140 | rm -f conftest.er1 |
| 12141 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12143 | (exit $ac_status); } && { |
| 12144 | test -z "$ac_c_werror_flag" || |
| 12145 | test ! -s conftest.err |
| 12146 | } && test -s conftest.$ac_objext; then |
| 12147 | ac_hi=-1 ac_mid=-1 |
| 12148 | while :; do |
| 12149 | cat >conftest.$ac_ext <<_ACEOF |
| 12150 | /* confdefs.h. */ |
| 12151 | _ACEOF |
| 12152 | cat confdefs.h >>conftest.$ac_ext |
| 12153 | cat >>conftest.$ac_ext <<_ACEOF |
| 12154 | /* end confdefs.h. */ |
| 12155 | $ac_includes_default |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12156 | int |
| 12157 | main () |
| 12158 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12159 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12160 | test_array [0] = 0 |
| 12161 | |
| 12162 | ; |
| 12163 | return 0; |
| 12164 | } |
| 12165 | _ACEOF |
| 12166 | rm -f conftest.$ac_objext |
| 12167 | if { (ac_try="$ac_compile" |
| 12168 | case "(($ac_try" in |
| 12169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12170 | *) ac_try_echo=$ac_try;; |
| 12171 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12172 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12173 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12174 | (eval "$ac_compile") 2>conftest.er1 |
| 12175 | ac_status=$? |
| 12176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12177 | rm -f conftest.er1 |
| 12178 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12180 | (exit $ac_status); } && { |
| 12181 | test -z "$ac_c_werror_flag" || |
| 12182 | test ! -s conftest.err |
| 12183 | } && test -s conftest.$ac_objext; then |
| 12184 | ac_lo=$ac_mid; break |
| 12185 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12186 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12188 | |
| 12189 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12190 | if test $ac_mid -le $ac_hi; then |
| 12191 | ac_lo= ac_hi= |
| 12192 | break |
| 12193 | fi |
| 12194 | ac_mid=`expr 2 '*' $ac_mid` |
| 12195 | fi |
| 12196 | |
| 12197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12198 | done |
| 12199 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12200 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12202 | |
| 12203 | ac_lo= ac_hi= |
| 12204 | fi |
| 12205 | |
| 12206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12207 | fi |
| 12208 | |
| 12209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12210 | # Binary search between lo and hi bounds. |
| 12211 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12212 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12213 | cat >conftest.$ac_ext <<_ACEOF |
| 12214 | /* confdefs.h. */ |
| 12215 | _ACEOF |
| 12216 | cat confdefs.h >>conftest.$ac_ext |
| 12217 | cat >>conftest.$ac_ext <<_ACEOF |
| 12218 | /* end confdefs.h. */ |
| 12219 | $ac_includes_default |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12220 | int |
| 12221 | main () |
| 12222 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12223 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12224 | test_array [0] = 0 |
| 12225 | |
| 12226 | ; |
| 12227 | return 0; |
| 12228 | } |
| 12229 | _ACEOF |
| 12230 | rm -f conftest.$ac_objext |
| 12231 | if { (ac_try="$ac_compile" |
| 12232 | case "(($ac_try" in |
| 12233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12234 | *) ac_try_echo=$ac_try;; |
| 12235 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12236 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12237 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12238 | (eval "$ac_compile") 2>conftest.er1 |
| 12239 | ac_status=$? |
| 12240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12241 | rm -f conftest.er1 |
| 12242 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12243 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12244 | (exit $ac_status); } && { |
| 12245 | test -z "$ac_c_werror_flag" || |
| 12246 | test ! -s conftest.err |
| 12247 | } && test -s conftest.$ac_objext; then |
| 12248 | ac_hi=$ac_mid |
| 12249 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12250 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12252 | |
| 12253 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12254 | fi |
| 12255 | |
| 12256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12257 | done |
| 12258 | case $ac_lo in |
| 12259 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 12260 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12261 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 12262 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12263 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12264 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12265 | $as_echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12266 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12267 | { (exit 77); exit 77; }; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12268 | else |
| 12269 | ac_cv_sizeof_long_double=0 |
| 12270 | fi ;; |
| 12271 | esac |
| 12272 | else |
| 12273 | cat >conftest.$ac_ext <<_ACEOF |
| 12274 | /* confdefs.h. */ |
| 12275 | _ACEOF |
| 12276 | cat confdefs.h >>conftest.$ac_ext |
| 12277 | cat >>conftest.$ac_ext <<_ACEOF |
| 12278 | /* end confdefs.h. */ |
| 12279 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12280 | static long int longval () { return (long int) (sizeof (long double)); } |
| 12281 | static unsigned long int ulongval () { return (long int) (sizeof (long double)); } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12282 | #include <stdio.h> |
| 12283 | #include <stdlib.h> |
| 12284 | int |
| 12285 | main () |
| 12286 | { |
| 12287 | |
| 12288 | FILE *f = fopen ("conftest.val", "w"); |
| 12289 | if (! f) |
| 12290 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12291 | if (((long int) (sizeof (long double))) < 0) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12292 | { |
| 12293 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12294 | if (i != ((long int) (sizeof (long double)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12295 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12296 | fprintf (f, "%ld", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12297 | } |
| 12298 | else |
| 12299 | { |
| 12300 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12301 | if (i != ((long int) (sizeof (long double)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12302 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12303 | fprintf (f, "%lu", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12304 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12305 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 12306 | on some platforms. */ |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12307 | return ferror (f) || fclose (f) != 0; |
| 12308 | |
| 12309 | ; |
| 12310 | return 0; |
| 12311 | } |
| 12312 | _ACEOF |
| 12313 | rm -f conftest$ac_exeext |
| 12314 | if { (ac_try="$ac_link" |
| 12315 | case "(($ac_try" in |
| 12316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12317 | *) ac_try_echo=$ac_try;; |
| 12318 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12319 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12320 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12321 | (eval "$ac_link") 2>&5 |
| 12322 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12323 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12324 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12325 | { (case "(($ac_try" in |
| 12326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12327 | *) ac_try_echo=$ac_try;; |
| 12328 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12330 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12331 | (eval "$ac_try") 2>&5 |
| 12332 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12334 | (exit $ac_status); }; }; then |
| 12335 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12336 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12337 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12338 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12340 | |
| 12341 | ( exit $ac_status ) |
| 12342 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12343 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 12344 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12345 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12346 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12347 | $as_echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12348 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12349 | { (exit 77); exit 77; }; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12350 | else |
| 12351 | ac_cv_sizeof_long_double=0 |
| 12352 | fi |
| 12353 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12354 | rm -rf conftest.dSYM |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12355 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12356 | fi |
| 12357 | rm -f conftest.val |
| 12358 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12359 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12360 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12361 | |
| 12362 | |
| 12363 | |
| 12364 | cat >>confdefs.h <<_ACEOF |
| 12365 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12366 | _ACEOF |
| 12367 | |
| 12368 | |
| 12369 | fi |
| 12370 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12371 | { $as_echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12372 | $as_echo_n "checking for _Bool support... " >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12373 | have_c99_bool=no |
| 12374 | cat >conftest.$ac_ext <<_ACEOF |
| 12375 | /* confdefs.h. */ |
| 12376 | _ACEOF |
| 12377 | cat confdefs.h >>conftest.$ac_ext |
| 12378 | cat >>conftest.$ac_ext <<_ACEOF |
| 12379 | /* end confdefs.h. */ |
| 12380 | |
| 12381 | int |
| 12382 | main () |
| 12383 | { |
| 12384 | _Bool x; x = (_Bool)0; |
| 12385 | ; |
| 12386 | return 0; |
| 12387 | } |
| 12388 | _ACEOF |
| 12389 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12390 | if { (ac_try="$ac_compile" |
| 12391 | case "(($ac_try" in |
| 12392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12393 | *) ac_try_echo=$ac_try;; |
| 12394 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12396 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12397 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12398 | ac_status=$? |
| 12399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12400 | rm -f conftest.er1 |
| 12401 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12402 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12403 | (exit $ac_status); } && { |
| 12404 | test -z "$ac_c_werror_flag" || |
| 12405 | test ! -s conftest.err |
| 12406 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12407 | |
| 12408 | |
| 12409 | cat >>confdefs.h <<\_ACEOF |
| 12410 | #define HAVE_C99_BOOL 1 |
| 12411 | _ACEOF |
| 12412 | |
| 12413 | have_c99_bool=yes |
| 12414 | |
| 12415 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12416 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12418 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12419 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12420 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12421 | |
| 12422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12423 | { $as_echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12424 | $as_echo "$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12425 | if test "$have_c99_bool" = yes ; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12426 | # The cast to long int works around a bug in the HP C Compiler |
| 12427 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12428 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12429 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12430 | { $as_echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12431 | $as_echo_n "checking size of _Bool... " >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12432 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12433 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12434 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12435 | if test "$cross_compiling" = yes; then |
| 12436 | # Depending upon the size, compute the lo and hi bounds. |
| 12437 | cat >conftest.$ac_ext <<_ACEOF |
| 12438 | /* confdefs.h. */ |
| 12439 | _ACEOF |
| 12440 | cat confdefs.h >>conftest.$ac_ext |
| 12441 | cat >>conftest.$ac_ext <<_ACEOF |
| 12442 | /* end confdefs.h. */ |
| 12443 | $ac_includes_default |
| 12444 | int |
| 12445 | main () |
| 12446 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12447 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= 0)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12448 | test_array [0] = 0 |
| 12449 | |
| 12450 | ; |
| 12451 | return 0; |
| 12452 | } |
| 12453 | _ACEOF |
| 12454 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12455 | if { (ac_try="$ac_compile" |
| 12456 | case "(($ac_try" in |
| 12457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12458 | *) ac_try_echo=$ac_try;; |
| 12459 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12461 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12462 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12463 | ac_status=$? |
| 12464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12465 | rm -f conftest.er1 |
| 12466 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12468 | (exit $ac_status); } && { |
| 12469 | test -z "$ac_c_werror_flag" || |
| 12470 | test ! -s conftest.err |
| 12471 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12472 | ac_lo=0 ac_mid=0 |
| 12473 | while :; do |
| 12474 | cat >conftest.$ac_ext <<_ACEOF |
| 12475 | /* confdefs.h. */ |
| 12476 | _ACEOF |
| 12477 | cat confdefs.h >>conftest.$ac_ext |
| 12478 | cat >>conftest.$ac_ext <<_ACEOF |
| 12479 | /* end confdefs.h. */ |
| 12480 | $ac_includes_default |
| 12481 | int |
| 12482 | main () |
| 12483 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12484 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12485 | test_array [0] = 0 |
| 12486 | |
| 12487 | ; |
| 12488 | return 0; |
| 12489 | } |
| 12490 | _ACEOF |
| 12491 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12492 | if { (ac_try="$ac_compile" |
| 12493 | case "(($ac_try" in |
| 12494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12495 | *) ac_try_echo=$ac_try;; |
| 12496 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12497 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12498 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12499 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12500 | ac_status=$? |
| 12501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12502 | rm -f conftest.er1 |
| 12503 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12504 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12505 | (exit $ac_status); } && { |
| 12506 | test -z "$ac_c_werror_flag" || |
| 12507 | test ! -s conftest.err |
| 12508 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12509 | ac_hi=$ac_mid; break |
| 12510 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12511 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12513 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12514 | ac_lo=`expr $ac_mid + 1` |
| 12515 | if test $ac_lo -le $ac_mid; then |
| 12516 | ac_lo= ac_hi= |
| 12517 | break |
| 12518 | fi |
| 12519 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12520 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12521 | |
| 12522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12523 | done |
| 12524 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12525 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12527 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12528 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12529 | /* confdefs.h. */ |
| 12530 | _ACEOF |
| 12531 | cat confdefs.h >>conftest.$ac_ext |
| 12532 | cat >>conftest.$ac_ext <<_ACEOF |
| 12533 | /* end confdefs.h. */ |
| 12534 | $ac_includes_default |
| 12535 | int |
| 12536 | main () |
| 12537 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12538 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) < 0)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12539 | test_array [0] = 0 |
| 12540 | |
| 12541 | ; |
| 12542 | return 0; |
| 12543 | } |
| 12544 | _ACEOF |
| 12545 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12546 | if { (ac_try="$ac_compile" |
| 12547 | case "(($ac_try" in |
| 12548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12549 | *) ac_try_echo=$ac_try;; |
| 12550 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12551 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12552 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12553 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12554 | ac_status=$? |
| 12555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12556 | rm -f conftest.er1 |
| 12557 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12558 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12559 | (exit $ac_status); } && { |
| 12560 | test -z "$ac_c_werror_flag" || |
| 12561 | test ! -s conftest.err |
| 12562 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12563 | ac_hi=-1 ac_mid=-1 |
| 12564 | while :; do |
| 12565 | cat >conftest.$ac_ext <<_ACEOF |
| 12566 | /* confdefs.h. */ |
| 12567 | _ACEOF |
| 12568 | cat confdefs.h >>conftest.$ac_ext |
| 12569 | cat >>conftest.$ac_ext <<_ACEOF |
| 12570 | /* end confdefs.h. */ |
| 12571 | $ac_includes_default |
| 12572 | int |
| 12573 | main () |
| 12574 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12575 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12576 | test_array [0] = 0 |
| 12577 | |
| 12578 | ; |
| 12579 | return 0; |
| 12580 | } |
| 12581 | _ACEOF |
| 12582 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12583 | if { (ac_try="$ac_compile" |
| 12584 | case "(($ac_try" in |
| 12585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12586 | *) ac_try_echo=$ac_try;; |
| 12587 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12588 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12589 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12590 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12591 | ac_status=$? |
| 12592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12593 | rm -f conftest.er1 |
| 12594 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12596 | (exit $ac_status); } && { |
| 12597 | test -z "$ac_c_werror_flag" || |
| 12598 | test ! -s conftest.err |
| 12599 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12600 | ac_lo=$ac_mid; break |
| 12601 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12602 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12604 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12605 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12606 | if test $ac_mid -le $ac_hi; then |
| 12607 | ac_lo= ac_hi= |
| 12608 | break |
| 12609 | fi |
| 12610 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12611 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12612 | |
| 12613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12614 | done |
| 12615 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12616 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12618 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12619 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12620 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12621 | |
| 12622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12623 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12624 | |
| 12625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12626 | # Binary search between lo and hi bounds. |
| 12627 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12628 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12629 | cat >conftest.$ac_ext <<_ACEOF |
| 12630 | /* confdefs.h. */ |
| 12631 | _ACEOF |
| 12632 | cat confdefs.h >>conftest.$ac_ext |
| 12633 | cat >>conftest.$ac_ext <<_ACEOF |
| 12634 | /* end confdefs.h. */ |
| 12635 | $ac_includes_default |
| 12636 | int |
| 12637 | main () |
| 12638 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12639 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12640 | test_array [0] = 0 |
| 12641 | |
| 12642 | ; |
| 12643 | return 0; |
| 12644 | } |
| 12645 | _ACEOF |
| 12646 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12647 | if { (ac_try="$ac_compile" |
| 12648 | case "(($ac_try" in |
| 12649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12650 | *) ac_try_echo=$ac_try;; |
| 12651 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12652 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12653 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12654 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12655 | ac_status=$? |
| 12656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12657 | rm -f conftest.er1 |
| 12658 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12659 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12660 | (exit $ac_status); } && { |
| 12661 | test -z "$ac_c_werror_flag" || |
| 12662 | test ! -s conftest.err |
| 12663 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12664 | ac_hi=$ac_mid |
| 12665 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12666 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12668 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12669 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12670 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12671 | |
| 12672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12673 | done |
| 12674 | case $ac_lo in |
| 12675 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12676 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12677 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 12678 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12679 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12680 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12681 | $as_echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12682 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12683 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12684 | else |
| 12685 | ac_cv_sizeof__Bool=0 |
| 12686 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12687 | esac |
| 12688 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12689 | cat >conftest.$ac_ext <<_ACEOF |
| 12690 | /* confdefs.h. */ |
| 12691 | _ACEOF |
| 12692 | cat confdefs.h >>conftest.$ac_ext |
| 12693 | cat >>conftest.$ac_ext <<_ACEOF |
| 12694 | /* end confdefs.h. */ |
| 12695 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12696 | static long int longval () { return (long int) (sizeof (_Bool)); } |
| 12697 | static unsigned long int ulongval () { return (long int) (sizeof (_Bool)); } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12698 | #include <stdio.h> |
| 12699 | #include <stdlib.h> |
| 12700 | int |
| 12701 | main () |
| 12702 | { |
| 12703 | |
| 12704 | FILE *f = fopen ("conftest.val", "w"); |
| 12705 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12706 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12707 | if (((long int) (sizeof (_Bool))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12708 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12709 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12710 | if (i != ((long int) (sizeof (_Bool)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12711 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12712 | fprintf (f, "%ld", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12713 | } |
| 12714 | else |
| 12715 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12716 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12717 | if (i != ((long int) (sizeof (_Bool)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12718 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12719 | fprintf (f, "%lu", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12720 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12721 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 12722 | on some platforms. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12723 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12724 | |
| 12725 | ; |
| 12726 | return 0; |
| 12727 | } |
| 12728 | _ACEOF |
| 12729 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12730 | if { (ac_try="$ac_link" |
| 12731 | case "(($ac_try" in |
| 12732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12733 | *) ac_try_echo=$ac_try;; |
| 12734 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12735 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12736 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12737 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12738 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12739 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12740 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12741 | { (case "(($ac_try" in |
| 12742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12743 | *) ac_try_echo=$ac_try;; |
| 12744 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12746 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12747 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12748 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12749 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12750 | (exit $ac_status); }; }; then |
| 12751 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12752 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12753 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12754 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12756 | |
| 12757 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12758 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12759 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 12760 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12761 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12762 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12763 | $as_echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12764 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12765 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12766 | else |
| 12767 | ac_cv_sizeof__Bool=0 |
| 12768 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12769 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12770 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12771 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12772 | fi |
| 12773 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12774 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12775 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12776 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12777 | |
| 12778 | |
| 12779 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12780 | cat >>confdefs.h <<_ACEOF |
| 12781 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12782 | _ACEOF |
| 12783 | |
| 12784 | |
| 12785 | fi |
| 12786 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12787 | { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12788 | $as_echo_n "checking for uintptr_t... " >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12789 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12790 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12791 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12792 | ac_cv_type_uintptr_t=no |
| 12793 | cat >conftest.$ac_ext <<_ACEOF |
| 12794 | /* confdefs.h. */ |
| 12795 | _ACEOF |
| 12796 | cat confdefs.h >>conftest.$ac_ext |
| 12797 | cat >>conftest.$ac_ext <<_ACEOF |
| 12798 | /* end confdefs.h. */ |
| 12799 | #ifdef HAVE_STDINT_H |
| 12800 | #include <stdint.h> |
| 12801 | #endif |
| 12802 | |
| 12803 | int |
| 12804 | main () |
| 12805 | { |
| 12806 | if (sizeof (uintptr_t)) |
| 12807 | return 0; |
| 12808 | ; |
| 12809 | return 0; |
| 12810 | } |
| 12811 | _ACEOF |
| 12812 | rm -f conftest.$ac_objext |
| 12813 | if { (ac_try="$ac_compile" |
| 12814 | case "(($ac_try" in |
| 12815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12816 | *) ac_try_echo=$ac_try;; |
| 12817 | esac |
| 12818 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12819 | $as_echo "$ac_try_echo") >&5 |
| 12820 | (eval "$ac_compile") 2>conftest.er1 |
| 12821 | ac_status=$? |
| 12822 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12823 | rm -f conftest.er1 |
| 12824 | cat conftest.err >&5 |
| 12825 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12826 | (exit $ac_status); } && { |
| 12827 | test -z "$ac_c_werror_flag" || |
| 12828 | test ! -s conftest.err |
| 12829 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12830 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12831 | /* confdefs.h. */ |
| 12832 | _ACEOF |
| 12833 | cat confdefs.h >>conftest.$ac_ext |
| 12834 | cat >>conftest.$ac_ext <<_ACEOF |
| 12835 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12836 | #ifdef HAVE_STDINT_H |
| 12837 | #include <stdint.h> |
| 12838 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12840 | int |
| 12841 | main () |
| 12842 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12843 | if (sizeof ((uintptr_t))) |
| 12844 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 | ; |
| 12846 | return 0; |
| 12847 | } |
| 12848 | _ACEOF |
| 12849 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12850 | if { (ac_try="$ac_compile" |
| 12851 | case "(($ac_try" in |
| 12852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12853 | *) ac_try_echo=$ac_try;; |
| 12854 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12855 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12856 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12857 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12858 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12860 | rm -f conftest.er1 |
| 12861 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12863 | (exit $ac_status); } && { |
| 12864 | test -z "$ac_c_werror_flag" || |
| 12865 | test ! -s conftest.err |
| 12866 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12867 | : |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12868 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12869 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12871 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12872 | ac_cv_type_uintptr_t=yes |
| 12873 | fi |
| 12874 | |
| 12875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12876 | else |
| 12877 | $as_echo "$as_me: failed program was:" >&5 |
| 12878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12879 | |
| 12880 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12881 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12882 | |
| 12883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12884 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12885 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12886 | $as_echo "$ac_cv_type_uintptr_t" >&6; } |
| 12887 | if test "x$ac_cv_type_uintptr_t" = x""yes; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12888 | |
| 12889 | cat >>confdefs.h <<_ACEOF |
| 12890 | #define HAVE_UINTPTR_T 1 |
| 12891 | _ACEOF |
| 12892 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12893 | # The cast to long int works around a bug in the HP C Compiler |
| 12894 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12895 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12896 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12897 | { $as_echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12898 | $as_echo_n "checking size of uintptr_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12899 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12900 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12902 | if test "$cross_compiling" = yes; then |
| 12903 | # Depending upon the size, compute the lo and hi bounds. |
| 12904 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12905 | /* confdefs.h. */ |
| 12906 | _ACEOF |
| 12907 | cat confdefs.h >>conftest.$ac_ext |
| 12908 | cat >>conftest.$ac_ext <<_ACEOF |
| 12909 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12910 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12911 | int |
| 12912 | main () |
| 12913 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12914 | 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] | 12915 | test_array [0] = 0 |
| 12916 | |
| 12917 | ; |
| 12918 | return 0; |
| 12919 | } |
| 12920 | _ACEOF |
| 12921 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12922 | if { (ac_try="$ac_compile" |
| 12923 | case "(($ac_try" in |
| 12924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12925 | *) ac_try_echo=$ac_try;; |
| 12926 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12927 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12928 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12929 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12932 | rm -f conftest.er1 |
| 12933 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12934 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12935 | (exit $ac_status); } && { |
| 12936 | test -z "$ac_c_werror_flag" || |
| 12937 | test ! -s conftest.err |
| 12938 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 | ac_lo=0 ac_mid=0 |
| 12940 | while :; do |
| 12941 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12942 | /* confdefs.h. */ |
| 12943 | _ACEOF |
| 12944 | cat confdefs.h >>conftest.$ac_ext |
| 12945 | cat >>conftest.$ac_ext <<_ACEOF |
| 12946 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12948 | int |
| 12949 | main () |
| 12950 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12951 | 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] | 12952 | test_array [0] = 0 |
| 12953 | |
| 12954 | ; |
| 12955 | return 0; |
| 12956 | } |
| 12957 | _ACEOF |
| 12958 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12959 | if { (ac_try="$ac_compile" |
| 12960 | case "(($ac_try" in |
| 12961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12962 | *) ac_try_echo=$ac_try;; |
| 12963 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12964 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12965 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12966 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12969 | rm -f conftest.er1 |
| 12970 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12971 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12972 | (exit $ac_status); } && { |
| 12973 | test -z "$ac_c_werror_flag" || |
| 12974 | test ! -s conftest.err |
| 12975 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12976 | ac_hi=$ac_mid; break |
| 12977 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12978 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12980 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12981 | ac_lo=`expr $ac_mid + 1` |
| 12982 | if test $ac_lo -le $ac_mid; then |
| 12983 | ac_lo= ac_hi= |
| 12984 | break |
| 12985 | fi |
| 12986 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12987 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12988 | |
| 12989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12990 | done |
| 12991 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 12992 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12994 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12995 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12996 | /* confdefs.h. */ |
| 12997 | _ACEOF |
| 12998 | cat confdefs.h >>conftest.$ac_ext |
| 12999 | cat >>conftest.$ac_ext <<_ACEOF |
| 13000 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13001 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13002 | int |
| 13003 | main () |
| 13004 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13005 | 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] | 13006 | test_array [0] = 0 |
| 13007 | |
| 13008 | ; |
| 13009 | return 0; |
| 13010 | } |
| 13011 | _ACEOF |
| 13012 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13013 | if { (ac_try="$ac_compile" |
| 13014 | case "(($ac_try" in |
| 13015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13016 | *) ac_try_echo=$ac_try;; |
| 13017 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13018 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13019 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13020 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13021 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13023 | rm -f conftest.er1 |
| 13024 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13026 | (exit $ac_status); } && { |
| 13027 | test -z "$ac_c_werror_flag" || |
| 13028 | test ! -s conftest.err |
| 13029 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13030 | ac_hi=-1 ac_mid=-1 |
| 13031 | while :; do |
| 13032 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13033 | /* confdefs.h. */ |
| 13034 | _ACEOF |
| 13035 | cat confdefs.h >>conftest.$ac_ext |
| 13036 | cat >>conftest.$ac_ext <<_ACEOF |
| 13037 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13038 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13039 | int |
| 13040 | main () |
| 13041 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13042 | 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] | 13043 | test_array [0] = 0 |
| 13044 | |
| 13045 | ; |
| 13046 | return 0; |
| 13047 | } |
| 13048 | _ACEOF |
| 13049 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13050 | if { (ac_try="$ac_compile" |
| 13051 | case "(($ac_try" in |
| 13052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13053 | *) ac_try_echo=$ac_try;; |
| 13054 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13056 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13057 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13058 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13060 | rm -f conftest.er1 |
| 13061 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13063 | (exit $ac_status); } && { |
| 13064 | test -z "$ac_c_werror_flag" || |
| 13065 | test ! -s conftest.err |
| 13066 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13067 | ac_lo=$ac_mid; break |
| 13068 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13069 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13071 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13072 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13073 | if test $ac_mid -le $ac_hi; then |
| 13074 | ac_lo= ac_hi= |
| 13075 | break |
| 13076 | fi |
| 13077 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13078 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13079 | |
| 13080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13081 | done |
| 13082 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13083 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13085 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13086 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13087 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13088 | |
| 13089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13090 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13091 | |
| 13092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13093 | # Binary search between lo and hi bounds. |
| 13094 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13095 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13096 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13097 | /* confdefs.h. */ |
| 13098 | _ACEOF |
| 13099 | cat confdefs.h >>conftest.$ac_ext |
| 13100 | cat >>conftest.$ac_ext <<_ACEOF |
| 13101 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13102 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13103 | int |
| 13104 | main () |
| 13105 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13106 | 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] | 13107 | test_array [0] = 0 |
| 13108 | |
| 13109 | ; |
| 13110 | return 0; |
| 13111 | } |
| 13112 | _ACEOF |
| 13113 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13114 | if { (ac_try="$ac_compile" |
| 13115 | case "(($ac_try" in |
| 13116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13117 | *) ac_try_echo=$ac_try;; |
| 13118 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13119 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13120 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13121 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13122 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13124 | rm -f conftest.er1 |
| 13125 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13126 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13127 | (exit $ac_status); } && { |
| 13128 | test -z "$ac_c_werror_flag" || |
| 13129 | test ! -s conftest.err |
| 13130 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13131 | ac_hi=$ac_mid |
| 13132 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13133 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13135 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13136 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13137 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13138 | |
| 13139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13140 | done |
| 13141 | case $ac_lo in |
| 13142 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13143 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13144 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 13145 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13146 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13147 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13148 | $as_echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13149 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13150 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13151 | else |
| 13152 | ac_cv_sizeof_uintptr_t=0 |
| 13153 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13154 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13156 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13157 | /* confdefs.h. */ |
| 13158 | _ACEOF |
| 13159 | cat confdefs.h >>conftest.$ac_ext |
| 13160 | cat >>conftest.$ac_ext <<_ACEOF |
| 13161 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13162 | $ac_includes_default |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13163 | static long int longval () { return (long int) (sizeof (uintptr_t)); } |
| 13164 | static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13165 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13166 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13167 | int |
| 13168 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13169 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13170 | |
| 13171 | FILE *f = fopen ("conftest.val", "w"); |
| 13172 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13173 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13174 | if (((long int) (sizeof (uintptr_t))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13175 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13176 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13177 | if (i != ((long int) (sizeof (uintptr_t)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13178 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13179 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13180 | } |
| 13181 | else |
| 13182 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13183 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13184 | if (i != ((long int) (sizeof (uintptr_t)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13185 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13186 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13187 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13188 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 13189 | on some platforms. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13190 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13191 | |
| 13192 | ; |
| 13193 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13194 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13195 | _ACEOF |
| 13196 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13197 | if { (ac_try="$ac_link" |
| 13198 | case "(($ac_try" in |
| 13199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13200 | *) ac_try_echo=$ac_try;; |
| 13201 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13202 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13203 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13204 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13205 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13207 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13208 | { (case "(($ac_try" in |
| 13209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13210 | *) ac_try_echo=$ac_try;; |
| 13211 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13212 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13213 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13214 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13215 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13216 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13217 | (exit $ac_status); }; }; then |
| 13218 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13219 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13220 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13221 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13224 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13225 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13226 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 13227 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13228 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13229 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13230 | $as_echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13231 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13232 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13233 | else |
| 13234 | ac_cv_sizeof_uintptr_t=0 |
| 13235 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13236 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13237 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13238 | 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] | 13239 | fi |
| 13240 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13241 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13242 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 13243 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13244 | |
| 13245 | |
| 13246 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13247 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13248 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13249 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13250 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13251 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13252 | fi |
| 13253 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 13254 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13255 | # The cast to long int works around a bug in the HP C Compiler |
| 13256 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13257 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13258 | # This bug is HP SR number 8606223364. |
| 13259 | { $as_echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13260 | $as_echo_n "checking size of off_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13261 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13262 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13263 | else |
| 13264 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13265 | # Depending upon the size, compute the lo and hi bounds. |
| 13266 | cat >conftest.$ac_ext <<_ACEOF |
| 13267 | /* confdefs.h. */ |
| 13268 | _ACEOF |
| 13269 | cat confdefs.h >>conftest.$ac_ext |
| 13270 | cat >>conftest.$ac_ext <<_ACEOF |
| 13271 | /* end confdefs.h. */ |
| 13272 | |
| 13273 | #ifdef HAVE_SYS_TYPES_H |
| 13274 | #include <sys/types.h> |
| 13275 | #endif |
| 13276 | |
| 13277 | |
| 13278 | int |
| 13279 | main () |
| 13280 | { |
| 13281 | static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)]; |
| 13282 | test_array [0] = 0 |
| 13283 | |
| 13284 | ; |
| 13285 | return 0; |
| 13286 | } |
| 13287 | _ACEOF |
| 13288 | rm -f conftest.$ac_objext |
| 13289 | if { (ac_try="$ac_compile" |
| 13290 | case "(($ac_try" in |
| 13291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13292 | *) ac_try_echo=$ac_try;; |
| 13293 | esac |
| 13294 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13295 | $as_echo "$ac_try_echo") >&5 |
| 13296 | (eval "$ac_compile") 2>conftest.er1 |
| 13297 | ac_status=$? |
| 13298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13299 | rm -f conftest.er1 |
| 13300 | cat conftest.err >&5 |
| 13301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13302 | (exit $ac_status); } && { |
| 13303 | test -z "$ac_c_werror_flag" || |
| 13304 | test ! -s conftest.err |
| 13305 | } && test -s conftest.$ac_objext; then |
| 13306 | ac_lo=0 ac_mid=0 |
| 13307 | while :; do |
| 13308 | cat >conftest.$ac_ext <<_ACEOF |
| 13309 | /* confdefs.h. */ |
| 13310 | _ACEOF |
| 13311 | cat confdefs.h >>conftest.$ac_ext |
| 13312 | cat >>conftest.$ac_ext <<_ACEOF |
| 13313 | /* end confdefs.h. */ |
| 13314 | |
| 13315 | #ifdef HAVE_SYS_TYPES_H |
| 13316 | #include <sys/types.h> |
| 13317 | #endif |
| 13318 | |
| 13319 | |
| 13320 | int |
| 13321 | main () |
| 13322 | { |
| 13323 | static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)]; |
| 13324 | test_array [0] = 0 |
| 13325 | |
| 13326 | ; |
| 13327 | return 0; |
| 13328 | } |
| 13329 | _ACEOF |
| 13330 | rm -f conftest.$ac_objext |
| 13331 | if { (ac_try="$ac_compile" |
| 13332 | case "(($ac_try" in |
| 13333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13334 | *) ac_try_echo=$ac_try;; |
| 13335 | esac |
| 13336 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13337 | $as_echo "$ac_try_echo") >&5 |
| 13338 | (eval "$ac_compile") 2>conftest.er1 |
| 13339 | ac_status=$? |
| 13340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13341 | rm -f conftest.er1 |
| 13342 | cat conftest.err >&5 |
| 13343 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13344 | (exit $ac_status); } && { |
| 13345 | test -z "$ac_c_werror_flag" || |
| 13346 | test ! -s conftest.err |
| 13347 | } && test -s conftest.$ac_objext; then |
| 13348 | ac_hi=$ac_mid; break |
| 13349 | else |
| 13350 | $as_echo "$as_me: failed program was:" >&5 |
| 13351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13352 | |
| 13353 | ac_lo=`expr $ac_mid + 1` |
| 13354 | if test $ac_lo -le $ac_mid; then |
| 13355 | ac_lo= ac_hi= |
| 13356 | break |
| 13357 | fi |
| 13358 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13359 | fi |
| 13360 | |
| 13361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13362 | done |
| 13363 | else |
| 13364 | $as_echo "$as_me: failed program was:" >&5 |
| 13365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13366 | |
| 13367 | cat >conftest.$ac_ext <<_ACEOF |
| 13368 | /* confdefs.h. */ |
| 13369 | _ACEOF |
| 13370 | cat confdefs.h >>conftest.$ac_ext |
| 13371 | cat >>conftest.$ac_ext <<_ACEOF |
| 13372 | /* end confdefs.h. */ |
| 13373 | |
| 13374 | #ifdef HAVE_SYS_TYPES_H |
| 13375 | #include <sys/types.h> |
| 13376 | #endif |
| 13377 | |
| 13378 | |
| 13379 | int |
| 13380 | main () |
| 13381 | { |
| 13382 | static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)]; |
| 13383 | test_array [0] = 0 |
| 13384 | |
| 13385 | ; |
| 13386 | return 0; |
| 13387 | } |
| 13388 | _ACEOF |
| 13389 | rm -f conftest.$ac_objext |
| 13390 | if { (ac_try="$ac_compile" |
| 13391 | case "(($ac_try" in |
| 13392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13393 | *) ac_try_echo=$ac_try;; |
| 13394 | esac |
| 13395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13396 | $as_echo "$ac_try_echo") >&5 |
| 13397 | (eval "$ac_compile") 2>conftest.er1 |
| 13398 | ac_status=$? |
| 13399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13400 | rm -f conftest.er1 |
| 13401 | cat conftest.err >&5 |
| 13402 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13403 | (exit $ac_status); } && { |
| 13404 | test -z "$ac_c_werror_flag" || |
| 13405 | test ! -s conftest.err |
| 13406 | } && test -s conftest.$ac_objext; then |
| 13407 | ac_hi=-1 ac_mid=-1 |
| 13408 | while :; do |
| 13409 | cat >conftest.$ac_ext <<_ACEOF |
| 13410 | /* confdefs.h. */ |
| 13411 | _ACEOF |
| 13412 | cat confdefs.h >>conftest.$ac_ext |
| 13413 | cat >>conftest.$ac_ext <<_ACEOF |
| 13414 | /* end confdefs.h. */ |
| 13415 | |
| 13416 | #ifdef HAVE_SYS_TYPES_H |
| 13417 | #include <sys/types.h> |
| 13418 | #endif |
| 13419 | |
| 13420 | |
| 13421 | int |
| 13422 | main () |
| 13423 | { |
| 13424 | static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)]; |
| 13425 | test_array [0] = 0 |
| 13426 | |
| 13427 | ; |
| 13428 | return 0; |
| 13429 | } |
| 13430 | _ACEOF |
| 13431 | rm -f conftest.$ac_objext |
| 13432 | if { (ac_try="$ac_compile" |
| 13433 | case "(($ac_try" in |
| 13434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13435 | *) ac_try_echo=$ac_try;; |
| 13436 | esac |
| 13437 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13438 | $as_echo "$ac_try_echo") >&5 |
| 13439 | (eval "$ac_compile") 2>conftest.er1 |
| 13440 | ac_status=$? |
| 13441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13442 | rm -f conftest.er1 |
| 13443 | cat conftest.err >&5 |
| 13444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13445 | (exit $ac_status); } && { |
| 13446 | test -z "$ac_c_werror_flag" || |
| 13447 | test ! -s conftest.err |
| 13448 | } && test -s conftest.$ac_objext; then |
| 13449 | ac_lo=$ac_mid; break |
| 13450 | else |
| 13451 | $as_echo "$as_me: failed program was:" >&5 |
| 13452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13453 | |
| 13454 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13455 | if test $ac_mid -le $ac_hi; then |
| 13456 | ac_lo= ac_hi= |
| 13457 | break |
| 13458 | fi |
| 13459 | ac_mid=`expr 2 '*' $ac_mid` |
| 13460 | fi |
| 13461 | |
| 13462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13463 | done |
| 13464 | else |
| 13465 | $as_echo "$as_me: failed program was:" >&5 |
| 13466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13467 | |
| 13468 | ac_lo= ac_hi= |
| 13469 | fi |
| 13470 | |
| 13471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13472 | fi |
| 13473 | |
| 13474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13475 | # Binary search between lo and hi bounds. |
| 13476 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13477 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13478 | cat >conftest.$ac_ext <<_ACEOF |
| 13479 | /* confdefs.h. */ |
| 13480 | _ACEOF |
| 13481 | cat confdefs.h >>conftest.$ac_ext |
| 13482 | cat >>conftest.$ac_ext <<_ACEOF |
| 13483 | /* end confdefs.h. */ |
| 13484 | |
| 13485 | #ifdef HAVE_SYS_TYPES_H |
| 13486 | #include <sys/types.h> |
| 13487 | #endif |
| 13488 | |
| 13489 | |
| 13490 | int |
| 13491 | main () |
| 13492 | { |
| 13493 | static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)]; |
| 13494 | test_array [0] = 0 |
| 13495 | |
| 13496 | ; |
| 13497 | return 0; |
| 13498 | } |
| 13499 | _ACEOF |
| 13500 | rm -f conftest.$ac_objext |
| 13501 | if { (ac_try="$ac_compile" |
| 13502 | case "(($ac_try" in |
| 13503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13504 | *) ac_try_echo=$ac_try;; |
| 13505 | esac |
| 13506 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13507 | $as_echo "$ac_try_echo") >&5 |
| 13508 | (eval "$ac_compile") 2>conftest.er1 |
| 13509 | ac_status=$? |
| 13510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13511 | rm -f conftest.er1 |
| 13512 | cat conftest.err >&5 |
| 13513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13514 | (exit $ac_status); } && { |
| 13515 | test -z "$ac_c_werror_flag" || |
| 13516 | test ! -s conftest.err |
| 13517 | } && test -s conftest.$ac_objext; then |
| 13518 | ac_hi=$ac_mid |
| 13519 | else |
| 13520 | $as_echo "$as_me: failed program was:" >&5 |
| 13521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13522 | |
| 13523 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13524 | fi |
| 13525 | |
| 13526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13527 | done |
| 13528 | case $ac_lo in |
| 13529 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 13530 | '') if test "$ac_cv_type_off_t" = yes; then |
| 13531 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 13532 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13533 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13534 | See \`config.log' for more details." >&5 |
| 13535 | $as_echo "$as_me: error: cannot compute sizeof (off_t) |
| 13536 | See \`config.log' for more details." >&2;} |
| 13537 | { (exit 77); exit 77; }; }; } |
| 13538 | else |
| 13539 | ac_cv_sizeof_off_t=0 |
| 13540 | fi ;; |
| 13541 | esac |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13542 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13543 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13544 | /* confdefs.h. */ |
| 13545 | _ACEOF |
| 13546 | cat confdefs.h >>conftest.$ac_ext |
| 13547 | cat >>conftest.$ac_ext <<_ACEOF |
| 13548 | /* end confdefs.h. */ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13549 | |
| 13550 | #ifdef HAVE_SYS_TYPES_H |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13551 | #include <sys/types.h> |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13552 | #endif |
| 13553 | |
| 13554 | |
| 13555 | static long int longval () { return (long int) (sizeof (off_t)); } |
| 13556 | static unsigned long int ulongval () { return (long int) (sizeof (off_t)); } |
| 13557 | #include <stdio.h> |
| 13558 | #include <stdlib.h> |
| 13559 | int |
| 13560 | main () |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13561 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13562 | |
| 13563 | FILE *f = fopen ("conftest.val", "w"); |
| 13564 | if (! f) |
| 13565 | return 1; |
| 13566 | if (((long int) (sizeof (off_t))) < 0) |
| 13567 | { |
| 13568 | long int i = longval (); |
| 13569 | if (i != ((long int) (sizeof (off_t)))) |
| 13570 | return 1; |
| 13571 | fprintf (f, "%ld", i); |
| 13572 | } |
| 13573 | else |
| 13574 | { |
| 13575 | unsigned long int i = ulongval (); |
| 13576 | if (i != ((long int) (sizeof (off_t)))) |
| 13577 | return 1; |
| 13578 | fprintf (f, "%lu", i); |
| 13579 | } |
| 13580 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 13581 | on some platforms. */ |
| 13582 | return ferror (f) || fclose (f) != 0; |
| 13583 | |
| 13584 | ; |
| 13585 | return 0; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13586 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13587 | _ACEOF |
| 13588 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13589 | if { (ac_try="$ac_link" |
| 13590 | case "(($ac_try" in |
| 13591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13592 | *) ac_try_echo=$ac_try;; |
| 13593 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13594 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13595 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13596 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13597 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13598 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13599 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13600 | { (case "(($ac_try" in |
| 13601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13602 | *) ac_try_echo=$ac_try;; |
| 13603 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13604 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13605 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13606 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13607 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13608 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13609 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13610 | ac_cv_sizeof_off_t=`cat conftest.val` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13611 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13612 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13613 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13616 | ( exit $ac_status ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13617 | if test "$ac_cv_type_off_t" = yes; then |
| 13618 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 13619 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13620 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13621 | See \`config.log' for more details." >&5 |
| 13622 | $as_echo "$as_me: error: cannot compute sizeof (off_t) |
| 13623 | See \`config.log' for more details." >&2;} |
| 13624 | { (exit 77); exit 77; }; }; } |
| 13625 | else |
| 13626 | ac_cv_sizeof_off_t=0 |
| 13627 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13628 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13629 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13630 | 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] | 13631 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13632 | rm -f conftest.val |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13633 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13634 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13635 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13636 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13638 | |
| 13639 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13640 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13641 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13642 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13643 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13644 | |
| 13645 | { $as_echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13646 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 13647 | if test "$have_long_long" = yes -a \ |
| 13648 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 13649 | "$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] | 13650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13651 | cat >>confdefs.h <<\_ACEOF |
| 13652 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13653 | _ACEOF |
| 13654 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13655 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13656 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13657 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13658 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13659 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13660 | fi |
| 13661 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13662 | # The cast to long int works around a bug in the HP C Compiler |
| 13663 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13664 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13665 | # This bug is HP SR number 8606223364. |
| 13666 | { $as_echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13667 | $as_echo_n "checking size of time_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13668 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13669 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13670 | else |
| 13671 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13672 | # Depending upon the size, compute the lo and hi bounds. |
| 13673 | cat >conftest.$ac_ext <<_ACEOF |
| 13674 | /* confdefs.h. */ |
| 13675 | _ACEOF |
| 13676 | cat confdefs.h >>conftest.$ac_ext |
| 13677 | cat >>conftest.$ac_ext <<_ACEOF |
| 13678 | /* end confdefs.h. */ |
| 13679 | |
| 13680 | #ifdef HAVE_SYS_TYPES_H |
| 13681 | #include <sys/types.h> |
| 13682 | #endif |
| 13683 | #ifdef HAVE_TIME_H |
| 13684 | #include <time.h> |
| 13685 | #endif |
| 13686 | |
| 13687 | |
| 13688 | int |
| 13689 | main () |
| 13690 | { |
| 13691 | static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)]; |
| 13692 | test_array [0] = 0 |
| 13693 | |
| 13694 | ; |
| 13695 | return 0; |
| 13696 | } |
| 13697 | _ACEOF |
| 13698 | rm -f conftest.$ac_objext |
| 13699 | if { (ac_try="$ac_compile" |
| 13700 | case "(($ac_try" in |
| 13701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13702 | *) ac_try_echo=$ac_try;; |
| 13703 | esac |
| 13704 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13705 | $as_echo "$ac_try_echo") >&5 |
| 13706 | (eval "$ac_compile") 2>conftest.er1 |
| 13707 | ac_status=$? |
| 13708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13709 | rm -f conftest.er1 |
| 13710 | cat conftest.err >&5 |
| 13711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13712 | (exit $ac_status); } && { |
| 13713 | test -z "$ac_c_werror_flag" || |
| 13714 | test ! -s conftest.err |
| 13715 | } && test -s conftest.$ac_objext; then |
| 13716 | ac_lo=0 ac_mid=0 |
| 13717 | while :; do |
| 13718 | cat >conftest.$ac_ext <<_ACEOF |
| 13719 | /* confdefs.h. */ |
| 13720 | _ACEOF |
| 13721 | cat confdefs.h >>conftest.$ac_ext |
| 13722 | cat >>conftest.$ac_ext <<_ACEOF |
| 13723 | /* end confdefs.h. */ |
| 13724 | |
| 13725 | #ifdef HAVE_SYS_TYPES_H |
| 13726 | #include <sys/types.h> |
| 13727 | #endif |
| 13728 | #ifdef HAVE_TIME_H |
| 13729 | #include <time.h> |
| 13730 | #endif |
| 13731 | |
| 13732 | |
| 13733 | int |
| 13734 | main () |
| 13735 | { |
| 13736 | static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)]; |
| 13737 | test_array [0] = 0 |
| 13738 | |
| 13739 | ; |
| 13740 | return 0; |
| 13741 | } |
| 13742 | _ACEOF |
| 13743 | rm -f conftest.$ac_objext |
| 13744 | if { (ac_try="$ac_compile" |
| 13745 | case "(($ac_try" in |
| 13746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13747 | *) ac_try_echo=$ac_try;; |
| 13748 | esac |
| 13749 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13750 | $as_echo "$ac_try_echo") >&5 |
| 13751 | (eval "$ac_compile") 2>conftest.er1 |
| 13752 | ac_status=$? |
| 13753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13754 | rm -f conftest.er1 |
| 13755 | cat conftest.err >&5 |
| 13756 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13757 | (exit $ac_status); } && { |
| 13758 | test -z "$ac_c_werror_flag" || |
| 13759 | test ! -s conftest.err |
| 13760 | } && test -s conftest.$ac_objext; then |
| 13761 | ac_hi=$ac_mid; break |
| 13762 | else |
| 13763 | $as_echo "$as_me: failed program was:" >&5 |
| 13764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13765 | |
| 13766 | ac_lo=`expr $ac_mid + 1` |
| 13767 | if test $ac_lo -le $ac_mid; then |
| 13768 | ac_lo= ac_hi= |
| 13769 | break |
| 13770 | fi |
| 13771 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13772 | fi |
| 13773 | |
| 13774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13775 | done |
| 13776 | else |
| 13777 | $as_echo "$as_me: failed program was:" >&5 |
| 13778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13779 | |
| 13780 | cat >conftest.$ac_ext <<_ACEOF |
| 13781 | /* confdefs.h. */ |
| 13782 | _ACEOF |
| 13783 | cat confdefs.h >>conftest.$ac_ext |
| 13784 | cat >>conftest.$ac_ext <<_ACEOF |
| 13785 | /* end confdefs.h. */ |
| 13786 | |
| 13787 | #ifdef HAVE_SYS_TYPES_H |
| 13788 | #include <sys/types.h> |
| 13789 | #endif |
| 13790 | #ifdef HAVE_TIME_H |
| 13791 | #include <time.h> |
| 13792 | #endif |
| 13793 | |
| 13794 | |
| 13795 | int |
| 13796 | main () |
| 13797 | { |
| 13798 | static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)]; |
| 13799 | test_array [0] = 0 |
| 13800 | |
| 13801 | ; |
| 13802 | return 0; |
| 13803 | } |
| 13804 | _ACEOF |
| 13805 | rm -f conftest.$ac_objext |
| 13806 | if { (ac_try="$ac_compile" |
| 13807 | case "(($ac_try" in |
| 13808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13809 | *) ac_try_echo=$ac_try;; |
| 13810 | esac |
| 13811 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13812 | $as_echo "$ac_try_echo") >&5 |
| 13813 | (eval "$ac_compile") 2>conftest.er1 |
| 13814 | ac_status=$? |
| 13815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13816 | rm -f conftest.er1 |
| 13817 | cat conftest.err >&5 |
| 13818 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13819 | (exit $ac_status); } && { |
| 13820 | test -z "$ac_c_werror_flag" || |
| 13821 | test ! -s conftest.err |
| 13822 | } && test -s conftest.$ac_objext; then |
| 13823 | ac_hi=-1 ac_mid=-1 |
| 13824 | while :; do |
| 13825 | cat >conftest.$ac_ext <<_ACEOF |
| 13826 | /* confdefs.h. */ |
| 13827 | _ACEOF |
| 13828 | cat confdefs.h >>conftest.$ac_ext |
| 13829 | cat >>conftest.$ac_ext <<_ACEOF |
| 13830 | /* end confdefs.h. */ |
| 13831 | |
| 13832 | #ifdef HAVE_SYS_TYPES_H |
| 13833 | #include <sys/types.h> |
| 13834 | #endif |
| 13835 | #ifdef HAVE_TIME_H |
| 13836 | #include <time.h> |
| 13837 | #endif |
| 13838 | |
| 13839 | |
| 13840 | int |
| 13841 | main () |
| 13842 | { |
| 13843 | static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)]; |
| 13844 | test_array [0] = 0 |
| 13845 | |
| 13846 | ; |
| 13847 | return 0; |
| 13848 | } |
| 13849 | _ACEOF |
| 13850 | rm -f conftest.$ac_objext |
| 13851 | if { (ac_try="$ac_compile" |
| 13852 | case "(($ac_try" in |
| 13853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13854 | *) ac_try_echo=$ac_try;; |
| 13855 | esac |
| 13856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13857 | $as_echo "$ac_try_echo") >&5 |
| 13858 | (eval "$ac_compile") 2>conftest.er1 |
| 13859 | ac_status=$? |
| 13860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13861 | rm -f conftest.er1 |
| 13862 | cat conftest.err >&5 |
| 13863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13864 | (exit $ac_status); } && { |
| 13865 | test -z "$ac_c_werror_flag" || |
| 13866 | test ! -s conftest.err |
| 13867 | } && test -s conftest.$ac_objext; then |
| 13868 | ac_lo=$ac_mid; break |
| 13869 | else |
| 13870 | $as_echo "$as_me: failed program was:" >&5 |
| 13871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13872 | |
| 13873 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13874 | if test $ac_mid -le $ac_hi; then |
| 13875 | ac_lo= ac_hi= |
| 13876 | break |
| 13877 | fi |
| 13878 | ac_mid=`expr 2 '*' $ac_mid` |
| 13879 | fi |
| 13880 | |
| 13881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13882 | done |
| 13883 | else |
| 13884 | $as_echo "$as_me: failed program was:" >&5 |
| 13885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13886 | |
| 13887 | ac_lo= ac_hi= |
| 13888 | fi |
| 13889 | |
| 13890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13891 | fi |
| 13892 | |
| 13893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13894 | # Binary search between lo and hi bounds. |
| 13895 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13896 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13897 | cat >conftest.$ac_ext <<_ACEOF |
| 13898 | /* confdefs.h. */ |
| 13899 | _ACEOF |
| 13900 | cat confdefs.h >>conftest.$ac_ext |
| 13901 | cat >>conftest.$ac_ext <<_ACEOF |
| 13902 | /* end confdefs.h. */ |
| 13903 | |
| 13904 | #ifdef HAVE_SYS_TYPES_H |
| 13905 | #include <sys/types.h> |
| 13906 | #endif |
| 13907 | #ifdef HAVE_TIME_H |
| 13908 | #include <time.h> |
| 13909 | #endif |
| 13910 | |
| 13911 | |
| 13912 | int |
| 13913 | main () |
| 13914 | { |
| 13915 | static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)]; |
| 13916 | test_array [0] = 0 |
| 13917 | |
| 13918 | ; |
| 13919 | return 0; |
| 13920 | } |
| 13921 | _ACEOF |
| 13922 | rm -f conftest.$ac_objext |
| 13923 | if { (ac_try="$ac_compile" |
| 13924 | case "(($ac_try" in |
| 13925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13926 | *) ac_try_echo=$ac_try;; |
| 13927 | esac |
| 13928 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13929 | $as_echo "$ac_try_echo") >&5 |
| 13930 | (eval "$ac_compile") 2>conftest.er1 |
| 13931 | ac_status=$? |
| 13932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13933 | rm -f conftest.er1 |
| 13934 | cat conftest.err >&5 |
| 13935 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13936 | (exit $ac_status); } && { |
| 13937 | test -z "$ac_c_werror_flag" || |
| 13938 | test ! -s conftest.err |
| 13939 | } && test -s conftest.$ac_objext; then |
| 13940 | ac_hi=$ac_mid |
| 13941 | else |
| 13942 | $as_echo "$as_me: failed program was:" >&5 |
| 13943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13944 | |
| 13945 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13946 | fi |
| 13947 | |
| 13948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13949 | done |
| 13950 | case $ac_lo in |
| 13951 | ?*) ac_cv_sizeof_time_t=$ac_lo;; |
| 13952 | '') if test "$ac_cv_type_time_t" = yes; then |
| 13953 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 13954 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13955 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13956 | See \`config.log' for more details." >&5 |
| 13957 | $as_echo "$as_me: error: cannot compute sizeof (time_t) |
| 13958 | See \`config.log' for more details." >&2;} |
| 13959 | { (exit 77); exit 77; }; }; } |
| 13960 | else |
| 13961 | ac_cv_sizeof_time_t=0 |
| 13962 | fi ;; |
| 13963 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13964 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13966 | /* confdefs.h. */ |
| 13967 | _ACEOF |
| 13968 | cat confdefs.h >>conftest.$ac_ext |
| 13969 | cat >>conftest.$ac_ext <<_ACEOF |
| 13970 | /* end confdefs.h. */ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13971 | |
| 13972 | #ifdef HAVE_SYS_TYPES_H |
| 13973 | #include <sys/types.h> |
| 13974 | #endif |
| 13975 | #ifdef HAVE_TIME_H |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13976 | #include <time.h> |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13977 | #endif |
| 13978 | |
| 13979 | |
| 13980 | static long int longval () { return (long int) (sizeof (time_t)); } |
| 13981 | static unsigned long int ulongval () { return (long int) (sizeof (time_t)); } |
| 13982 | #include <stdio.h> |
| 13983 | #include <stdlib.h> |
| 13984 | int |
| 13985 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13986 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 13987 | |
| 13988 | FILE *f = fopen ("conftest.val", "w"); |
| 13989 | if (! f) |
| 13990 | return 1; |
| 13991 | if (((long int) (sizeof (time_t))) < 0) |
| 13992 | { |
| 13993 | long int i = longval (); |
| 13994 | if (i != ((long int) (sizeof (time_t)))) |
| 13995 | return 1; |
| 13996 | fprintf (f, "%ld", i); |
| 13997 | } |
| 13998 | else |
| 13999 | { |
| 14000 | unsigned long int i = ulongval (); |
| 14001 | if (i != ((long int) (sizeof (time_t)))) |
| 14002 | return 1; |
| 14003 | fprintf (f, "%lu", i); |
| 14004 | } |
| 14005 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 14006 | on some platforms. */ |
| 14007 | return ferror (f) || fclose (f) != 0; |
| 14008 | |
| 14009 | ; |
| 14010 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14011 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14012 | _ACEOF |
| 14013 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14014 | if { (ac_try="$ac_link" |
| 14015 | case "(($ac_try" in |
| 14016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14017 | *) ac_try_echo=$ac_try;; |
| 14018 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14020 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14021 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14022 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14023 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14024 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14025 | { (case "(($ac_try" in |
| 14026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14027 | *) ac_try_echo=$ac_try;; |
| 14028 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14029 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14030 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14031 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14032 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14033 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14034 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14035 | ac_cv_sizeof_time_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14036 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14037 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 14038 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14041 | ( exit $ac_status ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14042 | if test "$ac_cv_type_time_t" = yes; then |
| 14043 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14044 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14045 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 14046 | See \`config.log' for more details." >&5 |
| 14047 | $as_echo "$as_me: error: cannot compute sizeof (time_t) |
| 14048 | See \`config.log' for more details." >&2;} |
| 14049 | { (exit 77); exit 77; }; }; } |
| 14050 | else |
| 14051 | ac_cv_sizeof_time_t=0 |
| 14052 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14053 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14054 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14055 | 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] | 14056 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14057 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14058 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14059 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 14060 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14061 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14063 | |
| 14064 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14065 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14066 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14067 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14068 | |
| 14069 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14070 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14071 | ac_save_cc="$CC" |
| 14072 | if test "$ac_cv_kpthread" = "yes" |
| 14073 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14074 | elif test "$ac_cv_kthread" = "yes" |
| 14075 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14076 | elif test "$ac_cv_pthread" = "yes" |
| 14077 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14078 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14079 | { $as_echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14080 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14081 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14082 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14083 | /* confdefs.h. */ |
| 14084 | _ACEOF |
| 14085 | cat confdefs.h >>conftest.$ac_ext |
| 14086 | cat >>conftest.$ac_ext <<_ACEOF |
| 14087 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14088 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14089 | int |
| 14090 | main () |
| 14091 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 14092 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14093 | ; |
| 14094 | return 0; |
| 14095 | } |
| 14096 | _ACEOF |
| 14097 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14098 | if { (ac_try="$ac_compile" |
| 14099 | case "(($ac_try" in |
| 14100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14101 | *) ac_try_echo=$ac_try;; |
| 14102 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14103 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14104 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14105 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14106 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14108 | rm -f conftest.er1 |
| 14109 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14110 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14111 | (exit $ac_status); } && { |
| 14112 | test -z "$ac_c_werror_flag" || |
| 14113 | test ! -s conftest.err |
| 14114 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14115 | have_pthread_t=yes |
| 14116 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14117 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14119 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14120 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14121 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14122 | |
| 14123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14124 | { $as_echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 14125 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14126 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14127 | # The cast to long int works around a bug in the HP C Compiler |
| 14128 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14129 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14130 | # This bug is HP SR number 8606223364. |
| 14131 | { $as_echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 14132 | $as_echo_n "checking size of pthread_t... " >&6; } |
| 14133 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 14134 | $as_echo_n "(cached) " >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14135 | else |
| 14136 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14137 | # Depending upon the size, compute the lo and hi bounds. |
| 14138 | cat >conftest.$ac_ext <<_ACEOF |
| 14139 | /* confdefs.h. */ |
| 14140 | _ACEOF |
| 14141 | cat confdefs.h >>conftest.$ac_ext |
| 14142 | cat >>conftest.$ac_ext <<_ACEOF |
| 14143 | /* end confdefs.h. */ |
| 14144 | |
| 14145 | #ifdef HAVE_PTHREAD_H |
| 14146 | #include <pthread.h> |
| 14147 | #endif |
| 14148 | |
| 14149 | |
| 14150 | int |
| 14151 | main () |
| 14152 | { |
| 14153 | static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) >= 0)]; |
| 14154 | test_array [0] = 0 |
| 14155 | |
| 14156 | ; |
| 14157 | return 0; |
| 14158 | } |
| 14159 | _ACEOF |
| 14160 | rm -f conftest.$ac_objext |
| 14161 | if { (ac_try="$ac_compile" |
| 14162 | case "(($ac_try" in |
| 14163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14164 | *) ac_try_echo=$ac_try;; |
| 14165 | esac |
| 14166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14167 | $as_echo "$ac_try_echo") >&5 |
| 14168 | (eval "$ac_compile") 2>conftest.er1 |
| 14169 | ac_status=$? |
| 14170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14171 | rm -f conftest.er1 |
| 14172 | cat conftest.err >&5 |
| 14173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14174 | (exit $ac_status); } && { |
| 14175 | test -z "$ac_c_werror_flag" || |
| 14176 | test ! -s conftest.err |
| 14177 | } && test -s conftest.$ac_objext; then |
| 14178 | ac_lo=0 ac_mid=0 |
| 14179 | while :; do |
| 14180 | cat >conftest.$ac_ext <<_ACEOF |
| 14181 | /* confdefs.h. */ |
| 14182 | _ACEOF |
| 14183 | cat confdefs.h >>conftest.$ac_ext |
| 14184 | cat >>conftest.$ac_ext <<_ACEOF |
| 14185 | /* end confdefs.h. */ |
| 14186 | |
| 14187 | #ifdef HAVE_PTHREAD_H |
| 14188 | #include <pthread.h> |
| 14189 | #endif |
| 14190 | |
| 14191 | |
| 14192 | int |
| 14193 | main () |
| 14194 | { |
| 14195 | static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) <= $ac_mid)]; |
| 14196 | test_array [0] = 0 |
| 14197 | |
| 14198 | ; |
| 14199 | return 0; |
| 14200 | } |
| 14201 | _ACEOF |
| 14202 | rm -f conftest.$ac_objext |
| 14203 | if { (ac_try="$ac_compile" |
| 14204 | case "(($ac_try" in |
| 14205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14206 | *) ac_try_echo=$ac_try;; |
| 14207 | esac |
| 14208 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14209 | $as_echo "$ac_try_echo") >&5 |
| 14210 | (eval "$ac_compile") 2>conftest.er1 |
| 14211 | ac_status=$? |
| 14212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14213 | rm -f conftest.er1 |
| 14214 | cat conftest.err >&5 |
| 14215 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14216 | (exit $ac_status); } && { |
| 14217 | test -z "$ac_c_werror_flag" || |
| 14218 | test ! -s conftest.err |
| 14219 | } && test -s conftest.$ac_objext; then |
| 14220 | ac_hi=$ac_mid; break |
| 14221 | else |
| 14222 | $as_echo "$as_me: failed program was:" >&5 |
| 14223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14224 | |
| 14225 | ac_lo=`expr $ac_mid + 1` |
| 14226 | if test $ac_lo -le $ac_mid; then |
| 14227 | ac_lo= ac_hi= |
| 14228 | break |
| 14229 | fi |
| 14230 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14231 | fi |
| 14232 | |
| 14233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14234 | done |
| 14235 | else |
| 14236 | $as_echo "$as_me: failed program was:" >&5 |
| 14237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14238 | |
| 14239 | cat >conftest.$ac_ext <<_ACEOF |
| 14240 | /* confdefs.h. */ |
| 14241 | _ACEOF |
| 14242 | cat confdefs.h >>conftest.$ac_ext |
| 14243 | cat >>conftest.$ac_ext <<_ACEOF |
| 14244 | /* end confdefs.h. */ |
| 14245 | |
| 14246 | #ifdef HAVE_PTHREAD_H |
| 14247 | #include <pthread.h> |
| 14248 | #endif |
| 14249 | |
| 14250 | |
| 14251 | int |
| 14252 | main () |
| 14253 | { |
| 14254 | static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) < 0)]; |
| 14255 | test_array [0] = 0 |
| 14256 | |
| 14257 | ; |
| 14258 | return 0; |
| 14259 | } |
| 14260 | _ACEOF |
| 14261 | rm -f conftest.$ac_objext |
| 14262 | if { (ac_try="$ac_compile" |
| 14263 | case "(($ac_try" in |
| 14264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14265 | *) ac_try_echo=$ac_try;; |
| 14266 | esac |
| 14267 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14268 | $as_echo "$ac_try_echo") >&5 |
| 14269 | (eval "$ac_compile") 2>conftest.er1 |
| 14270 | ac_status=$? |
| 14271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14272 | rm -f conftest.er1 |
| 14273 | cat conftest.err >&5 |
| 14274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14275 | (exit $ac_status); } && { |
| 14276 | test -z "$ac_c_werror_flag" || |
| 14277 | test ! -s conftest.err |
| 14278 | } && test -s conftest.$ac_objext; then |
| 14279 | ac_hi=-1 ac_mid=-1 |
| 14280 | while :; do |
| 14281 | cat >conftest.$ac_ext <<_ACEOF |
| 14282 | /* confdefs.h. */ |
| 14283 | _ACEOF |
| 14284 | cat confdefs.h >>conftest.$ac_ext |
| 14285 | cat >>conftest.$ac_ext <<_ACEOF |
| 14286 | /* end confdefs.h. */ |
| 14287 | |
| 14288 | #ifdef HAVE_PTHREAD_H |
| 14289 | #include <pthread.h> |
| 14290 | #endif |
| 14291 | |
| 14292 | |
| 14293 | int |
| 14294 | main () |
| 14295 | { |
| 14296 | static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) >= $ac_mid)]; |
| 14297 | test_array [0] = 0 |
| 14298 | |
| 14299 | ; |
| 14300 | return 0; |
| 14301 | } |
| 14302 | _ACEOF |
| 14303 | rm -f conftest.$ac_objext |
| 14304 | if { (ac_try="$ac_compile" |
| 14305 | case "(($ac_try" in |
| 14306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14307 | *) ac_try_echo=$ac_try;; |
| 14308 | esac |
| 14309 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14310 | $as_echo "$ac_try_echo") >&5 |
| 14311 | (eval "$ac_compile") 2>conftest.er1 |
| 14312 | ac_status=$? |
| 14313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14314 | rm -f conftest.er1 |
| 14315 | cat conftest.err >&5 |
| 14316 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14317 | (exit $ac_status); } && { |
| 14318 | test -z "$ac_c_werror_flag" || |
| 14319 | test ! -s conftest.err |
| 14320 | } && test -s conftest.$ac_objext; then |
| 14321 | ac_lo=$ac_mid; break |
| 14322 | else |
| 14323 | $as_echo "$as_me: failed program was:" >&5 |
| 14324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14325 | |
| 14326 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14327 | if test $ac_mid -le $ac_hi; then |
| 14328 | ac_lo= ac_hi= |
| 14329 | break |
| 14330 | fi |
| 14331 | ac_mid=`expr 2 '*' $ac_mid` |
| 14332 | fi |
| 14333 | |
| 14334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14335 | done |
| 14336 | else |
| 14337 | $as_echo "$as_me: failed program was:" >&5 |
| 14338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14339 | |
| 14340 | ac_lo= ac_hi= |
| 14341 | fi |
| 14342 | |
| 14343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14344 | fi |
| 14345 | |
| 14346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14347 | # Binary search between lo and hi bounds. |
| 14348 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14349 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14350 | cat >conftest.$ac_ext <<_ACEOF |
| 14351 | /* confdefs.h. */ |
| 14352 | _ACEOF |
| 14353 | cat confdefs.h >>conftest.$ac_ext |
| 14354 | cat >>conftest.$ac_ext <<_ACEOF |
| 14355 | /* end confdefs.h. */ |
| 14356 | |
| 14357 | #ifdef HAVE_PTHREAD_H |
| 14358 | #include <pthread.h> |
| 14359 | #endif |
| 14360 | |
| 14361 | |
| 14362 | int |
| 14363 | main () |
| 14364 | { |
| 14365 | static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) <= $ac_mid)]; |
| 14366 | test_array [0] = 0 |
| 14367 | |
| 14368 | ; |
| 14369 | return 0; |
| 14370 | } |
| 14371 | _ACEOF |
| 14372 | rm -f conftest.$ac_objext |
| 14373 | if { (ac_try="$ac_compile" |
| 14374 | case "(($ac_try" in |
| 14375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14376 | *) ac_try_echo=$ac_try;; |
| 14377 | esac |
| 14378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14379 | $as_echo "$ac_try_echo") >&5 |
| 14380 | (eval "$ac_compile") 2>conftest.er1 |
| 14381 | ac_status=$? |
| 14382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14383 | rm -f conftest.er1 |
| 14384 | cat conftest.err >&5 |
| 14385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14386 | (exit $ac_status); } && { |
| 14387 | test -z "$ac_c_werror_flag" || |
| 14388 | test ! -s conftest.err |
| 14389 | } && test -s conftest.$ac_objext; then |
| 14390 | ac_hi=$ac_mid |
| 14391 | else |
| 14392 | $as_echo "$as_me: failed program was:" >&5 |
| 14393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14394 | |
| 14395 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14396 | fi |
| 14397 | |
| 14398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14399 | done |
| 14400 | case $ac_lo in |
| 14401 | ?*) ac_cv_sizeof_pthread_t=$ac_lo;; |
| 14402 | '') if test "$ac_cv_type_pthread_t" = yes; then |
| 14403 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14404 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14405 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14406 | See \`config.log' for more details." >&5 |
| 14407 | $as_echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14408 | See \`config.log' for more details." >&2;} |
| 14409 | { (exit 77); exit 77; }; }; } |
| 14410 | else |
| 14411 | ac_cv_sizeof_pthread_t=0 |
| 14412 | fi ;; |
| 14413 | esac |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14415 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14416 | /* confdefs.h. */ |
| 14417 | _ACEOF |
| 14418 | cat confdefs.h >>conftest.$ac_ext |
| 14419 | cat >>conftest.$ac_ext <<_ACEOF |
| 14420 | /* end confdefs.h. */ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14421 | |
| 14422 | #ifdef HAVE_PTHREAD_H |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14423 | #include <pthread.h> |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14424 | #endif |
| 14425 | |
| 14426 | |
| 14427 | static long int longval () { return (long int) (sizeof (pthread_t)); } |
| 14428 | static unsigned long int ulongval () { return (long int) (sizeof (pthread_t)); } |
| 14429 | #include <stdio.h> |
| 14430 | #include <stdlib.h> |
| 14431 | int |
| 14432 | main () |
| 14433 | { |
| 14434 | |
| 14435 | FILE *f = fopen ("conftest.val", "w"); |
| 14436 | if (! f) |
| 14437 | return 1; |
| 14438 | if (((long int) (sizeof (pthread_t))) < 0) |
| 14439 | { |
| 14440 | long int i = longval (); |
| 14441 | if (i != ((long int) (sizeof (pthread_t)))) |
| 14442 | return 1; |
| 14443 | fprintf (f, "%ld", i); |
| 14444 | } |
| 14445 | else |
| 14446 | { |
| 14447 | unsigned long int i = ulongval (); |
| 14448 | if (i != ((long int) (sizeof (pthread_t)))) |
| 14449 | return 1; |
| 14450 | fprintf (f, "%lu", i); |
| 14451 | } |
| 14452 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 14453 | on some platforms. */ |
| 14454 | return ferror (f) || fclose (f) != 0; |
| 14455 | |
| 14456 | ; |
| 14457 | return 0; |
| 14458 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14459 | _ACEOF |
| 14460 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14461 | if { (ac_try="$ac_link" |
| 14462 | case "(($ac_try" in |
| 14463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14464 | *) ac_try_echo=$ac_try;; |
| 14465 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14466 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14467 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14468 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14469 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14471 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14472 | { (case "(($ac_try" in |
| 14473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14474 | *) ac_try_echo=$ac_try;; |
| 14475 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14476 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14477 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14478 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14479 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14480 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14481 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14482 | ac_cv_sizeof_pthread_t=`cat conftest.val` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14483 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14484 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 14485 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14488 | ( exit $ac_status ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14489 | if test "$ac_cv_type_pthread_t" = yes; then |
| 14490 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14491 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14492 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14493 | See \`config.log' for more details." >&5 |
| 14494 | $as_echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14495 | See \`config.log' for more details." >&2;} |
| 14496 | { (exit 77); exit 77; }; }; } |
| 14497 | else |
| 14498 | ac_cv_sizeof_pthread_t=0 |
| 14499 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14500 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14501 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14502 | 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] | 14503 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14504 | rm -f conftest.val |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14505 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14506 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 14507 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14508 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14510 | |
| 14511 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14512 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14514 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14515 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14516 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14517 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14518 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14519 | { $as_echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 14520 | $as_echo_n "checking for --enable-toolbox-glue... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14521 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14522 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14523 | enableval=$enable_toolbox_glue; |
| 14524 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14525 | |
| 14526 | |
| 14527 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14528 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14529 | case $ac_sys_system/$ac_sys_release in |
| 14530 | Darwin/*) |
| 14531 | enable_toolbox_glue="yes";; |
| 14532 | *) |
| 14533 | enable_toolbox_glue="no";; |
| 14534 | esac |
| 14535 | fi |
| 14536 | case "$enable_toolbox_glue" in |
| 14537 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14538 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14539 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14540 | |
| 14541 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14542 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14543 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14544 | |
| 14545 | ;; |
| 14546 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14547 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 14548 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14549 | ;; |
| 14550 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14551 | { $as_echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 14552 | $as_echo "$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14553 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14554 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14555 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14556 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14557 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14558 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 14559 | ;; |
| 14560 | Darwin/*) |
| 14561 | OTHER_LIBTOOL_OPT="" |
| 14562 | ;; |
| 14563 | esac |
| 14564 | |
| 14565 | |
| 14566 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14567 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14568 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 14569 | if test "${enable_universalsdk}"; then |
| 14570 | : |
| 14571 | else |
| 14572 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 14573 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14574 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14575 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 14576 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14577 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 14578 | if test ${gcc_version} '<' 4.0 |
| 14579 | then |
| 14580 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 14581 | else |
| 14582 | LIBTOOL_CRUFT="" |
| 14583 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 14584 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14585 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14586 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14587 | esac |
| 14588 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14589 | { $as_echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 14590 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14591 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14592 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14593 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14594 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14595 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14596 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14597 | cat >>confdefs.h <<\_ACEOF |
| 14598 | #define WITH_NEXT_FRAMEWORK 1 |
| 14599 | _ACEOF |
| 14600 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14601 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14602 | $as_echo "yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14603 | if test $enable_shared = "yes" |
| 14604 | then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14605 | { { $as_echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5 |
| 14606 | $as_echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;} |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14607 | { (exit 1); exit 1; }; } |
| 14608 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14609 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14610 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14611 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14612 | fi |
| 14613 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14614 | { $as_echo "$as_me:$LINENO: checking for dyld" >&5 |
| 14615 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14616 | case $ac_sys_system/$ac_sys_release in |
| 14617 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14618 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14619 | cat >>confdefs.h <<\_ACEOF |
| 14620 | #define WITH_DYLD 1 |
| 14621 | _ACEOF |
| 14622 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14623 | { $as_echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 14624 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14625 | ;; |
| 14626 | *) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14627 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14628 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14629 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14630 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14631 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14632 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14633 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14634 | |
| 14635 | |
| 14636 | |
| 14637 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14638 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14639 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14640 | { $as_echo "$as_me:$LINENO: checking SO" >&5 |
| 14641 | $as_echo_n "checking SO... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14642 | if test -z "$SO" |
| 14643 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14644 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14645 | hp*|HP*) |
| 14646 | case `uname -m` in |
| 14647 | ia64) SO=.so;; |
| 14648 | *) SO=.sl;; |
| 14649 | esac |
| 14650 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14651 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14652 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14653 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 14654 | else |
| 14655 | # this might also be a termcap variable, see #610332 |
| 14656 | echo |
| 14657 | echo '=====================================================================' |
| 14658 | echo '+ +' |
| 14659 | echo '+ WARNING: You have set SO in your environment. +' |
| 14660 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 14661 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 14662 | echo '+ +' |
| 14663 | echo '=====================================================================' |
| 14664 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14665 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14666 | { $as_echo "$as_me:$LINENO: result: $SO" >&5 |
| 14667 | $as_echo "$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14668 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 14669 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14670 | cat >>confdefs.h <<_ACEOF |
| 14671 | #define SHLIB_EXT "$SO" |
| 14672 | _ACEOF |
| 14673 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14674 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 14675 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14676 | # (Shared libraries in this instance are shared modules to be loaded into |
| 14677 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14678 | { $as_echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 14679 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14680 | if test -z "$LDSHARED" |
| 14681 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14682 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14683 | AIX*) |
| 14684 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14685 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14686 | ;; |
| 14687 | BeOS*) |
| 14688 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14689 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14690 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14691 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 14692 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14693 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14694 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 14695 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 14696 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14697 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14698 | hp*|HP*) |
| 14699 | if test "$GCC" = "yes" |
| 14700 | then LDSHARED='$(CC) -shared' |
| 14701 | else LDSHARED='ld -b'; |
| 14702 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14703 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14704 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14705 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14706 | if test "$enable_framework" ; then |
| 14707 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14708 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14709 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14710 | else |
| 14711 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14712 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14713 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14714 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14715 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14716 | if test "$enable_framework" ; then |
| 14717 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14718 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14719 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14720 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 14721 | # No framework, use the Python app as bundle-loader |
| 14722 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 14723 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14724 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14725 | Darwin/*) |
| 14726 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 14727 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 14728 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14729 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14730 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14731 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14732 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14733 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14734 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 14735 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14736 | else |
| 14737 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14738 | if test "$enable_framework" ; then |
| 14739 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14740 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14741 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14742 | else |
| 14743 | # No framework, use the Python app as bundle-loader |
| 14744 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 14745 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 14746 | fi |
| 14747 | fi |
| 14748 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14749 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 14750 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14751 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 14752 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14753 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 14754 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14755 | else |
| 14756 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14757 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14758 | OpenBSD*) |
| 14759 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14760 | then |
| 14761 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14762 | else |
| 14763 | case `uname -r` in |
| 14764 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 14765 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14766 | ;; |
| 14767 | *) |
| 14768 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14769 | ;; |
| 14770 | esac |
| 14771 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14772 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14773 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14774 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14775 | then LDSHARED='$(CC) -shared' |
| 14776 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14777 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14778 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14779 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14780 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14781 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14782 | *) LDSHARED="ld";; |
| 14783 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14784 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14785 | { $as_echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 14786 | $as_echo "$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14787 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14788 | # 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] | 14789 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14790 | { $as_echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 14791 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14792 | if test -z "$CCSHARED" |
| 14793 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14794 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14795 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 14796 | then CCSHARED="-fPIC"; |
| 14797 | elif test `uname -p` = sparc; |
| 14798 | then CCSHARED="-xcode=pic32"; |
| 14799 | else CCSHARED="-Kpic"; |
| 14800 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14801 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 14802 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14803 | else CCSHARED="+z"; |
| 14804 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14805 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14806 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14807 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14808 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14809 | if test "$GCC" = "yes" |
| 14810 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14811 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14812 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14813 | SCO_SV*) |
| 14814 | if test "$GCC" = "yes" |
| 14815 | then CCSHARED="-fPIC" |
| 14816 | else CCSHARED="-Kpic -belf" |
| 14817 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14818 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14819 | IRIX*/6*) case $CC in |
| 14820 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 14821 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14822 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14823 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14824 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14825 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14826 | { $as_echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 14827 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14828 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14829 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14830 | { $as_echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 14831 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14832 | if test -z "$LINKFORSHARED" |
| 14833 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14834 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14835 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 14836 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14837 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 14838 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14839 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14840 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14841 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14842 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14843 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 14844 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14845 | # not used by the core itself but which needs to be in the core so |
| 14846 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 14847 | # -prebind is no longer used, because it actually seems to give a |
| 14848 | # slowdown in stead of a speedup, maybe due to the large number of |
| 14849 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14850 | |
| 14851 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14852 | if test "$enable_framework" |
| 14853 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14854 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14855 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14856 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14857 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14858 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 14859 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14860 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 14861 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14862 | then |
| 14863 | LINKFORSHARED="-Wl,--export-dynamic" |
| 14864 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14865 | SunOS/5*) case $CC in |
| 14866 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 14867 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 14868 | then |
| 14869 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14870 | fi;; |
| 14871 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 14872 | CYGWIN*) |
| 14873 | if test $enable_shared = "no" |
| 14874 | then |
| 14875 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 14876 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14877 | QNX*) |
| 14878 | # -Wl,-E causes the symbols to be added to the dynamic |
| 14879 | # symbol table so that they can be found when a module |
| 14880 | # is loaded. -N 2048K causes the stack size to be set |
| 14881 | # to 2048 kilobytes so that the stack doesn't overflow |
| 14882 | # when running test_compile.py. |
| 14883 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14884 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14885 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14886 | { $as_echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 14887 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14888 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14889 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14890 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14891 | { $as_echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 14892 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14893 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 14894 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 14895 | case $ac_sys_system in |
| 14896 | CYGWIN*) |
| 14897 | # Cygwin needs CCSHARED when building extension DLLs |
| 14898 | # but not when building the interpreter DLL. |
| 14899 | CFLAGSFORSHARED='';; |
| 14900 | *) |
| 14901 | CFLAGSFORSHARED='$(CCSHARED)' |
| 14902 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14903 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14904 | { $as_echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 14905 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14906 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14907 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 14908 | # library (with --enable-shared). |
| 14909 | # 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] | 14910 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 14911 | # if it is not required, since it creates a dependency of the shared library |
| 14912 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 14913 | # don't need to link LIBS explicitly. The default should be only changed |
| 14914 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14915 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14916 | { $as_echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 14917 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14918 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14919 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 14920 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14921 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14922 | { $as_echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 14923 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14924 | |
| 14925 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14926 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14927 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14928 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14929 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14930 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14931 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14933 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14934 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14935 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14936 | /* confdefs.h. */ |
| 14937 | _ACEOF |
| 14938 | cat confdefs.h >>conftest.$ac_ext |
| 14939 | cat >>conftest.$ac_ext <<_ACEOF |
| 14940 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14941 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14942 | /* Override any GCC internal prototype to avoid an error. |
| 14943 | Use char because int might match the return type of a GCC |
| 14944 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14945 | #ifdef __cplusplus |
| 14946 | extern "C" |
| 14947 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14948 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14949 | int |
| 14950 | main () |
| 14951 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14952 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14953 | ; |
| 14954 | return 0; |
| 14955 | } |
| 14956 | _ACEOF |
| 14957 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14958 | if { (ac_try="$ac_link" |
| 14959 | case "(($ac_try" in |
| 14960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14961 | *) ac_try_echo=$ac_try;; |
| 14962 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14963 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14964 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14965 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14966 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14968 | rm -f conftest.er1 |
| 14969 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14970 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14971 | (exit $ac_status); } && { |
| 14972 | test -z "$ac_c_werror_flag" || |
| 14973 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14974 | } && test -s conftest$ac_exeext && { |
| 14975 | test "$cross_compiling" = yes || |
| 14976 | $as_test_x conftest$ac_exeext |
| 14977 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14978 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14979 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14980 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14982 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14983 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14984 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14985 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14986 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14987 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14988 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14989 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14990 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 14991 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14992 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 14993 | 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] | 14994 | cat >>confdefs.h <<_ACEOF |
| 14995 | #define HAVE_LIBDL 1 |
| 14996 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14997 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14998 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14999 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15000 | fi |
| 15001 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15002 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15003 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 15004 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15005 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15006 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15008 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15009 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15010 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15011 | /* confdefs.h. */ |
| 15012 | _ACEOF |
| 15013 | cat confdefs.h >>conftest.$ac_ext |
| 15014 | cat >>conftest.$ac_ext <<_ACEOF |
| 15015 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15016 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15017 | /* Override any GCC internal prototype to avoid an error. |
| 15018 | Use char because int might match the return type of a GCC |
| 15019 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | #ifdef __cplusplus |
| 15021 | extern "C" |
| 15022 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15023 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | int |
| 15025 | main () |
| 15026 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15027 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15028 | ; |
| 15029 | return 0; |
| 15030 | } |
| 15031 | _ACEOF |
| 15032 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15033 | if { (ac_try="$ac_link" |
| 15034 | case "(($ac_try" in |
| 15035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15036 | *) ac_try_echo=$ac_try;; |
| 15037 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15038 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15039 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15040 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15041 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15043 | rm -f conftest.er1 |
| 15044 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15045 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15046 | (exit $ac_status); } && { |
| 15047 | test -z "$ac_c_werror_flag" || |
| 15048 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15049 | } && test -s conftest$ac_exeext && { |
| 15050 | test "$cross_compiling" = yes || |
| 15051 | $as_test_x conftest$ac_exeext |
| 15052 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15053 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15054 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15055 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15057 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15058 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15059 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15060 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15061 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15062 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15063 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15064 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15065 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15066 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15067 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 15068 | 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] | 15069 | cat >>confdefs.h <<_ACEOF |
| 15070 | #define HAVE_LIBDLD 1 |
| 15071 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15072 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15073 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15074 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15075 | fi |
| 15076 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15077 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 15078 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15079 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15080 | { $as_echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 15081 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15082 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15083 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15084 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15085 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15086 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15087 | /* confdefs.h. */ |
| 15088 | _ACEOF |
| 15089 | cat confdefs.h >>conftest.$ac_ext |
| 15090 | cat >>conftest.$ac_ext <<_ACEOF |
| 15091 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15092 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15093 | /* Override any GCC internal prototype to avoid an error. |
| 15094 | Use char because int might match the return type of a GCC |
| 15095 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15096 | #ifdef __cplusplus |
| 15097 | extern "C" |
| 15098 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15099 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15100 | int |
| 15101 | main () |
| 15102 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15103 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15104 | ; |
| 15105 | return 0; |
| 15106 | } |
| 15107 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15108 | for ac_lib in '' pthread rt posix4; do |
| 15109 | if test -z "$ac_lib"; then |
| 15110 | ac_res="none required" |
| 15111 | else |
| 15112 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15113 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15114 | fi |
| 15115 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15116 | if { (ac_try="$ac_link" |
| 15117 | case "(($ac_try" in |
| 15118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15119 | *) ac_try_echo=$ac_try;; |
| 15120 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15121 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15122 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15123 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15124 | ac_status=$? |
| 15125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15126 | rm -f conftest.er1 |
| 15127 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15129 | (exit $ac_status); } && { |
| 15130 | test -z "$ac_c_werror_flag" || |
| 15131 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15132 | } && test -s conftest$ac_exeext && { |
| 15133 | test "$cross_compiling" = yes || |
| 15134 | $as_test_x conftest$ac_exeext |
| 15135 | }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15136 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15137 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15138 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15140 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15141 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15142 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15143 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15144 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15145 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15146 | conftest$ac_exeext |
| 15147 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15148 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15149 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15150 | done |
| 15151 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15152 | : |
| 15153 | else |
| 15154 | ac_cv_search_sem_init=no |
| 15155 | fi |
| 15156 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15157 | LIBS=$ac_func_search_save_LIBS |
| 15158 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15159 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 15160 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15161 | ac_res=$ac_cv_search_sem_init |
| 15162 | if test "$ac_res" != no; then |
| 15163 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15164 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15165 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 15166 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15167 | # posix4 on Solaris 2.6 |
| 15168 | # pthread (first!) on Linux |
| 15169 | fi |
| 15170 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15171 | # check if we need libintl for locale functions |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15172 | { $as_echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 15173 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15174 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15175 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15176 | else |
| 15177 | ac_check_lib_save_LIBS=$LIBS |
| 15178 | LIBS="-lintl $LIBS" |
| 15179 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15180 | /* confdefs.h. */ |
| 15181 | _ACEOF |
| 15182 | cat confdefs.h >>conftest.$ac_ext |
| 15183 | cat >>conftest.$ac_ext <<_ACEOF |
| 15184 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15185 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15186 | /* Override any GCC internal prototype to avoid an error. |
| 15187 | Use char because int might match the return type of a GCC |
| 15188 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15189 | #ifdef __cplusplus |
| 15190 | extern "C" |
| 15191 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15192 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15193 | int |
| 15194 | main () |
| 15195 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15196 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15197 | ; |
| 15198 | return 0; |
| 15199 | } |
| 15200 | _ACEOF |
| 15201 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15202 | if { (ac_try="$ac_link" |
| 15203 | case "(($ac_try" in |
| 15204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15205 | *) ac_try_echo=$ac_try;; |
| 15206 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15208 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15209 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15210 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15212 | rm -f conftest.er1 |
| 15213 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15215 | (exit $ac_status); } && { |
| 15216 | test -z "$ac_c_werror_flag" || |
| 15217 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15218 | } && test -s conftest$ac_exeext && { |
| 15219 | test "$cross_compiling" = yes || |
| 15220 | $as_test_x conftest$ac_exeext |
| 15221 | }; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15222 | ac_cv_lib_intl_textdomain=yes |
| 15223 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15224 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15226 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15227 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15228 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15229 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15230 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15231 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15232 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15233 | LIBS=$ac_check_lib_save_LIBS |
| 15234 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15235 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 15236 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
| 15237 | 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] | 15238 | |
| 15239 | cat >>confdefs.h <<\_ACEOF |
| 15240 | #define WITH_LIBINTL 1 |
| 15241 | _ACEOF |
| 15242 | |
| 15243 | fi |
| 15244 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15245 | |
| 15246 | # checks for system dependent C++ extensions support |
| 15247 | case "$ac_sys_system" in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15248 | AIX*) { $as_echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 15249 | $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] | 15250 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15251 | /* confdefs.h. */ |
| 15252 | _ACEOF |
| 15253 | cat confdefs.h >>conftest.$ac_ext |
| 15254 | cat >>conftest.$ac_ext <<_ACEOF |
| 15255 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15256 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15257 | int |
| 15258 | main () |
| 15259 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15260 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15261 | ; |
| 15262 | return 0; |
| 15263 | } |
| 15264 | _ACEOF |
| 15265 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15266 | if { (ac_try="$ac_link" |
| 15267 | case "(($ac_try" in |
| 15268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15269 | *) ac_try_echo=$ac_try;; |
| 15270 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15271 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15272 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15273 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15274 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15276 | rm -f conftest.er1 |
| 15277 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15278 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15279 | (exit $ac_status); } && { |
| 15280 | test -z "$ac_c_werror_flag" || |
| 15281 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15282 | } && test -s conftest$ac_exeext && { |
| 15283 | test "$cross_compiling" = yes || |
| 15284 | $as_test_x conftest$ac_exeext |
| 15285 | }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15287 | cat >>confdefs.h <<\_ACEOF |
| 15288 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 15289 | _ACEOF |
| 15290 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15291 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15292 | $as_echo "yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15293 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15294 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15296 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15297 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15298 | $as_echo "no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15299 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15300 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15301 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15302 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15303 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15304 | *) ;; |
| 15305 | esac |
| 15306 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15307 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15308 | # BeOS' sockets are stashed in libnet. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15309 | { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 15310 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15311 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15312 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15313 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15314 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15315 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15316 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15317 | /* confdefs.h. */ |
| 15318 | _ACEOF |
| 15319 | cat confdefs.h >>conftest.$ac_ext |
| 15320 | cat >>conftest.$ac_ext <<_ACEOF |
| 15321 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15322 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15323 | /* Override any GCC internal prototype to avoid an error. |
| 15324 | Use char because int might match the return type of a GCC |
| 15325 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15326 | #ifdef __cplusplus |
| 15327 | extern "C" |
| 15328 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15329 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15330 | int |
| 15331 | main () |
| 15332 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15333 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15334 | ; |
| 15335 | return 0; |
| 15336 | } |
| 15337 | _ACEOF |
| 15338 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15339 | if { (ac_try="$ac_link" |
| 15340 | case "(($ac_try" in |
| 15341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15342 | *) ac_try_echo=$ac_try;; |
| 15343 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15344 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15345 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15346 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15347 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15349 | rm -f conftest.er1 |
| 15350 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15352 | (exit $ac_status); } && { |
| 15353 | test -z "$ac_c_werror_flag" || |
| 15354 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15355 | } && test -s conftest$ac_exeext && { |
| 15356 | test "$cross_compiling" = yes || |
| 15357 | $as_test_x conftest$ac_exeext |
| 15358 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15359 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15360 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15361 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15363 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15364 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15365 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15366 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15367 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15368 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15369 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15370 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15371 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15372 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 15373 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
| 15374 | 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] | 15375 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15376 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 15377 | # SVR4 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15378 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15379 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15380 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15381 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15384 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15385 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15386 | /* confdefs.h. */ |
| 15387 | _ACEOF |
| 15388 | cat confdefs.h >>conftest.$ac_ext |
| 15389 | cat >>conftest.$ac_ext <<_ACEOF |
| 15390 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15391 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15392 | /* Override any GCC internal prototype to avoid an error. |
| 15393 | Use char because int might match the return type of a GCC |
| 15394 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15395 | #ifdef __cplusplus |
| 15396 | extern "C" |
| 15397 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15398 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15399 | int |
| 15400 | main () |
| 15401 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15402 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15403 | ; |
| 15404 | return 0; |
| 15405 | } |
| 15406 | _ACEOF |
| 15407 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15408 | if { (ac_try="$ac_link" |
| 15409 | case "(($ac_try" in |
| 15410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15411 | *) ac_try_echo=$ac_try;; |
| 15412 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15413 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15414 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15415 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15416 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15418 | rm -f conftest.er1 |
| 15419 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15420 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15421 | (exit $ac_status); } && { |
| 15422 | test -z "$ac_c_werror_flag" || |
| 15423 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15424 | } && test -s conftest$ac_exeext && { |
| 15425 | test "$cross_compiling" = yes || |
| 15426 | $as_test_x conftest$ac_exeext |
| 15427 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15428 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15429 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15430 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15432 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15433 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15434 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15435 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15436 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15437 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15438 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15439 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15440 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15441 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15442 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
| 15443 | if test "x$ac_cv_lib_socket_socket" = x""yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15444 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15445 | fi |
| 15446 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 15447 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 15448 | case "$ac_sys_system" in |
| 15449 | BeOS*) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15450 | { $as_echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 15451 | $as_echo_n "checking for socket in -lnet... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15452 | if test "${ac_cv_lib_net_socket+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15453 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15454 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15455 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15456 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15457 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15458 | /* confdefs.h. */ |
| 15459 | _ACEOF |
| 15460 | cat confdefs.h >>conftest.$ac_ext |
| 15461 | cat >>conftest.$ac_ext <<_ACEOF |
| 15462 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15463 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15464 | /* Override any GCC internal prototype to avoid an error. |
| 15465 | Use char because int might match the return type of a GCC |
| 15466 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15467 | #ifdef __cplusplus |
| 15468 | extern "C" |
| 15469 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15470 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15471 | int |
| 15472 | main () |
| 15473 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15474 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15475 | ; |
| 15476 | return 0; |
| 15477 | } |
| 15478 | _ACEOF |
| 15479 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15480 | if { (ac_try="$ac_link" |
| 15481 | case "(($ac_try" in |
| 15482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15483 | *) ac_try_echo=$ac_try;; |
| 15484 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15485 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15486 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15487 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15488 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15490 | rm -f conftest.er1 |
| 15491 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15492 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15493 | (exit $ac_status); } && { |
| 15494 | test -z "$ac_c_werror_flag" || |
| 15495 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15496 | } && test -s conftest$ac_exeext && { |
| 15497 | test "$cross_compiling" = yes || |
| 15498 | $as_test_x conftest$ac_exeext |
| 15499 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15500 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15501 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15502 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15504 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15505 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15506 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15507 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15508 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15509 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15510 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15511 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15512 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15513 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 15514 | $as_echo "$ac_cv_lib_net_socket" >&6; } |
| 15515 | if test "x$ac_cv_lib_net_socket" = x""yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15516 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15517 | fi |
| 15518 | # BeOS |
| 15519 | ;; |
| 15520 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15521 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15522 | { $as_echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 15523 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15524 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15525 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15526 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15527 | withval=$with_libs; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15528 | { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 15529 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15530 | LIBS="$withval $LIBS" |
| 15531 | |
| 15532 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15533 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15534 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15535 | fi |
| 15536 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15537 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15538 | # Check for use of the system libffi library |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15539 | { $as_echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 15540 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15541 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15542 | # Check whether --with-system_ffi was given. |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15543 | if test "${with_system_ffi+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15544 | withval=$with_system_ffi; |
| 15545 | fi |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15546 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15547 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15548 | { $as_echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 15549 | $as_echo "$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15550 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15551 | # Check for --with-dbmliborder |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15552 | { $as_echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 15553 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15554 | |
| 15555 | # Check whether --with-dbmliborder was given. |
| 15556 | if test "${with_dbmliborder+set}" = set; then |
| 15557 | withval=$with_dbmliborder; |
| 15558 | if test x$with_dbmliborder = xyes |
| 15559 | then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15560 | { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15561 | $as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15562 | { (exit 1); exit 1; }; } |
| 15563 | else |
| 15564 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 15565 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 15566 | then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15567 | { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15568 | $as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15569 | { (exit 1); exit 1; }; } |
| 15570 | fi |
| 15571 | done |
| 15572 | fi |
| 15573 | fi |
| 15574 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15575 | { $as_echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 15576 | $as_echo "$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15577 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15578 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15579 | |
| 15580 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15581 | { $as_echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 15582 | $as_echo_n "checking for --with-signal-module... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15583 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15584 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15585 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15586 | withval=$with_signal_module; |
| 15587 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15588 | |
| 15589 | |
| 15590 | if test -z "$with_signal_module" |
| 15591 | then with_signal_module="yes" |
| 15592 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15593 | { $as_echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 15594 | $as_echo "$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15595 | |
| 15596 | if test "${with_signal_module}" = "yes"; then |
| 15597 | USE_SIGNAL_MODULE="" |
| 15598 | SIGNAL_OBJS="" |
| 15599 | else |
| 15600 | USE_SIGNAL_MODULE="#" |
| 15601 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 15602 | fi |
| 15603 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 15604 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15605 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15606 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15607 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15608 | { $as_echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 15609 | $as_echo_n "checking for --with-dec-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15610 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15611 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15612 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15613 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15614 | withval=$with_dec_threads; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15615 | { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 15616 | $as_echo "$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15617 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15618 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15619 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15620 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15621 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15622 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15623 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15624 | fi |
| 15625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15626 | |
| 15627 | # Templates for things AC_DEFINEd more than once. |
| 15628 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15629 | |
| 15630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15631 | |
| 15632 | |
| 15633 | |
| 15634 | |
| 15635 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15636 | { $as_echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 15637 | $as_echo_n "checking for --with-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15638 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15639 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15640 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15641 | withval=$with_threads; |
| 15642 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15643 | |
| 15644 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15645 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15646 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15647 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15648 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15649 | withval=$with_thread; with_threads=$with_thread |
| 15650 | fi |
| 15651 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15652 | |
| 15653 | if test -z "$with_threads" |
| 15654 | then with_threads="yes" |
| 15655 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15656 | { $as_echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 15657 | $as_echo "$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15658 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15659 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15660 | if test "$with_threads" = "no" |
| 15661 | then |
| 15662 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15663 | elif test "$ac_cv_pthread_is_default" = yes |
| 15664 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15665 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15666 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15667 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15668 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15669 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15670 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15671 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15672 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15673 | |
| 15674 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15675 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15676 | elif test "$ac_cv_kpthread" = "yes" |
| 15677 | then |
| 15678 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15679 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15680 | CXX="$CXX -Kpthread" |
| 15681 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15682 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15683 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15684 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15685 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15686 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15687 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15688 | elif test "$ac_cv_kthread" = "yes" |
| 15689 | then |
| 15690 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15691 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15692 | CXX="$CXX -Kthread" |
| 15693 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15694 | cat >>confdefs.h <<\_ACEOF |
| 15695 | #define WITH_THREAD 1 |
| 15696 | _ACEOF |
| 15697 | |
| 15698 | posix_threads=yes |
| 15699 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15700 | elif test "$ac_cv_pthread" = "yes" |
| 15701 | then |
| 15702 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15703 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15704 | CXX="$CXX -pthread" |
| 15705 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15706 | cat >>confdefs.h <<\_ACEOF |
| 15707 | #define WITH_THREAD 1 |
| 15708 | _ACEOF |
| 15709 | |
| 15710 | posix_threads=yes |
| 15711 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15712 | else |
| 15713 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 15714 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 15715 | fi |
| 15716 | if test ! -z "$withval" -a -d "$withval" |
| 15717 | then LDFLAGS="$LDFLAGS -L$withval" |
| 15718 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15719 | |
| 15720 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 15721 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 15722 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15723 | { $as_echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 15724 | $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] | 15725 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15726 | /* confdefs.h. */ |
| 15727 | _ACEOF |
| 15728 | cat confdefs.h >>conftest.$ac_ext |
| 15729 | cat >>conftest.$ac_ext <<_ACEOF |
| 15730 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15731 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15732 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15733 | #ifdef _POSIX_THREADS |
| 15734 | yes |
| 15735 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15736 | |
| 15737 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15738 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15739 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15740 | unistd_defines_pthreads=yes |
| 15741 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15742 | unistd_defines_pthreads=no |
| 15743 | fi |
| 15744 | rm -f conftest* |
| 15745 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15746 | { $as_echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 15747 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15749 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15750 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15751 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15753 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15754 | { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15755 | $as_echo_n "checking for cthreads.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15756 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15757 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15758 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15759 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15760 | $as_echo "$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15761 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15762 | # Is the header compilable? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15763 | { $as_echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 15764 | $as_echo_n "checking cthreads.h usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15765 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15766 | /* confdefs.h. */ |
| 15767 | _ACEOF |
| 15768 | cat confdefs.h >>conftest.$ac_ext |
| 15769 | cat >>conftest.$ac_ext <<_ACEOF |
| 15770 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15771 | $ac_includes_default |
| 15772 | #include <cthreads.h> |
| 15773 | _ACEOF |
| 15774 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15775 | if { (ac_try="$ac_compile" |
| 15776 | case "(($ac_try" in |
| 15777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15778 | *) ac_try_echo=$ac_try;; |
| 15779 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15780 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15781 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15782 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15783 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15785 | rm -f conftest.er1 |
| 15786 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15788 | (exit $ac_status); } && { |
| 15789 | test -z "$ac_c_werror_flag" || |
| 15790 | test ! -s conftest.err |
| 15791 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15792 | ac_header_compiler=yes |
| 15793 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15794 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15796 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15797 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15798 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15799 | |
| 15800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15801 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15802 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15803 | |
| 15804 | # Is the header present? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15805 | { $as_echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 15806 | $as_echo_n "checking cthreads.h presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15808 | /* confdefs.h. */ |
| 15809 | _ACEOF |
| 15810 | cat confdefs.h >>conftest.$ac_ext |
| 15811 | cat >>conftest.$ac_ext <<_ACEOF |
| 15812 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15813 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15814 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15815 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15816 | case "(($ac_try" in |
| 15817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15818 | *) ac_try_echo=$ac_try;; |
| 15819 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15820 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15821 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15822 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15823 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15824 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15825 | rm -f conftest.er1 |
| 15826 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15827 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15828 | (exit $ac_status); } >/dev/null && { |
| 15829 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15830 | test ! -s conftest.err |
| 15831 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15832 | ac_header_preproc=yes |
| 15833 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15834 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15837 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15838 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15840 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15841 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15842 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15843 | |
| 15844 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15845 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15846 | yes:no: ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15847 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15848 | $as_echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15849 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 15850 | $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] | 15851 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15852 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15853 | no:yes:* ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15854 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 15855 | $as_echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 15856 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 15857 | $as_echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 15858 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 15859 | $as_echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 15860 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15861 | $as_echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15862 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 15863 | $as_echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 15864 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 15865 | $as_echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15866 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 15867 | ## -------------------------------------- ## |
| 15868 | ## Report this to http://bugs.python.org/ ## |
| 15869 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15870 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15871 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15872 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15873 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15874 | { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15875 | $as_echo_n "checking for cthreads.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15876 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15877 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15878 | else |
| 15879 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15880 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15881 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15882 | $as_echo "$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15883 | |
| 15884 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15885 | 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] | 15886 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15887 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15888 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15890 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15891 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15892 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15894 | |
| 15895 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15896 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15897 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15898 | |
| 15899 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15900 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15901 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15903 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15904 | { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 15905 | $as_echo_n "checking for mach/cthreads.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15906 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15907 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15908 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15909 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 15910 | $as_echo "$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15912 | # Is the header compilable? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15913 | { $as_echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 15914 | $as_echo_n "checking mach/cthreads.h usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15916 | /* confdefs.h. */ |
| 15917 | _ACEOF |
| 15918 | cat confdefs.h >>conftest.$ac_ext |
| 15919 | cat >>conftest.$ac_ext <<_ACEOF |
| 15920 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15921 | $ac_includes_default |
| 15922 | #include <mach/cthreads.h> |
| 15923 | _ACEOF |
| 15924 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15925 | if { (ac_try="$ac_compile" |
| 15926 | case "(($ac_try" in |
| 15927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15928 | *) ac_try_echo=$ac_try;; |
| 15929 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15931 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15932 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15933 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15935 | rm -f conftest.er1 |
| 15936 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15938 | (exit $ac_status); } && { |
| 15939 | test -z "$ac_c_werror_flag" || |
| 15940 | test ! -s conftest.err |
| 15941 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15942 | ac_header_compiler=yes |
| 15943 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15944 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15946 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15947 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15948 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15949 | |
| 15950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15951 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15952 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15953 | |
| 15954 | # Is the header present? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15955 | { $as_echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 15956 | $as_echo_n "checking mach/cthreads.h presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15957 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15958 | /* confdefs.h. */ |
| 15959 | _ACEOF |
| 15960 | cat confdefs.h >>conftest.$ac_ext |
| 15961 | cat >>conftest.$ac_ext <<_ACEOF |
| 15962 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15963 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15964 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15965 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15966 | case "(($ac_try" in |
| 15967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15968 | *) ac_try_echo=$ac_try;; |
| 15969 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15970 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15971 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15972 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15973 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15974 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15975 | rm -f conftest.er1 |
| 15976 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15977 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15978 | (exit $ac_status); } >/dev/null && { |
| 15979 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15980 | test ! -s conftest.err |
| 15981 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15982 | ac_header_preproc=yes |
| 15983 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15984 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15986 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15987 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15988 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15990 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15991 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15992 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15993 | |
| 15994 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15995 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15996 | yes:no: ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 15997 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15998 | $as_echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15999 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 16000 | $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] | 16001 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16002 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16003 | no:yes:* ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16004 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 16005 | $as_echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 16006 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 16007 | $as_echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16008 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 16009 | $as_echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 16010 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16011 | $as_echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16012 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16013 | $as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16014 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16015 | $as_echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16016 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16017 | ## -------------------------------------- ## |
| 16018 | ## Report this to http://bugs.python.org/ ## |
| 16019 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16020 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16021 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16022 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16023 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16024 | { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16025 | $as_echo_n "checking for mach/cthreads.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16026 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16027 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16028 | else |
| 16029 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16030 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16031 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16032 | $as_echo "$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16033 | |
| 16034 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16035 | 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] | 16036 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16037 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16038 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16040 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16041 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16042 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16044 | |
| 16045 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16046 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16047 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16048 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16049 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16050 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16051 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16052 | { $as_echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 16053 | $as_echo_n "checking for --with-pth... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16054 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16055 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16056 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16057 | withval=$with_pth; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 16058 | $as_echo "$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16059 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16060 | #define WITH_THREAD 1 |
| 16061 | _ACEOF |
| 16062 | |
| 16063 | |
| 16064 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16065 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16066 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16067 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16068 | LIBS="-lpth $LIBS" |
| 16069 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16070 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16071 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16072 | $as_echo "no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16073 | |
| 16074 | # Just looking for pthread_create in libpthread is not enough: |
| 16075 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 16076 | # So we really have to include pthread.h, and then link. |
| 16077 | _libs=$LIBS |
| 16078 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16079 | { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 16080 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16082 | /* confdefs.h. */ |
| 16083 | _ACEOF |
| 16084 | cat confdefs.h >>conftest.$ac_ext |
| 16085 | cat >>conftest.$ac_ext <<_ACEOF |
| 16086 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16087 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16088 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16089 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16090 | int |
| 16091 | main () |
| 16092 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16093 | |
| 16094 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16095 | ; |
| 16096 | return 0; |
| 16097 | } |
| 16098 | _ACEOF |
| 16099 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16100 | if { (ac_try="$ac_link" |
| 16101 | case "(($ac_try" in |
| 16102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16103 | *) ac_try_echo=$ac_try;; |
| 16104 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16105 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16106 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16107 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16108 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16110 | rm -f conftest.er1 |
| 16111 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16112 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16113 | (exit $ac_status); } && { |
| 16114 | test -z "$ac_c_werror_flag" || |
| 16115 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16116 | } && test -s conftest$ac_exeext && { |
| 16117 | test "$cross_compiling" = yes || |
| 16118 | $as_test_x conftest$ac_exeext |
| 16119 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16120 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16121 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16122 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16123 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16124 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16125 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16126 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16127 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16128 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16129 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16130 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16132 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16133 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16134 | LIBS=$_libs |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16135 | { $as_echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 16136 | $as_echo_n "checking for pthread_detach... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16137 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16138 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16139 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16140 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16141 | /* confdefs.h. */ |
| 16142 | _ACEOF |
| 16143 | cat confdefs.h >>conftest.$ac_ext |
| 16144 | cat >>conftest.$ac_ext <<_ACEOF |
| 16145 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16146 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 16147 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16148 | #define pthread_detach innocuous_pthread_detach |
| 16149 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16150 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16151 | which can conflict with char pthread_detach (); below. |
| 16152 | 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] | 16153 | <limits.h> exists even on freestanding compilers. */ |
| 16154 | |
| 16155 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16156 | # include <limits.h> |
| 16157 | #else |
| 16158 | # include <assert.h> |
| 16159 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16160 | |
| 16161 | #undef pthread_detach |
| 16162 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16163 | /* Override any GCC internal prototype to avoid an error. |
| 16164 | Use char because int might match the return type of a GCC |
| 16165 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16166 | #ifdef __cplusplus |
| 16167 | extern "C" |
| 16168 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16169 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16170 | /* The GNU C library defines this for functions which it implements |
| 16171 | to always fail with ENOSYS. Some functions are actually named |
| 16172 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16173 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16174 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16175 | #endif |
| 16176 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16177 | int |
| 16178 | main () |
| 16179 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16180 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16181 | ; |
| 16182 | return 0; |
| 16183 | } |
| 16184 | _ACEOF |
| 16185 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16186 | if { (ac_try="$ac_link" |
| 16187 | case "(($ac_try" in |
| 16188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16189 | *) ac_try_echo=$ac_try;; |
| 16190 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16192 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16193 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16194 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16196 | rm -f conftest.er1 |
| 16197 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16199 | (exit $ac_status); } && { |
| 16200 | test -z "$ac_c_werror_flag" || |
| 16201 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16202 | } && test -s conftest$ac_exeext && { |
| 16203 | test "$cross_compiling" = yes || |
| 16204 | $as_test_x conftest$ac_exeext |
| 16205 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16206 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16207 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16208 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16210 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16211 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16212 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16213 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16214 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16216 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16217 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16218 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 16219 | $as_echo "$ac_cv_func_pthread_detach" >&6; } |
| 16220 | 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] | 16221 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16222 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16223 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16224 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16225 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16226 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16227 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16228 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16229 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16230 | { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16231 | $as_echo_n "checking for atheos/threads.h... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16232 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16233 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16234 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16235 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16236 | $as_echo "$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16237 | else |
| 16238 | # Is the header compilable? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16239 | { $as_echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 16240 | $as_echo_n "checking atheos/threads.h usability... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16241 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16242 | /* confdefs.h. */ |
| 16243 | _ACEOF |
| 16244 | cat confdefs.h >>conftest.$ac_ext |
| 16245 | cat >>conftest.$ac_ext <<_ACEOF |
| 16246 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16247 | $ac_includes_default |
| 16248 | #include <atheos/threads.h> |
| 16249 | _ACEOF |
| 16250 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16251 | if { (ac_try="$ac_compile" |
| 16252 | case "(($ac_try" in |
| 16253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16254 | *) ac_try_echo=$ac_try;; |
| 16255 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16256 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16257 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16258 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16259 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16261 | rm -f conftest.er1 |
| 16262 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16263 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16264 | (exit $ac_status); } && { |
| 16265 | test -z "$ac_c_werror_flag" || |
| 16266 | test ! -s conftest.err |
| 16267 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16268 | ac_header_compiler=yes |
| 16269 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16270 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16272 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16273 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16274 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16275 | |
| 16276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16277 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16278 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16279 | |
| 16280 | # Is the header present? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16281 | { $as_echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 16282 | $as_echo_n "checking atheos/threads.h presence... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16283 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16284 | /* confdefs.h. */ |
| 16285 | _ACEOF |
| 16286 | cat confdefs.h >>conftest.$ac_ext |
| 16287 | cat >>conftest.$ac_ext <<_ACEOF |
| 16288 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16289 | #include <atheos/threads.h> |
| 16290 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16291 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16292 | case "(($ac_try" in |
| 16293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16294 | *) ac_try_echo=$ac_try;; |
| 16295 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16296 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16297 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16298 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16299 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16300 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16301 | rm -f conftest.er1 |
| 16302 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16303 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16304 | (exit $ac_status); } >/dev/null && { |
| 16305 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16306 | test ! -s conftest.err |
| 16307 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16308 | ac_header_preproc=yes |
| 16309 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16310 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16312 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16313 | ac_header_preproc=no |
| 16314 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16315 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16316 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16317 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16318 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16319 | |
| 16320 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16321 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16322 | yes:no: ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16323 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16324 | $as_echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16325 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 16326 | $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] | 16327 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16328 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16329 | no:yes:* ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16330 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 16331 | $as_echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 16332 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 16333 | $as_echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 16334 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 16335 | $as_echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 16336 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16337 | $as_echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16338 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 16339 | $as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 16340 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 16341 | $as_echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16342 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16343 | ## -------------------------------------- ## |
| 16344 | ## Report this to http://bugs.python.org/ ## |
| 16345 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16346 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16347 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16348 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16349 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16350 | { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16351 | $as_echo_n "checking for atheos/threads.h... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16352 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16353 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16354 | else |
| 16355 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 16356 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16357 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16358 | $as_echo "$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16359 | |
| 16360 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16361 | 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] | 16362 | cat >>confdefs.h <<\_ACEOF |
| 16363 | #define WITH_THREAD 1 |
| 16364 | _ACEOF |
| 16365 | |
| 16366 | |
| 16367 | cat >>confdefs.h <<\_ACEOF |
| 16368 | #define ATHEOS_THREADS 1 |
| 16369 | _ACEOF |
| 16370 | |
| 16371 | THREADOBJ="Python/thread.o" |
| 16372 | else |
| 16373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16374 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16375 | { $as_echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16376 | $as_echo_n "checking for kernel/OS.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16377 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16378 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16379 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16380 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16381 | $as_echo "$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16383 | # Is the header compilable? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16384 | { $as_echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 16385 | $as_echo_n "checking kernel/OS.h usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16386 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16387 | /* confdefs.h. */ |
| 16388 | _ACEOF |
| 16389 | cat confdefs.h >>conftest.$ac_ext |
| 16390 | cat >>conftest.$ac_ext <<_ACEOF |
| 16391 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16392 | $ac_includes_default |
| 16393 | #include <kernel/OS.h> |
| 16394 | _ACEOF |
| 16395 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16396 | if { (ac_try="$ac_compile" |
| 16397 | case "(($ac_try" in |
| 16398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16399 | *) ac_try_echo=$ac_try;; |
| 16400 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16402 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16403 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16404 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16406 | rm -f conftest.er1 |
| 16407 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16409 | (exit $ac_status); } && { |
| 16410 | test -z "$ac_c_werror_flag" || |
| 16411 | test ! -s conftest.err |
| 16412 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16413 | ac_header_compiler=yes |
| 16414 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16415 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16417 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16418 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16419 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16420 | |
| 16421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16422 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16423 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16424 | |
| 16425 | # Is the header present? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16426 | { $as_echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 16427 | $as_echo_n "checking kernel/OS.h presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16428 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16429 | /* confdefs.h. */ |
| 16430 | _ACEOF |
| 16431 | cat confdefs.h >>conftest.$ac_ext |
| 16432 | cat >>conftest.$ac_ext <<_ACEOF |
| 16433 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16434 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16435 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16436 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16437 | case "(($ac_try" in |
| 16438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16439 | *) ac_try_echo=$ac_try;; |
| 16440 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16441 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16442 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16443 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16444 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16445 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16446 | rm -f conftest.er1 |
| 16447 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16448 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16449 | (exit $ac_status); } >/dev/null && { |
| 16450 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16451 | test ! -s conftest.err |
| 16452 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16453 | ac_header_preproc=yes |
| 16454 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16455 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16458 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16459 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16461 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16462 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16463 | $as_echo "$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16465 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16466 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16467 | yes:no: ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16468 | { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16469 | $as_echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16470 | { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 16471 | $as_echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16472 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16473 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16474 | no:yes:* ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16475 | { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 16476 | $as_echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 16477 | { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 16478 | $as_echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 16479 | { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 16480 | $as_echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 16481 | { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16482 | $as_echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16483 | { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 16484 | $as_echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 16485 | { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 16486 | $as_echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16487 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16488 | ## -------------------------------------- ## |
| 16489 | ## Report this to http://bugs.python.org/ ## |
| 16490 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16491 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16492 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16493 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16494 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16495 | { $as_echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16496 | $as_echo_n "checking for kernel/OS.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16497 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16498 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16499 | else |
| 16500 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 16501 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16502 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16503 | $as_echo "$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16504 | |
| 16505 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16506 | if test "x$ac_cv_header_kernel_OS_h" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16507 | cat >>confdefs.h <<\_ACEOF |
| 16508 | #define WITH_THREAD 1 |
| 16509 | _ACEOF |
| 16510 | |
| 16511 | |
| 16512 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16513 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16514 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16515 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16516 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16517 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16518 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16519 | { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 16520 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16521 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16522 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16523 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16524 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16525 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16526 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16527 | /* confdefs.h. */ |
| 16528 | _ACEOF |
| 16529 | cat confdefs.h >>conftest.$ac_ext |
| 16530 | cat >>conftest.$ac_ext <<_ACEOF |
| 16531 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16532 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16533 | /* Override any GCC internal prototype to avoid an error. |
| 16534 | Use char because int might match the return type of a GCC |
| 16535 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16536 | #ifdef __cplusplus |
| 16537 | extern "C" |
| 16538 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16539 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16540 | int |
| 16541 | main () |
| 16542 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16543 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16544 | ; |
| 16545 | return 0; |
| 16546 | } |
| 16547 | _ACEOF |
| 16548 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16549 | if { (ac_try="$ac_link" |
| 16550 | case "(($ac_try" in |
| 16551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16552 | *) ac_try_echo=$ac_try;; |
| 16553 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16555 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16556 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16557 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16559 | rm -f conftest.er1 |
| 16560 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16562 | (exit $ac_status); } && { |
| 16563 | test -z "$ac_c_werror_flag" || |
| 16564 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16565 | } && test -s conftest$ac_exeext && { |
| 16566 | test "$cross_compiling" = yes || |
| 16567 | $as_test_x conftest$ac_exeext |
| 16568 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16569 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16570 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16571 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16573 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16574 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16575 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16576 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16577 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16578 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16579 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16580 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16581 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16582 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 16583 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 16584 | 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] | 16585 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16586 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16587 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16588 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16589 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16590 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16591 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16592 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16593 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16594 | { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 16595 | $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] | 16596 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16597 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16598 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16599 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16600 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16601 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16602 | /* confdefs.h. */ |
| 16603 | _ACEOF |
| 16604 | cat confdefs.h >>conftest.$ac_ext |
| 16605 | cat >>conftest.$ac_ext <<_ACEOF |
| 16606 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16607 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16608 | /* Override any GCC internal prototype to avoid an error. |
| 16609 | Use char because int might match the return type of a GCC |
| 16610 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16611 | #ifdef __cplusplus |
| 16612 | extern "C" |
| 16613 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16614 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16615 | int |
| 16616 | main () |
| 16617 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16618 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16619 | ; |
| 16620 | return 0; |
| 16621 | } |
| 16622 | _ACEOF |
| 16623 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16624 | if { (ac_try="$ac_link" |
| 16625 | case "(($ac_try" in |
| 16626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16627 | *) ac_try_echo=$ac_try;; |
| 16628 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16630 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16631 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16632 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16634 | rm -f conftest.er1 |
| 16635 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16637 | (exit $ac_status); } && { |
| 16638 | test -z "$ac_c_werror_flag" || |
| 16639 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16640 | } && test -s conftest$ac_exeext && { |
| 16641 | test "$cross_compiling" = yes || |
| 16642 | $as_test_x conftest$ac_exeext |
| 16643 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16644 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16645 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16646 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16648 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16649 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16650 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16651 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16652 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16653 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16654 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16655 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16656 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16657 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 16658 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
| 16659 | 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] | 16660 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16661 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16662 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16663 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16664 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16665 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16666 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16667 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16668 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16669 | { $as_echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 16670 | $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] | 16671 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16672 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16674 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16675 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16676 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16677 | /* confdefs.h. */ |
| 16678 | _ACEOF |
| 16679 | cat confdefs.h >>conftest.$ac_ext |
| 16680 | cat >>conftest.$ac_ext <<_ACEOF |
| 16681 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16682 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16683 | /* Override any GCC internal prototype to avoid an error. |
| 16684 | Use char because int might match the return type of a GCC |
| 16685 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16686 | #ifdef __cplusplus |
| 16687 | extern "C" |
| 16688 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16689 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16690 | int |
| 16691 | main () |
| 16692 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16693 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16694 | ; |
| 16695 | return 0; |
| 16696 | } |
| 16697 | _ACEOF |
| 16698 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16699 | if { (ac_try="$ac_link" |
| 16700 | case "(($ac_try" in |
| 16701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16702 | *) ac_try_echo=$ac_try;; |
| 16703 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16704 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16705 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16706 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16707 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16709 | rm -f conftest.er1 |
| 16710 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16712 | (exit $ac_status); } && { |
| 16713 | test -z "$ac_c_werror_flag" || |
| 16714 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16715 | } && test -s conftest$ac_exeext && { |
| 16716 | test "$cross_compiling" = yes || |
| 16717 | $as_test_x conftest$ac_exeext |
| 16718 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16719 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16720 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16721 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16723 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16724 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16725 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16726 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16727 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16728 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16729 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16730 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16731 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16732 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 16733 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 16734 | 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] | 16735 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16736 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16737 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16738 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16739 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16740 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16741 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16742 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16743 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16744 | { $as_echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 16745 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16747 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16749 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16750 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16751 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16752 | /* confdefs.h. */ |
| 16753 | _ACEOF |
| 16754 | cat confdefs.h >>conftest.$ac_ext |
| 16755 | cat >>conftest.$ac_ext <<_ACEOF |
| 16756 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16757 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16758 | /* Override any GCC internal prototype to avoid an error. |
| 16759 | Use char because int might match the return type of a GCC |
| 16760 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16761 | #ifdef __cplusplus |
| 16762 | extern "C" |
| 16763 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16764 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16765 | int |
| 16766 | main () |
| 16767 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16768 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16769 | ; |
| 16770 | return 0; |
| 16771 | } |
| 16772 | _ACEOF |
| 16773 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16774 | if { (ac_try="$ac_link" |
| 16775 | case "(($ac_try" in |
| 16776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16777 | *) ac_try_echo=$ac_try;; |
| 16778 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16780 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16781 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16782 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16784 | rm -f conftest.er1 |
| 16785 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16787 | (exit $ac_status); } && { |
| 16788 | test -z "$ac_c_werror_flag" || |
| 16789 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16790 | } && test -s conftest$ac_exeext && { |
| 16791 | test "$cross_compiling" = yes || |
| 16792 | $as_test_x conftest$ac_exeext |
| 16793 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16794 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16795 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16799 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16800 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16801 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16802 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16803 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16804 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16805 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16806 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16807 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 16808 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
| 16809 | 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] | 16810 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16811 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16812 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16813 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16814 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16815 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16816 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16817 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 16818 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16819 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 16820 | fi |
| 16821 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16822 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16823 | fi |
| 16824 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 16825 | fi |
| 16826 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16827 | fi |
| 16828 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16829 | fi |
| 16830 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16831 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16832 | fi |
| 16833 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16834 | |
| 16835 | fi |
| 16836 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16837 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16838 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16839 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16840 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16841 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16842 | fi |
| 16843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16844 | fi |
| 16845 | |
| 16846 | |
| 16847 | fi |
| 16848 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16849 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16850 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16851 | { $as_echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 16852 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16853 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16854 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16855 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16856 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16857 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16858 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16859 | /* confdefs.h. */ |
| 16860 | _ACEOF |
| 16861 | cat confdefs.h >>conftest.$ac_ext |
| 16862 | cat >>conftest.$ac_ext <<_ACEOF |
| 16863 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16864 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16865 | /* Override any GCC internal prototype to avoid an error. |
| 16866 | Use char because int might match the return type of a GCC |
| 16867 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16868 | #ifdef __cplusplus |
| 16869 | extern "C" |
| 16870 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16871 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16872 | int |
| 16873 | main () |
| 16874 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16875 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16876 | ; |
| 16877 | return 0; |
| 16878 | } |
| 16879 | _ACEOF |
| 16880 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16881 | if { (ac_try="$ac_link" |
| 16882 | case "(($ac_try" in |
| 16883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16884 | *) ac_try_echo=$ac_try;; |
| 16885 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16886 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16887 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16888 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16889 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16891 | rm -f conftest.er1 |
| 16892 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16893 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16894 | (exit $ac_status); } && { |
| 16895 | test -z "$ac_c_werror_flag" || |
| 16896 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16897 | } && test -s conftest$ac_exeext && { |
| 16898 | test "$cross_compiling" = yes || |
| 16899 | $as_test_x conftest$ac_exeext |
| 16900 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16901 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16902 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16903 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16905 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16906 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16907 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16908 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16909 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16910 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16911 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16912 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16913 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16914 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 16915 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
| 16916 | 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] | 16917 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16918 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16919 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16920 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16921 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16922 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16923 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16924 | fi |
| 16925 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16926 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 16927 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16928 | { $as_echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 16929 | $as_echo_n "checking for thr_create in -lthread... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16930 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16931 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16933 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16934 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16935 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16936 | /* confdefs.h. */ |
| 16937 | _ACEOF |
| 16938 | cat confdefs.h >>conftest.$ac_ext |
| 16939 | cat >>conftest.$ac_ext <<_ACEOF |
| 16940 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16941 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16942 | /* Override any GCC internal prototype to avoid an error. |
| 16943 | Use char because int might match the return type of a GCC |
| 16944 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16945 | #ifdef __cplusplus |
| 16946 | extern "C" |
| 16947 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16948 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16949 | int |
| 16950 | main () |
| 16951 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16952 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16953 | ; |
| 16954 | return 0; |
| 16955 | } |
| 16956 | _ACEOF |
| 16957 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16958 | if { (ac_try="$ac_link" |
| 16959 | case "(($ac_try" in |
| 16960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16961 | *) ac_try_echo=$ac_try;; |
| 16962 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16963 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16964 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16965 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16966 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16968 | rm -f conftest.er1 |
| 16969 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16970 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16971 | (exit $ac_status); } && { |
| 16972 | test -z "$ac_c_werror_flag" || |
| 16973 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16974 | } && test -s conftest$ac_exeext && { |
| 16975 | test "$cross_compiling" = yes || |
| 16976 | $as_test_x conftest$ac_exeext |
| 16977 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16978 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16979 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16980 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16982 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16983 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16984 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16985 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16986 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16987 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16988 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16989 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16990 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 16991 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 16992 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } |
| 16993 | 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] | 16994 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16995 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16996 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16997 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16998 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16999 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17000 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17001 | fi |
| 17002 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17003 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17004 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17005 | if test "$USE_THREAD_MODULE" != "#" |
| 17006 | then |
| 17007 | # If the above checks didn't disable threads, (at least) OSF1 |
| 17008 | # needs this '-threads' argument during linking. |
| 17009 | case $ac_sys_system in |
| 17010 | OSF1) LDLAST=-threads;; |
| 17011 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 17012 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17013 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17014 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17015 | if test "$posix_threads" = "yes"; then |
| 17016 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17017 | |
| 17018 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17019 | #define _POSIX_THREADS 1 |
| 17020 | _ACEOF |
| 17021 | |
| 17022 | fi |
| 17023 | |
| 17024 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 17025 | case $ac_sys_system/$ac_sys_release in |
| 17026 | SunOS/5.6) |
| 17027 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17028 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 17029 | _ACEOF |
| 17030 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17031 | ;; |
| 17032 | SunOS/5.8) |
| 17033 | cat >>confdefs.h <<\_ACEOF |
| 17034 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17035 | _ACEOF |
| 17036 | |
| 17037 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 17038 | AIX/5) |
| 17039 | cat >>confdefs.h <<\_ACEOF |
| 17040 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17041 | _ACEOF |
| 17042 | |
| 17043 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17044 | esac |
| 17045 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17046 | { $as_echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 17047 | $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] | 17048 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17049 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17050 | else |
| 17051 | if test "$cross_compiling" = yes; then |
| 17052 | ac_cv_pthread_system_supported=no |
| 17053 | else |
| 17054 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17055 | /* confdefs.h. */ |
| 17056 | _ACEOF |
| 17057 | cat confdefs.h >>conftest.$ac_ext |
| 17058 | cat >>conftest.$ac_ext <<_ACEOF |
| 17059 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17060 | #include <pthread.h> |
| 17061 | void *foo(void *parm) { |
| 17062 | return NULL; |
| 17063 | } |
| 17064 | main() { |
| 17065 | pthread_attr_t attr; |
| 17066 | pthread_t id; |
| 17067 | if (pthread_attr_init(&attr)) exit(-1); |
| 17068 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 17069 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 17070 | exit(0); |
| 17071 | } |
| 17072 | _ACEOF |
| 17073 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17074 | if { (ac_try="$ac_link" |
| 17075 | case "(($ac_try" in |
| 17076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17077 | *) ac_try_echo=$ac_try;; |
| 17078 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17079 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17080 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17081 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17082 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17083 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17084 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17085 | { (case "(($ac_try" in |
| 17086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17087 | *) ac_try_echo=$ac_try;; |
| 17088 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17089 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17090 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17091 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17092 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17093 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17094 | (exit $ac_status); }; }; then |
| 17095 | ac_cv_pthread_system_supported=yes |
| 17096 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17097 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 17098 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17100 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17101 | ( exit $ac_status ) |
| 17102 | ac_cv_pthread_system_supported=no |
| 17103 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17104 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17105 | 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] | 17106 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17107 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17108 | |
| 17109 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17110 | fi |
| 17111 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17112 | { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 17113 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17114 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 17115 | |
| 17116 | cat >>confdefs.h <<\_ACEOF |
| 17117 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 17118 | _ACEOF |
| 17119 | |
| 17120 | fi |
| 17121 | |
| 17122 | for ac_func in pthread_sigmask |
| 17123 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17124 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17125 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17126 | $as_echo_n "checking for $ac_func... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17127 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17128 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17129 | else |
| 17130 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17131 | /* confdefs.h. */ |
| 17132 | _ACEOF |
| 17133 | cat confdefs.h >>conftest.$ac_ext |
| 17134 | cat >>conftest.$ac_ext <<_ACEOF |
| 17135 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17136 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17137 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17138 | #define $ac_func innocuous_$ac_func |
| 17139 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17140 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17141 | which can conflict with char $ac_func (); below. |
| 17142 | 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] | 17143 | <limits.h> exists even on freestanding compilers. */ |
| 17144 | |
| 17145 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17146 | # include <limits.h> |
| 17147 | #else |
| 17148 | # include <assert.h> |
| 17149 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17150 | |
| 17151 | #undef $ac_func |
| 17152 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17153 | /* Override any GCC internal prototype to avoid an error. |
| 17154 | Use char because int might match the return type of a GCC |
| 17155 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17156 | #ifdef __cplusplus |
| 17157 | extern "C" |
| 17158 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17159 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17160 | /* The GNU C library defines this for functions which it implements |
| 17161 | to always fail with ENOSYS. Some functions are actually named |
| 17162 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17163 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17164 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17165 | #endif |
| 17166 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17167 | int |
| 17168 | main () |
| 17169 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17170 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17171 | ; |
| 17172 | return 0; |
| 17173 | } |
| 17174 | _ACEOF |
| 17175 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17176 | if { (ac_try="$ac_link" |
| 17177 | case "(($ac_try" in |
| 17178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17179 | *) ac_try_echo=$ac_try;; |
| 17180 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17181 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17182 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17183 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17184 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17186 | rm -f conftest.er1 |
| 17187 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17188 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17189 | (exit $ac_status); } && { |
| 17190 | test -z "$ac_c_werror_flag" || |
| 17191 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17192 | } && test -s conftest$ac_exeext && { |
| 17193 | test "$cross_compiling" = yes || |
| 17194 | $as_test_x conftest$ac_exeext |
| 17195 | }; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17196 | eval "$as_ac_var=yes" |
| 17197 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17198 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17200 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17201 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17202 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17203 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17204 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17205 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17206 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17207 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17208 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 17209 | $as_echo "$as_val"'` |
| 17210 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17211 | $as_echo "$ac_res" >&6; } |
| 17212 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 17213 | $as_echo "$as_val"'` |
| 17214 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17215 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17216 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17217 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17218 | case $ac_sys_system in |
| 17219 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17220 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17221 | cat >>confdefs.h <<\_ACEOF |
| 17222 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 17223 | _ACEOF |
| 17224 | |
| 17225 | ;; |
| 17226 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17227 | fi |
| 17228 | done |
| 17229 | |
| 17230 | fi |
| 17231 | |
| 17232 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17233 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17234 | |
| 17235 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17236 | { $as_echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 17237 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17238 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17239 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17240 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17241 | no) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17242 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17243 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17244 | ipv6=no |
| 17245 | ;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17246 | *) { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17247 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17248 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17249 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17250 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17251 | |
| 17252 | ipv6=yes |
| 17253 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17254 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17256 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17257 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17258 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17259 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17260 | ipv6=no |
| 17261 | |
| 17262 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17263 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17264 | /* confdefs.h. */ |
| 17265 | _ACEOF |
| 17266 | cat confdefs.h >>conftest.$ac_ext |
| 17267 | cat >>conftest.$ac_ext <<_ACEOF |
| 17268 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17269 | /* AF_INET6 available check */ |
| 17270 | #include <sys/types.h> |
| 17271 | #include <sys/socket.h> |
| 17272 | main() |
| 17273 | { |
| 17274 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 17275 | exit(1); |
| 17276 | else |
| 17277 | exit(0); |
| 17278 | } |
| 17279 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17280 | _ACEOF |
| 17281 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17282 | if { (ac_try="$ac_link" |
| 17283 | case "(($ac_try" in |
| 17284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17285 | *) ac_try_echo=$ac_try;; |
| 17286 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17287 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17288 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17289 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17290 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17291 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17292 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17293 | { (case "(($ac_try" in |
| 17294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17295 | *) ac_try_echo=$ac_try;; |
| 17296 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17297 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17298 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17299 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17300 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17302 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17303 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17304 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17305 | ipv6=yes |
| 17306 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17307 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 17308 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17311 | ( exit $ac_status ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17312 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17313 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17314 | ipv6=no |
| 17315 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17316 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17317 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17318 | fi |
| 17319 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17320 | |
| 17321 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17322 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17323 | { $as_echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 17324 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17325 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17326 | /* confdefs.h. */ |
| 17327 | _ACEOF |
| 17328 | cat confdefs.h >>conftest.$ac_ext |
| 17329 | cat >>conftest.$ac_ext <<_ACEOF |
| 17330 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17331 | #include <sys/types.h> |
| 17332 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17333 | int |
| 17334 | main () |
| 17335 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17336 | struct sockaddr_in6 x; |
| 17337 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17338 | ; |
| 17339 | return 0; |
| 17340 | } |
| 17341 | _ACEOF |
| 17342 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17343 | if { (ac_try="$ac_compile" |
| 17344 | case "(($ac_try" in |
| 17345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17346 | *) ac_try_echo=$ac_try;; |
| 17347 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17348 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17349 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17350 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17351 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17353 | rm -f conftest.er1 |
| 17354 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17355 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17356 | (exit $ac_status); } && { |
| 17357 | test -z "$ac_c_werror_flag" || |
| 17358 | test ! -s conftest.err |
| 17359 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17360 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17361 | $as_echo "yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17362 | ipv6=yes |
| 17363 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17364 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17366 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17367 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17368 | $as_echo "no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17369 | ipv6=no |
| 17370 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17371 | |
| 17372 | 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] | 17373 | fi |
| 17374 | |
| 17375 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17376 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17377 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17378 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17379 | |
| 17380 | fi |
| 17381 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17382 | fi |
| 17383 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17384 | |
| 17385 | ipv6type=unknown |
| 17386 | ipv6lib=none |
| 17387 | ipv6trylibc=no |
| 17388 | |
| 17389 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17390 | { $as_echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 17391 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 17392 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 17393 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17394 | case $i in |
| 17395 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17396 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17397 | /* confdefs.h. */ |
| 17398 | _ACEOF |
| 17399 | cat confdefs.h >>conftest.$ac_ext |
| 17400 | cat >>conftest.$ac_ext <<_ACEOF |
| 17401 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17402 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17403 | #include <netinet/in.h> |
| 17404 | #ifdef IPV6_INRIA_VERSION |
| 17405 | yes |
| 17406 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17407 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17408 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17409 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17410 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17411 | fi |
| 17412 | rm -f conftest* |
| 17413 | |
| 17414 | ;; |
| 17415 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17416 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17417 | /* confdefs.h. */ |
| 17418 | _ACEOF |
| 17419 | cat confdefs.h >>conftest.$ac_ext |
| 17420 | cat >>conftest.$ac_ext <<_ACEOF |
| 17421 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17422 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17423 | #include <netinet/in.h> |
| 17424 | #ifdef __KAME__ |
| 17425 | yes |
| 17426 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17427 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17428 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17429 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17430 | ipv6type=$i; |
| 17431 | ipv6lib=inet6 |
| 17432 | ipv6libdir=/usr/local/v6/lib |
| 17433 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17434 | fi |
| 17435 | rm -f conftest* |
| 17436 | |
| 17437 | ;; |
| 17438 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17439 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17440 | /* confdefs.h. */ |
| 17441 | _ACEOF |
| 17442 | cat confdefs.h >>conftest.$ac_ext |
| 17443 | cat >>conftest.$ac_ext <<_ACEOF |
| 17444 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17445 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17446 | #include <features.h> |
| 17447 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 17448 | yes |
| 17449 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17450 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17452 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17453 | ipv6type=$i; |
| 17454 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17455 | fi |
| 17456 | rm -f conftest* |
| 17457 | |
| 17458 | ;; |
| 17459 | linux-inet6) |
| 17460 | if test -d /usr/inet6; then |
| 17461 | ipv6type=$i |
| 17462 | ipv6lib=inet6 |
| 17463 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17464 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17465 | fi |
| 17466 | ;; |
| 17467 | solaris) |
| 17468 | if test -f /etc/netconfig; then |
| 17469 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 17470 | ipv6type=$i |
| 17471 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17472 | fi |
| 17473 | fi |
| 17474 | ;; |
| 17475 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17477 | /* confdefs.h. */ |
| 17478 | _ACEOF |
| 17479 | cat confdefs.h >>conftest.$ac_ext |
| 17480 | cat >>conftest.$ac_ext <<_ACEOF |
| 17481 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17482 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17483 | #include <sys/param.h> |
| 17484 | #ifdef _TOSHIBA_INET6 |
| 17485 | yes |
| 17486 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17487 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17488 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17489 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17490 | ipv6type=$i; |
| 17491 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17492 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17493 | fi |
| 17494 | rm -f conftest* |
| 17495 | |
| 17496 | ;; |
| 17497 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17498 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17499 | /* confdefs.h. */ |
| 17500 | _ACEOF |
| 17501 | cat confdefs.h >>conftest.$ac_ext |
| 17502 | cat >>conftest.$ac_ext <<_ACEOF |
| 17503 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17504 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17505 | #include </usr/local/v6/include/sys/v6config.h> |
| 17506 | #ifdef __V6D__ |
| 17507 | yes |
| 17508 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17509 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17510 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17511 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17512 | ipv6type=$i; |
| 17513 | ipv6lib=v6; |
| 17514 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17515 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17516 | fi |
| 17517 | rm -f conftest* |
| 17518 | |
| 17519 | ;; |
| 17520 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17521 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17522 | /* confdefs.h. */ |
| 17523 | _ACEOF |
| 17524 | cat confdefs.h >>conftest.$ac_ext |
| 17525 | cat >>conftest.$ac_ext <<_ACEOF |
| 17526 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17527 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17528 | #include <sys/param.h> |
| 17529 | #ifdef _ZETA_MINAMI_INET6 |
| 17530 | yes |
| 17531 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17532 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17534 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17535 | ipv6type=$i; |
| 17536 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17537 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17538 | fi |
| 17539 | rm -f conftest* |
| 17540 | |
| 17541 | ;; |
| 17542 | esac |
| 17543 | if test "$ipv6type" != "unknown"; then |
| 17544 | break |
| 17545 | fi |
| 17546 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17547 | { $as_echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 17548 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17549 | fi |
| 17550 | |
| 17551 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 17552 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 17553 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 17554 | echo "using lib$ipv6lib" |
| 17555 | else |
| 17556 | if test $ipv6trylibc = "yes"; then |
| 17557 | echo "using libc" |
| 17558 | else |
| 17559 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 17560 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 17561 | echo 'ipv6 kit and compile beforehand.' |
| 17562 | exit 1 |
| 17563 | fi |
| 17564 | fi |
| 17565 | fi |
| 17566 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17567 | { $as_echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 17568 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17569 | cat >conftest.$ac_ext <<_ACEOF |
| 17570 | /* confdefs.h. */ |
| 17571 | _ACEOF |
| 17572 | cat confdefs.h >>conftest.$ac_ext |
| 17573 | cat >>conftest.$ac_ext <<_ACEOF |
| 17574 | /* end confdefs.h. */ |
| 17575 | #include <Carbon/Carbon.h> |
| 17576 | int |
| 17577 | main () |
| 17578 | { |
| 17579 | FSIORefNum fRef = 0 |
| 17580 | ; |
| 17581 | return 0; |
| 17582 | } |
| 17583 | _ACEOF |
| 17584 | rm -f conftest.$ac_objext |
| 17585 | if { (ac_try="$ac_compile" |
| 17586 | case "(($ac_try" in |
| 17587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17588 | *) ac_try_echo=$ac_try;; |
| 17589 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17591 | $as_echo "$ac_try_echo") >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17592 | (eval "$ac_compile") 2>conftest.er1 |
| 17593 | ac_status=$? |
| 17594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17595 | rm -f conftest.er1 |
| 17596 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17598 | (exit $ac_status); } && { |
| 17599 | test -z "$ac_c_werror_flag" || |
| 17600 | test ! -s conftest.err |
| 17601 | } && test -s conftest.$ac_objext; then |
| 17602 | |
| 17603 | cat >>confdefs.h <<\_ACEOF |
| 17604 | #define HAVE_OSX105_SDK 1 |
| 17605 | _ACEOF |
| 17606 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17607 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17608 | $as_echo "yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17609 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17610 | $as_echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17612 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17613 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17614 | $as_echo "no" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17615 | |
| 17616 | fi |
| 17617 | |
| 17618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17619 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17620 | # Check for --with-doc-strings |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17621 | { $as_echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 17622 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17623 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17624 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17625 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17626 | withval=$with_doc_strings; |
| 17627 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17628 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17629 | |
| 17630 | if test -z "$with_doc_strings" |
| 17631 | then with_doc_strings="yes" |
| 17632 | fi |
| 17633 | if test "$with_doc_strings" != "no" |
| 17634 | then |
| 17635 | |
| 17636 | cat >>confdefs.h <<\_ACEOF |
| 17637 | #define WITH_DOC_STRINGS 1 |
| 17638 | _ACEOF |
| 17639 | |
| 17640 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17641 | { $as_echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 17642 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17643 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17644 | # Check for Python-specific malloc support |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17645 | { $as_echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 17646 | $as_echo_n "checking for --with-tsc... " >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17647 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17648 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17649 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17650 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17651 | if test "$withval" != no |
| 17652 | then |
| 17653 | |
| 17654 | cat >>confdefs.h <<\_ACEOF |
| 17655 | #define WITH_TSC 1 |
| 17656 | _ACEOF |
| 17657 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17658 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17659 | $as_echo "yes" >&6; } |
| 17660 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17661 | $as_echo "no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17662 | fi |
| 17663 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17664 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17665 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17666 | fi |
| 17667 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17668 | |
| 17669 | # Check for Python-specific malloc support |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17670 | { $as_echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 17671 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17672 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17673 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17674 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17675 | withval=$with_pymalloc; |
| 17676 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17677 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17678 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17679 | if test -z "$with_pymalloc" |
| 17680 | then with_pymalloc="yes" |
| 17681 | fi |
| 17682 | if test "$with_pymalloc" != "no" |
| 17683 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17684 | |
| 17685 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17686 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17687 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17688 | |
| 17689 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17690 | { $as_echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 17691 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17692 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17693 | # Check for --with-wctype-functions |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17694 | { $as_echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 17695 | $as_echo_n "checking for --with-wctype-functions... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17696 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17697 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17698 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17699 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17700 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17701 | then |
| 17702 | |
| 17703 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17704 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17705 | _ACEOF |
| 17706 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17707 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17708 | $as_echo "yes" >&6; } |
| 17709 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17710 | $as_echo "no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17711 | fi |
| 17712 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17713 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17714 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17715 | fi |
| 17716 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17717 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17718 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17719 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 17720 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17721 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17722 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 17723 | # 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] | 17724 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17725 | for ac_func in dlopen |
| 17726 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17727 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17728 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17729 | $as_echo_n "checking for $ac_func... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17730 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17731 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17733 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17734 | /* confdefs.h. */ |
| 17735 | _ACEOF |
| 17736 | cat confdefs.h >>conftest.$ac_ext |
| 17737 | cat >>conftest.$ac_ext <<_ACEOF |
| 17738 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17739 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17740 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17741 | #define $ac_func innocuous_$ac_func |
| 17742 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17743 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17744 | which can conflict with char $ac_func (); below. |
| 17745 | 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] | 17746 | <limits.h> exists even on freestanding compilers. */ |
| 17747 | |
| 17748 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17749 | # include <limits.h> |
| 17750 | #else |
| 17751 | # include <assert.h> |
| 17752 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17753 | |
| 17754 | #undef $ac_func |
| 17755 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17756 | /* Override any GCC internal prototype to avoid an error. |
| 17757 | Use char because int might match the return type of a GCC |
| 17758 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17759 | #ifdef __cplusplus |
| 17760 | extern "C" |
| 17761 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17762 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17763 | /* The GNU C library defines this for functions which it implements |
| 17764 | to always fail with ENOSYS. Some functions are actually named |
| 17765 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17766 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17767 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17768 | #endif |
| 17769 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17770 | int |
| 17771 | main () |
| 17772 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17773 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17774 | ; |
| 17775 | return 0; |
| 17776 | } |
| 17777 | _ACEOF |
| 17778 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17779 | if { (ac_try="$ac_link" |
| 17780 | case "(($ac_try" in |
| 17781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17782 | *) ac_try_echo=$ac_try;; |
| 17783 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17784 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17785 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17786 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17787 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17789 | rm -f conftest.er1 |
| 17790 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17791 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17792 | (exit $ac_status); } && { |
| 17793 | test -z "$ac_c_werror_flag" || |
| 17794 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17795 | } && test -s conftest$ac_exeext && { |
| 17796 | test "$cross_compiling" = yes || |
| 17797 | $as_test_x conftest$ac_exeext |
| 17798 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17799 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17800 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17801 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17803 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17804 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17805 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17806 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17807 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17808 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17809 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17810 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17811 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 17812 | $as_echo "$as_val"'` |
| 17813 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17814 | $as_echo "$ac_res" >&6; } |
| 17815 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 17816 | $as_echo "$as_val"'` |
| 17817 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17818 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17819 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17820 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17821 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17822 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17823 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17824 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17825 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17826 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 17827 | # loading of modules. |
| 17828 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17829 | { $as_echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 17830 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17831 | if test -z "$DYNLOADFILE" |
| 17832 | then |
| 17833 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 17834 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 17835 | if test "$ac_cv_func_dlopen" = yes |
| 17836 | then DYNLOADFILE="dynload_shlib.o" |
| 17837 | else DYNLOADFILE="dynload_aix.o" |
| 17838 | fi |
| 17839 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17840 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 17841 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 17842 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 17843 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17844 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17845 | *) |
| 17846 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 17847 | # out any dynamic loading |
| 17848 | if test "$ac_cv_func_dlopen" = yes |
| 17849 | then DYNLOADFILE="dynload_shlib.o" |
| 17850 | else DYNLOADFILE="dynload_stub.o" |
| 17851 | fi |
| 17852 | ;; |
| 17853 | esac |
| 17854 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17855 | { $as_echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 17856 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17857 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 17858 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17859 | |
| 17860 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17861 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17862 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17863 | |
| 17864 | fi |
| 17865 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17866 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 17867 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17868 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17869 | { $as_echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 17870 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17871 | if test -z "$MACHDEP_OBJS" |
| 17872 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 17873 | MACHDEP_OBJS=$extra_machdep_objs |
| 17874 | else |
| 17875 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17876 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17877 | { $as_echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 17878 | $as_echo "MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17879 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17880 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17881 | |
| 17882 | |
| 17883 | |
| 17884 | |
| 17885 | |
| 17886 | |
| 17887 | |
| 17888 | |
| 17889 | |
| 17890 | |
| 17891 | |
| 17892 | |
| 17893 | |
| 17894 | |
| 17895 | |
| 17896 | |
| 17897 | |
| 17898 | |
| 17899 | |
| 17900 | |
| 17901 | |
| 17902 | |
| 17903 | |
| 17904 | |
| 17905 | |
| 17906 | |
| 17907 | |
| 17908 | |
| 17909 | |
| 17910 | |
| 17911 | |
| 17912 | |
| 17913 | |
| 17914 | |
| 17915 | |
| 17916 | |
| 17917 | |
| 17918 | |
| 17919 | |
| 17920 | |
| 17921 | |
| 17922 | |
| 17923 | |
| 17924 | |
| 17925 | |
| 17926 | |
| 17927 | |
| 17928 | |
| 17929 | |
| 17930 | |
| 17931 | |
| 17932 | |
| 17933 | |
| 17934 | |
| 17935 | |
| 17936 | |
| 17937 | |
| 17938 | |
| 17939 | |
| 17940 | |
| 17941 | |
| 17942 | |
| 17943 | |
| 17944 | |
| 17945 | |
| 17946 | |
| 17947 | |
| 17948 | |
| 17949 | |
| 17950 | |
| 17951 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17952 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 17953 | |
| 17954 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 17955 | |
| 17956 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 17957 | |
| 17958 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 17959 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 17960 | |
| 17961 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 17962 | |
| 17963 | |
| 17964 | |
| 17965 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 17966 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 17967 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 17968 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 17969 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17970 | kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 17971 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 17972 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 17973 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 17974 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 17975 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 17976 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 17977 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 17978 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17979 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17980 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17981 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17982 | $as_echo_n "checking for $ac_func... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17983 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 17984 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17986 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17987 | /* confdefs.h. */ |
| 17988 | _ACEOF |
| 17989 | cat confdefs.h >>conftest.$ac_ext |
| 17990 | cat >>conftest.$ac_ext <<_ACEOF |
| 17991 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17992 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17994 | #define $ac_func innocuous_$ac_func |
| 17995 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17996 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17997 | which can conflict with char $ac_func (); below. |
| 17998 | 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] | 17999 | <limits.h> exists even on freestanding compilers. */ |
| 18000 | |
| 18001 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18002 | # include <limits.h> |
| 18003 | #else |
| 18004 | # include <assert.h> |
| 18005 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18006 | |
| 18007 | #undef $ac_func |
| 18008 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18009 | /* Override any GCC internal prototype to avoid an error. |
| 18010 | Use char because int might match the return type of a GCC |
| 18011 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18012 | #ifdef __cplusplus |
| 18013 | extern "C" |
| 18014 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18015 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18016 | /* The GNU C library defines this for functions which it implements |
| 18017 | to always fail with ENOSYS. Some functions are actually named |
| 18018 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18019 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18020 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18021 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18022 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18023 | int |
| 18024 | main () |
| 18025 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18026 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18027 | ; |
| 18028 | return 0; |
| 18029 | } |
| 18030 | _ACEOF |
| 18031 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18032 | if { (ac_try="$ac_link" |
| 18033 | case "(($ac_try" in |
| 18034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18035 | *) ac_try_echo=$ac_try;; |
| 18036 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18037 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18038 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18039 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18040 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18042 | rm -f conftest.er1 |
| 18043 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18044 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18045 | (exit $ac_status); } && { |
| 18046 | test -z "$ac_c_werror_flag" || |
| 18047 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18048 | } && test -s conftest$ac_exeext && { |
| 18049 | test "$cross_compiling" = yes || |
| 18050 | $as_test_x conftest$ac_exeext |
| 18051 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18052 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18053 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18054 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18056 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18057 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18058 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18059 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18060 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18061 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18062 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18063 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18064 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18065 | $as_echo "$as_val"'` |
| 18066 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18067 | $as_echo "$ac_res" >&6; } |
| 18068 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18069 | $as_echo "$as_val"'` |
| 18070 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18071 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18072 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18073 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18074 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18075 | fi |
| 18076 | done |
| 18077 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18078 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18079 | # For some functions, having a definition is not sufficient, since |
| 18080 | # we want to take their address. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18081 | { $as_echo "$as_me:$LINENO: checking for chroot" >&5 |
| 18082 | $as_echo_n "checking for chroot... " >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18083 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18084 | /* confdefs.h. */ |
| 18085 | _ACEOF |
| 18086 | cat confdefs.h >>conftest.$ac_ext |
| 18087 | cat >>conftest.$ac_ext <<_ACEOF |
| 18088 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18089 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18090 | int |
| 18091 | main () |
| 18092 | { |
| 18093 | void *x=chroot |
| 18094 | ; |
| 18095 | return 0; |
| 18096 | } |
| 18097 | _ACEOF |
| 18098 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18099 | if { (ac_try="$ac_compile" |
| 18100 | case "(($ac_try" in |
| 18101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18102 | *) ac_try_echo=$ac_try;; |
| 18103 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18105 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18106 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18107 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18109 | rm -f conftest.er1 |
| 18110 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18112 | (exit $ac_status); } && { |
| 18113 | test -z "$ac_c_werror_flag" || |
| 18114 | test ! -s conftest.err |
| 18115 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18116 | |
| 18117 | cat >>confdefs.h <<\_ACEOF |
| 18118 | #define HAVE_CHROOT 1 |
| 18119 | _ACEOF |
| 18120 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18121 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18122 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18123 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18124 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18126 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18127 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18128 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18129 | |
| 18130 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18131 | |
| 18132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18133 | { $as_echo "$as_me:$LINENO: checking for link" >&5 |
| 18134 | $as_echo_n "checking for link... " >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18135 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18136 | /* confdefs.h. */ |
| 18137 | _ACEOF |
| 18138 | cat confdefs.h >>conftest.$ac_ext |
| 18139 | cat >>conftest.$ac_ext <<_ACEOF |
| 18140 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18141 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18142 | int |
| 18143 | main () |
| 18144 | { |
| 18145 | void *x=link |
| 18146 | ; |
| 18147 | return 0; |
| 18148 | } |
| 18149 | _ACEOF |
| 18150 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18151 | if { (ac_try="$ac_compile" |
| 18152 | case "(($ac_try" in |
| 18153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18154 | *) ac_try_echo=$ac_try;; |
| 18155 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18156 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18157 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18158 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18159 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18161 | rm -f conftest.er1 |
| 18162 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18163 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18164 | (exit $ac_status); } && { |
| 18165 | test -z "$ac_c_werror_flag" || |
| 18166 | test ! -s conftest.err |
| 18167 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18168 | |
| 18169 | cat >>confdefs.h <<\_ACEOF |
| 18170 | #define HAVE_LINK 1 |
| 18171 | _ACEOF |
| 18172 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18173 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18174 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18175 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18176 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18178 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18179 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18180 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18181 | |
| 18182 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18183 | |
| 18184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18185 | { $as_echo "$as_me:$LINENO: checking for symlink" >&5 |
| 18186 | $as_echo_n "checking for symlink... " >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18187 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18188 | /* confdefs.h. */ |
| 18189 | _ACEOF |
| 18190 | cat confdefs.h >>conftest.$ac_ext |
| 18191 | cat >>conftest.$ac_ext <<_ACEOF |
| 18192 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18193 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18194 | int |
| 18195 | main () |
| 18196 | { |
| 18197 | void *x=symlink |
| 18198 | ; |
| 18199 | return 0; |
| 18200 | } |
| 18201 | _ACEOF |
| 18202 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18203 | if { (ac_try="$ac_compile" |
| 18204 | case "(($ac_try" in |
| 18205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18206 | *) ac_try_echo=$ac_try;; |
| 18207 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18208 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18209 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18210 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18211 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18213 | rm -f conftest.er1 |
| 18214 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18215 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18216 | (exit $ac_status); } && { |
| 18217 | test -z "$ac_c_werror_flag" || |
| 18218 | test ! -s conftest.err |
| 18219 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18220 | |
| 18221 | cat >>confdefs.h <<\_ACEOF |
| 18222 | #define HAVE_SYMLINK 1 |
| 18223 | _ACEOF |
| 18224 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18225 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18226 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18227 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18228 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18230 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18231 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18232 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18233 | |
| 18234 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18235 | |
| 18236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18237 | { $as_echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 18238 | $as_echo_n "checking for fchdir... " >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18240 | /* confdefs.h. */ |
| 18241 | _ACEOF |
| 18242 | cat confdefs.h >>conftest.$ac_ext |
| 18243 | cat >>conftest.$ac_ext <<_ACEOF |
| 18244 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18245 | #include <unistd.h> |
| 18246 | int |
| 18247 | main () |
| 18248 | { |
| 18249 | void *x=fchdir |
| 18250 | ; |
| 18251 | return 0; |
| 18252 | } |
| 18253 | _ACEOF |
| 18254 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18255 | if { (ac_try="$ac_compile" |
| 18256 | case "(($ac_try" in |
| 18257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18258 | *) ac_try_echo=$ac_try;; |
| 18259 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18261 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18262 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18263 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18265 | rm -f conftest.er1 |
| 18266 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18268 | (exit $ac_status); } && { |
| 18269 | test -z "$ac_c_werror_flag" || |
| 18270 | test ! -s conftest.err |
| 18271 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18272 | |
| 18273 | cat >>confdefs.h <<\_ACEOF |
| 18274 | #define HAVE_FCHDIR 1 |
| 18275 | _ACEOF |
| 18276 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18277 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18278 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18279 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18280 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18282 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18283 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18284 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18285 | |
| 18286 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18287 | |
| 18288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18289 | { $as_echo "$as_me:$LINENO: checking for fsync" >&5 |
| 18290 | $as_echo_n "checking for fsync... " >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18291 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18292 | /* confdefs.h. */ |
| 18293 | _ACEOF |
| 18294 | cat confdefs.h >>conftest.$ac_ext |
| 18295 | cat >>conftest.$ac_ext <<_ACEOF |
| 18296 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18297 | #include <unistd.h> |
| 18298 | int |
| 18299 | main () |
| 18300 | { |
| 18301 | void *x=fsync |
| 18302 | ; |
| 18303 | return 0; |
| 18304 | } |
| 18305 | _ACEOF |
| 18306 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18307 | if { (ac_try="$ac_compile" |
| 18308 | case "(($ac_try" in |
| 18309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18310 | *) ac_try_echo=$ac_try;; |
| 18311 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18312 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18313 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18314 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18315 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18317 | rm -f conftest.er1 |
| 18318 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18319 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18320 | (exit $ac_status); } && { |
| 18321 | test -z "$ac_c_werror_flag" || |
| 18322 | test ! -s conftest.err |
| 18323 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18324 | |
| 18325 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18326 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18327 | _ACEOF |
| 18328 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18329 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18330 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18331 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18332 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18334 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18335 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18336 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18337 | |
| 18338 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18339 | |
| 18340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18341 | { $as_echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 18342 | $as_echo_n "checking for fdatasync... " >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18343 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18344 | /* confdefs.h. */ |
| 18345 | _ACEOF |
| 18346 | cat confdefs.h >>conftest.$ac_ext |
| 18347 | cat >>conftest.$ac_ext <<_ACEOF |
| 18348 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18349 | #include <unistd.h> |
| 18350 | int |
| 18351 | main () |
| 18352 | { |
| 18353 | void *x=fdatasync |
| 18354 | ; |
| 18355 | return 0; |
| 18356 | } |
| 18357 | _ACEOF |
| 18358 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18359 | if { (ac_try="$ac_compile" |
| 18360 | case "(($ac_try" in |
| 18361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18362 | *) ac_try_echo=$ac_try;; |
| 18363 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18365 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18366 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18367 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18369 | rm -f conftest.er1 |
| 18370 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18372 | (exit $ac_status); } && { |
| 18373 | test -z "$ac_c_werror_flag" || |
| 18374 | test ! -s conftest.err |
| 18375 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18376 | |
| 18377 | cat >>confdefs.h <<\_ACEOF |
| 18378 | #define HAVE_FDATASYNC 1 |
| 18379 | _ACEOF |
| 18380 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18381 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18382 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18383 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18384 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18386 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18387 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18388 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18389 | |
| 18390 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18391 | |
| 18392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18393 | { $as_echo "$as_me:$LINENO: checking for epoll" >&5 |
| 18394 | $as_echo_n "checking for epoll... " >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18395 | cat >conftest.$ac_ext <<_ACEOF |
| 18396 | /* confdefs.h. */ |
| 18397 | _ACEOF |
| 18398 | cat confdefs.h >>conftest.$ac_ext |
| 18399 | cat >>conftest.$ac_ext <<_ACEOF |
| 18400 | /* end confdefs.h. */ |
| 18401 | #include <sys/epoll.h> |
| 18402 | int |
| 18403 | main () |
| 18404 | { |
| 18405 | void *x=epoll_create |
| 18406 | ; |
| 18407 | return 0; |
| 18408 | } |
| 18409 | _ACEOF |
| 18410 | rm -f conftest.$ac_objext |
| 18411 | if { (ac_try="$ac_compile" |
| 18412 | case "(($ac_try" in |
| 18413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18414 | *) ac_try_echo=$ac_try;; |
| 18415 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18416 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18417 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18418 | (eval "$ac_compile") 2>conftest.er1 |
| 18419 | ac_status=$? |
| 18420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18421 | rm -f conftest.er1 |
| 18422 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18423 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18424 | (exit $ac_status); } && { |
| 18425 | test -z "$ac_c_werror_flag" || |
| 18426 | test ! -s conftest.err |
| 18427 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18428 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18429 | cat >>confdefs.h <<\_ACEOF |
| 18430 | #define HAVE_EPOLL 1 |
| 18431 | _ACEOF |
| 18432 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18433 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18434 | $as_echo "yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18435 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18436 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18438 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18439 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18440 | $as_echo "no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18441 | |
| 18442 | fi |
| 18443 | |
| 18444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18445 | { $as_echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 18446 | $as_echo_n "checking for kqueue... " >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18447 | cat >conftest.$ac_ext <<_ACEOF |
| 18448 | /* confdefs.h. */ |
| 18449 | _ACEOF |
| 18450 | cat confdefs.h >>conftest.$ac_ext |
| 18451 | cat >>conftest.$ac_ext <<_ACEOF |
| 18452 | /* end confdefs.h. */ |
| 18453 | |
| 18454 | #include <sys/types.h> |
| 18455 | #include <sys/event.h> |
| 18456 | |
| 18457 | int |
| 18458 | main () |
| 18459 | { |
| 18460 | int x=kqueue() |
| 18461 | ; |
| 18462 | return 0; |
| 18463 | } |
| 18464 | _ACEOF |
| 18465 | rm -f conftest.$ac_objext |
| 18466 | if { (ac_try="$ac_compile" |
| 18467 | case "(($ac_try" in |
| 18468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18469 | *) ac_try_echo=$ac_try;; |
| 18470 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18471 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18472 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18473 | (eval "$ac_compile") 2>conftest.er1 |
| 18474 | ac_status=$? |
| 18475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18476 | rm -f conftest.er1 |
| 18477 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18478 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18479 | (exit $ac_status); } && { |
| 18480 | test -z "$ac_c_werror_flag" || |
| 18481 | test ! -s conftest.err |
| 18482 | } && test -s conftest.$ac_objext; then |
| 18483 | |
| 18484 | cat >>confdefs.h <<\_ACEOF |
| 18485 | #define HAVE_KQUEUE 1 |
| 18486 | _ACEOF |
| 18487 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18488 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18489 | $as_echo "yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18490 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18491 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18493 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18494 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18495 | $as_echo "no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18496 | |
| 18497 | fi |
| 18498 | |
| 18499 | 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] | 18500 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 18501 | # functions ctermid_r, setgroups in the library, but no prototype |
| 18502 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 18503 | # address to avoid compiler warnings and potential miscompilations |
| 18504 | # because of the missing prototypes. |
| 18505 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18506 | { $as_echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 18507 | $as_echo_n "checking for ctermid_r... " >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18508 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18509 | /* confdefs.h. */ |
| 18510 | _ACEOF |
| 18511 | cat confdefs.h >>conftest.$ac_ext |
| 18512 | cat >>conftest.$ac_ext <<_ACEOF |
| 18513 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18514 | |
| 18515 | #include "confdefs.h" |
| 18516 | #include <stdio.h> |
| 18517 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18518 | int |
| 18519 | main () |
| 18520 | { |
| 18521 | void* p = ctermid_r |
| 18522 | ; |
| 18523 | return 0; |
| 18524 | } |
| 18525 | _ACEOF |
| 18526 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18532 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18533 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18534 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +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 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18544 | |
| 18545 | cat >>confdefs.h <<\_ACEOF |
| 18546 | #define HAVE_CTERMID_R 1 |
| 18547 | _ACEOF |
| 18548 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18549 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18550 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18551 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18552 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18554 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18555 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18556 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18557 | |
| 18558 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18559 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18561 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18562 | { $as_echo "$as_me:$LINENO: checking for flock" >&5 |
| 18563 | $as_echo_n "checking for flock... " >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18564 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18565 | /* confdefs.h. */ |
| 18566 | _ACEOF |
| 18567 | cat confdefs.h >>conftest.$ac_ext |
| 18568 | cat >>conftest.$ac_ext <<_ACEOF |
| 18569 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18570 | |
| 18571 | #include "confdefs.h" |
| 18572 | #include <sys/file.h> |
| 18573 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18574 | int |
| 18575 | main () |
| 18576 | { |
| 18577 | void* p = flock |
| 18578 | ; |
| 18579 | return 0; |
| 18580 | } |
| 18581 | _ACEOF |
| 18582 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18583 | if { (ac_try="$ac_compile" |
| 18584 | case "(($ac_try" in |
| 18585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18586 | *) ac_try_echo=$ac_try;; |
| 18587 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18588 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18589 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18590 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18591 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18593 | rm -f conftest.er1 |
| 18594 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18596 | (exit $ac_status); } && { |
| 18597 | test -z "$ac_c_werror_flag" || |
| 18598 | test ! -s conftest.err |
| 18599 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18600 | |
| 18601 | cat >>confdefs.h <<\_ACEOF |
| 18602 | #define HAVE_FLOCK 1 |
| 18603 | _ACEOF |
| 18604 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18605 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18606 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18607 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18608 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18610 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18611 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18612 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18613 | |
| 18614 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18615 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18617 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18618 | { $as_echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 18619 | $as_echo_n "checking for getpagesize... " >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18620 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18621 | /* confdefs.h. */ |
| 18622 | _ACEOF |
| 18623 | cat confdefs.h >>conftest.$ac_ext |
| 18624 | cat >>conftest.$ac_ext <<_ACEOF |
| 18625 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18626 | |
| 18627 | #include "confdefs.h" |
| 18628 | #include <unistd.h> |
| 18629 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18630 | int |
| 18631 | main () |
| 18632 | { |
| 18633 | void* p = getpagesize |
| 18634 | ; |
| 18635 | return 0; |
| 18636 | } |
| 18637 | _ACEOF |
| 18638 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18639 | if { (ac_try="$ac_compile" |
| 18640 | case "(($ac_try" in |
| 18641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18642 | *) ac_try_echo=$ac_try;; |
| 18643 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18645 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18646 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18647 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18649 | rm -f conftest.er1 |
| 18650 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18651 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18652 | (exit $ac_status); } && { |
| 18653 | test -z "$ac_c_werror_flag" || |
| 18654 | test ! -s conftest.err |
| 18655 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18656 | |
| 18657 | cat >>confdefs.h <<\_ACEOF |
| 18658 | #define HAVE_GETPAGESIZE 1 |
| 18659 | _ACEOF |
| 18660 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18661 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18662 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18663 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18664 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18666 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18667 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18668 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18669 | |
| 18670 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18671 | |
| 18672 | 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] | 18673 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18674 | for ac_prog in true |
| 18675 | do |
| 18676 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18677 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18678 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18679 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18680 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18681 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18682 | else |
| 18683 | if test -n "$TRUE"; then |
| 18684 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 18685 | else |
| 18686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18687 | for as_dir in $PATH |
| 18688 | do |
| 18689 | IFS=$as_save_IFS |
| 18690 | test -z "$as_dir" && as_dir=. |
| 18691 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18692 | 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] | 18693 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18694 | $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] | 18695 | break 2 |
| 18696 | fi |
| 18697 | done |
| 18698 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18699 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18700 | |
| 18701 | fi |
| 18702 | fi |
| 18703 | TRUE=$ac_cv_prog_TRUE |
| 18704 | if test -n "$TRUE"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18705 | { $as_echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 18706 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18707 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18708 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18709 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18710 | fi |
| 18711 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18712 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18713 | test -n "$TRUE" && break |
| 18714 | done |
| 18715 | test -n "$TRUE" || TRUE="/bin/true" |
| 18716 | |
| 18717 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18718 | { $as_echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 18719 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18720 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18721 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18722 | else |
| 18723 | ac_check_lib_save_LIBS=$LIBS |
| 18724 | LIBS="-lc $LIBS" |
| 18725 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18726 | /* confdefs.h. */ |
| 18727 | _ACEOF |
| 18728 | cat confdefs.h >>conftest.$ac_ext |
| 18729 | cat >>conftest.$ac_ext <<_ACEOF |
| 18730 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18731 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18732 | /* Override any GCC internal prototype to avoid an error. |
| 18733 | Use char because int might match the return type of a GCC |
| 18734 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18735 | #ifdef __cplusplus |
| 18736 | extern "C" |
| 18737 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18738 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18739 | int |
| 18740 | main () |
| 18741 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18742 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18743 | ; |
| 18744 | return 0; |
| 18745 | } |
| 18746 | _ACEOF |
| 18747 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18748 | if { (ac_try="$ac_link" |
| 18749 | case "(($ac_try" in |
| 18750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18751 | *) ac_try_echo=$ac_try;; |
| 18752 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18753 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18754 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18755 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18756 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18758 | rm -f conftest.er1 |
| 18759 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18760 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18761 | (exit $ac_status); } && { |
| 18762 | test -z "$ac_c_werror_flag" || |
| 18763 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18764 | } && test -s conftest$ac_exeext && { |
| 18765 | test "$cross_compiling" = yes || |
| 18766 | $as_test_x conftest$ac_exeext |
| 18767 | }; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18768 | ac_cv_lib_c_inet_aton=yes |
| 18769 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18770 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18772 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18773 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18774 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18775 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18776 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18777 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18778 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18779 | LIBS=$ac_check_lib_save_LIBS |
| 18780 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18781 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 18782 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
| 18783 | 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] | 18784 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18785 | else |
| 18786 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18787 | { $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 18788 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18789 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18790 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18791 | else |
| 18792 | ac_check_lib_save_LIBS=$LIBS |
| 18793 | LIBS="-lresolv $LIBS" |
| 18794 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18795 | /* confdefs.h. */ |
| 18796 | _ACEOF |
| 18797 | cat confdefs.h >>conftest.$ac_ext |
| 18798 | cat >>conftest.$ac_ext <<_ACEOF |
| 18799 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18800 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18801 | /* Override any GCC internal prototype to avoid an error. |
| 18802 | Use char because int might match the return type of a GCC |
| 18803 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18804 | #ifdef __cplusplus |
| 18805 | extern "C" |
| 18806 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18807 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18808 | int |
| 18809 | main () |
| 18810 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18811 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18812 | ; |
| 18813 | return 0; |
| 18814 | } |
| 18815 | _ACEOF |
| 18816 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18817 | if { (ac_try="$ac_link" |
| 18818 | case "(($ac_try" in |
| 18819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18820 | *) ac_try_echo=$ac_try;; |
| 18821 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18822 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18823 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18824 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18825 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18827 | rm -f conftest.er1 |
| 18828 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18829 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18830 | (exit $ac_status); } && { |
| 18831 | test -z "$ac_c_werror_flag" || |
| 18832 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18833 | } && test -s conftest$ac_exeext && { |
| 18834 | test "$cross_compiling" = yes || |
| 18835 | $as_test_x conftest$ac_exeext |
| 18836 | }; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18837 | ac_cv_lib_resolv_inet_aton=yes |
| 18838 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18839 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18841 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18842 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18843 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18844 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18845 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18846 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18847 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18848 | LIBS=$ac_check_lib_save_LIBS |
| 18849 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18850 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 18851 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
| 18852 | 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] | 18853 | cat >>confdefs.h <<_ACEOF |
| 18854 | #define HAVE_LIBRESOLV 1 |
| 18855 | _ACEOF |
| 18856 | |
| 18857 | LIBS="-lresolv $LIBS" |
| 18858 | |
| 18859 | fi |
| 18860 | |
| 18861 | |
| 18862 | fi |
| 18863 | |
| 18864 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18865 | # On Tru64, chflags seems to be present, but calling it will |
| 18866 | # exit Python |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18867 | { $as_echo "$as_me:$LINENO: checking for chflags" >&5 |
| 18868 | $as_echo_n "checking for chflags... " >&6; } |
| 18869 | if test "${ac_cv_have_chflags+set}" = set; then |
| 18870 | $as_echo_n "(cached) " >&6 |
| 18871 | else |
| 18872 | if test "$cross_compiling" = yes; then |
| 18873 | ac_cv_have_chflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18874 | else |
| 18875 | cat >conftest.$ac_ext <<_ACEOF |
| 18876 | /* confdefs.h. */ |
| 18877 | _ACEOF |
| 18878 | cat confdefs.h >>conftest.$ac_ext |
| 18879 | cat >>conftest.$ac_ext <<_ACEOF |
| 18880 | /* end confdefs.h. */ |
| 18881 | |
| 18882 | #include <sys/stat.h> |
| 18883 | #include <unistd.h> |
| 18884 | int main(int argc, char*argv[]) |
| 18885 | { |
| 18886 | if(chflags(argv[0], 0) != 0) |
| 18887 | return 1; |
| 18888 | return 0; |
| 18889 | } |
| 18890 | |
| 18891 | _ACEOF |
| 18892 | rm -f conftest$ac_exeext |
| 18893 | if { (ac_try="$ac_link" |
| 18894 | case "(($ac_try" in |
| 18895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18896 | *) ac_try_echo=$ac_try;; |
| 18897 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18898 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18899 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18900 | (eval "$ac_link") 2>&5 |
| 18901 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18904 | { (case "(($ac_try" in |
| 18905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18906 | *) ac_try_echo=$ac_try;; |
| 18907 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18908 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18909 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18910 | (eval "$ac_try") 2>&5 |
| 18911 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18913 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18914 | ac_cv_have_chflags=yes |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18915 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18916 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 18917 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18919 | |
| 18920 | ( exit $ac_status ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18921 | ac_cv_have_chflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18922 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18923 | rm -rf conftest.dSYM |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18924 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 18925 | fi |
| 18926 | |
| 18927 | |
| 18928 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18929 | fi |
| 18930 | |
| 18931 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5 |
| 18932 | $as_echo "$ac_cv_have_chflags" >&6; } |
| 18933 | if test $ac_cv_have_chflags = yes |
| 18934 | then |
| 18935 | |
| 18936 | cat >>confdefs.h <<\_ACEOF |
| 18937 | #define HAVE_CHFLAGS 1 |
| 18938 | _ACEOF |
| 18939 | |
| 18940 | fi |
| 18941 | |
| 18942 | { $as_echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 18943 | $as_echo_n "checking for lchflags... " >&6; } |
| 18944 | if test "${ac_cv_have_lchflags+set}" = set; then |
| 18945 | $as_echo_n "(cached) " >&6 |
| 18946 | else |
| 18947 | if test "$cross_compiling" = yes; then |
| 18948 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18949 | else |
| 18950 | cat >conftest.$ac_ext <<_ACEOF |
| 18951 | /* confdefs.h. */ |
| 18952 | _ACEOF |
| 18953 | cat confdefs.h >>conftest.$ac_ext |
| 18954 | cat >>conftest.$ac_ext <<_ACEOF |
| 18955 | /* end confdefs.h. */ |
| 18956 | |
| 18957 | #include <sys/stat.h> |
| 18958 | #include <unistd.h> |
| 18959 | int main(int argc, char*argv[]) |
| 18960 | { |
| 18961 | if(lchflags(argv[0], 0) != 0) |
| 18962 | return 1; |
| 18963 | return 0; |
| 18964 | } |
| 18965 | |
| 18966 | _ACEOF |
| 18967 | rm -f conftest$ac_exeext |
| 18968 | if { (ac_try="$ac_link" |
| 18969 | case "(($ac_try" in |
| 18970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18971 | *) ac_try_echo=$ac_try;; |
| 18972 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18974 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18975 | (eval "$ac_link") 2>&5 |
| 18976 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18977 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18978 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18979 | { (case "(($ac_try" in |
| 18980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18981 | *) ac_try_echo=$ac_try;; |
| 18982 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18984 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18985 | (eval "$ac_try") 2>&5 |
| 18986 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18988 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 18989 | ac_cv_have_lchflags=yes |
| 18990 | else |
| 18991 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 18992 | $as_echo "$as_me: failed program was:" >&5 |
| 18993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18994 | |
| 18995 | ( exit $ac_status ) |
| 18996 | ac_cv_have_lchflags=no |
| 18997 | fi |
| 18998 | rm -rf conftest.dSYM |
| 18999 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19000 | fi |
| 19001 | |
| 19002 | |
| 19003 | |
| 19004 | fi |
| 19005 | |
| 19006 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5 |
| 19007 | $as_echo "$ac_cv_have_lchflags" >&6; } |
| 19008 | if test $ac_cv_have_lchflags = yes |
| 19009 | then |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19010 | |
| 19011 | cat >>confdefs.h <<\_ACEOF |
| 19012 | #define HAVE_LCHFLAGS 1 |
| 19013 | _ACEOF |
| 19014 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19015 | fi |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19016 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19017 | case $ac_sys_system/$ac_sys_release in |
| 19018 | Darwin/*) |
| 19019 | _CUR_CFLAGS="${CFLAGS}" |
| 19020 | _CUR_LDFLAGS="${LDFLAGS}" |
| 19021 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 19022 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 19023 | ;; |
| 19024 | esac |
| 19025 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19026 | { $as_echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 19027 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19028 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19029 | $as_echo_n "(cached) " >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19030 | else |
| 19031 | ac_check_lib_save_LIBS=$LIBS |
| 19032 | LIBS="-lz $LIBS" |
| 19033 | cat >conftest.$ac_ext <<_ACEOF |
| 19034 | /* confdefs.h. */ |
| 19035 | _ACEOF |
| 19036 | cat confdefs.h >>conftest.$ac_ext |
| 19037 | cat >>conftest.$ac_ext <<_ACEOF |
| 19038 | /* end confdefs.h. */ |
| 19039 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19040 | /* Override any GCC internal prototype to avoid an error. |
| 19041 | Use char because int might match the return type of a GCC |
| 19042 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19043 | #ifdef __cplusplus |
| 19044 | extern "C" |
| 19045 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19046 | char inflateCopy (); |
| 19047 | int |
| 19048 | main () |
| 19049 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19050 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19051 | ; |
| 19052 | return 0; |
| 19053 | } |
| 19054 | _ACEOF |
| 19055 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19056 | if { (ac_try="$ac_link" |
| 19057 | case "(($ac_try" in |
| 19058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19059 | *) ac_try_echo=$ac_try;; |
| 19060 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19061 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19062 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19063 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19064 | ac_status=$? |
| 19065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19066 | rm -f conftest.er1 |
| 19067 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19068 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19069 | (exit $ac_status); } && { |
| 19070 | test -z "$ac_c_werror_flag" || |
| 19071 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19072 | } && test -s conftest$ac_exeext && { |
| 19073 | test "$cross_compiling" = yes || |
| 19074 | $as_test_x conftest$ac_exeext |
| 19075 | }; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19076 | ac_cv_lib_z_inflateCopy=yes |
| 19077 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19078 | $as_echo "$as_me: failed program was:" >&5 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19080 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19081 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19082 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19083 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19084 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19085 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19086 | conftest$ac_exeext conftest.$ac_ext |
| 19087 | LIBS=$ac_check_lib_save_LIBS |
| 19088 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19089 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 19090 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
| 19091 | if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19092 | |
| 19093 | cat >>confdefs.h <<\_ACEOF |
| 19094 | #define HAVE_ZLIB_COPY 1 |
| 19095 | _ACEOF |
| 19096 | |
| 19097 | fi |
| 19098 | |
| 19099 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19100 | case $ac_sys_system/$ac_sys_release in |
| 19101 | Darwin/*) |
| 19102 | CFLAGS="${_CUR_CFLAGS}" |
| 19103 | LDFLAGS="${_CUR_LDFLAGS}" |
| 19104 | ;; |
| 19105 | esac |
| 19106 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19107 | { $as_echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 19108 | $as_echo_n "checking for hstrerror... " >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19109 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19110 | /* confdefs.h. */ |
| 19111 | _ACEOF |
| 19112 | cat confdefs.h >>conftest.$ac_ext |
| 19113 | cat >>conftest.$ac_ext <<_ACEOF |
| 19114 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19115 | |
| 19116 | #include "confdefs.h" |
| 19117 | #include <netdb.h> |
| 19118 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19119 | int |
| 19120 | main () |
| 19121 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19122 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19123 | ; |
| 19124 | return 0; |
| 19125 | } |
| 19126 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19127 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19128 | if { (ac_try="$ac_link" |
| 19129 | case "(($ac_try" in |
| 19130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19131 | *) ac_try_echo=$ac_try;; |
| 19132 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19133 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19134 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19135 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19136 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19138 | rm -f conftest.er1 |
| 19139 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19140 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19141 | (exit $ac_status); } && { |
| 19142 | test -z "$ac_c_werror_flag" || |
| 19143 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19144 | } && test -s conftest$ac_exeext && { |
| 19145 | test "$cross_compiling" = yes || |
| 19146 | $as_test_x conftest$ac_exeext |
| 19147 | }; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19148 | |
| 19149 | cat >>confdefs.h <<\_ACEOF |
| 19150 | #define HAVE_HSTRERROR 1 |
| 19151 | _ACEOF |
| 19152 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19153 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 19154 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19155 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19156 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19158 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19159 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 19160 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19161 | |
| 19162 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19163 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19164 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19165 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19166 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19167 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19168 | { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 19169 | $as_echo_n "checking for inet_aton... " >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19171 | /* confdefs.h. */ |
| 19172 | _ACEOF |
| 19173 | cat confdefs.h >>conftest.$ac_ext |
| 19174 | cat >>conftest.$ac_ext <<_ACEOF |
| 19175 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19176 | |
| 19177 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 19178 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19179 | #include <sys/socket.h> |
| 19180 | #include <netinet/in.h> |
| 19181 | #include <arpa/inet.h> |
| 19182 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19183 | int |
| 19184 | main () |
| 19185 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19186 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19187 | ; |
| 19188 | return 0; |
| 19189 | } |
| 19190 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19191 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19192 | if { (ac_try="$ac_link" |
| 19193 | case "(($ac_try" in |
| 19194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19195 | *) ac_try_echo=$ac_try;; |
| 19196 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19197 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19198 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19199 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19200 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19202 | rm -f conftest.er1 |
| 19203 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19204 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19205 | (exit $ac_status); } && { |
| 19206 | test -z "$ac_c_werror_flag" || |
| 19207 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19208 | } && test -s conftest$ac_exeext && { |
| 19209 | test "$cross_compiling" = yes || |
| 19210 | $as_test_x conftest$ac_exeext |
| 19211 | }; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19212 | |
| 19213 | cat >>confdefs.h <<\_ACEOF |
| 19214 | #define HAVE_INET_ATON 1 |
| 19215 | _ACEOF |
| 19216 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19217 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 19218 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19219 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19220 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19222 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19223 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 19224 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19225 | |
| 19226 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19227 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19228 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19229 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19230 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19231 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19232 | { $as_echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 19233 | $as_echo_n "checking for inet_pton... " >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19234 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19235 | /* confdefs.h. */ |
| 19236 | _ACEOF |
| 19237 | cat confdefs.h >>conftest.$ac_ext |
| 19238 | cat >>conftest.$ac_ext <<_ACEOF |
| 19239 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19240 | |
| 19241 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19242 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19243 | #include <sys/socket.h> |
| 19244 | #include <netinet/in.h> |
| 19245 | #include <arpa/inet.h> |
| 19246 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19247 | int |
| 19248 | main () |
| 19249 | { |
| 19250 | void* p = inet_pton |
| 19251 | ; |
| 19252 | return 0; |
| 19253 | } |
| 19254 | _ACEOF |
| 19255 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19256 | if { (ac_try="$ac_compile" |
| 19257 | case "(($ac_try" in |
| 19258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19259 | *) ac_try_echo=$ac_try;; |
| 19260 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19261 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19262 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19263 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19264 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19266 | rm -f conftest.er1 |
| 19267 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19268 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19269 | (exit $ac_status); } && { |
| 19270 | test -z "$ac_c_werror_flag" || |
| 19271 | test ! -s conftest.err |
| 19272 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19273 | |
| 19274 | cat >>confdefs.h <<\_ACEOF |
| 19275 | #define HAVE_INET_PTON 1 |
| 19276 | _ACEOF |
| 19277 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19278 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 19279 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19280 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19281 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19283 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19284 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 19285 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19286 | |
| 19287 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19288 | |
| 19289 | 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] | 19290 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19291 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19292 | { $as_echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 19293 | $as_echo_n "checking for setgroups... " >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19294 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19295 | /* confdefs.h. */ |
| 19296 | _ACEOF |
| 19297 | cat confdefs.h >>conftest.$ac_ext |
| 19298 | cat >>conftest.$ac_ext <<_ACEOF |
| 19299 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19300 | |
| 19301 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19302 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19303 | #ifdef HAVE_GRP_H |
| 19304 | #include <grp.h> |
| 19305 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19306 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19307 | int |
| 19308 | main () |
| 19309 | { |
| 19310 | void* p = setgroups |
| 19311 | ; |
| 19312 | return 0; |
| 19313 | } |
| 19314 | _ACEOF |
| 19315 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19316 | if { (ac_try="$ac_compile" |
| 19317 | case "(($ac_try" in |
| 19318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19319 | *) ac_try_echo=$ac_try;; |
| 19320 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19322 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19323 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19324 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19326 | rm -f conftest.er1 |
| 19327 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19328 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19329 | (exit $ac_status); } && { |
| 19330 | test -z "$ac_c_werror_flag" || |
| 19331 | test ! -s conftest.err |
| 19332 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19333 | |
| 19334 | cat >>confdefs.h <<\_ACEOF |
| 19335 | #define HAVE_SETGROUPS 1 |
| 19336 | _ACEOF |
| 19337 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19338 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 19339 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19340 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19341 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19343 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19344 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 19345 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19346 | |
| 19347 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19348 | |
| 19349 | 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] | 19350 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19351 | # check for openpty and forkpty |
| 19352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19353 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19354 | for ac_func in openpty |
| 19355 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19356 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19357 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19358 | $as_echo_n "checking for $ac_func... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19359 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19360 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19361 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19362 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19363 | /* confdefs.h. */ |
| 19364 | _ACEOF |
| 19365 | cat confdefs.h >>conftest.$ac_ext |
| 19366 | cat >>conftest.$ac_ext <<_ACEOF |
| 19367 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19368 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19369 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19370 | #define $ac_func innocuous_$ac_func |
| 19371 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19372 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19373 | which can conflict with char $ac_func (); below. |
| 19374 | 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] | 19375 | <limits.h> exists even on freestanding compilers. */ |
| 19376 | |
| 19377 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19378 | # include <limits.h> |
| 19379 | #else |
| 19380 | # include <assert.h> |
| 19381 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19382 | |
| 19383 | #undef $ac_func |
| 19384 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19385 | /* Override any GCC internal prototype to avoid an error. |
| 19386 | Use char because int might match the return type of a GCC |
| 19387 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19388 | #ifdef __cplusplus |
| 19389 | extern "C" |
| 19390 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19391 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19392 | /* The GNU C library defines this for functions which it implements |
| 19393 | to always fail with ENOSYS. Some functions are actually named |
| 19394 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19395 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19396 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19397 | #endif |
| 19398 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19399 | int |
| 19400 | main () |
| 19401 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19402 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19403 | ; |
| 19404 | return 0; |
| 19405 | } |
| 19406 | _ACEOF |
| 19407 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19408 | if { (ac_try="$ac_link" |
| 19409 | case "(($ac_try" in |
| 19410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19411 | *) ac_try_echo=$ac_try;; |
| 19412 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19413 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19414 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19415 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19416 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19418 | rm -f conftest.er1 |
| 19419 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19420 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19421 | (exit $ac_status); } && { |
| 19422 | test -z "$ac_c_werror_flag" || |
| 19423 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19424 | } && test -s conftest$ac_exeext && { |
| 19425 | test "$cross_compiling" = yes || |
| 19426 | $as_test_x conftest$ac_exeext |
| 19427 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19428 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19429 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19430 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19432 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19433 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19434 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19435 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19436 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19437 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19438 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19439 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19440 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 19441 | $as_echo "$as_val"'` |
| 19442 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19443 | $as_echo "$ac_res" >&6; } |
| 19444 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 19445 | $as_echo "$as_val"'` |
| 19446 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19447 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19448 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19449 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19450 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19451 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19452 | { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 19453 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19454 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19455 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19456 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19457 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19458 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19459 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19460 | /* confdefs.h. */ |
| 19461 | _ACEOF |
| 19462 | cat confdefs.h >>conftest.$ac_ext |
| 19463 | cat >>conftest.$ac_ext <<_ACEOF |
| 19464 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19465 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19466 | /* Override any GCC internal prototype to avoid an error. |
| 19467 | Use char because int might match the return type of a GCC |
| 19468 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19469 | #ifdef __cplusplus |
| 19470 | extern "C" |
| 19471 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19472 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19473 | int |
| 19474 | main () |
| 19475 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19476 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19477 | ; |
| 19478 | return 0; |
| 19479 | } |
| 19480 | _ACEOF |
| 19481 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19482 | if { (ac_try="$ac_link" |
| 19483 | case "(($ac_try" in |
| 19484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19485 | *) ac_try_echo=$ac_try;; |
| 19486 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19487 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19488 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19489 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19490 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19492 | rm -f conftest.er1 |
| 19493 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19494 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19495 | (exit $ac_status); } && { |
| 19496 | test -z "$ac_c_werror_flag" || |
| 19497 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19498 | } && test -s conftest$ac_exeext && { |
| 19499 | test "$cross_compiling" = yes || |
| 19500 | $as_test_x conftest$ac_exeext |
| 19501 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19502 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19503 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19504 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19506 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19507 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19508 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19509 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19510 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19511 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19512 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19513 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19514 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19515 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 19516 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
| 19517 | 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] | 19518 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19519 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19520 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19521 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19522 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19523 | { $as_echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 19524 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19525 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19526 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19527 | else |
| 19528 | ac_check_lib_save_LIBS=$LIBS |
| 19529 | LIBS="-lbsd $LIBS" |
| 19530 | cat >conftest.$ac_ext <<_ACEOF |
| 19531 | /* confdefs.h. */ |
| 19532 | _ACEOF |
| 19533 | cat confdefs.h >>conftest.$ac_ext |
| 19534 | cat >>conftest.$ac_ext <<_ACEOF |
| 19535 | /* end confdefs.h. */ |
| 19536 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19537 | /* Override any GCC internal prototype to avoid an error. |
| 19538 | Use char because int might match the return type of a GCC |
| 19539 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19540 | #ifdef __cplusplus |
| 19541 | extern "C" |
| 19542 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19543 | char openpty (); |
| 19544 | int |
| 19545 | main () |
| 19546 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19547 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19548 | ; |
| 19549 | return 0; |
| 19550 | } |
| 19551 | _ACEOF |
| 19552 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19553 | if { (ac_try="$ac_link" |
| 19554 | case "(($ac_try" in |
| 19555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19556 | *) ac_try_echo=$ac_try;; |
| 19557 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19558 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19559 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19560 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19561 | ac_status=$? |
| 19562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19563 | rm -f conftest.er1 |
| 19564 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19566 | (exit $ac_status); } && { |
| 19567 | test -z "$ac_c_werror_flag" || |
| 19568 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19569 | } && test -s conftest$ac_exeext && { |
| 19570 | test "$cross_compiling" = yes || |
| 19571 | $as_test_x conftest$ac_exeext |
| 19572 | }; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19573 | ac_cv_lib_bsd_openpty=yes |
| 19574 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19575 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19577 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19578 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19579 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19580 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19581 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19582 | 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] | 19583 | conftest$ac_exeext conftest.$ac_ext |
| 19584 | LIBS=$ac_check_lib_save_LIBS |
| 19585 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19586 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 19587 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
| 19588 | 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] | 19589 | cat >>confdefs.h <<\_ACEOF |
| 19590 | #define HAVE_OPENPTY 1 |
| 19591 | _ACEOF |
| 19592 | LIBS="$LIBS -lbsd" |
| 19593 | fi |
| 19594 | |
| 19595 | |
| 19596 | fi |
| 19597 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19598 | |
| 19599 | fi |
| 19600 | done |
| 19601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19602 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19603 | for ac_func in forkpty |
| 19604 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19605 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19606 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19607 | $as_echo_n "checking for $ac_func... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19608 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19609 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19610 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19611 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19612 | /* confdefs.h. */ |
| 19613 | _ACEOF |
| 19614 | cat confdefs.h >>conftest.$ac_ext |
| 19615 | cat >>conftest.$ac_ext <<_ACEOF |
| 19616 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19617 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19618 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19619 | #define $ac_func innocuous_$ac_func |
| 19620 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19621 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19622 | which can conflict with char $ac_func (); below. |
| 19623 | 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] | 19624 | <limits.h> exists even on freestanding compilers. */ |
| 19625 | |
| 19626 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19627 | # include <limits.h> |
| 19628 | #else |
| 19629 | # include <assert.h> |
| 19630 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19631 | |
| 19632 | #undef $ac_func |
| 19633 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19634 | /* Override any GCC internal prototype to avoid an error. |
| 19635 | Use char because int might match the return type of a GCC |
| 19636 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19637 | #ifdef __cplusplus |
| 19638 | extern "C" |
| 19639 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19640 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19641 | /* The GNU C library defines this for functions which it implements |
| 19642 | to always fail with ENOSYS. Some functions are actually named |
| 19643 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19644 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19645 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19646 | #endif |
| 19647 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19648 | int |
| 19649 | main () |
| 19650 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19651 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19652 | ; |
| 19653 | return 0; |
| 19654 | } |
| 19655 | _ACEOF |
| 19656 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19657 | if { (ac_try="$ac_link" |
| 19658 | case "(($ac_try" in |
| 19659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19660 | *) ac_try_echo=$ac_try;; |
| 19661 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19663 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19664 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19665 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19667 | rm -f conftest.er1 |
| 19668 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19670 | (exit $ac_status); } && { |
| 19671 | test -z "$ac_c_werror_flag" || |
| 19672 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19673 | } && test -s conftest$ac_exeext && { |
| 19674 | test "$cross_compiling" = yes || |
| 19675 | $as_test_x conftest$ac_exeext |
| 19676 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19677 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19678 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19679 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19681 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19682 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19683 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19684 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19685 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19686 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19687 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19688 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19689 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 19690 | $as_echo "$as_val"'` |
| 19691 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19692 | $as_echo "$ac_res" >&6; } |
| 19693 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 19694 | $as_echo "$as_val"'` |
| 19695 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19696 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19697 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19698 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19699 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19700 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19701 | { $as_echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 19702 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19703 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19704 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19706 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19707 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19708 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19709 | /* confdefs.h. */ |
| 19710 | _ACEOF |
| 19711 | cat confdefs.h >>conftest.$ac_ext |
| 19712 | cat >>conftest.$ac_ext <<_ACEOF |
| 19713 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19714 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19715 | /* Override any GCC internal prototype to avoid an error. |
| 19716 | Use char because int might match the return type of a GCC |
| 19717 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19718 | #ifdef __cplusplus |
| 19719 | extern "C" |
| 19720 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19721 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19722 | int |
| 19723 | main () |
| 19724 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19725 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19726 | ; |
| 19727 | return 0; |
| 19728 | } |
| 19729 | _ACEOF |
| 19730 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19731 | if { (ac_try="$ac_link" |
| 19732 | case "(($ac_try" in |
| 19733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19734 | *) ac_try_echo=$ac_try;; |
| 19735 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19737 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19738 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19739 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19741 | rm -f conftest.er1 |
| 19742 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19744 | (exit $ac_status); } && { |
| 19745 | test -z "$ac_c_werror_flag" || |
| 19746 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19747 | } && test -s conftest$ac_exeext && { |
| 19748 | test "$cross_compiling" = yes || |
| 19749 | $as_test_x conftest$ac_exeext |
| 19750 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19751 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19752 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19753 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19755 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19756 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19757 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19758 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19759 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19760 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19761 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19762 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19763 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19764 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 19765 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
| 19766 | 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] | 19767 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19768 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19769 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19770 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19771 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19772 | { $as_echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 19773 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19774 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19775 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19776 | else |
| 19777 | ac_check_lib_save_LIBS=$LIBS |
| 19778 | LIBS="-lbsd $LIBS" |
| 19779 | cat >conftest.$ac_ext <<_ACEOF |
| 19780 | /* confdefs.h. */ |
| 19781 | _ACEOF |
| 19782 | cat confdefs.h >>conftest.$ac_ext |
| 19783 | cat >>conftest.$ac_ext <<_ACEOF |
| 19784 | /* end confdefs.h. */ |
| 19785 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19786 | /* Override any GCC internal prototype to avoid an error. |
| 19787 | Use char because int might match the return type of a GCC |
| 19788 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19789 | #ifdef __cplusplus |
| 19790 | extern "C" |
| 19791 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19792 | char forkpty (); |
| 19793 | int |
| 19794 | main () |
| 19795 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19796 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19797 | ; |
| 19798 | return 0; |
| 19799 | } |
| 19800 | _ACEOF |
| 19801 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19802 | if { (ac_try="$ac_link" |
| 19803 | case "(($ac_try" in |
| 19804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19805 | *) ac_try_echo=$ac_try;; |
| 19806 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19808 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19809 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19810 | ac_status=$? |
| 19811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19812 | rm -f conftest.er1 |
| 19813 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19815 | (exit $ac_status); } && { |
| 19816 | test -z "$ac_c_werror_flag" || |
| 19817 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19818 | } && test -s conftest$ac_exeext && { |
| 19819 | test "$cross_compiling" = yes || |
| 19820 | $as_test_x conftest$ac_exeext |
| 19821 | }; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19822 | ac_cv_lib_bsd_forkpty=yes |
| 19823 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19824 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19826 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19827 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19828 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19829 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19830 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19831 | 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] | 19832 | conftest$ac_exeext conftest.$ac_ext |
| 19833 | LIBS=$ac_check_lib_save_LIBS |
| 19834 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19835 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 19836 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
| 19837 | 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] | 19838 | cat >>confdefs.h <<\_ACEOF |
| 19839 | #define HAVE_FORKPTY 1 |
| 19840 | _ACEOF |
| 19841 | LIBS="$LIBS -lbsd" |
| 19842 | fi |
| 19843 | |
| 19844 | |
| 19845 | fi |
| 19846 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19847 | |
| 19848 | fi |
| 19849 | done |
| 19850 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19851 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19852 | # Stuff for expat. |
| 19853 | |
| 19854 | for ac_func in memmove |
| 19855 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19856 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19857 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19858 | $as_echo_n "checking for $ac_func... " >&6; } |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19859 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19860 | $as_echo_n "(cached) " >&6 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19861 | else |
| 19862 | cat >conftest.$ac_ext <<_ACEOF |
| 19863 | /* confdefs.h. */ |
| 19864 | _ACEOF |
| 19865 | cat confdefs.h >>conftest.$ac_ext |
| 19866 | cat >>conftest.$ac_ext <<_ACEOF |
| 19867 | /* end confdefs.h. */ |
| 19868 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19869 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19870 | #define $ac_func innocuous_$ac_func |
| 19871 | |
| 19872 | /* System header to define __stub macros and hopefully few prototypes, |
| 19873 | which can conflict with char $ac_func (); below. |
| 19874 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19875 | <limits.h> exists even on freestanding compilers. */ |
| 19876 | |
| 19877 | #ifdef __STDC__ |
| 19878 | # include <limits.h> |
| 19879 | #else |
| 19880 | # include <assert.h> |
| 19881 | #endif |
| 19882 | |
| 19883 | #undef $ac_func |
| 19884 | |
| 19885 | /* Override any GCC internal prototype to avoid an error. |
| 19886 | Use char because int might match the return type of a GCC |
| 19887 | builtin and then its argument prototype would still apply. */ |
| 19888 | #ifdef __cplusplus |
| 19889 | extern "C" |
| 19890 | #endif |
| 19891 | char $ac_func (); |
| 19892 | /* The GNU C library defines this for functions which it implements |
| 19893 | to always fail with ENOSYS. Some functions are actually named |
| 19894 | something starting with __ and the normal name is an alias. */ |
| 19895 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19896 | choke me |
| 19897 | #endif |
| 19898 | |
| 19899 | int |
| 19900 | main () |
| 19901 | { |
| 19902 | return $ac_func (); |
| 19903 | ; |
| 19904 | return 0; |
| 19905 | } |
| 19906 | _ACEOF |
| 19907 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19908 | if { (ac_try="$ac_link" |
| 19909 | case "(($ac_try" in |
| 19910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19911 | *) ac_try_echo=$ac_try;; |
| 19912 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19914 | $as_echo "$ac_try_echo") >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19915 | (eval "$ac_link") 2>conftest.er1 |
| 19916 | ac_status=$? |
| 19917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19918 | rm -f conftest.er1 |
| 19919 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19921 | (exit $ac_status); } && { |
| 19922 | test -z "$ac_c_werror_flag" || |
| 19923 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19924 | } && test -s conftest$ac_exeext && { |
| 19925 | test "$cross_compiling" = yes || |
| 19926 | $as_test_x conftest$ac_exeext |
| 19927 | }; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19928 | eval "$as_ac_var=yes" |
| 19929 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19930 | $as_echo "$as_me: failed program was:" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19932 | |
| 19933 | eval "$as_ac_var=no" |
| 19934 | fi |
| 19935 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19936 | rm -rf conftest.dSYM |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19937 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19938 | conftest$ac_exeext conftest.$ac_ext |
| 19939 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19940 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 19941 | $as_echo "$as_val"'` |
| 19942 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19943 | $as_echo "$ac_res" >&6; } |
| 19944 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 19945 | $as_echo "$as_val"'` |
| 19946 | if test "x$as_val" = x""yes; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19947 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19948 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19949 | _ACEOF |
| 19950 | |
| 19951 | fi |
| 19952 | done |
| 19953 | |
| 19954 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19955 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19956 | |
| 19957 | |
| 19958 | |
| 19959 | |
| 19960 | |
| 19961 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19962 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 19963 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19964 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19965 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19966 | $as_echo_n "checking for $ac_func... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19967 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 19968 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19970 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19971 | /* confdefs.h. */ |
| 19972 | _ACEOF |
| 19973 | cat confdefs.h >>conftest.$ac_ext |
| 19974 | cat >>conftest.$ac_ext <<_ACEOF |
| 19975 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19976 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19977 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19978 | #define $ac_func innocuous_$ac_func |
| 19979 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19980 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19981 | which can conflict with char $ac_func (); below. |
| 19982 | 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] | 19983 | <limits.h> exists even on freestanding compilers. */ |
| 19984 | |
| 19985 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19986 | # include <limits.h> |
| 19987 | #else |
| 19988 | # include <assert.h> |
| 19989 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19990 | |
| 19991 | #undef $ac_func |
| 19992 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19993 | /* Override any GCC internal prototype to avoid an error. |
| 19994 | Use char because int might match the return type of a GCC |
| 19995 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19996 | #ifdef __cplusplus |
| 19997 | extern "C" |
| 19998 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19999 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20000 | /* The GNU C library defines this for functions which it implements |
| 20001 | to always fail with ENOSYS. Some functions are actually named |
| 20002 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20003 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20004 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20005 | #endif |
| 20006 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20007 | int |
| 20008 | main () |
| 20009 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20010 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20011 | ; |
| 20012 | return 0; |
| 20013 | } |
| 20014 | _ACEOF |
| 20015 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20016 | if { (ac_try="$ac_link" |
| 20017 | case "(($ac_try" in |
| 20018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20019 | *) ac_try_echo=$ac_try;; |
| 20020 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20021 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20022 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20023 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20024 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20026 | rm -f conftest.er1 |
| 20027 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20028 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20029 | (exit $ac_status); } && { |
| 20030 | test -z "$ac_c_werror_flag" || |
| 20031 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20032 | } && test -s conftest$ac_exeext && { |
| 20033 | test "$cross_compiling" = yes || |
| 20034 | $as_test_x conftest$ac_exeext |
| 20035 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20036 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20037 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20038 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20040 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20041 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20042 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20043 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20044 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20045 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20046 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20047 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20048 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 20049 | $as_echo "$as_val"'` |
| 20050 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20051 | $as_echo "$ac_res" >&6; } |
| 20052 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 20053 | $as_echo "$as_val"'` |
| 20054 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20055 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20056 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20057 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20058 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20059 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20060 | done |
| 20061 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20063 | |
| 20064 | |
| 20065 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20066 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20067 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20068 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20069 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20070 | $as_echo_n "checking for $ac_func... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20071 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20072 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20074 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20075 | /* confdefs.h. */ |
| 20076 | _ACEOF |
| 20077 | cat confdefs.h >>conftest.$ac_ext |
| 20078 | cat >>conftest.$ac_ext <<_ACEOF |
| 20079 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20080 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20081 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20082 | #define $ac_func innocuous_$ac_func |
| 20083 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20084 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20085 | which can conflict with char $ac_func (); below. |
| 20086 | 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] | 20087 | <limits.h> exists even on freestanding compilers. */ |
| 20088 | |
| 20089 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20090 | # include <limits.h> |
| 20091 | #else |
| 20092 | # include <assert.h> |
| 20093 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20094 | |
| 20095 | #undef $ac_func |
| 20096 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20097 | /* Override any GCC internal prototype to avoid an error. |
| 20098 | Use char because int might match the return type of a GCC |
| 20099 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20100 | #ifdef __cplusplus |
| 20101 | extern "C" |
| 20102 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20103 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20104 | /* The GNU C library defines this for functions which it implements |
| 20105 | to always fail with ENOSYS. Some functions are actually named |
| 20106 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20107 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20108 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20109 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20110 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20111 | int |
| 20112 | main () |
| 20113 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20114 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20115 | ; |
| 20116 | return 0; |
| 20117 | } |
| 20118 | _ACEOF |
| 20119 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20120 | if { (ac_try="$ac_link" |
| 20121 | case "(($ac_try" in |
| 20122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20123 | *) ac_try_echo=$ac_try;; |
| 20124 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20125 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20126 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20127 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20128 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20130 | rm -f conftest.er1 |
| 20131 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20132 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20133 | (exit $ac_status); } && { |
| 20134 | test -z "$ac_c_werror_flag" || |
| 20135 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20136 | } && test -s conftest$ac_exeext && { |
| 20137 | test "$cross_compiling" = yes || |
| 20138 | $as_test_x conftest$ac_exeext |
| 20139 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20140 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20141 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20142 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20144 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20145 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20146 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20147 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20148 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20149 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20150 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20151 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20152 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 20153 | $as_echo "$as_val"'` |
| 20154 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20155 | $as_echo "$ac_res" >&6; } |
| 20156 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 20157 | $as_echo "$as_val"'` |
| 20158 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20159 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20160 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20161 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20162 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20163 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20164 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20165 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20166 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 20167 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20168 | esac |
| 20169 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20170 | fi |
| 20171 | done |
| 20172 | |
| 20173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20174 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20175 | for ac_func in getpgrp |
| 20176 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20177 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20178 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20179 | $as_echo_n "checking for $ac_func... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20180 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20181 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20182 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20183 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20184 | /* confdefs.h. */ |
| 20185 | _ACEOF |
| 20186 | cat confdefs.h >>conftest.$ac_ext |
| 20187 | cat >>conftest.$ac_ext <<_ACEOF |
| 20188 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20189 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20190 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20191 | #define $ac_func innocuous_$ac_func |
| 20192 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20193 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20194 | which can conflict with char $ac_func (); below. |
| 20195 | 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] | 20196 | <limits.h> exists even on freestanding compilers. */ |
| 20197 | |
| 20198 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20199 | # include <limits.h> |
| 20200 | #else |
| 20201 | # include <assert.h> |
| 20202 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20203 | |
| 20204 | #undef $ac_func |
| 20205 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20206 | /* Override any GCC internal prototype to avoid an error. |
| 20207 | Use char because int might match the return type of a GCC |
| 20208 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20209 | #ifdef __cplusplus |
| 20210 | extern "C" |
| 20211 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20212 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20213 | /* The GNU C library defines this for functions which it implements |
| 20214 | to always fail with ENOSYS. Some functions are actually named |
| 20215 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20216 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20217 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20218 | #endif |
| 20219 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20220 | int |
| 20221 | main () |
| 20222 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20223 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20224 | ; |
| 20225 | return 0; |
| 20226 | } |
| 20227 | _ACEOF |
| 20228 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20229 | if { (ac_try="$ac_link" |
| 20230 | case "(($ac_try" in |
| 20231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20232 | *) ac_try_echo=$ac_try;; |
| 20233 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20234 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20235 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20236 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20237 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20239 | rm -f conftest.er1 |
| 20240 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20241 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20242 | (exit $ac_status); } && { |
| 20243 | test -z "$ac_c_werror_flag" || |
| 20244 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20245 | } && test -s conftest$ac_exeext && { |
| 20246 | test "$cross_compiling" = yes || |
| 20247 | $as_test_x conftest$ac_exeext |
| 20248 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20249 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20250 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20251 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20253 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20254 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20255 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20256 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20257 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20258 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20259 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20260 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20261 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 20262 | $as_echo "$as_val"'` |
| 20263 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20264 | $as_echo "$ac_res" >&6; } |
| 20265 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 20266 | $as_echo "$as_val"'` |
| 20267 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20268 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20269 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20270 | _ACEOF |
| 20271 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20272 | /* confdefs.h. */ |
| 20273 | _ACEOF |
| 20274 | cat confdefs.h >>conftest.$ac_ext |
| 20275 | cat >>conftest.$ac_ext <<_ACEOF |
| 20276 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20277 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20278 | int |
| 20279 | main () |
| 20280 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20281 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20282 | ; |
| 20283 | return 0; |
| 20284 | } |
| 20285 | _ACEOF |
| 20286 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20287 | if { (ac_try="$ac_compile" |
| 20288 | case "(($ac_try" in |
| 20289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20290 | *) ac_try_echo=$ac_try;; |
| 20291 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20293 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20294 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20295 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20297 | rm -f conftest.er1 |
| 20298 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20300 | (exit $ac_status); } && { |
| 20301 | test -z "$ac_c_werror_flag" || |
| 20302 | test ! -s conftest.err |
| 20303 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20304 | |
| 20305 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20306 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20307 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20309 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20310 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20311 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20313 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20314 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20315 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20316 | |
| 20317 | 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] | 20318 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20319 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20320 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20321 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20322 | |
| 20323 | for ac_func in setpgrp |
| 20324 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20325 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20326 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20327 | $as_echo_n "checking for $ac_func... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20328 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20329 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20331 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20332 | /* confdefs.h. */ |
| 20333 | _ACEOF |
| 20334 | cat confdefs.h >>conftest.$ac_ext |
| 20335 | cat >>conftest.$ac_ext <<_ACEOF |
| 20336 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20337 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20338 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20339 | #define $ac_func innocuous_$ac_func |
| 20340 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20341 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20342 | which can conflict with char $ac_func (); below. |
| 20343 | 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] | 20344 | <limits.h> exists even on freestanding compilers. */ |
| 20345 | |
| 20346 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20347 | # include <limits.h> |
| 20348 | #else |
| 20349 | # include <assert.h> |
| 20350 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20351 | |
| 20352 | #undef $ac_func |
| 20353 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20354 | /* Override any GCC internal prototype to avoid an error. |
| 20355 | Use char because int might match the return type of a GCC |
| 20356 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20357 | #ifdef __cplusplus |
| 20358 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20359 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20360 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20361 | /* The GNU C library defines this for functions which it implements |
| 20362 | to always fail with ENOSYS. Some functions are actually named |
| 20363 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20364 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20365 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20366 | #endif |
| 20367 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20368 | int |
| 20369 | main () |
| 20370 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20371 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20372 | ; |
| 20373 | return 0; |
| 20374 | } |
| 20375 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20376 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20377 | if { (ac_try="$ac_link" |
| 20378 | case "(($ac_try" in |
| 20379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20380 | *) ac_try_echo=$ac_try;; |
| 20381 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20382 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20383 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20384 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20385 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20387 | rm -f conftest.er1 |
| 20388 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20389 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20390 | (exit $ac_status); } && { |
| 20391 | test -z "$ac_c_werror_flag" || |
| 20392 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20393 | } && test -s conftest$ac_exeext && { |
| 20394 | test "$cross_compiling" = yes || |
| 20395 | $as_test_x conftest$ac_exeext |
| 20396 | }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20397 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20398 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20399 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20401 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20402 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20403 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20404 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20405 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20406 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20407 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20408 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20409 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 20410 | $as_echo "$as_val"'` |
| 20411 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20412 | $as_echo "$ac_res" >&6; } |
| 20413 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 20414 | $as_echo "$as_val"'` |
| 20415 | if test "x$as_val" = x""yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20416 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20417 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20418 | _ACEOF |
| 20419 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20420 | /* confdefs.h. */ |
| 20421 | _ACEOF |
| 20422 | cat confdefs.h >>conftest.$ac_ext |
| 20423 | cat >>conftest.$ac_ext <<_ACEOF |
| 20424 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20425 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20426 | int |
| 20427 | main () |
| 20428 | { |
| 20429 | setpgrp(0,0); |
| 20430 | ; |
| 20431 | return 0; |
| 20432 | } |
| 20433 | _ACEOF |
| 20434 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20435 | if { (ac_try="$ac_compile" |
| 20436 | case "(($ac_try" in |
| 20437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20438 | *) ac_try_echo=$ac_try;; |
| 20439 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20441 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20442 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20443 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20445 | rm -f conftest.er1 |
| 20446 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20448 | (exit $ac_status); } && { |
| 20449 | test -z "$ac_c_werror_flag" || |
| 20450 | test ! -s conftest.err |
| 20451 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20452 | |
| 20453 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20454 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20455 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20456 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20457 | |
| 20458 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20459 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20461 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20462 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20463 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20464 | |
| 20465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20466 | |
| 20467 | fi |
| 20468 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20470 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20471 | for ac_func in gettimeofday |
| 20472 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20473 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20474 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20475 | $as_echo_n "checking for $ac_func... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20476 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20477 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20479 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20480 | /* confdefs.h. */ |
| 20481 | _ACEOF |
| 20482 | cat confdefs.h >>conftest.$ac_ext |
| 20483 | cat >>conftest.$ac_ext <<_ACEOF |
| 20484 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20485 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20486 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20487 | #define $ac_func innocuous_$ac_func |
| 20488 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20489 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20490 | which can conflict with char $ac_func (); below. |
| 20491 | 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] | 20492 | <limits.h> exists even on freestanding compilers. */ |
| 20493 | |
| 20494 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20495 | # include <limits.h> |
| 20496 | #else |
| 20497 | # include <assert.h> |
| 20498 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20499 | |
| 20500 | #undef $ac_func |
| 20501 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20502 | /* Override any GCC internal prototype to avoid an error. |
| 20503 | Use char because int might match the return type of a GCC |
| 20504 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20505 | #ifdef __cplusplus |
| 20506 | extern "C" |
| 20507 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20508 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20509 | /* The GNU C library defines this for functions which it implements |
| 20510 | to always fail with ENOSYS. Some functions are actually named |
| 20511 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20512 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20513 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20514 | #endif |
| 20515 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20516 | int |
| 20517 | main () |
| 20518 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20519 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20520 | ; |
| 20521 | return 0; |
| 20522 | } |
| 20523 | _ACEOF |
| 20524 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20525 | if { (ac_try="$ac_link" |
| 20526 | case "(($ac_try" in |
| 20527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20528 | *) ac_try_echo=$ac_try;; |
| 20529 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20530 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20531 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20532 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20533 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20535 | rm -f conftest.er1 |
| 20536 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20537 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20538 | (exit $ac_status); } && { |
| 20539 | test -z "$ac_c_werror_flag" || |
| 20540 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20541 | } && test -s conftest$ac_exeext && { |
| 20542 | test "$cross_compiling" = yes || |
| 20543 | $as_test_x conftest$ac_exeext |
| 20544 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20545 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20546 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20547 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20549 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20550 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20551 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20552 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20553 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20554 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20555 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20556 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20557 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 20558 | $as_echo "$as_val"'` |
| 20559 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20560 | $as_echo "$ac_res" >&6; } |
| 20561 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 20562 | $as_echo "$as_val"'` |
| 20563 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20564 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20565 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20566 | _ACEOF |
| 20567 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20568 | /* confdefs.h. */ |
| 20569 | _ACEOF |
| 20570 | cat confdefs.h >>conftest.$ac_ext |
| 20571 | cat >>conftest.$ac_ext <<_ACEOF |
| 20572 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20573 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20574 | int |
| 20575 | main () |
| 20576 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20577 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20578 | ; |
| 20579 | return 0; |
| 20580 | } |
| 20581 | _ACEOF |
| 20582 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20583 | if { (ac_try="$ac_compile" |
| 20584 | case "(($ac_try" in |
| 20585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20586 | *) ac_try_echo=$ac_try;; |
| 20587 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20588 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20589 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20590 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20591 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20593 | rm -f conftest.er1 |
| 20594 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20596 | (exit $ac_status); } && { |
| 20597 | test -z "$ac_c_werror_flag" || |
| 20598 | test ! -s conftest.err |
| 20599 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20600 | : |
| 20601 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20602 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20605 | |
| 20606 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20607 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20608 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20610 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20611 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20612 | |
| 20613 | 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] | 20614 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20615 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20616 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20617 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20618 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20619 | { $as_echo "$as_me:$LINENO: checking for major" >&5 |
| 20620 | $as_echo_n "checking for major... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20621 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20622 | /* confdefs.h. */ |
| 20623 | _ACEOF |
| 20624 | cat confdefs.h >>conftest.$ac_ext |
| 20625 | cat >>conftest.$ac_ext <<_ACEOF |
| 20626 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20627 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 20628 | #if defined(MAJOR_IN_MKDEV) |
| 20629 | #include <sys/mkdev.h> |
| 20630 | #elif defined(MAJOR_IN_SYSMACROS) |
| 20631 | #include <sys/sysmacros.h> |
| 20632 | #else |
| 20633 | #include <sys/types.h> |
| 20634 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20635 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20636 | int |
| 20637 | main () |
| 20638 | { |
| 20639 | |
| 20640 | makedev(major(0),minor(0)); |
| 20641 | |
| 20642 | ; |
| 20643 | return 0; |
| 20644 | } |
| 20645 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 20646 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20647 | if { (ac_try="$ac_link" |
| 20648 | case "(($ac_try" in |
| 20649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20650 | *) ac_try_echo=$ac_try;; |
| 20651 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20652 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20653 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20654 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20655 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20657 | rm -f conftest.er1 |
| 20658 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20659 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20660 | (exit $ac_status); } && { |
| 20661 | test -z "$ac_c_werror_flag" || |
| 20662 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20663 | } && test -s conftest$ac_exeext && { |
| 20664 | test "$cross_compiling" = yes || |
| 20665 | $as_test_x conftest$ac_exeext |
| 20666 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20667 | |
| 20668 | |
| 20669 | cat >>confdefs.h <<\_ACEOF |
| 20670 | #define HAVE_DEVICE_MACROS 1 |
| 20671 | _ACEOF |
| 20672 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20673 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 20674 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20675 | |
| 20676 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20677 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20679 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20680 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20681 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 20682 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20683 | |
| 20684 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20685 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20686 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20687 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20688 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20689 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20690 | # 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] | 20691 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20692 | { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 20693 | $as_echo_n "checking for getaddrinfo... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20694 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20695 | /* confdefs.h. */ |
| 20696 | _ACEOF |
| 20697 | cat confdefs.h >>conftest.$ac_ext |
| 20698 | cat >>conftest.$ac_ext <<_ACEOF |
| 20699 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20700 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 20701 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20702 | #include <sys/socket.h> |
| 20703 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 20704 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20706 | int |
| 20707 | main () |
| 20708 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20709 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20710 | ; |
| 20711 | return 0; |
| 20712 | } |
| 20713 | _ACEOF |
| 20714 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20715 | if { (ac_try="$ac_link" |
| 20716 | case "(($ac_try" in |
| 20717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20718 | *) ac_try_echo=$ac_try;; |
| 20719 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20720 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20721 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20722 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20723 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20725 | rm -f conftest.er1 |
| 20726 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20728 | (exit $ac_status); } && { |
| 20729 | test -z "$ac_c_werror_flag" || |
| 20730 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20731 | } && test -s conftest$ac_exeext && { |
| 20732 | test "$cross_compiling" = yes || |
| 20733 | $as_test_x conftest$ac_exeext |
| 20734 | }; then |
| 20735 | have_getaddrinfo=yes |
| 20736 | else |
| 20737 | $as_echo "$as_me: failed program was:" >&5 |
| 20738 | sed 's/^/| /' conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20739 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20740 | have_getaddrinfo=no |
| 20741 | fi |
| 20742 | |
| 20743 | rm -rf conftest.dSYM |
| 20744 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20745 | conftest$ac_exeext conftest.$ac_ext |
| 20746 | { $as_echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5 |
| 20747 | $as_echo "$have_getaddrinfo" >&6; } |
| 20748 | if test $have_getaddrinfo = yes |
| 20749 | then |
| 20750 | { $as_echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 20751 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
| 20752 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then |
| 20753 | $as_echo_n "(cached) " >&6 |
| 20754 | else |
| 20755 | if test "$cross_compiling" = yes; then |
| 20756 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20758 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20759 | /* confdefs.h. */ |
| 20760 | _ACEOF |
| 20761 | cat confdefs.h >>conftest.$ac_ext |
| 20762 | cat >>conftest.$ac_ext <<_ACEOF |
| 20763 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20764 | |
| 20765 | #include <sys/types.h> |
| 20766 | #include <netdb.h> |
| 20767 | #include <string.h> |
| 20768 | #include <sys/socket.h> |
| 20769 | #include <netinet/in.h> |
| 20770 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20771 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20772 | { |
| 20773 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 20774 | struct addrinfo hints, *ai, *aitop; |
| 20775 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 20776 | |
| 20777 | for (passive = 0; passive <= 1; passive++) { |
| 20778 | memset(&hints, 0, sizeof(hints)); |
| 20779 | hints.ai_family = AF_UNSPEC; |
| 20780 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 20781 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 20782 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20783 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 20784 | (void)gai_strerror(gaierr); |
| 20785 | goto bad; |
| 20786 | } |
| 20787 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 20788 | if (ai->ai_addr == NULL || |
| 20789 | ai->ai_addrlen == 0 || |
| 20790 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 20791 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 20792 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 20793 | goto bad; |
| 20794 | } |
| 20795 | switch (ai->ai_family) { |
| 20796 | case AF_INET: |
| 20797 | if (strcmp(strport, "54321") != 0) { |
| 20798 | goto bad; |
| 20799 | } |
| 20800 | if (passive) { |
| 20801 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 20802 | goto bad; |
| 20803 | } |
| 20804 | } else { |
| 20805 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 20806 | goto bad; |
| 20807 | } |
| 20808 | } |
| 20809 | inet4++; |
| 20810 | break; |
| 20811 | case AF_INET6: |
| 20812 | if (strcmp(strport, "54321") != 0) { |
| 20813 | goto bad; |
| 20814 | } |
| 20815 | if (passive) { |
| 20816 | if (strcmp(straddr, "::") != 0) { |
| 20817 | goto bad; |
| 20818 | } |
| 20819 | } else { |
| 20820 | if (strcmp(straddr, "::1") != 0) { |
| 20821 | goto bad; |
| 20822 | } |
| 20823 | } |
| 20824 | inet6++; |
| 20825 | break; |
| 20826 | case AF_UNSPEC: |
| 20827 | goto bad; |
| 20828 | break; |
| 20829 | default: |
| 20830 | /* another family support? */ |
| 20831 | break; |
| 20832 | } |
| 20833 | } |
| 20834 | } |
| 20835 | |
| 20836 | if (!(inet4 == 0 || inet4 == 2)) |
| 20837 | goto bad; |
| 20838 | if (!(inet6 == 0 || inet6 == 2)) |
| 20839 | goto bad; |
| 20840 | |
| 20841 | if (aitop) |
| 20842 | freeaddrinfo(aitop); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20843 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20844 | |
| 20845 | bad: |
| 20846 | if (aitop) |
| 20847 | freeaddrinfo(aitop); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20848 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20849 | } |
| 20850 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20851 | _ACEOF |
| 20852 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20853 | if { (ac_try="$ac_link" |
| 20854 | case "(($ac_try" in |
| 20855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20856 | *) ac_try_echo=$ac_try;; |
| 20857 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20858 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20859 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20860 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20861 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20863 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20864 | { (case "(($ac_try" in |
| 20865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20866 | *) ac_try_echo=$ac_try;; |
| 20867 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20869 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20870 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20871 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20873 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20874 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20875 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20876 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 20877 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20879 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20880 | ( exit $ac_status ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20881 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20882 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20883 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20884 | 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] | 20885 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20886 | |
| 20887 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20888 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20889 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20890 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20891 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20892 | if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes |
| 20893 | then |
| 20894 | if test $ipv6 = yes |
| 20895 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20896 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 20897 | echo ' or you can specify "--disable-ipv6"'. |
| 20898 | exit 1 |
| 20899 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20901 | |
| 20902 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20903 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20904 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20905 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20906 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20907 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 20908 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20909 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20910 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20911 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20912 | $as_echo_n "checking for $ac_func... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20913 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20914 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20915 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20916 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20917 | /* confdefs.h. */ |
| 20918 | _ACEOF |
| 20919 | cat confdefs.h >>conftest.$ac_ext |
| 20920 | cat >>conftest.$ac_ext <<_ACEOF |
| 20921 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20922 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20923 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20924 | #define $ac_func innocuous_$ac_func |
| 20925 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20926 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20927 | which can conflict with char $ac_func (); below. |
| 20928 | 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] | 20929 | <limits.h> exists even on freestanding compilers. */ |
| 20930 | |
| 20931 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20932 | # include <limits.h> |
| 20933 | #else |
| 20934 | # include <assert.h> |
| 20935 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20936 | |
| 20937 | #undef $ac_func |
| 20938 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20939 | /* Override any GCC internal prototype to avoid an error. |
| 20940 | Use char because int might match the return type of a GCC |
| 20941 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20942 | #ifdef __cplusplus |
| 20943 | extern "C" |
| 20944 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20945 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20946 | /* The GNU C library defines this for functions which it implements |
| 20947 | to always fail with ENOSYS. Some functions are actually named |
| 20948 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20949 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20950 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20951 | #endif |
| 20952 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20953 | int |
| 20954 | main () |
| 20955 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20956 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20957 | ; |
| 20958 | return 0; |
| 20959 | } |
| 20960 | _ACEOF |
| 20961 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20962 | if { (ac_try="$ac_link" |
| 20963 | case "(($ac_try" in |
| 20964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20965 | *) ac_try_echo=$ac_try;; |
| 20966 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20967 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20968 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20969 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20970 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20972 | rm -f conftest.er1 |
| 20973 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20974 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20975 | (exit $ac_status); } && { |
| 20976 | test -z "$ac_c_werror_flag" || |
| 20977 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20978 | } && test -s conftest$ac_exeext && { |
| 20979 | test "$cross_compiling" = yes || |
| 20980 | $as_test_x conftest$ac_exeext |
| 20981 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20982 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20983 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20984 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20986 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20987 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20988 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20989 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20990 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20991 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20992 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20993 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 20994 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 20995 | $as_echo "$as_val"'` |
| 20996 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20997 | $as_echo "$ac_res" >&6; } |
| 20998 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 20999 | $as_echo "$as_val"'` |
| 21000 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21001 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21002 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 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 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21005 | fi |
| 21006 | done |
| 21007 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21008 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21009 | # checks for structures |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21010 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 21011 | $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] | 21012 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21013 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21014 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21015 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21016 | /* confdefs.h. */ |
| 21017 | _ACEOF |
| 21018 | cat confdefs.h >>conftest.$ac_ext |
| 21019 | cat >>conftest.$ac_ext <<_ACEOF |
| 21020 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21021 | #include <sys/types.h> |
| 21022 | #include <sys/time.h> |
| 21023 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21025 | int |
| 21026 | main () |
| 21027 | { |
| 21028 | if ((struct tm *) 0) |
| 21029 | return 0; |
| 21030 | ; |
| 21031 | return 0; |
| 21032 | } |
| 21033 | _ACEOF |
| 21034 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21035 | if { (ac_try="$ac_compile" |
| 21036 | case "(($ac_try" in |
| 21037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21038 | *) ac_try_echo=$ac_try;; |
| 21039 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21040 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21041 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21042 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21043 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21045 | rm -f conftest.er1 |
| 21046 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21047 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21048 | (exit $ac_status); } && { |
| 21049 | test -z "$ac_c_werror_flag" || |
| 21050 | test ! -s conftest.err |
| 21051 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21052 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21053 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21054 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21056 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21057 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21058 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21059 | |
| 21060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21061 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21062 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 21063 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21064 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21065 | |
| 21066 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21067 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21068 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21069 | |
| 21070 | fi |
| 21071 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21072 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 21073 | $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] | 21074 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21075 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21077 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21078 | /* confdefs.h. */ |
| 21079 | _ACEOF |
| 21080 | cat confdefs.h >>conftest.$ac_ext |
| 21081 | cat >>conftest.$ac_ext <<_ACEOF |
| 21082 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21083 | #include <sys/types.h> |
| 21084 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21086 | int |
| 21087 | main () |
| 21088 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21089 | struct tm tm; |
| 21090 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21091 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21092 | ; |
| 21093 | return 0; |
| 21094 | } |
| 21095 | _ACEOF |
| 21096 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21097 | if { (ac_try="$ac_compile" |
| 21098 | case "(($ac_try" in |
| 21099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21100 | *) ac_try_echo=$ac_try;; |
| 21101 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21103 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21104 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21105 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21107 | rm -f conftest.er1 |
| 21108 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21110 | (exit $ac_status); } && { |
| 21111 | test -z "$ac_c_werror_flag" || |
| 21112 | test ! -s conftest.err |
| 21113 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21114 | ac_cv_struct_tm=time.h |
| 21115 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21116 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21118 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21119 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21120 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21121 | |
| 21122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21123 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21124 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 21125 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21126 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21127 | |
| 21128 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21129 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21130 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21131 | |
| 21132 | fi |
| 21133 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21134 | { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21135 | $as_echo_n "checking for struct tm.tm_zone... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21136 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21137 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21139 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21140 | /* confdefs.h. */ |
| 21141 | _ACEOF |
| 21142 | cat confdefs.h >>conftest.$ac_ext |
| 21143 | cat >>conftest.$ac_ext <<_ACEOF |
| 21144 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21145 | #include <sys/types.h> |
| 21146 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21147 | |
| 21148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21149 | int |
| 21150 | main () |
| 21151 | { |
| 21152 | static struct tm ac_aggr; |
| 21153 | if (ac_aggr.tm_zone) |
| 21154 | return 0; |
| 21155 | ; |
| 21156 | return 0; |
| 21157 | } |
| 21158 | _ACEOF |
| 21159 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21160 | if { (ac_try="$ac_compile" |
| 21161 | case "(($ac_try" in |
| 21162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21163 | *) ac_try_echo=$ac_try;; |
| 21164 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21165 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21166 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21167 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21168 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21170 | rm -f conftest.er1 |
| 21171 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21173 | (exit $ac_status); } && { |
| 21174 | test -z "$ac_c_werror_flag" || |
| 21175 | test ! -s conftest.err |
| 21176 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21177 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21178 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21179 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21181 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21182 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21183 | /* confdefs.h. */ |
| 21184 | _ACEOF |
| 21185 | cat confdefs.h >>conftest.$ac_ext |
| 21186 | cat >>conftest.$ac_ext <<_ACEOF |
| 21187 | /* end confdefs.h. */ |
| 21188 | #include <sys/types.h> |
| 21189 | #include <$ac_cv_struct_tm> |
| 21190 | |
| 21191 | |
| 21192 | int |
| 21193 | main () |
| 21194 | { |
| 21195 | static struct tm ac_aggr; |
| 21196 | if (sizeof ac_aggr.tm_zone) |
| 21197 | return 0; |
| 21198 | ; |
| 21199 | return 0; |
| 21200 | } |
| 21201 | _ACEOF |
| 21202 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21203 | if { (ac_try="$ac_compile" |
| 21204 | case "(($ac_try" in |
| 21205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21206 | *) ac_try_echo=$ac_try;; |
| 21207 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21208 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21209 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21210 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21211 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21213 | rm -f conftest.er1 |
| 21214 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21215 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21216 | (exit $ac_status); } && { |
| 21217 | test -z "$ac_c_werror_flag" || |
| 21218 | test ! -s conftest.err |
| 21219 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21220 | ac_cv_member_struct_tm_tm_zone=yes |
| 21221 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21222 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21224 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21225 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21226 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21227 | |
| 21228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21229 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21230 | |
| 21231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21232 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21233 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21234 | $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 21235 | 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] | 21236 | |
| 21237 | cat >>confdefs.h <<_ACEOF |
| 21238 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21239 | _ACEOF |
| 21240 | |
| 21241 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21242 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21244 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21245 | |
| 21246 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21247 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21248 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21249 | |
| 21250 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21251 | { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 21252 | $as_echo_n "checking whether tzname is declared... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21253 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21254 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21255 | else |
| 21256 | cat >conftest.$ac_ext <<_ACEOF |
| 21257 | /* confdefs.h. */ |
| 21258 | _ACEOF |
| 21259 | cat confdefs.h >>conftest.$ac_ext |
| 21260 | cat >>conftest.$ac_ext <<_ACEOF |
| 21261 | /* end confdefs.h. */ |
| 21262 | #include <time.h> |
| 21263 | |
| 21264 | int |
| 21265 | main () |
| 21266 | { |
| 21267 | #ifndef tzname |
| 21268 | (void) tzname; |
| 21269 | #endif |
| 21270 | |
| 21271 | ; |
| 21272 | return 0; |
| 21273 | } |
| 21274 | _ACEOF |
| 21275 | rm -f conftest.$ac_objext |
| 21276 | if { (ac_try="$ac_compile" |
| 21277 | case "(($ac_try" in |
| 21278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21279 | *) ac_try_echo=$ac_try;; |
| 21280 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21281 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21282 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21283 | (eval "$ac_compile") 2>conftest.er1 |
| 21284 | ac_status=$? |
| 21285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21286 | rm -f conftest.er1 |
| 21287 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21288 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21289 | (exit $ac_status); } && { |
| 21290 | test -z "$ac_c_werror_flag" || |
| 21291 | test ! -s conftest.err |
| 21292 | } && test -s conftest.$ac_objext; then |
| 21293 | ac_cv_have_decl_tzname=yes |
| 21294 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21295 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21297 | |
| 21298 | ac_cv_have_decl_tzname=no |
| 21299 | fi |
| 21300 | |
| 21301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21302 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21303 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 21304 | $as_echo "$ac_cv_have_decl_tzname" >&6; } |
| 21305 | if test "x$ac_cv_have_decl_tzname" = x""yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21306 | |
| 21307 | cat >>confdefs.h <<_ACEOF |
| 21308 | #define HAVE_DECL_TZNAME 1 |
| 21309 | _ACEOF |
| 21310 | |
| 21311 | |
| 21312 | else |
| 21313 | cat >>confdefs.h <<_ACEOF |
| 21314 | #define HAVE_DECL_TZNAME 0 |
| 21315 | _ACEOF |
| 21316 | |
| 21317 | |
| 21318 | fi |
| 21319 | |
| 21320 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21321 | { $as_echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21322 | $as_echo_n "checking for tzname... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21323 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21324 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21325 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21326 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21327 | /* confdefs.h. */ |
| 21328 | _ACEOF |
| 21329 | cat confdefs.h >>conftest.$ac_ext |
| 21330 | cat >>conftest.$ac_ext <<_ACEOF |
| 21331 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21332 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21333 | #if !HAVE_DECL_TZNAME |
| 21334 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21335 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21337 | int |
| 21338 | main () |
| 21339 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21340 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21341 | ; |
| 21342 | return 0; |
| 21343 | } |
| 21344 | _ACEOF |
| 21345 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21346 | if { (ac_try="$ac_link" |
| 21347 | case "(($ac_try" in |
| 21348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21349 | *) ac_try_echo=$ac_try;; |
| 21350 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21351 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21352 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21353 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21354 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21356 | rm -f conftest.er1 |
| 21357 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21358 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21359 | (exit $ac_status); } && { |
| 21360 | test -z "$ac_c_werror_flag" || |
| 21361 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21362 | } && test -s conftest$ac_exeext && { |
| 21363 | test "$cross_compiling" = yes || |
| 21364 | $as_test_x conftest$ac_exeext |
| 21365 | }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21366 | ac_cv_var_tzname=yes |
| 21367 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21368 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21370 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21371 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21372 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21373 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21374 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21375 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21376 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21377 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21378 | { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21379 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21380 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21381 | |
| 21382 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21383 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21384 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21385 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21386 | fi |
| 21387 | fi |
| 21388 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21389 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 21390 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21391 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21392 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21393 | else |
| 21394 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21395 | /* confdefs.h. */ |
| 21396 | _ACEOF |
| 21397 | cat confdefs.h >>conftest.$ac_ext |
| 21398 | cat >>conftest.$ac_ext <<_ACEOF |
| 21399 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21400 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21401 | int |
| 21402 | main () |
| 21403 | { |
| 21404 | static struct stat ac_aggr; |
| 21405 | if (ac_aggr.st_rdev) |
| 21406 | return 0; |
| 21407 | ; |
| 21408 | return 0; |
| 21409 | } |
| 21410 | _ACEOF |
| 21411 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21412 | if { (ac_try="$ac_compile" |
| 21413 | case "(($ac_try" in |
| 21414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21415 | *) ac_try_echo=$ac_try;; |
| 21416 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21417 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21418 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21419 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21420 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21422 | rm -f conftest.er1 |
| 21423 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21424 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21425 | (exit $ac_status); } && { |
| 21426 | test -z "$ac_c_werror_flag" || |
| 21427 | test ! -s conftest.err |
| 21428 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21429 | ac_cv_member_struct_stat_st_rdev=yes |
| 21430 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21431 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21433 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21434 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21435 | /* confdefs.h. */ |
| 21436 | _ACEOF |
| 21437 | cat confdefs.h >>conftest.$ac_ext |
| 21438 | cat >>conftest.$ac_ext <<_ACEOF |
| 21439 | /* end confdefs.h. */ |
| 21440 | $ac_includes_default |
| 21441 | int |
| 21442 | main () |
| 21443 | { |
| 21444 | static struct stat ac_aggr; |
| 21445 | if (sizeof ac_aggr.st_rdev) |
| 21446 | return 0; |
| 21447 | ; |
| 21448 | return 0; |
| 21449 | } |
| 21450 | _ACEOF |
| 21451 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21452 | if { (ac_try="$ac_compile" |
| 21453 | case "(($ac_try" in |
| 21454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21455 | *) ac_try_echo=$ac_try;; |
| 21456 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21458 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21459 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21460 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21462 | rm -f conftest.er1 |
| 21463 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21465 | (exit $ac_status); } && { |
| 21466 | test -z "$ac_c_werror_flag" || |
| 21467 | test ! -s conftest.err |
| 21468 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21469 | ac_cv_member_struct_stat_st_rdev=yes |
| 21470 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21471 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21473 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21474 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21475 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21476 | |
| 21477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21478 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21479 | |
| 21480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21481 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21482 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 21483 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 21484 | 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] | 21485 | |
| 21486 | cat >>confdefs.h <<_ACEOF |
| 21487 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 21488 | _ACEOF |
| 21489 | |
| 21490 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21491 | fi |
| 21492 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21493 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 21494 | $as_echo_n "checking for struct stat.st_blksize... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21495 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21496 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21497 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21498 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21499 | /* confdefs.h. */ |
| 21500 | _ACEOF |
| 21501 | cat confdefs.h >>conftest.$ac_ext |
| 21502 | cat >>conftest.$ac_ext <<_ACEOF |
| 21503 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21504 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21505 | int |
| 21506 | main () |
| 21507 | { |
| 21508 | static struct stat ac_aggr; |
| 21509 | if (ac_aggr.st_blksize) |
| 21510 | return 0; |
| 21511 | ; |
| 21512 | return 0; |
| 21513 | } |
| 21514 | _ACEOF |
| 21515 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21516 | if { (ac_try="$ac_compile" |
| 21517 | case "(($ac_try" in |
| 21518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21519 | *) ac_try_echo=$ac_try;; |
| 21520 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21521 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21522 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21523 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21524 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21526 | rm -f conftest.er1 |
| 21527 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21528 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21529 | (exit $ac_status); } && { |
| 21530 | test -z "$ac_c_werror_flag" || |
| 21531 | test ! -s conftest.err |
| 21532 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21533 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21534 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21535 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21537 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21538 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21539 | /* confdefs.h. */ |
| 21540 | _ACEOF |
| 21541 | cat confdefs.h >>conftest.$ac_ext |
| 21542 | cat >>conftest.$ac_ext <<_ACEOF |
| 21543 | /* end confdefs.h. */ |
| 21544 | $ac_includes_default |
| 21545 | int |
| 21546 | main () |
| 21547 | { |
| 21548 | static struct stat ac_aggr; |
| 21549 | if (sizeof ac_aggr.st_blksize) |
| 21550 | return 0; |
| 21551 | ; |
| 21552 | return 0; |
| 21553 | } |
| 21554 | _ACEOF |
| 21555 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21556 | if { (ac_try="$ac_compile" |
| 21557 | case "(($ac_try" in |
| 21558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21559 | *) ac_try_echo=$ac_try;; |
| 21560 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21561 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21562 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21563 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21566 | rm -f conftest.er1 |
| 21567 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21568 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21569 | (exit $ac_status); } && { |
| 21570 | test -z "$ac_c_werror_flag" || |
| 21571 | test ! -s conftest.err |
| 21572 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21573 | ac_cv_member_struct_stat_st_blksize=yes |
| 21574 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21575 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21577 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21578 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21579 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21580 | |
| 21581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21582 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21583 | |
| 21584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21585 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21586 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 21587 | $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 21588 | 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] | 21589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21590 | cat >>confdefs.h <<_ACEOF |
| 21591 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 21592 | _ACEOF |
| 21593 | |
| 21594 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21595 | fi |
| 21596 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21597 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 21598 | $as_echo_n "checking for struct stat.st_flags... " >&6; } |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21599 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21600 | $as_echo_n "(cached) " >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21601 | else |
| 21602 | cat >conftest.$ac_ext <<_ACEOF |
| 21603 | /* confdefs.h. */ |
| 21604 | _ACEOF |
| 21605 | cat confdefs.h >>conftest.$ac_ext |
| 21606 | cat >>conftest.$ac_ext <<_ACEOF |
| 21607 | /* end confdefs.h. */ |
| 21608 | $ac_includes_default |
| 21609 | int |
| 21610 | main () |
| 21611 | { |
| 21612 | static struct stat ac_aggr; |
| 21613 | if (ac_aggr.st_flags) |
| 21614 | return 0; |
| 21615 | ; |
| 21616 | return 0; |
| 21617 | } |
| 21618 | _ACEOF |
| 21619 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21620 | if { (ac_try="$ac_compile" |
| 21621 | case "(($ac_try" in |
| 21622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21623 | *) ac_try_echo=$ac_try;; |
| 21624 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21625 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21626 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21627 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21628 | ac_status=$? |
| 21629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21630 | rm -f conftest.er1 |
| 21631 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21632 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21633 | (exit $ac_status); } && { |
| 21634 | test -z "$ac_c_werror_flag" || |
| 21635 | test ! -s conftest.err |
| 21636 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21637 | ac_cv_member_struct_stat_st_flags=yes |
| 21638 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21639 | $as_echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21641 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21642 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21643 | /* confdefs.h. */ |
| 21644 | _ACEOF |
| 21645 | cat confdefs.h >>conftest.$ac_ext |
| 21646 | cat >>conftest.$ac_ext <<_ACEOF |
| 21647 | /* end confdefs.h. */ |
| 21648 | $ac_includes_default |
| 21649 | int |
| 21650 | main () |
| 21651 | { |
| 21652 | static struct stat ac_aggr; |
| 21653 | if (sizeof ac_aggr.st_flags) |
| 21654 | return 0; |
| 21655 | ; |
| 21656 | return 0; |
| 21657 | } |
| 21658 | _ACEOF |
| 21659 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21660 | if { (ac_try="$ac_compile" |
| 21661 | case "(($ac_try" in |
| 21662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21663 | *) ac_try_echo=$ac_try;; |
| 21664 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21665 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21666 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21667 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21668 | ac_status=$? |
| 21669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21670 | rm -f conftest.er1 |
| 21671 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21673 | (exit $ac_status); } && { |
| 21674 | test -z "$ac_c_werror_flag" || |
| 21675 | test ! -s conftest.err |
| 21676 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21677 | ac_cv_member_struct_stat_st_flags=yes |
| 21678 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21679 | $as_echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21681 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21682 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21683 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21684 | |
| 21685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21686 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21687 | |
| 21688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21689 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21690 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 21691 | $as_echo "$ac_cv_member_struct_stat_st_flags" >&6; } |
| 21692 | 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] | 21693 | |
| 21694 | cat >>confdefs.h <<_ACEOF |
| 21695 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 21696 | _ACEOF |
| 21697 | |
| 21698 | |
| 21699 | fi |
| 21700 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21701 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 21702 | $as_echo_n "checking for struct stat.st_gen... " >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21703 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21704 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21705 | else |
| 21706 | cat >conftest.$ac_ext <<_ACEOF |
| 21707 | /* confdefs.h. */ |
| 21708 | _ACEOF |
| 21709 | cat confdefs.h >>conftest.$ac_ext |
| 21710 | cat >>conftest.$ac_ext <<_ACEOF |
| 21711 | /* end confdefs.h. */ |
| 21712 | $ac_includes_default |
| 21713 | int |
| 21714 | main () |
| 21715 | { |
| 21716 | static struct stat ac_aggr; |
| 21717 | if (ac_aggr.st_gen) |
| 21718 | return 0; |
| 21719 | ; |
| 21720 | return 0; |
| 21721 | } |
| 21722 | _ACEOF |
| 21723 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21724 | if { (ac_try="$ac_compile" |
| 21725 | case "(($ac_try" in |
| 21726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21727 | *) ac_try_echo=$ac_try;; |
| 21728 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21729 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21730 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21731 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21732 | ac_status=$? |
| 21733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21734 | rm -f conftest.er1 |
| 21735 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21737 | (exit $ac_status); } && { |
| 21738 | test -z "$ac_c_werror_flag" || |
| 21739 | test ! -s conftest.err |
| 21740 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21741 | ac_cv_member_struct_stat_st_gen=yes |
| 21742 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21743 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21745 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21746 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21747 | /* confdefs.h. */ |
| 21748 | _ACEOF |
| 21749 | cat confdefs.h >>conftest.$ac_ext |
| 21750 | cat >>conftest.$ac_ext <<_ACEOF |
| 21751 | /* end confdefs.h. */ |
| 21752 | $ac_includes_default |
| 21753 | int |
| 21754 | main () |
| 21755 | { |
| 21756 | static struct stat ac_aggr; |
| 21757 | if (sizeof ac_aggr.st_gen) |
| 21758 | return 0; |
| 21759 | ; |
| 21760 | return 0; |
| 21761 | } |
| 21762 | _ACEOF |
| 21763 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21764 | if { (ac_try="$ac_compile" |
| 21765 | case "(($ac_try" in |
| 21766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21767 | *) ac_try_echo=$ac_try;; |
| 21768 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21769 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21770 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21771 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21772 | ac_status=$? |
| 21773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21774 | rm -f conftest.er1 |
| 21775 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21776 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21777 | (exit $ac_status); } && { |
| 21778 | test -z "$ac_c_werror_flag" || |
| 21779 | test ! -s conftest.err |
| 21780 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21781 | ac_cv_member_struct_stat_st_gen=yes |
| 21782 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21783 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21785 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21786 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21787 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21788 | |
| 21789 | 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] | 21790 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21791 | |
| 21792 | 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] | 21793 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21794 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 21795 | $as_echo "$ac_cv_member_struct_stat_st_gen" >&6; } |
| 21796 | 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] | 21797 | |
| 21798 | cat >>confdefs.h <<_ACEOF |
| 21799 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 21800 | _ACEOF |
| 21801 | |
| 21802 | |
| 21803 | fi |
| 21804 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21805 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 21806 | $as_echo_n "checking for struct stat.st_birthtime... " >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21807 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21808 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21809 | else |
| 21810 | cat >conftest.$ac_ext <<_ACEOF |
| 21811 | /* confdefs.h. */ |
| 21812 | _ACEOF |
| 21813 | cat confdefs.h >>conftest.$ac_ext |
| 21814 | cat >>conftest.$ac_ext <<_ACEOF |
| 21815 | /* end confdefs.h. */ |
| 21816 | $ac_includes_default |
| 21817 | int |
| 21818 | main () |
| 21819 | { |
| 21820 | static struct stat ac_aggr; |
| 21821 | if (ac_aggr.st_birthtime) |
| 21822 | return 0; |
| 21823 | ; |
| 21824 | return 0; |
| 21825 | } |
| 21826 | _ACEOF |
| 21827 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21828 | if { (ac_try="$ac_compile" |
| 21829 | case "(($ac_try" in |
| 21830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21831 | *) ac_try_echo=$ac_try;; |
| 21832 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21833 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21834 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21835 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21836 | ac_status=$? |
| 21837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21838 | rm -f conftest.er1 |
| 21839 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21841 | (exit $ac_status); } && { |
| 21842 | test -z "$ac_c_werror_flag" || |
| 21843 | test ! -s conftest.err |
| 21844 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21845 | ac_cv_member_struct_stat_st_birthtime=yes |
| 21846 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21847 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21849 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21850 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21851 | /* confdefs.h. */ |
| 21852 | _ACEOF |
| 21853 | cat confdefs.h >>conftest.$ac_ext |
| 21854 | cat >>conftest.$ac_ext <<_ACEOF |
| 21855 | /* end confdefs.h. */ |
| 21856 | $ac_includes_default |
| 21857 | int |
| 21858 | main () |
| 21859 | { |
| 21860 | static struct stat ac_aggr; |
| 21861 | if (sizeof ac_aggr.st_birthtime) |
| 21862 | return 0; |
| 21863 | ; |
| 21864 | return 0; |
| 21865 | } |
| 21866 | _ACEOF |
| 21867 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21868 | if { (ac_try="$ac_compile" |
| 21869 | case "(($ac_try" in |
| 21870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21871 | *) ac_try_echo=$ac_try;; |
| 21872 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21873 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21874 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21875 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21876 | ac_status=$? |
| 21877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21878 | rm -f conftest.er1 |
| 21879 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21880 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21881 | (exit $ac_status); } && { |
| 21882 | test -z "$ac_c_werror_flag" || |
| 21883 | test ! -s conftest.err |
| 21884 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21885 | ac_cv_member_struct_stat_st_birthtime=yes |
| 21886 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21887 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21889 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21890 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21891 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21892 | |
| 21893 | 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] | 21894 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21895 | |
| 21896 | 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] | 21897 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21898 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 21899 | $as_echo "$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 21900 | 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] | 21901 | |
| 21902 | cat >>confdefs.h <<_ACEOF |
| 21903 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 21904 | _ACEOF |
| 21905 | |
| 21906 | |
| 21907 | fi |
| 21908 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21909 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 21910 | $as_echo_n "checking for struct stat.st_blocks... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21911 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21912 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21913 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21914 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21915 | /* confdefs.h. */ |
| 21916 | _ACEOF |
| 21917 | cat confdefs.h >>conftest.$ac_ext |
| 21918 | cat >>conftest.$ac_ext <<_ACEOF |
| 21919 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21920 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21921 | int |
| 21922 | main () |
| 21923 | { |
| 21924 | static struct stat ac_aggr; |
| 21925 | if (ac_aggr.st_blocks) |
| 21926 | return 0; |
| 21927 | ; |
| 21928 | return 0; |
| 21929 | } |
| 21930 | _ACEOF |
| 21931 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21932 | if { (ac_try="$ac_compile" |
| 21933 | case "(($ac_try" in |
| 21934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21935 | *) ac_try_echo=$ac_try;; |
| 21936 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21937 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21938 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21939 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21940 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21942 | rm -f conftest.er1 |
| 21943 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21944 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21945 | (exit $ac_status); } && { |
| 21946 | test -z "$ac_c_werror_flag" || |
| 21947 | test ! -s conftest.err |
| 21948 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21949 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21950 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21951 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21953 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21954 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21955 | /* confdefs.h. */ |
| 21956 | _ACEOF |
| 21957 | cat confdefs.h >>conftest.$ac_ext |
| 21958 | cat >>conftest.$ac_ext <<_ACEOF |
| 21959 | /* end confdefs.h. */ |
| 21960 | $ac_includes_default |
| 21961 | int |
| 21962 | main () |
| 21963 | { |
| 21964 | static struct stat ac_aggr; |
| 21965 | if (sizeof ac_aggr.st_blocks) |
| 21966 | return 0; |
| 21967 | ; |
| 21968 | return 0; |
| 21969 | } |
| 21970 | _ACEOF |
| 21971 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21972 | if { (ac_try="$ac_compile" |
| 21973 | case "(($ac_try" in |
| 21974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21975 | *) ac_try_echo=$ac_try;; |
| 21976 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21978 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21979 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21980 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21982 | rm -f conftest.er1 |
| 21983 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21985 | (exit $ac_status); } && { |
| 21986 | test -z "$ac_c_werror_flag" || |
| 21987 | test ! -s conftest.err |
| 21988 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21989 | ac_cv_member_struct_stat_st_blocks=yes |
| 21990 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 21991 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21993 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21994 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21995 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21996 | |
| 21997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21998 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21999 | |
| 22000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22001 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22002 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 22003 | $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 22004 | 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] | 22005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22006 | cat >>confdefs.h <<_ACEOF |
| 22007 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 22008 | _ACEOF |
| 22009 | |
| 22010 | |
| 22011 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22012 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22013 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22014 | |
| 22015 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22016 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22017 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22018 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 22019 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22020 | esac |
| 22021 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22022 | fi |
| 22023 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22025 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22026 | { $as_echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 22027 | $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] | 22028 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22029 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22030 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22031 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22032 | /* confdefs.h. */ |
| 22033 | _ACEOF |
| 22034 | cat confdefs.h >>conftest.$ac_ext |
| 22035 | cat >>conftest.$ac_ext <<_ACEOF |
| 22036 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22037 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22038 | int |
| 22039 | main () |
| 22040 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22041 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22042 | ; |
| 22043 | return 0; |
| 22044 | } |
| 22045 | _ACEOF |
| 22046 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22047 | if { (ac_try="$ac_compile" |
| 22048 | case "(($ac_try" in |
| 22049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22050 | *) ac_try_echo=$ac_try;; |
| 22051 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22052 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22053 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22054 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22055 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22057 | rm -f conftest.er1 |
| 22058 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22059 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22060 | (exit $ac_status); } && { |
| 22061 | test -z "$ac_c_werror_flag" || |
| 22062 | test ! -s conftest.err |
| 22063 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22064 | ac_cv_header_time_altzone=yes |
| 22065 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22066 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22068 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22069 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22070 | fi |
| 22071 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22073 | fi |
| 22074 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22075 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 22076 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22077 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22078 | |
| 22079 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22080 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22081 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22082 | |
| 22083 | fi |
| 22084 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22085 | was_it_defined=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22086 | { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 22087 | $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] | 22088 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22089 | /* confdefs.h. */ |
| 22090 | _ACEOF |
| 22091 | cat confdefs.h >>conftest.$ac_ext |
| 22092 | cat >>conftest.$ac_ext <<_ACEOF |
| 22093 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22094 | |
| 22095 | #include <sys/types.h> |
| 22096 | #include <sys/select.h> |
| 22097 | #include <sys/time.h> |
| 22098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22099 | int |
| 22100 | main () |
| 22101 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22102 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22103 | ; |
| 22104 | return 0; |
| 22105 | } |
| 22106 | _ACEOF |
| 22107 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22108 | if { (ac_try="$ac_compile" |
| 22109 | case "(($ac_try" in |
| 22110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22111 | *) ac_try_echo=$ac_try;; |
| 22112 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22113 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22114 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22115 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22116 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22118 | rm -f conftest.er1 |
| 22119 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22120 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22121 | (exit $ac_status); } && { |
| 22122 | test -z "$ac_c_werror_flag" || |
| 22123 | test ! -s conftest.err |
| 22124 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22125 | |
| 22126 | |
| 22127 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22128 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22129 | _ACEOF |
| 22130 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22131 | was_it_defined=yes |
| 22132 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22133 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22134 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22136 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 22137 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22138 | fi |
| 22139 | |
| 22140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22141 | { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 22142 | $as_echo "$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22143 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22144 | { $as_echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 22145 | $as_echo_n "checking for addrinfo... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22146 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22147 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22149 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22150 | /* confdefs.h. */ |
| 22151 | _ACEOF |
| 22152 | cat confdefs.h >>conftest.$ac_ext |
| 22153 | cat >>conftest.$ac_ext <<_ACEOF |
| 22154 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22155 | |
| 22156 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22157 | int |
| 22158 | main () |
| 22159 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22160 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22161 | ; |
| 22162 | return 0; |
| 22163 | } |
| 22164 | _ACEOF |
| 22165 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22166 | if { (ac_try="$ac_compile" |
| 22167 | case "(($ac_try" in |
| 22168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22169 | *) ac_try_echo=$ac_try;; |
| 22170 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22171 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22172 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22173 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22174 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22176 | rm -f conftest.er1 |
| 22177 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22179 | (exit $ac_status); } && { |
| 22180 | test -z "$ac_c_werror_flag" || |
| 22181 | test ! -s conftest.err |
| 22182 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22183 | ac_cv_struct_addrinfo=yes |
| 22184 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22185 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22187 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22188 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22189 | fi |
| 22190 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22192 | fi |
| 22193 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22194 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 22195 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22196 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22197 | |
| 22198 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22199 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22200 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22201 | |
| 22202 | fi |
| 22203 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22204 | { $as_echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 22205 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22206 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22207 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22209 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22210 | /* confdefs.h. */ |
| 22211 | _ACEOF |
| 22212 | cat confdefs.h >>conftest.$ac_ext |
| 22213 | cat >>conftest.$ac_ext <<_ACEOF |
| 22214 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22215 | |
| 22216 | # include <sys/types.h> |
| 22217 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22218 | int |
| 22219 | main () |
| 22220 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22221 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22222 | ; |
| 22223 | return 0; |
| 22224 | } |
| 22225 | _ACEOF |
| 22226 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22227 | if { (ac_try="$ac_compile" |
| 22228 | case "(($ac_try" in |
| 22229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22230 | *) ac_try_echo=$ac_try;; |
| 22231 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22232 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22233 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22234 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22235 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22237 | rm -f conftest.er1 |
| 22238 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22240 | (exit $ac_status); } && { |
| 22241 | test -z "$ac_c_werror_flag" || |
| 22242 | test ! -s conftest.err |
| 22243 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22244 | ac_cv_struct_sockaddr_storage=yes |
| 22245 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22246 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22248 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22249 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22250 | fi |
| 22251 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22253 | fi |
| 22254 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22255 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 22256 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22257 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22258 | |
| 22259 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22260 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22261 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22262 | |
| 22263 | fi |
| 22264 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22265 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22266 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22267 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22268 | { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 22269 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22270 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22271 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22272 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22273 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22274 | /* confdefs.h. */ |
| 22275 | _ACEOF |
| 22276 | cat confdefs.h >>conftest.$ac_ext |
| 22277 | cat >>conftest.$ac_ext <<_ACEOF |
| 22278 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22279 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22280 | int |
| 22281 | main () |
| 22282 | { |
| 22283 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 22284 | test_array [0] = 0 |
| 22285 | |
| 22286 | ; |
| 22287 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22288 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22289 | _ACEOF |
| 22290 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22291 | if { (ac_try="$ac_compile" |
| 22292 | case "(($ac_try" in |
| 22293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22294 | *) ac_try_echo=$ac_try;; |
| 22295 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22296 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22297 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22298 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22299 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22301 | rm -f conftest.er1 |
| 22302 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22303 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22304 | (exit $ac_status); } && { |
| 22305 | test -z "$ac_c_werror_flag" || |
| 22306 | test ! -s conftest.err |
| 22307 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22308 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22309 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22310 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22312 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22313 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22314 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22315 | |
| 22316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22317 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22318 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 22319 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22320 | 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] | 22321 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22322 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22323 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22324 | |
| 22325 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22326 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22327 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 22328 | $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] | 22329 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22330 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22331 | else |
| 22332 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22333 | /* confdefs.h. */ |
| 22334 | _ACEOF |
| 22335 | cat confdefs.h >>conftest.$ac_ext |
| 22336 | cat >>conftest.$ac_ext <<_ACEOF |
| 22337 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22339 | int |
| 22340 | main () |
| 22341 | { |
| 22342 | /* FIXME: Include the comments suggested by Paul. */ |
| 22343 | #ifndef __cplusplus |
| 22344 | /* Ultrix mips cc rejects this. */ |
| 22345 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22346 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22347 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22348 | char const *const *pcpcc; |
| 22349 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22350 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 22351 | struct point {int x, y;}; |
| 22352 | static struct point const zero = {0,0}; |
| 22353 | /* AIX XL C 1.02.0.0 rejects this. |
| 22354 | It does not let you subtract one const X* pointer from another in |
| 22355 | an arm of an if-expression whose if-part is not a constant |
| 22356 | expression */ |
| 22357 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22358 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22359 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22360 | ++pcpcc; |
| 22361 | ppc = (char**) pcpcc; |
| 22362 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22363 | { /* SCO 3.2v4 cc rejects this. */ |
| 22364 | char *t; |
| 22365 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22367 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22368 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22369 | } |
| 22370 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22371 | int x[] = {25, 17}; |
| 22372 | const int *foo = &x[0]; |
| 22373 | ++foo; |
| 22374 | } |
| 22375 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22376 | typedef const int *iptr; |
| 22377 | iptr p = 0; |
| 22378 | ++p; |
| 22379 | } |
| 22380 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 22381 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22382 | struct s { int j; const int *ap[3]; }; |
| 22383 | struct s *b; b->j = 5; |
| 22384 | } |
| 22385 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22386 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22387 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22388 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22389 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22390 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22392 | ; |
| 22393 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22394 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22395 | _ACEOF |
| 22396 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22397 | if { (ac_try="$ac_compile" |
| 22398 | case "(($ac_try" in |
| 22399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22400 | *) ac_try_echo=$ac_try;; |
| 22401 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22402 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22403 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22404 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22405 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22407 | rm -f conftest.er1 |
| 22408 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22410 | (exit $ac_status); } && { |
| 22411 | test -z "$ac_c_werror_flag" || |
| 22412 | test ! -s conftest.err |
| 22413 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22414 | ac_cv_c_const=yes |
| 22415 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22416 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22418 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22419 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22420 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22421 | |
| 22422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22423 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22424 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 22425 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22426 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22427 | |
| 22428 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22429 | #define const /**/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22430 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22431 | |
| 22432 | fi |
| 22433 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22434 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22435 | works=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22436 | { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 22437 | $as_echo_n "checking for working volatile... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22438 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22439 | /* confdefs.h. */ |
| 22440 | _ACEOF |
| 22441 | cat confdefs.h >>conftest.$ac_ext |
| 22442 | cat >>conftest.$ac_ext <<_ACEOF |
| 22443 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22445 | int |
| 22446 | main () |
| 22447 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22448 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22449 | ; |
| 22450 | return 0; |
| 22451 | } |
| 22452 | _ACEOF |
| 22453 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22454 | if { (ac_try="$ac_compile" |
| 22455 | case "(($ac_try" in |
| 22456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22457 | *) ac_try_echo=$ac_try;; |
| 22458 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22459 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22460 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22461 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22462 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22464 | rm -f conftest.er1 |
| 22465 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22466 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22467 | (exit $ac_status); } && { |
| 22468 | test -z "$ac_c_werror_flag" || |
| 22469 | test ! -s conftest.err |
| 22470 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22471 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22472 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22473 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22476 | |
| 22477 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22478 | #define volatile /**/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22479 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22480 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22481 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22482 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22483 | |
| 22484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22485 | { $as_echo "$as_me:$LINENO: result: $works" >&5 |
| 22486 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22487 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22488 | works=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22489 | { $as_echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 22490 | $as_echo_n "checking for working signed char... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22491 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22492 | /* confdefs.h. */ |
| 22493 | _ACEOF |
| 22494 | cat confdefs.h >>conftest.$ac_ext |
| 22495 | cat >>conftest.$ac_ext <<_ACEOF |
| 22496 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22497 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22498 | int |
| 22499 | main () |
| 22500 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22501 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22502 | ; |
| 22503 | return 0; |
| 22504 | } |
| 22505 | _ACEOF |
| 22506 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22507 | if { (ac_try="$ac_compile" |
| 22508 | case "(($ac_try" in |
| 22509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22510 | *) ac_try_echo=$ac_try;; |
| 22511 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22512 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22513 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22514 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22515 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22517 | rm -f conftest.er1 |
| 22518 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22520 | (exit $ac_status); } && { |
| 22521 | test -z "$ac_c_werror_flag" || |
| 22522 | test ! -s conftest.err |
| 22523 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22524 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22525 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22526 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22529 | |
| 22530 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22531 | #define signed /**/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22532 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22533 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22534 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22535 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22536 | |
| 22537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22538 | { $as_echo "$as_me:$LINENO: result: $works" >&5 |
| 22539 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22540 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22541 | have_prototypes=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22542 | { $as_echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 22543 | $as_echo_n "checking for prototypes... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22544 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22545 | /* confdefs.h. */ |
| 22546 | _ACEOF |
| 22547 | cat confdefs.h >>conftest.$ac_ext |
| 22548 | cat >>conftest.$ac_ext <<_ACEOF |
| 22549 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22550 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22551 | int |
| 22552 | main () |
| 22553 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22554 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22555 | ; |
| 22556 | return 0; |
| 22557 | } |
| 22558 | _ACEOF |
| 22559 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22560 | if { (ac_try="$ac_compile" |
| 22561 | case "(($ac_try" in |
| 22562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22563 | *) ac_try_echo=$ac_try;; |
| 22564 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22565 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22566 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22567 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22568 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22570 | rm -f conftest.er1 |
| 22571 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22573 | (exit $ac_status); } && { |
| 22574 | test -z "$ac_c_werror_flag" || |
| 22575 | test ! -s conftest.err |
| 22576 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22577 | |
| 22578 | |
| 22579 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22580 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22581 | _ACEOF |
| 22582 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22583 | have_prototypes=yes |
| 22584 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22585 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22586 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22588 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22589 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22590 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22591 | |
| 22592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22593 | { $as_echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 22594 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22595 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22596 | works=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22597 | { $as_echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 22598 | $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] | 22599 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22600 | /* confdefs.h. */ |
| 22601 | _ACEOF |
| 22602 | cat confdefs.h >>conftest.$ac_ext |
| 22603 | cat >>conftest.$ac_ext <<_ACEOF |
| 22604 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22605 | |
| 22606 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22607 | int foo(int x, ...) { |
| 22608 | va_list va; |
| 22609 | va_start(va, x); |
| 22610 | va_arg(va, int); |
| 22611 | va_arg(va, char *); |
| 22612 | va_arg(va, double); |
| 22613 | return 0; |
| 22614 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22616 | int |
| 22617 | main () |
| 22618 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22619 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22620 | ; |
| 22621 | return 0; |
| 22622 | } |
| 22623 | _ACEOF |
| 22624 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22625 | if { (ac_try="$ac_compile" |
| 22626 | case "(($ac_try" in |
| 22627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22628 | *) ac_try_echo=$ac_try;; |
| 22629 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22630 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22631 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22632 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22633 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22635 | rm -f conftest.er1 |
| 22636 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22638 | (exit $ac_status); } && { |
| 22639 | test -z "$ac_c_werror_flag" || |
| 22640 | test ! -s conftest.err |
| 22641 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22642 | |
| 22643 | |
| 22644 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22645 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22646 | _ACEOF |
| 22647 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22648 | works=yes |
| 22649 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22650 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22651 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22653 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22654 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22655 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22656 | |
| 22657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22658 | { $as_echo "$as_me:$LINENO: result: $works" >&5 |
| 22659 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22660 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22661 | # check for socketpair |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22662 | { $as_echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 22663 | $as_echo_n "checking for socketpair... " >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22664 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22665 | /* confdefs.h. */ |
| 22666 | _ACEOF |
| 22667 | cat confdefs.h >>conftest.$ac_ext |
| 22668 | cat >>conftest.$ac_ext <<_ACEOF |
| 22669 | /* end confdefs.h. */ |
| 22670 | |
| 22671 | #include <sys/types.h> |
| 22672 | #include <sys/socket.h> |
| 22673 | |
| 22674 | int |
| 22675 | main () |
| 22676 | { |
| 22677 | void *x=socketpair |
| 22678 | ; |
| 22679 | return 0; |
| 22680 | } |
| 22681 | _ACEOF |
| 22682 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22683 | if { (ac_try="$ac_compile" |
| 22684 | case "(($ac_try" in |
| 22685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22686 | *) ac_try_echo=$ac_try;; |
| 22687 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22689 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22690 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22691 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22693 | rm -f conftest.er1 |
| 22694 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22696 | (exit $ac_status); } && { |
| 22697 | test -z "$ac_c_werror_flag" || |
| 22698 | test ! -s conftest.err |
| 22699 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22700 | |
| 22701 | cat >>confdefs.h <<\_ACEOF |
| 22702 | #define HAVE_SOCKETPAIR 1 |
| 22703 | _ACEOF |
| 22704 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22705 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 22706 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22707 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22708 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22710 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22711 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 22712 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22713 | |
| 22714 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22715 | |
| 22716 | 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] | 22717 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22718 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22719 | { $as_echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 22720 | $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] | 22721 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22722 | /* confdefs.h. */ |
| 22723 | _ACEOF |
| 22724 | cat confdefs.h >>conftest.$ac_ext |
| 22725 | cat >>conftest.$ac_ext <<_ACEOF |
| 22726 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22727 | #include <sys/types.h> |
| 22728 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22729 | int |
| 22730 | main () |
| 22731 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22732 | struct sockaddr x; |
| 22733 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22734 | ; |
| 22735 | return 0; |
| 22736 | } |
| 22737 | _ACEOF |
| 22738 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22739 | if { (ac_try="$ac_compile" |
| 22740 | case "(($ac_try" in |
| 22741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22742 | *) ac_try_echo=$ac_try;; |
| 22743 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22744 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22745 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22746 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22747 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22749 | rm -f conftest.er1 |
| 22750 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22752 | (exit $ac_status); } && { |
| 22753 | test -z "$ac_c_werror_flag" || |
| 22754 | test ! -s conftest.err |
| 22755 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22756 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 22757 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22758 | |
| 22759 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22760 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22761 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22762 | |
| 22763 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22764 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22766 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22767 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 22768 | $as_echo "no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22769 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22770 | |
| 22771 | 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] | 22772 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22773 | va_list_is_array=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22774 | { $as_echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 22775 | $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] | 22776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22777 | /* confdefs.h. */ |
| 22778 | _ACEOF |
| 22779 | cat confdefs.h >>conftest.$ac_ext |
| 22780 | cat >>conftest.$ac_ext <<_ACEOF |
| 22781 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22782 | |
| 22783 | #ifdef HAVE_STDARG_PROTOTYPES |
| 22784 | #include <stdarg.h> |
| 22785 | #else |
| 22786 | #include <varargs.h> |
| 22787 | #endif |
| 22788 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22789 | int |
| 22790 | main () |
| 22791 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22792 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22793 | ; |
| 22794 | return 0; |
| 22795 | } |
| 22796 | _ACEOF |
| 22797 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22798 | if { (ac_try="$ac_compile" |
| 22799 | case "(($ac_try" in |
| 22800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22801 | *) ac_try_echo=$ac_try;; |
| 22802 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22804 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22805 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22806 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22808 | rm -f conftest.er1 |
| 22809 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22811 | (exit $ac_status); } && { |
| 22812 | test -z "$ac_c_werror_flag" || |
| 22813 | test ! -s conftest.err |
| 22814 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22815 | : |
| 22816 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22817 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22819 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22820 | |
| 22821 | |
| 22822 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22823 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22824 | _ACEOF |
| 22825 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22826 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22827 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22828 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22829 | |
| 22830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22831 | { $as_echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 22832 | $as_echo "$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22833 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22834 | # 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] | 22835 | |
| 22836 | |
| 22837 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22838 | { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 22839 | $as_echo_n "checking for gethostbyname_r... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22840 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22841 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22842 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22843 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22844 | /* confdefs.h. */ |
| 22845 | _ACEOF |
| 22846 | cat confdefs.h >>conftest.$ac_ext |
| 22847 | cat >>conftest.$ac_ext <<_ACEOF |
| 22848 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22849 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 22850 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22851 | #define gethostbyname_r innocuous_gethostbyname_r |
| 22852 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22853 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22854 | which can conflict with char gethostbyname_r (); below. |
| 22855 | 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] | 22856 | <limits.h> exists even on freestanding compilers. */ |
| 22857 | |
| 22858 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22859 | # include <limits.h> |
| 22860 | #else |
| 22861 | # include <assert.h> |
| 22862 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22863 | |
| 22864 | #undef gethostbyname_r |
| 22865 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22866 | /* Override any GCC internal prototype to avoid an error. |
| 22867 | Use char because int might match the return type of a GCC |
| 22868 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22869 | #ifdef __cplusplus |
| 22870 | extern "C" |
| 22871 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22872 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22873 | /* The GNU C library defines this for functions which it implements |
| 22874 | to always fail with ENOSYS. Some functions are actually named |
| 22875 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22876 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22877 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22878 | #endif |
| 22879 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22880 | int |
| 22881 | main () |
| 22882 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22883 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22884 | ; |
| 22885 | return 0; |
| 22886 | } |
| 22887 | _ACEOF |
| 22888 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22889 | if { (ac_try="$ac_link" |
| 22890 | case "(($ac_try" in |
| 22891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22892 | *) ac_try_echo=$ac_try;; |
| 22893 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22894 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22895 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22896 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22897 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22899 | rm -f conftest.er1 |
| 22900 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22901 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22902 | (exit $ac_status); } && { |
| 22903 | test -z "$ac_c_werror_flag" || |
| 22904 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22905 | } && test -s conftest$ac_exeext && { |
| 22906 | test "$cross_compiling" = yes || |
| 22907 | $as_test_x conftest$ac_exeext |
| 22908 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22909 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22910 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22911 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22913 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22914 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22915 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22916 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22917 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22918 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22919 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22920 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22921 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 22922 | $as_echo "$ac_cv_func_gethostbyname_r" >&6; } |
| 22923 | if test "x$ac_cv_func_gethostbyname_r" = x""yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22924 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22925 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22926 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22927 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22928 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22929 | { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 22930 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22931 | OLD_CFLAGS=$CFLAGS |
| 22932 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22933 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22934 | /* confdefs.h. */ |
| 22935 | _ACEOF |
| 22936 | cat confdefs.h >>conftest.$ac_ext |
| 22937 | cat >>conftest.$ac_ext <<_ACEOF |
| 22938 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22939 | |
| 22940 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22942 | int |
| 22943 | main () |
| 22944 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22945 | |
| 22946 | char *name; |
| 22947 | struct hostent *he, *res; |
| 22948 | char buffer[2048]; |
| 22949 | int buflen = 2048; |
| 22950 | int h_errnop; |
| 22951 | |
| 22952 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22953 | |
| 22954 | ; |
| 22955 | return 0; |
| 22956 | } |
| 22957 | _ACEOF |
| 22958 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22959 | if { (ac_try="$ac_compile" |
| 22960 | case "(($ac_try" in |
| 22961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22962 | *) ac_try_echo=$ac_try;; |
| 22963 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22964 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22965 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22966 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22967 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22969 | rm -f conftest.er1 |
| 22970 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22971 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22972 | (exit $ac_status); } && { |
| 22973 | test -z "$ac_c_werror_flag" || |
| 22974 | test ! -s conftest.err |
| 22975 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22976 | |
| 22977 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22978 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22979 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22981 | |
| 22982 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22983 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22984 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22985 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22986 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 22987 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22988 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22989 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22990 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22993 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 22994 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 22995 | $as_echo "no" >&6; } |
| 22996 | { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 22997 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22998 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22999 | /* confdefs.h. */ |
| 23000 | _ACEOF |
| 23001 | cat confdefs.h >>conftest.$ac_ext |
| 23002 | cat >>conftest.$ac_ext <<_ACEOF |
| 23003 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23004 | |
| 23005 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23007 | int |
| 23008 | main () |
| 23009 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23010 | |
| 23011 | char *name; |
| 23012 | struct hostent *he; |
| 23013 | char buffer[2048]; |
| 23014 | int buflen = 2048; |
| 23015 | int h_errnop; |
| 23016 | |
| 23017 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23018 | |
| 23019 | ; |
| 23020 | return 0; |
| 23021 | } |
| 23022 | _ACEOF |
| 23023 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23024 | if { (ac_try="$ac_compile" |
| 23025 | case "(($ac_try" in |
| 23026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23027 | *) ac_try_echo=$ac_try;; |
| 23028 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23029 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23030 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23031 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23032 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23034 | rm -f conftest.er1 |
| 23035 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23036 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23037 | (exit $ac_status); } && { |
| 23038 | test -z "$ac_c_werror_flag" || |
| 23039 | test ! -s conftest.err |
| 23040 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23041 | |
| 23042 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23043 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23044 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23046 | |
| 23047 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23048 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23049 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23050 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23051 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 23052 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23053 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23054 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23055 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23058 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23059 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 23060 | $as_echo "no" >&6; } |
| 23061 | { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 23062 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23063 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23064 | /* confdefs.h. */ |
| 23065 | _ACEOF |
| 23066 | cat confdefs.h >>conftest.$ac_ext |
| 23067 | cat >>conftest.$ac_ext <<_ACEOF |
| 23068 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23069 | |
| 23070 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23072 | int |
| 23073 | main () |
| 23074 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23075 | |
| 23076 | char *name; |
| 23077 | struct hostent *he; |
| 23078 | struct hostent_data data; |
| 23079 | |
| 23080 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23081 | |
| 23082 | ; |
| 23083 | return 0; |
| 23084 | } |
| 23085 | _ACEOF |
| 23086 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23087 | if { (ac_try="$ac_compile" |
| 23088 | case "(($ac_try" in |
| 23089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23090 | *) ac_try_echo=$ac_try;; |
| 23091 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23093 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23094 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23095 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23097 | rm -f conftest.er1 |
| 23098 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23100 | (exit $ac_status); } && { |
| 23101 | test -z "$ac_c_werror_flag" || |
| 23102 | test ! -s conftest.err |
| 23103 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23104 | |
| 23105 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23106 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23107 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23109 | |
| 23110 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23111 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23112 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23113 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23114 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 23115 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23116 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23117 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23118 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23121 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23122 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 23123 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23124 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23125 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23126 | |
| 23127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23128 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23129 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23130 | |
| 23131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23132 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23133 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23134 | |
| 23135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23136 | CFLAGS=$OLD_CFLAGS |
| 23137 | |
| 23138 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23139 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23140 | |
| 23141 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23142 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23143 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23144 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23145 | $as_echo_n "checking for $ac_func... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23146 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23147 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23149 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23150 | /* confdefs.h. */ |
| 23151 | _ACEOF |
| 23152 | cat confdefs.h >>conftest.$ac_ext |
| 23153 | cat >>conftest.$ac_ext <<_ACEOF |
| 23154 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23155 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23156 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23157 | #define $ac_func innocuous_$ac_func |
| 23158 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23159 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23160 | which can conflict with char $ac_func (); below. |
| 23161 | 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] | 23162 | <limits.h> exists even on freestanding compilers. */ |
| 23163 | |
| 23164 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23165 | # include <limits.h> |
| 23166 | #else |
| 23167 | # include <assert.h> |
| 23168 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23169 | |
| 23170 | #undef $ac_func |
| 23171 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23172 | /* Override any GCC internal prototype to avoid an error. |
| 23173 | Use char because int might match the return type of a GCC |
| 23174 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23175 | #ifdef __cplusplus |
| 23176 | extern "C" |
| 23177 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23178 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23179 | /* The GNU C library defines this for functions which it implements |
| 23180 | to always fail with ENOSYS. Some functions are actually named |
| 23181 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23182 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23183 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23184 | #endif |
| 23185 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23186 | int |
| 23187 | main () |
| 23188 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23189 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23190 | ; |
| 23191 | return 0; |
| 23192 | } |
| 23193 | _ACEOF |
| 23194 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23195 | if { (ac_try="$ac_link" |
| 23196 | case "(($ac_try" in |
| 23197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23198 | *) ac_try_echo=$ac_try;; |
| 23199 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23200 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23201 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23202 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23203 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23205 | rm -f conftest.er1 |
| 23206 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23207 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23208 | (exit $ac_status); } && { |
| 23209 | test -z "$ac_c_werror_flag" || |
| 23210 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23211 | } && test -s conftest$ac_exeext && { |
| 23212 | test "$cross_compiling" = yes || |
| 23213 | $as_test_x conftest$ac_exeext |
| 23214 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23215 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23216 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23217 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23219 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23220 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23221 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23222 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23223 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23224 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23225 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23226 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23227 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 23228 | $as_echo "$as_val"'` |
| 23229 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23230 | $as_echo "$ac_res" >&6; } |
| 23231 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 23232 | $as_echo "$as_val"'` |
| 23233 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23234 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23235 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23236 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23237 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23238 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23239 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23240 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23241 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23242 | fi |
| 23243 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23244 | |
| 23245 | |
| 23246 | |
| 23247 | |
| 23248 | |
| 23249 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23250 | # checks for system services |
| 23251 | # (none yet) |
| 23252 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23253 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23254 | { $as_echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 23255 | $as_echo_n "checking for __fpu_control... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23256 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23257 | $as_echo_n "(cached) " >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23258 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23259 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23260 | /* confdefs.h. */ |
| 23261 | _ACEOF |
| 23262 | cat confdefs.h >>conftest.$ac_ext |
| 23263 | cat >>conftest.$ac_ext <<_ACEOF |
| 23264 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23265 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 23266 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23267 | #define __fpu_control innocuous___fpu_control |
| 23268 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23269 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23270 | which can conflict with char __fpu_control (); below. |
| 23271 | 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] | 23272 | <limits.h> exists even on freestanding compilers. */ |
| 23273 | |
| 23274 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23275 | # include <limits.h> |
| 23276 | #else |
| 23277 | # include <assert.h> |
| 23278 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23279 | |
| 23280 | #undef __fpu_control |
| 23281 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23282 | /* Override any GCC internal prototype to avoid an error. |
| 23283 | Use char because int might match the return type of a GCC |
| 23284 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23285 | #ifdef __cplusplus |
| 23286 | extern "C" |
| 23287 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23288 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23289 | /* The GNU C library defines this for functions which it implements |
| 23290 | to always fail with ENOSYS. Some functions are actually named |
| 23291 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23292 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23293 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23294 | #endif |
| 23295 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23296 | int |
| 23297 | main () |
| 23298 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23299 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23300 | ; |
| 23301 | return 0; |
| 23302 | } |
| 23303 | _ACEOF |
| 23304 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23305 | if { (ac_try="$ac_link" |
| 23306 | case "(($ac_try" in |
| 23307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23308 | *) ac_try_echo=$ac_try;; |
| 23309 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23310 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23311 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23312 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23313 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23315 | rm -f conftest.er1 |
| 23316 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23317 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23318 | (exit $ac_status); } && { |
| 23319 | test -z "$ac_c_werror_flag" || |
| 23320 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23321 | } && test -s conftest$ac_exeext && { |
| 23322 | test "$cross_compiling" = yes || |
| 23323 | $as_test_x conftest$ac_exeext |
| 23324 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23325 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23326 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23327 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23329 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23330 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23331 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23332 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23333 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23334 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23335 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23336 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23337 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 23338 | $as_echo "$ac_cv_func___fpu_control" >&6; } |
| 23339 | if test "x$ac_cv_func___fpu_control" = x""yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23340 | : |
| 23341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23342 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23343 | { $as_echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 23344 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23345 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23346 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23348 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23349 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23350 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23351 | /* confdefs.h. */ |
| 23352 | _ACEOF |
| 23353 | cat confdefs.h >>conftest.$ac_ext |
| 23354 | cat >>conftest.$ac_ext <<_ACEOF |
| 23355 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23356 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23357 | /* Override any GCC internal prototype to avoid an error. |
| 23358 | Use char because int might match the return type of a GCC |
| 23359 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23360 | #ifdef __cplusplus |
| 23361 | extern "C" |
| 23362 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23363 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23364 | int |
| 23365 | main () |
| 23366 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23367 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23368 | ; |
| 23369 | return 0; |
| 23370 | } |
| 23371 | _ACEOF |
| 23372 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23373 | if { (ac_try="$ac_link" |
| 23374 | case "(($ac_try" in |
| 23375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23376 | *) ac_try_echo=$ac_try;; |
| 23377 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23379 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23380 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23381 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23383 | rm -f conftest.er1 |
| 23384 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23386 | (exit $ac_status); } && { |
| 23387 | test -z "$ac_c_werror_flag" || |
| 23388 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23389 | } && test -s conftest$ac_exeext && { |
| 23390 | test "$cross_compiling" = yes || |
| 23391 | $as_test_x conftest$ac_exeext |
| 23392 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23393 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23394 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23395 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23397 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23398 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23399 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23400 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23401 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23402 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23403 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23404 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23405 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23406 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 23407 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
| 23408 | 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] | 23409 | cat >>confdefs.h <<_ACEOF |
| 23410 | #define HAVE_LIBIEEE 1 |
| 23411 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23412 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23413 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23414 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23415 | fi |
| 23416 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23417 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23418 | fi |
| 23419 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23420 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23421 | # Check for --with-fpectl |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23422 | { $as_echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 23423 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23424 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23425 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23426 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23427 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23428 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23429 | then |
| 23430 | |
| 23431 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23432 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23433 | _ACEOF |
| 23434 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23435 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 23436 | $as_echo "yes" >&6; } |
| 23437 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 23438 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23439 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23440 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23441 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 23442 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23443 | fi |
| 23444 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23445 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23446 | # check for --with-libm=... |
| 23447 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23448 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 23449 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 23450 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23451 | *) LIBM=-lm |
| 23452 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23453 | { $as_echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 23454 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23455 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23456 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23457 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23458 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23459 | if test "$withval" = no |
| 23460 | then LIBM= |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23461 | { $as_echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 23462 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23463 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23464 | then LIBM=$withval |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23465 | { $as_echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 23466 | $as_echo "set LIBM=\"$withval\"" >&6; } |
| 23467 | else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 23468 | $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] | 23469 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23470 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23471 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23472 | { $as_echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 23473 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23474 | fi |
| 23475 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23476 | |
| 23477 | # check for --with-libc=... |
| 23478 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23479 | { $as_echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 23480 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23481 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23482 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23483 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23484 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23485 | if test "$withval" = no |
| 23486 | then LIBC= |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23487 | { $as_echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 23488 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23489 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23490 | then LIBC=$withval |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23491 | { $as_echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 23492 | $as_echo "set LIBC=\"$withval\"" >&6; } |
| 23493 | else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 23494 | $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] | 23495 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23496 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23497 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23498 | { $as_echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 23499 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23500 | fi |
| 23501 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23502 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23503 | # ************************************ |
| 23504 | # * Check for mathematical functions * |
| 23505 | # ************************************ |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23506 | |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 23507 | LIBS_SAVE=$LIBS |
| 23508 | LIBS="$LIBS $LIBM" |
| 23509 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23510 | # Detect whether system arithmetic is subject to x87-style double |
| 23511 | # rounding issues. The result of this test has little meaning on non |
| 23512 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 23513 | # mode is round-to-nearest and double rounding issues are present, and |
| 23514 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23515 | { $as_echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 23516 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23517 | if test "${ac_cv_x87_double_rounding+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23518 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23519 | else |
| 23520 | |
| 23521 | if test "$cross_compiling" = yes; then |
| 23522 | ac_cv_x87_double_rounding=no |
| 23523 | else |
| 23524 | cat >conftest.$ac_ext <<_ACEOF |
| 23525 | /* confdefs.h. */ |
| 23526 | _ACEOF |
| 23527 | cat confdefs.h >>conftest.$ac_ext |
| 23528 | cat >>conftest.$ac_ext <<_ACEOF |
| 23529 | /* end confdefs.h. */ |
| 23530 | |
| 23531 | #include <stdlib.h> |
| 23532 | #include <math.h> |
| 23533 | int main() { |
| 23534 | volatile double x, y, z; |
| 23535 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 23536 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 23537 | y = 1./x; |
| 23538 | if (y != 1.) |
| 23539 | exit(0); |
| 23540 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 23541 | x = 1e16; |
| 23542 | y = 2.99999; |
| 23543 | z = x + y; |
| 23544 | if (z != 1e16+4.) |
| 23545 | exit(0); |
| 23546 | /* both tests show evidence of double rounding */ |
| 23547 | exit(1); |
| 23548 | } |
| 23549 | |
| 23550 | _ACEOF |
| 23551 | rm -f conftest$ac_exeext |
| 23552 | if { (ac_try="$ac_link" |
| 23553 | case "(($ac_try" in |
| 23554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23555 | *) ac_try_echo=$ac_try;; |
| 23556 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23557 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23558 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23559 | (eval "$ac_link") 2>&5 |
| 23560 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23562 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23563 | { (case "(($ac_try" in |
| 23564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23565 | *) ac_try_echo=$ac_try;; |
| 23566 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23568 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23569 | (eval "$ac_try") 2>&5 |
| 23570 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23571 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23572 | (exit $ac_status); }; }; then |
| 23573 | ac_cv_x87_double_rounding=no |
| 23574 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23575 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 23576 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23578 | |
| 23579 | ( exit $ac_status ) |
| 23580 | ac_cv_x87_double_rounding=yes |
| 23581 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23582 | rm -rf conftest.dSYM |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23583 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23584 | fi |
| 23585 | |
| 23586 | |
| 23587 | fi |
| 23588 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23589 | { $as_echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 23590 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23591 | if test "$ac_cv_x87_double_rounding" = yes |
| 23592 | then |
| 23593 | |
| 23594 | cat >>confdefs.h <<\_ACEOF |
| 23595 | #define X87_DOUBLE_ROUNDING 1 |
| 23596 | _ACEOF |
| 23597 | |
| 23598 | fi |
| 23599 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23600 | # Multiprocessing check for broken sem_getvalue |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23601 | { $as_echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 23602 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
| 23603 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then |
| 23604 | $as_echo_n "(cached) " >&6 |
| 23605 | else |
| 23606 | if test "$cross_compiling" = yes; then |
| 23607 | ac_cv_broken_sem_getvalue=yes |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23608 | else |
| 23609 | cat >conftest.$ac_ext <<_ACEOF |
| 23610 | /* confdefs.h. */ |
| 23611 | _ACEOF |
| 23612 | cat confdefs.h >>conftest.$ac_ext |
| 23613 | cat >>conftest.$ac_ext <<_ACEOF |
| 23614 | /* end confdefs.h. */ |
| 23615 | |
| 23616 | #include <unistd.h> |
| 23617 | #include <fcntl.h> |
| 23618 | #include <stdio.h> |
| 23619 | #include <semaphore.h> |
| 23620 | #include <sys/stat.h> |
| 23621 | |
| 23622 | int main(void){ |
| 23623 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 23624 | int count; |
| 23625 | int res; |
| 23626 | if(a==SEM_FAILED){ |
| 23627 | perror("sem_open"); |
| 23628 | return 1; |
| 23629 | |
| 23630 | } |
| 23631 | res = sem_getvalue(a, &count); |
| 23632 | sem_close(a); |
| 23633 | return res==-1 ? 1 : 0; |
| 23634 | } |
| 23635 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23636 | _ACEOF |
| 23637 | rm -f conftest$ac_exeext |
| 23638 | if { (ac_try="$ac_link" |
| 23639 | case "(($ac_try" in |
| 23640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23641 | *) ac_try_echo=$ac_try;; |
| 23642 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23644 | $as_echo "$ac_try_echo") >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23645 | (eval "$ac_link") 2>&5 |
| 23646 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23647 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23648 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23649 | { (case "(($ac_try" in |
| 23650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23651 | *) ac_try_echo=$ac_try;; |
| 23652 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23653 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23654 | $as_echo "$ac_try_echo") >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23655 | (eval "$ac_try") 2>&5 |
| 23656 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23658 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23659 | ac_cv_broken_sem_getvalue=no |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23660 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23661 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 23662 | $as_echo "$as_me: failed program was:" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23664 | |
| 23665 | ( exit $ac_status ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23666 | ac_cv_broken_sem_getvalue=yes |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23667 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23668 | rm -rf conftest.dSYM |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23669 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23670 | fi |
| 23671 | |
| 23672 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23673 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23674 | fi |
| 23675 | |
| 23676 | { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5 |
| 23677 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } |
| 23678 | if test $ac_cv_broken_sem_getvalue = yes |
| 23679 | then |
| 23680 | |
| 23681 | cat >>confdefs.h <<\_ACEOF |
| 23682 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 23683 | _ACEOF |
| 23684 | |
| 23685 | fi |
| 23686 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23687 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 23688 | # -0. on some architectures. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23689 | { $as_echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 23690 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23691 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23692 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23693 | else |
| 23694 | |
| 23695 | if test "$cross_compiling" = yes; then |
| 23696 | ac_cv_tanh_preserves_zero_sign=no |
| 23697 | else |
| 23698 | cat >conftest.$ac_ext <<_ACEOF |
| 23699 | /* confdefs.h. */ |
| 23700 | _ACEOF |
| 23701 | cat confdefs.h >>conftest.$ac_ext |
| 23702 | cat >>conftest.$ac_ext <<_ACEOF |
| 23703 | /* end confdefs.h. */ |
| 23704 | |
| 23705 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 23706 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23707 | int main() { |
| 23708 | /* return 0 if either negative zeros don't exist |
| 23709 | on this platform or if negative zeros exist |
| 23710 | and tanh(-0.) == -0. */ |
| 23711 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 23712 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 23713 | else exit(1); |
| 23714 | } |
| 23715 | |
| 23716 | _ACEOF |
| 23717 | rm -f conftest$ac_exeext |
| 23718 | if { (ac_try="$ac_link" |
| 23719 | case "(($ac_try" in |
| 23720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23721 | *) ac_try_echo=$ac_try;; |
| 23722 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23724 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23725 | (eval "$ac_link") 2>&5 |
| 23726 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23728 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23729 | { (case "(($ac_try" in |
| 23730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23731 | *) ac_try_echo=$ac_try;; |
| 23732 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23733 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23734 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23735 | (eval "$ac_try") 2>&5 |
| 23736 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23737 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23738 | (exit $ac_status); }; }; then |
| 23739 | ac_cv_tanh_preserves_zero_sign=yes |
| 23740 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23741 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 23742 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23744 | |
| 23745 | ( exit $ac_status ) |
| 23746 | ac_cv_tanh_preserves_zero_sign=no |
| 23747 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23748 | rm -rf conftest.dSYM |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23749 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23750 | fi |
| 23751 | |
| 23752 | |
| 23753 | fi |
| 23754 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23755 | { $as_echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 23756 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23757 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 23758 | then |
| 23759 | |
| 23760 | cat >>confdefs.h <<\_ACEOF |
| 23761 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 23762 | _ACEOF |
| 23763 | |
| 23764 | fi |
| 23765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23766 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 23767 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23768 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23769 | |
| 23770 | |
| 23771 | |
| 23772 | |
| 23773 | |
Mark Dickinson | 8e5446f | 2009-04-18 14:41:37 +0000 | [diff] [blame] | 23774 | |
| 23775 | for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23776 | do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23777 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23778 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23779 | $as_echo_n "checking for $ac_func... " >&6; } |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23780 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23781 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23782 | else |
| 23783 | cat >conftest.$ac_ext <<_ACEOF |
| 23784 | /* confdefs.h. */ |
| 23785 | _ACEOF |
| 23786 | cat confdefs.h >>conftest.$ac_ext |
| 23787 | cat >>conftest.$ac_ext <<_ACEOF |
| 23788 | /* end confdefs.h. */ |
| 23789 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23790 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23791 | #define $ac_func innocuous_$ac_func |
| 23792 | |
| 23793 | /* System header to define __stub macros and hopefully few prototypes, |
| 23794 | which can conflict with char $ac_func (); below. |
| 23795 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23796 | <limits.h> exists even on freestanding compilers. */ |
| 23797 | |
| 23798 | #ifdef __STDC__ |
| 23799 | # include <limits.h> |
| 23800 | #else |
| 23801 | # include <assert.h> |
| 23802 | #endif |
| 23803 | |
| 23804 | #undef $ac_func |
| 23805 | |
| 23806 | /* Override any GCC internal prototype to avoid an error. |
| 23807 | Use char because int might match the return type of a GCC |
| 23808 | builtin and then its argument prototype would still apply. */ |
| 23809 | #ifdef __cplusplus |
| 23810 | extern "C" |
| 23811 | #endif |
| 23812 | char $ac_func (); |
| 23813 | /* The GNU C library defines this for functions which it implements |
| 23814 | to always fail with ENOSYS. Some functions are actually named |
| 23815 | something starting with __ and the normal name is an alias. */ |
| 23816 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 23817 | choke me |
| 23818 | #endif |
| 23819 | |
| 23820 | int |
| 23821 | main () |
| 23822 | { |
| 23823 | return $ac_func (); |
| 23824 | ; |
| 23825 | return 0; |
| 23826 | } |
| 23827 | _ACEOF |
| 23828 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23829 | if { (ac_try="$ac_link" |
| 23830 | case "(($ac_try" in |
| 23831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23832 | *) ac_try_echo=$ac_try;; |
| 23833 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23835 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23836 | (eval "$ac_link") 2>conftest.er1 |
| 23837 | ac_status=$? |
| 23838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23839 | rm -f conftest.er1 |
| 23840 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23841 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23842 | (exit $ac_status); } && { |
| 23843 | test -z "$ac_c_werror_flag" || |
| 23844 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23845 | } && test -s conftest$ac_exeext && { |
| 23846 | test "$cross_compiling" = yes || |
| 23847 | $as_test_x conftest$ac_exeext |
| 23848 | }; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23849 | eval "$as_ac_var=yes" |
| 23850 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23851 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23853 | |
| 23854 | eval "$as_ac_var=no" |
| 23855 | fi |
| 23856 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23857 | rm -rf conftest.dSYM |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23858 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23859 | conftest$ac_exeext conftest.$ac_ext |
| 23860 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23861 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 23862 | $as_echo "$as_val"'` |
| 23863 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23864 | $as_echo "$ac_res" >&6; } |
| 23865 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 23866 | $as_echo "$as_val"'` |
| 23867 | if test "x$as_val" = x""yes; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23868 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23869 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23870 | _ACEOF |
| 23871 | |
| 23872 | fi |
| 23873 | done |
| 23874 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23875 | { $as_echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 23876 | $as_echo_n "checking whether isinf is declared... " >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23877 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23878 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23879 | else |
| 23880 | cat >conftest.$ac_ext <<_ACEOF |
| 23881 | /* confdefs.h. */ |
| 23882 | _ACEOF |
| 23883 | cat confdefs.h >>conftest.$ac_ext |
| 23884 | cat >>conftest.$ac_ext <<_ACEOF |
| 23885 | /* end confdefs.h. */ |
| 23886 | #include <math.h> |
| 23887 | |
| 23888 | int |
| 23889 | main () |
| 23890 | { |
| 23891 | #ifndef isinf |
| 23892 | (void) isinf; |
| 23893 | #endif |
| 23894 | |
| 23895 | ; |
| 23896 | return 0; |
| 23897 | } |
| 23898 | _ACEOF |
| 23899 | rm -f conftest.$ac_objext |
| 23900 | if { (ac_try="$ac_compile" |
| 23901 | case "(($ac_try" in |
| 23902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23903 | *) ac_try_echo=$ac_try;; |
| 23904 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23905 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23906 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23907 | (eval "$ac_compile") 2>conftest.er1 |
| 23908 | ac_status=$? |
| 23909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23910 | rm -f conftest.er1 |
| 23911 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23913 | (exit $ac_status); } && { |
| 23914 | test -z "$ac_c_werror_flag" || |
| 23915 | test ! -s conftest.err |
| 23916 | } && test -s conftest.$ac_objext; then |
| 23917 | ac_cv_have_decl_isinf=yes |
| 23918 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23919 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23921 | |
| 23922 | ac_cv_have_decl_isinf=no |
| 23923 | fi |
| 23924 | |
| 23925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23926 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23927 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 23928 | $as_echo "$ac_cv_have_decl_isinf" >&6; } |
| 23929 | if test "x$ac_cv_have_decl_isinf" = x""yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23930 | |
| 23931 | cat >>confdefs.h <<_ACEOF |
| 23932 | #define HAVE_DECL_ISINF 1 |
| 23933 | _ACEOF |
| 23934 | |
| 23935 | |
| 23936 | else |
| 23937 | cat >>confdefs.h <<_ACEOF |
| 23938 | #define HAVE_DECL_ISINF 0 |
| 23939 | _ACEOF |
| 23940 | |
| 23941 | |
| 23942 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23943 | { $as_echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 23944 | $as_echo_n "checking whether isnan is declared... " >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23945 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23946 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23947 | else |
| 23948 | cat >conftest.$ac_ext <<_ACEOF |
| 23949 | /* confdefs.h. */ |
| 23950 | _ACEOF |
| 23951 | cat confdefs.h >>conftest.$ac_ext |
| 23952 | cat >>conftest.$ac_ext <<_ACEOF |
| 23953 | /* end confdefs.h. */ |
| 23954 | #include <math.h> |
| 23955 | |
| 23956 | int |
| 23957 | main () |
| 23958 | { |
| 23959 | #ifndef isnan |
| 23960 | (void) isnan; |
| 23961 | #endif |
| 23962 | |
| 23963 | ; |
| 23964 | return 0; |
| 23965 | } |
| 23966 | _ACEOF |
| 23967 | rm -f conftest.$ac_objext |
| 23968 | if { (ac_try="$ac_compile" |
| 23969 | case "(($ac_try" in |
| 23970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23971 | *) ac_try_echo=$ac_try;; |
| 23972 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23974 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23975 | (eval "$ac_compile") 2>conftest.er1 |
| 23976 | ac_status=$? |
| 23977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23978 | rm -f conftest.er1 |
| 23979 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23980 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23981 | (exit $ac_status); } && { |
| 23982 | test -z "$ac_c_werror_flag" || |
| 23983 | test ! -s conftest.err |
| 23984 | } && test -s conftest.$ac_objext; then |
| 23985 | ac_cv_have_decl_isnan=yes |
| 23986 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23987 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23989 | |
| 23990 | ac_cv_have_decl_isnan=no |
| 23991 | fi |
| 23992 | |
| 23993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23994 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 23995 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 23996 | $as_echo "$ac_cv_have_decl_isnan" >&6; } |
| 23997 | if test "x$ac_cv_have_decl_isnan" = x""yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23998 | |
| 23999 | cat >>confdefs.h <<_ACEOF |
| 24000 | #define HAVE_DECL_ISNAN 1 |
| 24001 | _ACEOF |
| 24002 | |
| 24003 | |
| 24004 | else |
| 24005 | cat >>confdefs.h <<_ACEOF |
| 24006 | #define HAVE_DECL_ISNAN 0 |
| 24007 | _ACEOF |
| 24008 | |
| 24009 | |
| 24010 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24011 | { $as_echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 24012 | $as_echo_n "checking whether isfinite is declared... " >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24013 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24014 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24015 | else |
| 24016 | cat >conftest.$ac_ext <<_ACEOF |
| 24017 | /* confdefs.h. */ |
| 24018 | _ACEOF |
| 24019 | cat confdefs.h >>conftest.$ac_ext |
| 24020 | cat >>conftest.$ac_ext <<_ACEOF |
| 24021 | /* end confdefs.h. */ |
| 24022 | #include <math.h> |
| 24023 | |
| 24024 | int |
| 24025 | main () |
| 24026 | { |
| 24027 | #ifndef isfinite |
| 24028 | (void) isfinite; |
| 24029 | #endif |
| 24030 | |
| 24031 | ; |
| 24032 | return 0; |
| 24033 | } |
| 24034 | _ACEOF |
| 24035 | rm -f conftest.$ac_objext |
| 24036 | if { (ac_try="$ac_compile" |
| 24037 | case "(($ac_try" in |
| 24038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24039 | *) ac_try_echo=$ac_try;; |
| 24040 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24041 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24042 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24043 | (eval "$ac_compile") 2>conftest.er1 |
| 24044 | ac_status=$? |
| 24045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24046 | rm -f conftest.er1 |
| 24047 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24049 | (exit $ac_status); } && { |
| 24050 | test -z "$ac_c_werror_flag" || |
| 24051 | test ! -s conftest.err |
| 24052 | } && test -s conftest.$ac_objext; then |
| 24053 | ac_cv_have_decl_isfinite=yes |
| 24054 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24055 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24057 | |
| 24058 | ac_cv_have_decl_isfinite=no |
| 24059 | fi |
| 24060 | |
| 24061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24062 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24063 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 24064 | $as_echo "$ac_cv_have_decl_isfinite" >&6; } |
| 24065 | if test "x$ac_cv_have_decl_isfinite" = x""yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24066 | |
| 24067 | cat >>confdefs.h <<_ACEOF |
| 24068 | #define HAVE_DECL_ISFINITE 1 |
| 24069 | _ACEOF |
| 24070 | |
| 24071 | |
| 24072 | else |
| 24073 | cat >>confdefs.h <<_ACEOF |
| 24074 | #define HAVE_DECL_ISFINITE 0 |
| 24075 | _ACEOF |
| 24076 | |
| 24077 | |
| 24078 | fi |
| 24079 | |
| 24080 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24081 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 24082 | LIBS=$LIBS_SAVE |
| 24083 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24084 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24085 | { $as_echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 24086 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24087 | # Check whether --enable-big-digits was given. |
| 24088 | if test "${enable_big_digits+set}" = set; then |
| 24089 | enableval=$enable_big_digits; case $enable_big_digits in |
| 24090 | yes) |
| 24091 | enable_big_digits=30 ;; |
| 24092 | no) |
| 24093 | enable_big_digits=15 ;; |
| 24094 | 15|30) |
| 24095 | ;; |
| 24096 | *) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24097 | { { $as_echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 24098 | $as_echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;} |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24099 | { (exit 1); exit 1; }; } ;; |
| 24100 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24101 | { $as_echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 24102 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24103 | |
| 24104 | cat >>confdefs.h <<_ACEOF |
| 24105 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 24106 | _ACEOF |
| 24107 | |
| 24108 | |
| 24109 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24110 | { $as_echo "$as_me:$LINENO: result: no value specified" >&5 |
| 24111 | $as_echo "no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24112 | fi |
| 24113 | |
| 24114 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24115 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24116 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24117 | { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24118 | $as_echo_n "checking for wchar.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24119 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24120 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24121 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24122 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24123 | $as_echo "$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24125 | # Is the header compilable? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24126 | { $as_echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 24127 | $as_echo_n "checking wchar.h usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24128 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24129 | /* confdefs.h. */ |
| 24130 | _ACEOF |
| 24131 | cat confdefs.h >>conftest.$ac_ext |
| 24132 | cat >>conftest.$ac_ext <<_ACEOF |
| 24133 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24134 | $ac_includes_default |
| 24135 | #include <wchar.h> |
| 24136 | _ACEOF |
| 24137 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24138 | if { (ac_try="$ac_compile" |
| 24139 | case "(($ac_try" in |
| 24140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24141 | *) ac_try_echo=$ac_try;; |
| 24142 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24143 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24144 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24145 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24146 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24148 | rm -f conftest.er1 |
| 24149 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24150 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24151 | (exit $ac_status); } && { |
| 24152 | test -z "$ac_c_werror_flag" || |
| 24153 | test ! -s conftest.err |
| 24154 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24155 | ac_header_compiler=yes |
| 24156 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24157 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24159 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24160 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24161 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24162 | |
| 24163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24164 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24165 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24166 | |
| 24167 | # Is the header present? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24168 | { $as_echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 24169 | $as_echo_n "checking wchar.h presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24171 | /* confdefs.h. */ |
| 24172 | _ACEOF |
| 24173 | cat confdefs.h >>conftest.$ac_ext |
| 24174 | cat >>conftest.$ac_ext <<_ACEOF |
| 24175 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24176 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24177 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24178 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24179 | case "(($ac_try" in |
| 24180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24181 | *) ac_try_echo=$ac_try;; |
| 24182 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24183 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24184 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24185 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24186 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24187 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24188 | rm -f conftest.er1 |
| 24189 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24190 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24191 | (exit $ac_status); } >/dev/null && { |
| 24192 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24193 | test ! -s conftest.err |
| 24194 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24195 | ac_header_preproc=yes |
| 24196 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24197 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24199 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24200 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24201 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24203 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24204 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24205 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24206 | |
| 24207 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24208 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 24209 | yes:no: ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24210 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24211 | $as_echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24212 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 24213 | $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] | 24214 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24215 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24216 | no:yes:* ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24217 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 24218 | $as_echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 24219 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 24220 | $as_echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 24221 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 24222 | $as_echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 24223 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 24224 | $as_echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24225 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 24226 | $as_echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 24227 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 24228 | $as_echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24229 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 24230 | ## -------------------------------------- ## |
| 24231 | ## Report this to http://bugs.python.org/ ## |
| 24232 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24233 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24234 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24235 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24236 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24237 | { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24238 | $as_echo_n "checking for wchar.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24239 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24240 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24241 | else |
| 24242 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24243 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24244 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24245 | $as_echo "$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24246 | |
| 24247 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24248 | 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] | 24249 | |
| 24250 | |
| 24251 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24252 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24253 | _ACEOF |
| 24254 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 24255 | wchar_h="yes" |
| 24256 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24258 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24259 | |
| 24260 | fi |
| 24261 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24263 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24264 | # determine wchar_t size |
| 24265 | if test "$wchar_h" = yes |
| 24266 | then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24267 | # The cast to long int works around a bug in the HP C Compiler |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24268 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24269 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24270 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24271 | { $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 24272 | $as_echo_n "checking size of wchar_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24273 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24274 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24275 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24276 | if test "$cross_compiling" = yes; then |
| 24277 | # Depending upon the size, compute the lo and hi bounds. |
| 24278 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24279 | /* confdefs.h. */ |
| 24280 | _ACEOF |
| 24281 | cat confdefs.h >>conftest.$ac_ext |
| 24282 | cat >>conftest.$ac_ext <<_ACEOF |
| 24283 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24284 | #include <wchar.h> |
| 24285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24286 | int |
| 24287 | main () |
| 24288 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24289 | 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] | 24290 | test_array [0] = 0 |
| 24291 | |
| 24292 | ; |
| 24293 | return 0; |
| 24294 | } |
| 24295 | _ACEOF |
| 24296 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24297 | if { (ac_try="$ac_compile" |
| 24298 | case "(($ac_try" in |
| 24299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24300 | *) ac_try_echo=$ac_try;; |
| 24301 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24302 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24303 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24304 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24305 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24307 | rm -f conftest.er1 |
| 24308 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24310 | (exit $ac_status); } && { |
| 24311 | test -z "$ac_c_werror_flag" || |
| 24312 | test ! -s conftest.err |
| 24313 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24314 | ac_lo=0 ac_mid=0 |
| 24315 | while :; do |
| 24316 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24317 | /* confdefs.h. */ |
| 24318 | _ACEOF |
| 24319 | cat confdefs.h >>conftest.$ac_ext |
| 24320 | cat >>conftest.$ac_ext <<_ACEOF |
| 24321 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24322 | #include <wchar.h> |
| 24323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24324 | int |
| 24325 | main () |
| 24326 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24327 | 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] | 24328 | test_array [0] = 0 |
| 24329 | |
| 24330 | ; |
| 24331 | return 0; |
| 24332 | } |
| 24333 | _ACEOF |
| 24334 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24335 | if { (ac_try="$ac_compile" |
| 24336 | case "(($ac_try" in |
| 24337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24338 | *) ac_try_echo=$ac_try;; |
| 24339 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24340 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24341 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24342 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24343 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24345 | rm -f conftest.er1 |
| 24346 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24347 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24348 | (exit $ac_status); } && { |
| 24349 | test -z "$ac_c_werror_flag" || |
| 24350 | test ! -s conftest.err |
| 24351 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24352 | ac_hi=$ac_mid; break |
| 24353 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24354 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24356 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24357 | ac_lo=`expr $ac_mid + 1` |
| 24358 | if test $ac_lo -le $ac_mid; then |
| 24359 | ac_lo= ac_hi= |
| 24360 | break |
| 24361 | fi |
| 24362 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24363 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24364 | |
| 24365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24366 | done |
| 24367 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24368 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24370 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24371 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24372 | /* confdefs.h. */ |
| 24373 | _ACEOF |
| 24374 | cat confdefs.h >>conftest.$ac_ext |
| 24375 | cat >>conftest.$ac_ext <<_ACEOF |
| 24376 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24377 | #include <wchar.h> |
| 24378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24379 | int |
| 24380 | main () |
| 24381 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24382 | 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] | 24383 | test_array [0] = 0 |
| 24384 | |
| 24385 | ; |
| 24386 | return 0; |
| 24387 | } |
| 24388 | _ACEOF |
| 24389 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24390 | if { (ac_try="$ac_compile" |
| 24391 | case "(($ac_try" in |
| 24392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24393 | *) ac_try_echo=$ac_try;; |
| 24394 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24396 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24397 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24398 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24400 | rm -f conftest.er1 |
| 24401 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24402 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24403 | (exit $ac_status); } && { |
| 24404 | test -z "$ac_c_werror_flag" || |
| 24405 | test ! -s conftest.err |
| 24406 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24407 | ac_hi=-1 ac_mid=-1 |
| 24408 | while :; do |
| 24409 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24410 | /* confdefs.h. */ |
| 24411 | _ACEOF |
| 24412 | cat confdefs.h >>conftest.$ac_ext |
| 24413 | cat >>conftest.$ac_ext <<_ACEOF |
| 24414 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24415 | #include <wchar.h> |
| 24416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24417 | int |
| 24418 | main () |
| 24419 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24420 | 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] | 24421 | test_array [0] = 0 |
| 24422 | |
| 24423 | ; |
| 24424 | return 0; |
| 24425 | } |
| 24426 | _ACEOF |
| 24427 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24428 | if { (ac_try="$ac_compile" |
| 24429 | case "(($ac_try" in |
| 24430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24431 | *) ac_try_echo=$ac_try;; |
| 24432 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24433 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24434 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24435 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24436 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24438 | rm -f conftest.er1 |
| 24439 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24440 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24441 | (exit $ac_status); } && { |
| 24442 | test -z "$ac_c_werror_flag" || |
| 24443 | test ! -s conftest.err |
| 24444 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24445 | ac_lo=$ac_mid; break |
| 24446 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24447 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24449 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24450 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 24451 | if test $ac_mid -le $ac_hi; then |
| 24452 | ac_lo= ac_hi= |
| 24453 | break |
| 24454 | fi |
| 24455 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24456 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24457 | |
| 24458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24459 | done |
| 24460 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24461 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24463 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24464 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24465 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24466 | |
| 24467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24468 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24469 | |
| 24470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24471 | # Binary search between lo and hi bounds. |
| 24472 | while test "x$ac_lo" != "x$ac_hi"; do |
| 24473 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 24474 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24475 | /* confdefs.h. */ |
| 24476 | _ACEOF |
| 24477 | cat confdefs.h >>conftest.$ac_ext |
| 24478 | cat >>conftest.$ac_ext <<_ACEOF |
| 24479 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24480 | #include <wchar.h> |
| 24481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24482 | int |
| 24483 | main () |
| 24484 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24485 | 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] | 24486 | test_array [0] = 0 |
| 24487 | |
| 24488 | ; |
| 24489 | return 0; |
| 24490 | } |
| 24491 | _ACEOF |
| 24492 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24493 | if { (ac_try="$ac_compile" |
| 24494 | case "(($ac_try" in |
| 24495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24496 | *) ac_try_echo=$ac_try;; |
| 24497 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24499 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24500 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24501 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24503 | rm -f conftest.er1 |
| 24504 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24506 | (exit $ac_status); } && { |
| 24507 | test -z "$ac_c_werror_flag" || |
| 24508 | test ! -s conftest.err |
| 24509 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24510 | ac_hi=$ac_mid |
| 24511 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24512 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24514 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24515 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24516 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24517 | |
| 24518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24519 | done |
| 24520 | case $ac_lo in |
| 24521 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24522 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24523 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 24524 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24525 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24526 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24527 | $as_echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24528 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24529 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24530 | else |
| 24531 | ac_cv_sizeof_wchar_t=0 |
| 24532 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24533 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24534 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24535 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24536 | /* confdefs.h. */ |
| 24537 | _ACEOF |
| 24538 | cat confdefs.h >>conftest.$ac_ext |
| 24539 | cat >>conftest.$ac_ext <<_ACEOF |
| 24540 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24541 | #include <wchar.h> |
| 24542 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24543 | static long int longval () { return (long int) (sizeof (wchar_t)); } |
| 24544 | static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24545 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24546 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24547 | int |
| 24548 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24549 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24550 | |
| 24551 | FILE *f = fopen ("conftest.val", "w"); |
| 24552 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24553 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24554 | if (((long int) (sizeof (wchar_t))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24555 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24556 | long int i = longval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24557 | if (i != ((long int) (sizeof (wchar_t)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24558 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24559 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24560 | } |
| 24561 | else |
| 24562 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24563 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24564 | if (i != ((long int) (sizeof (wchar_t)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24565 | return 1; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24566 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24567 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24568 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 24569 | on some platforms. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24570 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24571 | |
| 24572 | ; |
| 24573 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24574 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24575 | _ACEOF |
| 24576 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24577 | if { (ac_try="$ac_link" |
| 24578 | case "(($ac_try" in |
| 24579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24580 | *) ac_try_echo=$ac_try;; |
| 24581 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24582 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24583 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24584 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24585 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24587 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24588 | { (case "(($ac_try" in |
| 24589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24590 | *) ac_try_echo=$ac_try;; |
| 24591 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24593 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24594 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24595 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24597 | (exit $ac_status); }; }; then |
| 24598 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24599 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24600 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 24601 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24604 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24605 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24606 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 24607 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24608 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24609 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24610 | $as_echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24611 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24612 | { (exit 77); exit 77; }; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24613 | else |
| 24614 | ac_cv_sizeof_wchar_t=0 |
| 24615 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24616 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24617 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24618 | 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] | 24619 | fi |
| 24620 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24621 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24622 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 24623 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24624 | |
| 24625 | |
| 24626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24627 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24628 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24629 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24630 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24631 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24632 | fi |
| 24633 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24634 | { $as_echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 24635 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24636 | have_ucs4_tcl=no |
| 24637 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24638 | /* confdefs.h. */ |
| 24639 | _ACEOF |
| 24640 | cat confdefs.h >>conftest.$ac_ext |
| 24641 | cat >>conftest.$ac_ext <<_ACEOF |
| 24642 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24643 | |
| 24644 | #include <tcl.h> |
| 24645 | #if TCL_UTF_MAX != 6 |
| 24646 | # error "NOT UCS4_TCL" |
| 24647 | #endif |
| 24648 | int |
| 24649 | main () |
| 24650 | { |
| 24651 | |
| 24652 | ; |
| 24653 | return 0; |
| 24654 | } |
| 24655 | _ACEOF |
| 24656 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24657 | if { (ac_try="$ac_compile" |
| 24658 | case "(($ac_try" in |
| 24659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24660 | *) ac_try_echo=$ac_try;; |
| 24661 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24663 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24664 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24665 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24667 | rm -f conftest.er1 |
| 24668 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24670 | (exit $ac_status); } && { |
| 24671 | test -z "$ac_c_werror_flag" || |
| 24672 | test ! -s conftest.err |
| 24673 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24674 | |
| 24675 | |
| 24676 | cat >>confdefs.h <<\_ACEOF |
| 24677 | #define HAVE_UCS4_TCL 1 |
| 24678 | _ACEOF |
| 24679 | |
| 24680 | have_ucs4_tcl=yes |
| 24681 | |
| 24682 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24683 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24685 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24686 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24687 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24688 | |
| 24689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24690 | { $as_echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 24691 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24692 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24693 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24694 | if test "$wchar_h" = yes |
| 24695 | then |
| 24696 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24697 | { $as_echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 24698 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24699 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24700 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24701 | else |
| 24702 | |
| 24703 | if test "$cross_compiling" = yes; then |
| 24704 | ac_cv_wchar_t_signed=yes |
| 24705 | else |
| 24706 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24707 | /* confdefs.h. */ |
| 24708 | _ACEOF |
| 24709 | cat confdefs.h >>conftest.$ac_ext |
| 24710 | cat >>conftest.$ac_ext <<_ACEOF |
| 24711 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24712 | |
| 24713 | #include <wchar.h> |
| 24714 | int main() |
| 24715 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 24716 | /* Success: exit code 0 */ |
| 24717 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24718 | } |
| 24719 | |
| 24720 | _ACEOF |
| 24721 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24722 | if { (ac_try="$ac_link" |
| 24723 | case "(($ac_try" in |
| 24724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24725 | *) ac_try_echo=$ac_try;; |
| 24726 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24728 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24729 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24730 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24732 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24733 | { (case "(($ac_try" in |
| 24734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24735 | *) ac_try_echo=$ac_try;; |
| 24736 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24738 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24739 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24740 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24742 | (exit $ac_status); }; }; then |
| 24743 | ac_cv_wchar_t_signed=yes |
| 24744 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24745 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 24746 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24748 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24749 | ( exit $ac_status ) |
| 24750 | ac_cv_wchar_t_signed=no |
| 24751 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24752 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24753 | 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] | 24754 | fi |
| 24755 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24756 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24757 | fi |
| 24758 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24759 | { $as_echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 24760 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24761 | fi |
| 24762 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24763 | { $as_echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 24764 | $as_echo_n "checking what type to use for unicode... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24765 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24766 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24767 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24768 | else |
| 24769 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24770 | fi |
| 24771 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24772 | |
| 24773 | if test $enable_unicode = yes |
| 24774 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 24775 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24776 | case "$have_ucs4_tcl" in |
| 24777 | yes) enable_unicode="ucs4" |
| 24778 | ;; |
| 24779 | *) enable_unicode="ucs2" |
| 24780 | ;; |
| 24781 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24782 | fi |
| 24783 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 24784 | |
| 24785 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24786 | case "$enable_unicode" in |
| 24787 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24788 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24789 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24790 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24791 | |
| 24792 | ;; |
| 24793 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24794 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24795 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24796 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24797 | |
| 24798 | ;; |
| 24799 | esac |
| 24800 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24802 | |
| 24803 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 24804 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24805 | if test "$enable_unicode" = "no" |
| 24806 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 24807 | UNICODE_OBJS="" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24808 | { $as_echo "$as_me:$LINENO: result: not used" >&5 |
| 24809 | $as_echo "not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24810 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 24811 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24812 | |
| 24813 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24814 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24815 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24816 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24817 | |
| 24818 | # wchar_t is only usable if it maps to an unsigned type |
| 24819 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 24820 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24821 | then |
| 24822 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24823 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24824 | cat >>confdefs.h <<\_ACEOF |
| 24825 | #define HAVE_USABLE_WCHAR_T 1 |
| 24826 | _ACEOF |
| 24827 | |
| 24828 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24829 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24830 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24831 | |
| 24832 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 24833 | then |
| 24834 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24835 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24836 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24837 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24838 | |
| 24839 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 24840 | then |
| 24841 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24842 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24843 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24844 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24845 | |
| 24846 | else |
| 24847 | PY_UNICODE_TYPE="no type found" |
| 24848 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24849 | { $as_echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 24850 | $as_echo "$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24851 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24852 | |
| 24853 | # check for endianness |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24854 | |
| 24855 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 24856 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24857 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24858 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24859 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24860 | ac_cv_c_bigendian=unknown |
| 24861 | # See if we're dealing with a universal compiler. |
| 24862 | cat >conftest.$ac_ext <<_ACEOF |
| 24863 | /* confdefs.h. */ |
| 24864 | _ACEOF |
| 24865 | cat confdefs.h >>conftest.$ac_ext |
| 24866 | cat >>conftest.$ac_ext <<_ACEOF |
| 24867 | /* end confdefs.h. */ |
| 24868 | #ifndef __APPLE_CC__ |
| 24869 | not a universal capable compiler |
| 24870 | #endif |
| 24871 | typedef int dummy; |
| 24872 | |
| 24873 | _ACEOF |
| 24874 | rm -f conftest.$ac_objext |
| 24875 | if { (ac_try="$ac_compile" |
| 24876 | case "(($ac_try" in |
| 24877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24878 | *) ac_try_echo=$ac_try;; |
| 24879 | esac |
| 24880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24881 | $as_echo "$ac_try_echo") >&5 |
| 24882 | (eval "$ac_compile") 2>conftest.er1 |
| 24883 | ac_status=$? |
| 24884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24885 | rm -f conftest.er1 |
| 24886 | cat conftest.err >&5 |
| 24887 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24888 | (exit $ac_status); } && { |
| 24889 | test -z "$ac_c_werror_flag" || |
| 24890 | test ! -s conftest.err |
| 24891 | } && test -s conftest.$ac_objext; then |
| 24892 | |
| 24893 | # Check for potential -arch flags. It is not universal unless |
| 24894 | # there are some -arch flags. Note that *ppc* also matches |
| 24895 | # ppc64. This check is also rather less than ideal. |
| 24896 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( |
| 24897 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; |
| 24898 | esac |
| 24899 | else |
| 24900 | $as_echo "$as_me: failed program was:" >&5 |
| 24901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24902 | |
| 24903 | |
| 24904 | fi |
| 24905 | |
| 24906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24907 | if test $ac_cv_c_bigendian = unknown; then |
| 24908 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 24909 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24910 | /* confdefs.h. */ |
| 24911 | _ACEOF |
| 24912 | cat confdefs.h >>conftest.$ac_ext |
| 24913 | cat >>conftest.$ac_ext <<_ACEOF |
| 24914 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24915 | #include <sys/types.h> |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24916 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24918 | int |
| 24919 | main () |
| 24920 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24921 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 24922 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 24923 | && LITTLE_ENDIAN) |
| 24924 | bogus endian macros |
| 24925 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24926 | |
| 24927 | ; |
| 24928 | return 0; |
| 24929 | } |
| 24930 | _ACEOF |
| 24931 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24932 | if { (ac_try="$ac_compile" |
| 24933 | case "(($ac_try" in |
| 24934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24935 | *) ac_try_echo=$ac_try;; |
| 24936 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24937 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24938 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24939 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24940 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24942 | rm -f conftest.er1 |
| 24943 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24944 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24945 | (exit $ac_status); } && { |
| 24946 | test -z "$ac_c_werror_flag" || |
| 24947 | test ! -s conftest.err |
| 24948 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24949 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24950 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24951 | /* confdefs.h. */ |
| 24952 | _ACEOF |
| 24953 | cat confdefs.h >>conftest.$ac_ext |
| 24954 | cat >>conftest.$ac_ext <<_ACEOF |
| 24955 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24956 | #include <sys/types.h> |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24957 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24959 | int |
| 24960 | main () |
| 24961 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24962 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24963 | not big endian |
| 24964 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24965 | |
| 24966 | ; |
| 24967 | return 0; |
| 24968 | } |
| 24969 | _ACEOF |
| 24970 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24971 | if { (ac_try="$ac_compile" |
| 24972 | case "(($ac_try" in |
| 24973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24974 | *) ac_try_echo=$ac_try;; |
| 24975 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24976 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24977 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24978 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24979 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24981 | rm -f conftest.er1 |
| 24982 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24984 | (exit $ac_status); } && { |
| 24985 | test -z "$ac_c_werror_flag" || |
| 24986 | test ! -s conftest.err |
| 24987 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24988 | ac_cv_c_bigendian=yes |
| 24989 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24990 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24992 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24993 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24994 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24995 | |
| 24996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24997 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 24998 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25000 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25001 | |
| 25002 | fi |
| 25003 | |
| 25004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25005 | fi |
| 25006 | if test $ac_cv_c_bigendian = unknown; then |
| 25007 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 25008 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25009 | /* confdefs.h. */ |
| 25010 | _ACEOF |
| 25011 | cat confdefs.h >>conftest.$ac_ext |
| 25012 | cat >>conftest.$ac_ext <<_ACEOF |
| 25013 | /* end confdefs.h. */ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25014 | #include <limits.h> |
| 25015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25016 | int |
| 25017 | main () |
| 25018 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25019 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 25020 | bogus endian macros |
| 25021 | #endif |
| 25022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25023 | ; |
| 25024 | return 0; |
| 25025 | } |
| 25026 | _ACEOF |
| 25027 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25028 | if { (ac_try="$ac_compile" |
| 25029 | case "(($ac_try" in |
| 25030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25031 | *) ac_try_echo=$ac_try;; |
| 25032 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25033 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25034 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25035 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25036 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25038 | rm -f conftest.er1 |
| 25039 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25040 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25041 | (exit $ac_status); } && { |
| 25042 | test -z "$ac_c_werror_flag" || |
| 25043 | test ! -s conftest.err |
| 25044 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25045 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 25046 | cat >conftest.$ac_ext <<_ACEOF |
| 25047 | /* confdefs.h. */ |
| 25048 | _ACEOF |
| 25049 | cat confdefs.h >>conftest.$ac_ext |
| 25050 | cat >>conftest.$ac_ext <<_ACEOF |
| 25051 | /* end confdefs.h. */ |
| 25052 | #include <limits.h> |
| 25053 | |
| 25054 | int |
| 25055 | main () |
| 25056 | { |
| 25057 | #ifndef _BIG_ENDIAN |
| 25058 | not big endian |
| 25059 | #endif |
| 25060 | |
| 25061 | ; |
| 25062 | return 0; |
| 25063 | } |
| 25064 | _ACEOF |
| 25065 | rm -f conftest.$ac_objext |
| 25066 | if { (ac_try="$ac_compile" |
| 25067 | case "(($ac_try" in |
| 25068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25069 | *) ac_try_echo=$ac_try;; |
| 25070 | esac |
| 25071 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25072 | $as_echo "$ac_try_echo") >&5 |
| 25073 | (eval "$ac_compile") 2>conftest.er1 |
| 25074 | ac_status=$? |
| 25075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25076 | rm -f conftest.er1 |
| 25077 | cat conftest.err >&5 |
| 25078 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25079 | (exit $ac_status); } && { |
| 25080 | test -z "$ac_c_werror_flag" || |
| 25081 | test ! -s conftest.err |
| 25082 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25083 | ac_cv_c_bigendian=yes |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 25084 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25085 | $as_echo "$as_me: failed program was:" >&5 |
| 25086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25087 | |
| 25088 | ac_cv_c_bigendian=no |
| 25089 | fi |
| 25090 | |
| 25091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25092 | else |
| 25093 | $as_echo "$as_me: failed program was:" >&5 |
| 25094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25095 | |
| 25096 | |
| 25097 | fi |
| 25098 | |
| 25099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25100 | fi |
| 25101 | if test $ac_cv_c_bigendian = unknown; then |
| 25102 | # Compile a test program. |
| 25103 | if test "$cross_compiling" = yes; then |
| 25104 | # Try to guess by grepping values from an object file. |
| 25105 | cat >conftest.$ac_ext <<_ACEOF |
| 25106 | /* confdefs.h. */ |
| 25107 | _ACEOF |
| 25108 | cat confdefs.h >>conftest.$ac_ext |
| 25109 | cat >>conftest.$ac_ext <<_ACEOF |
| 25110 | /* end confdefs.h. */ |
| 25111 | short int ascii_mm[] = |
| 25112 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 25113 | short int ascii_ii[] = |
| 25114 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 25115 | int use_ascii (int i) { |
| 25116 | return ascii_mm[i] + ascii_ii[i]; |
| 25117 | } |
| 25118 | short int ebcdic_ii[] = |
| 25119 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 25120 | short int ebcdic_mm[] = |
| 25121 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 25122 | int use_ebcdic (int i) { |
| 25123 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 25124 | } |
| 25125 | extern int foo; |
| 25126 | |
| 25127 | int |
| 25128 | main () |
| 25129 | { |
| 25130 | return use_ascii (foo) == use_ebcdic (foo); |
| 25131 | ; |
| 25132 | return 0; |
| 25133 | } |
| 25134 | _ACEOF |
| 25135 | rm -f conftest.$ac_objext |
| 25136 | if { (ac_try="$ac_compile" |
| 25137 | case "(($ac_try" in |
| 25138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25139 | *) ac_try_echo=$ac_try;; |
| 25140 | esac |
| 25141 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25142 | $as_echo "$ac_try_echo") >&5 |
| 25143 | (eval "$ac_compile") 2>conftest.er1 |
| 25144 | ac_status=$? |
| 25145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25146 | rm -f conftest.er1 |
| 25147 | cat conftest.err >&5 |
| 25148 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25149 | (exit $ac_status); } && { |
| 25150 | test -z "$ac_c_werror_flag" || |
| 25151 | test ! -s conftest.err |
| 25152 | } && test -s conftest.$ac_objext; then |
| 25153 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 25154 | ac_cv_c_bigendian=yes |
| 25155 | fi |
| 25156 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 25157 | if test "$ac_cv_c_bigendian" = unknown; then |
| 25158 | ac_cv_c_bigendian=no |
| 25159 | else |
| 25160 | # finding both strings is unlikely to happen, but who knows? |
| 25161 | ac_cv_c_bigendian=unknown |
| 25162 | fi |
| 25163 | fi |
| 25164 | else |
| 25165 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25167 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25168 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25169 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25170 | |
| 25171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25172 | else |
| 25173 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25174 | /* confdefs.h. */ |
| 25175 | _ACEOF |
| 25176 | cat confdefs.h >>conftest.$ac_ext |
| 25177 | cat >>conftest.$ac_ext <<_ACEOF |
| 25178 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25179 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25180 | int |
| 25181 | main () |
| 25182 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25183 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25184 | /* Are we little or big endian? From Harbison&Steele. */ |
| 25185 | union |
| 25186 | { |
| 25187 | long int l; |
| 25188 | char c[sizeof (long int)]; |
| 25189 | } u; |
| 25190 | u.l = 1; |
| 25191 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25192 | |
| 25193 | ; |
| 25194 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25195 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25196 | _ACEOF |
| 25197 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25198 | if { (ac_try="$ac_link" |
| 25199 | case "(($ac_try" in |
| 25200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25201 | *) ac_try_echo=$ac_try;; |
| 25202 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25203 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25204 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25205 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25206 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25207 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25208 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25209 | { (case "(($ac_try" in |
| 25210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25211 | *) ac_try_echo=$ac_try;; |
| 25212 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25213 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25214 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25215 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25216 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25217 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25218 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25219 | ac_cv_c_bigendian=no |
| 25220 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25221 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 25222 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25225 | ( exit $ac_status ) |
| 25226 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25227 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25228 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25229 | 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] | 25230 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25231 | |
| 25232 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25234 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25235 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 25236 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 25237 | case $ac_cv_c_bigendian in #( |
| 25238 | yes) |
| 25239 | cat >>confdefs.h <<\_ACEOF |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 25240 | #define WORDS_BIGENDIAN 1 |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 25241 | _ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25242 | ;; #( |
| 25243 | no) |
| 25244 | ;; #( |
| 25245 | universal) |
| 25246 | |
| 25247 | cat >>confdefs.h <<\_ACEOF |
| 25248 | #define AC_APPLE_UNIVERSAL_BUILD 1 |
| 25249 | _ACEOF |
| 25250 | |
| 25251 | ;; #( |
| 25252 | *) |
| 25253 | { { $as_echo "$as_me:$LINENO: error: unknown endianness |
| 25254 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 25255 | $as_echo "$as_me: error: unknown endianness |
| 25256 | 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] | 25257 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25258 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25259 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25260 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25261 | # Check whether right shifting a negative integer extends the sign bit |
| 25262 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25263 | { $as_echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 25264 | $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] | 25265 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25266 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25267 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25268 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25269 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25270 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25271 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25272 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25273 | /* confdefs.h. */ |
| 25274 | _ACEOF |
| 25275 | cat confdefs.h >>conftest.$ac_ext |
| 25276 | cat >>conftest.$ac_ext <<_ACEOF |
| 25277 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25278 | |
| 25279 | int main() |
| 25280 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25281 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25282 | } |
| 25283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25284 | _ACEOF |
| 25285 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25286 | if { (ac_try="$ac_link" |
| 25287 | case "(($ac_try" in |
| 25288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25289 | *) ac_try_echo=$ac_try;; |
| 25290 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25292 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25293 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25294 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25295 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25296 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25297 | { (case "(($ac_try" in |
| 25298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25299 | *) ac_try_echo=$ac_try;; |
| 25300 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25302 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25303 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25304 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25306 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25307 | ac_cv_rshift_extends_sign=yes |
| 25308 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25309 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 25310 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25312 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25313 | ( exit $ac_status ) |
| 25314 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25315 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25316 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25317 | 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] | 25318 | fi |
| 25319 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25320 | |
| 25321 | fi |
| 25322 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25323 | { $as_echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 25324 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25325 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25326 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25327 | |
| 25328 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25329 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25330 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25331 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25332 | fi |
| 25333 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25334 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25335 | { $as_echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 25336 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25337 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25338 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25340 | |
| 25341 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25342 | /* confdefs.h. */ |
| 25343 | _ACEOF |
| 25344 | cat confdefs.h >>conftest.$ac_ext |
| 25345 | cat >>conftest.$ac_ext <<_ACEOF |
| 25346 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25347 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25348 | int |
| 25349 | main () |
| 25350 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25351 | |
| 25352 | FILE *f = fopen("/dev/null", "r"); |
| 25353 | flockfile(f); |
| 25354 | getc_unlocked(f); |
| 25355 | funlockfile(f); |
| 25356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25357 | ; |
| 25358 | return 0; |
| 25359 | } |
| 25360 | _ACEOF |
| 25361 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25362 | if { (ac_try="$ac_link" |
| 25363 | case "(($ac_try" in |
| 25364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25365 | *) ac_try_echo=$ac_try;; |
| 25366 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25367 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25368 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25369 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25370 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25372 | rm -f conftest.er1 |
| 25373 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25374 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25375 | (exit $ac_status); } && { |
| 25376 | test -z "$ac_c_werror_flag" || |
| 25377 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25378 | } && test -s conftest$ac_exeext && { |
| 25379 | test "$cross_compiling" = yes || |
| 25380 | $as_test_x conftest$ac_exeext |
| 25381 | }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25382 | ac_cv_have_getc_unlocked=yes |
| 25383 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25384 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25386 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25387 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25388 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25389 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25390 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25391 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25392 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25393 | fi |
| 25394 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25395 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 25396 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25397 | if test "$ac_cv_have_getc_unlocked" = yes |
| 25398 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25399 | |
| 25400 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25401 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25402 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25403 | |
| 25404 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25405 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25406 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 25407 | # save the value of LIBS so we don't actually link Python with readline |
| 25408 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25409 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25410 | # On some systems we need to link readline to a termcap compatible |
| 25411 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 25412 | # with setup.py. |
| 25413 | py_cv_lib_readline=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25414 | { $as_echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 25415 | $as_echo_n "checking how to link readline libs... " >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25416 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 25417 | if test -z "$py_libtermcap"; then |
| 25418 | READLINE_LIBS="-lreadline" |
| 25419 | else |
| 25420 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 25421 | fi |
| 25422 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 25423 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25424 | /* confdefs.h. */ |
| 25425 | _ACEOF |
| 25426 | cat confdefs.h >>conftest.$ac_ext |
| 25427 | cat >>conftest.$ac_ext <<_ACEOF |
| 25428 | /* end confdefs.h. */ |
| 25429 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25430 | /* Override any GCC internal prototype to avoid an error. |
| 25431 | Use char because int might match the return type of a GCC |
| 25432 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25433 | #ifdef __cplusplus |
| 25434 | extern "C" |
| 25435 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25436 | char readline (); |
| 25437 | int |
| 25438 | main () |
| 25439 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25440 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25441 | ; |
| 25442 | return 0; |
| 25443 | } |
| 25444 | _ACEOF |
| 25445 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25446 | if { (ac_try="$ac_link" |
| 25447 | case "(($ac_try" in |
| 25448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25449 | *) ac_try_echo=$ac_try;; |
| 25450 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25452 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25453 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25454 | ac_status=$? |
| 25455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25456 | rm -f conftest.er1 |
| 25457 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25459 | (exit $ac_status); } && { |
| 25460 | test -z "$ac_c_werror_flag" || |
| 25461 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25462 | } && test -s conftest$ac_exeext && { |
| 25463 | test "$cross_compiling" = yes || |
| 25464 | $as_test_x conftest$ac_exeext |
| 25465 | }; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25466 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25467 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25468 | $as_echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25470 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25471 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25472 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25473 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25474 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25475 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25476 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25477 | if test $py_cv_lib_readline = yes; then |
| 25478 | break |
| 25479 | fi |
| 25480 | done |
| 25481 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 25482 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 25483 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25484 | { $as_echo "$as_me:$LINENO: result: none" >&5 |
| 25485 | $as_echo "none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25486 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25487 | { $as_echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 25488 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25489 | |
| 25490 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25491 | #define HAVE_LIBREADLINE 1 |
| 25492 | _ACEOF |
| 25493 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25494 | fi |
| 25495 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25496 | # check for readline 2.1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25497 | { $as_echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 25498 | $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] | 25499 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25500 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25501 | else |
| 25502 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25503 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25504 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25505 | /* confdefs.h. */ |
| 25506 | _ACEOF |
| 25507 | cat confdefs.h >>conftest.$ac_ext |
| 25508 | cat >>conftest.$ac_ext <<_ACEOF |
| 25509 | /* end confdefs.h. */ |
| 25510 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25511 | /* Override any GCC internal prototype to avoid an error. |
| 25512 | Use char because int might match the return type of a GCC |
| 25513 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25514 | #ifdef __cplusplus |
| 25515 | extern "C" |
| 25516 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25517 | char rl_callback_handler_install (); |
| 25518 | int |
| 25519 | main () |
| 25520 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25521 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25522 | ; |
| 25523 | return 0; |
| 25524 | } |
| 25525 | _ACEOF |
| 25526 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25527 | if { (ac_try="$ac_link" |
| 25528 | case "(($ac_try" in |
| 25529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25530 | *) ac_try_echo=$ac_try;; |
| 25531 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25532 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25533 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25534 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25535 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25537 | rm -f conftest.er1 |
| 25538 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25540 | (exit $ac_status); } && { |
| 25541 | test -z "$ac_c_werror_flag" || |
| 25542 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25543 | } && test -s conftest$ac_exeext && { |
| 25544 | test "$cross_compiling" = yes || |
| 25545 | $as_test_x conftest$ac_exeext |
| 25546 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25547 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 25548 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25549 | $as_echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25551 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25552 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25553 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25554 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25555 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25556 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25557 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25558 | LIBS=$ac_check_lib_save_LIBS |
| 25559 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25560 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 25561 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 25562 | 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] | 25563 | |
| 25564 | cat >>confdefs.h <<\_ACEOF |
| 25565 | #define HAVE_RL_CALLBACK 1 |
| 25566 | _ACEOF |
| 25567 | |
| 25568 | fi |
| 25569 | |
| 25570 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25571 | # check for readline 2.2 |
| 25572 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25573 | /* confdefs.h. */ |
| 25574 | _ACEOF |
| 25575 | cat confdefs.h >>conftest.$ac_ext |
| 25576 | cat >>conftest.$ac_ext <<_ACEOF |
| 25577 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25578 | #include <readline/readline.h> |
| 25579 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25580 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 25581 | case "(($ac_try" in |
| 25582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25583 | *) ac_try_echo=$ac_try;; |
| 25584 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25585 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25586 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25587 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25588 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25589 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25590 | rm -f conftest.er1 |
| 25591 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25592 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25593 | (exit $ac_status); } >/dev/null && { |
| 25594 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 25595 | test ! -s conftest.err |
| 25596 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25597 | have_readline=yes |
| 25598 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25599 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25601 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25602 | have_readline=no |
| 25603 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25604 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25605 | rm -f conftest.err conftest.$ac_ext |
| 25606 | if test $have_readline = yes |
| 25607 | then |
| 25608 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25609 | /* confdefs.h. */ |
| 25610 | _ACEOF |
| 25611 | cat confdefs.h >>conftest.$ac_ext |
| 25612 | cat >>conftest.$ac_ext <<_ACEOF |
| 25613 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25614 | #include <readline/readline.h> |
| 25615 | |
| 25616 | _ACEOF |
| 25617 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25618 | $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] | 25619 | |
| 25620 | cat >>confdefs.h <<\_ACEOF |
| 25621 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 25622 | _ACEOF |
| 25623 | |
| 25624 | fi |
| 25625 | rm -f conftest* |
| 25626 | |
| 25627 | fi |
| 25628 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25629 | # check for readline 4.0 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25630 | { $as_echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 25631 | $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] | 25632 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25633 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25635 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25636 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25637 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25638 | /* confdefs.h. */ |
| 25639 | _ACEOF |
| 25640 | cat confdefs.h >>conftest.$ac_ext |
| 25641 | cat >>conftest.$ac_ext <<_ACEOF |
| 25642 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25643 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25644 | /* Override any GCC internal prototype to avoid an error. |
| 25645 | Use char because int might match the return type of a GCC |
| 25646 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25647 | #ifdef __cplusplus |
| 25648 | extern "C" |
| 25649 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25650 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25651 | int |
| 25652 | main () |
| 25653 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25654 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25655 | ; |
| 25656 | return 0; |
| 25657 | } |
| 25658 | _ACEOF |
| 25659 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25660 | if { (ac_try="$ac_link" |
| 25661 | case "(($ac_try" in |
| 25662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25663 | *) ac_try_echo=$ac_try;; |
| 25664 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25665 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25666 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25667 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25668 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25670 | rm -f conftest.er1 |
| 25671 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25673 | (exit $ac_status); } && { |
| 25674 | test -z "$ac_c_werror_flag" || |
| 25675 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25676 | } && test -s conftest$ac_exeext && { |
| 25677 | test "$cross_compiling" = yes || |
| 25678 | $as_test_x conftest$ac_exeext |
| 25679 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25680 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25681 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25682 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25684 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25685 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25686 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25687 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25688 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25689 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25690 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25691 | LIBS=$ac_check_lib_save_LIBS |
| 25692 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25693 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 25694 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 25695 | 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] | 25696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25697 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25698 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25699 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25700 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25701 | fi |
| 25702 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25703 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25704 | # also in 4.0 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25705 | { $as_echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 25706 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25707 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25708 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25709 | else |
| 25710 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25711 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25712 | cat >conftest.$ac_ext <<_ACEOF |
| 25713 | /* confdefs.h. */ |
| 25714 | _ACEOF |
| 25715 | cat confdefs.h >>conftest.$ac_ext |
| 25716 | cat >>conftest.$ac_ext <<_ACEOF |
| 25717 | /* end confdefs.h. */ |
| 25718 | |
| 25719 | /* Override any GCC internal prototype to avoid an error. |
| 25720 | Use char because int might match the return type of a GCC |
| 25721 | builtin and then its argument prototype would still apply. */ |
| 25722 | #ifdef __cplusplus |
| 25723 | extern "C" |
| 25724 | #endif |
| 25725 | char rl_completion_display_matches_hook (); |
| 25726 | int |
| 25727 | main () |
| 25728 | { |
| 25729 | return rl_completion_display_matches_hook (); |
| 25730 | ; |
| 25731 | return 0; |
| 25732 | } |
| 25733 | _ACEOF |
| 25734 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25735 | if { (ac_try="$ac_link" |
| 25736 | case "(($ac_try" in |
| 25737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25738 | *) ac_try_echo=$ac_try;; |
| 25739 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25741 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25742 | (eval "$ac_link") 2>conftest.er1 |
| 25743 | ac_status=$? |
| 25744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25745 | rm -f conftest.er1 |
| 25746 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25748 | (exit $ac_status); } && { |
| 25749 | test -z "$ac_c_werror_flag" || |
| 25750 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25751 | } && test -s conftest$ac_exeext && { |
| 25752 | test "$cross_compiling" = yes || |
| 25753 | $as_test_x conftest$ac_exeext |
| 25754 | }; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25755 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 25756 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25757 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25759 | |
| 25760 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 25761 | fi |
| 25762 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25763 | rm -rf conftest.dSYM |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25764 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 25765 | conftest$ac_exeext conftest.$ac_ext |
| 25766 | LIBS=$ac_check_lib_save_LIBS |
| 25767 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25768 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 25769 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 25770 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25771 | |
| 25772 | cat >>confdefs.h <<\_ACEOF |
| 25773 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 25774 | _ACEOF |
| 25775 | |
| 25776 | fi |
| 25777 | |
| 25778 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25779 | # check for readline 4.2 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25780 | { $as_echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 25781 | $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] | 25782 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25783 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25784 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25785 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25786 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25788 | /* confdefs.h. */ |
| 25789 | _ACEOF |
| 25790 | cat confdefs.h >>conftest.$ac_ext |
| 25791 | cat >>conftest.$ac_ext <<_ACEOF |
| 25792 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25793 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25794 | /* Override any GCC internal prototype to avoid an error. |
| 25795 | Use char because int might match the return type of a GCC |
| 25796 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25797 | #ifdef __cplusplus |
| 25798 | extern "C" |
| 25799 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25800 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25801 | int |
| 25802 | main () |
| 25803 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25804 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25805 | ; |
| 25806 | return 0; |
| 25807 | } |
| 25808 | _ACEOF |
| 25809 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25810 | if { (ac_try="$ac_link" |
| 25811 | case "(($ac_try" in |
| 25812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25813 | *) ac_try_echo=$ac_try;; |
| 25814 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25815 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25816 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25817 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25818 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25820 | rm -f conftest.er1 |
| 25821 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25822 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25823 | (exit $ac_status); } && { |
| 25824 | test -z "$ac_c_werror_flag" || |
| 25825 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25826 | } && test -s conftest$ac_exeext && { |
| 25827 | test "$cross_compiling" = yes || |
| 25828 | $as_test_x conftest$ac_exeext |
| 25829 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25830 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25831 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25832 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25834 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25835 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25836 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25837 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25838 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25839 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25840 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25841 | LIBS=$ac_check_lib_save_LIBS |
| 25842 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25843 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 25844 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 25845 | 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] | 25846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25847 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25848 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25849 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25850 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25851 | fi |
| 25852 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25853 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25854 | # also in readline 4.2 |
| 25855 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25856 | /* confdefs.h. */ |
| 25857 | _ACEOF |
| 25858 | cat confdefs.h >>conftest.$ac_ext |
| 25859 | cat >>conftest.$ac_ext <<_ACEOF |
| 25860 | /* end confdefs.h. */ |
| 25861 | #include <readline/readline.h> |
| 25862 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25863 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 25864 | case "(($ac_try" in |
| 25865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25866 | *) ac_try_echo=$ac_try;; |
| 25867 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25869 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25870 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25871 | ac_status=$? |
| 25872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25873 | rm -f conftest.er1 |
| 25874 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25876 | (exit $ac_status); } >/dev/null && { |
| 25877 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 25878 | test ! -s conftest.err |
| 25879 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25880 | have_readline=yes |
| 25881 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25882 | $as_echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25884 | |
| 25885 | have_readline=no |
| 25886 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25887 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25888 | rm -f conftest.err conftest.$ac_ext |
| 25889 | if test $have_readline = yes |
| 25890 | then |
| 25891 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25892 | /* confdefs.h. */ |
| 25893 | _ACEOF |
| 25894 | cat confdefs.h >>conftest.$ac_ext |
| 25895 | cat >>conftest.$ac_ext <<_ACEOF |
| 25896 | /* end confdefs.h. */ |
| 25897 | #include <readline/readline.h> |
| 25898 | |
| 25899 | _ACEOF |
| 25900 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 25901 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 25902 | |
| 25903 | cat >>confdefs.h <<\_ACEOF |
| 25904 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 25905 | _ACEOF |
| 25906 | |
| 25907 | fi |
| 25908 | rm -f conftest* |
| 25909 | |
| 25910 | fi |
| 25911 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 25912 | # End of readline checks: restore LIBS |
| 25913 | LIBS=$LIBS_no_readline |
| 25914 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25915 | { $as_echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 25916 | $as_echo_n "checking for broken nice()... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25917 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25918 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25920 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25921 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25922 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25923 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25924 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25925 | /* confdefs.h. */ |
| 25926 | _ACEOF |
| 25927 | cat confdefs.h >>conftest.$ac_ext |
| 25928 | cat >>conftest.$ac_ext <<_ACEOF |
| 25929 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25930 | |
| 25931 | int main() |
| 25932 | { |
| 25933 | int val1 = nice(1); |
| 25934 | if (val1 != -1 && val1 == nice(2)) |
| 25935 | exit(0); |
| 25936 | exit(1); |
| 25937 | } |
| 25938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25939 | _ACEOF |
| 25940 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25941 | if { (ac_try="$ac_link" |
| 25942 | case "(($ac_try" in |
| 25943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25944 | *) ac_try_echo=$ac_try;; |
| 25945 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25946 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25947 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25948 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25949 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25951 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25952 | { (case "(($ac_try" in |
| 25953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25954 | *) ac_try_echo=$ac_try;; |
| 25955 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25956 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25957 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25958 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25959 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25960 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25961 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25962 | ac_cv_broken_nice=yes |
| 25963 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25964 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 25965 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25968 | ( exit $ac_status ) |
| 25969 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25970 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25971 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25972 | 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] | 25973 | fi |
| 25974 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25975 | |
| 25976 | fi |
| 25977 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25978 | { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 25979 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25980 | if test "$ac_cv_broken_nice" = yes |
| 25981 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25982 | |
| 25983 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25984 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25985 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25986 | |
| 25987 | fi |
| 25988 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 25989 | { $as_echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 25990 | $as_echo_n "checking for broken poll()... " >&6; } |
| 25991 | if test "${ac_cv_broken_poll+set}" = set; then |
| 25992 | $as_echo_n "(cached) " >&6 |
| 25993 | else |
| 25994 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25995 | ac_cv_broken_poll=no |
| 25996 | else |
| 25997 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25998 | /* confdefs.h. */ |
| 25999 | _ACEOF |
| 26000 | cat confdefs.h >>conftest.$ac_ext |
| 26001 | cat >>conftest.$ac_ext <<_ACEOF |
| 26002 | /* end confdefs.h. */ |
| 26003 | |
| 26004 | #include <poll.h> |
| 26005 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26006 | int main() |
| 26007 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26008 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26009 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26010 | |
| 26011 | close (42); |
| 26012 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26013 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26014 | if (poll_test < 0) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26015 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26016 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26017 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26018 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26019 | return 1; |
| 26020 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26021 | |
| 26022 | _ACEOF |
| 26023 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26024 | if { (ac_try="$ac_link" |
| 26025 | case "(($ac_try" in |
| 26026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26027 | *) ac_try_echo=$ac_try;; |
| 26028 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26029 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26030 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26031 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26032 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26033 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26034 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26035 | { (case "(($ac_try" in |
| 26036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26037 | *) ac_try_echo=$ac_try;; |
| 26038 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26039 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26040 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26041 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26042 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26043 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26044 | (exit $ac_status); }; }; then |
| 26045 | ac_cv_broken_poll=yes |
| 26046 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26047 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 26048 | $as_echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26050 | |
| 26051 | ( exit $ac_status ) |
| 26052 | ac_cv_broken_poll=no |
| 26053 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26054 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26055 | 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] | 26056 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26057 | |
| 26058 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26059 | fi |
| 26060 | |
| 26061 | { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 26062 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26063 | if test "$ac_cv_broken_poll" = yes |
| 26064 | then |
| 26065 | |
| 26066 | cat >>confdefs.h <<\_ACEOF |
| 26067 | #define HAVE_BROKEN_POLL 1 |
| 26068 | _ACEOF |
| 26069 | |
| 26070 | fi |
| 26071 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26072 | # 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] | 26073 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 26074 | # tzname[] |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26075 | { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 26076 | $as_echo_n "checking for struct tm.tm_zone... " >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26077 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26078 | $as_echo_n "(cached) " >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26079 | else |
| 26080 | cat >conftest.$ac_ext <<_ACEOF |
| 26081 | /* confdefs.h. */ |
| 26082 | _ACEOF |
| 26083 | cat confdefs.h >>conftest.$ac_ext |
| 26084 | cat >>conftest.$ac_ext <<_ACEOF |
| 26085 | /* end confdefs.h. */ |
| 26086 | #include <sys/types.h> |
| 26087 | #include <$ac_cv_struct_tm> |
| 26088 | |
| 26089 | |
| 26090 | int |
| 26091 | main () |
| 26092 | { |
| 26093 | static struct tm ac_aggr; |
| 26094 | if (ac_aggr.tm_zone) |
| 26095 | return 0; |
| 26096 | ; |
| 26097 | return 0; |
| 26098 | } |
| 26099 | _ACEOF |
| 26100 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26101 | if { (ac_try="$ac_compile" |
| 26102 | case "(($ac_try" in |
| 26103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26104 | *) ac_try_echo=$ac_try;; |
| 26105 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26107 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26108 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26109 | ac_status=$? |
| 26110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26111 | rm -f conftest.er1 |
| 26112 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26114 | (exit $ac_status); } && { |
| 26115 | test -z "$ac_c_werror_flag" || |
| 26116 | test ! -s conftest.err |
| 26117 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26118 | ac_cv_member_struct_tm_tm_zone=yes |
| 26119 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26120 | $as_echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26122 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26123 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26124 | /* confdefs.h. */ |
| 26125 | _ACEOF |
| 26126 | cat confdefs.h >>conftest.$ac_ext |
| 26127 | cat >>conftest.$ac_ext <<_ACEOF |
| 26128 | /* end confdefs.h. */ |
| 26129 | #include <sys/types.h> |
| 26130 | #include <$ac_cv_struct_tm> |
| 26131 | |
| 26132 | |
| 26133 | int |
| 26134 | main () |
| 26135 | { |
| 26136 | static struct tm ac_aggr; |
| 26137 | if (sizeof ac_aggr.tm_zone) |
| 26138 | return 0; |
| 26139 | ; |
| 26140 | return 0; |
| 26141 | } |
| 26142 | _ACEOF |
| 26143 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26144 | if { (ac_try="$ac_compile" |
| 26145 | case "(($ac_try" in |
| 26146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26147 | *) ac_try_echo=$ac_try;; |
| 26148 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26149 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26150 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26151 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26152 | ac_status=$? |
| 26153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26154 | rm -f conftest.er1 |
| 26155 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26156 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26157 | (exit $ac_status); } && { |
| 26158 | test -z "$ac_c_werror_flag" || |
| 26159 | test ! -s conftest.err |
| 26160 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26161 | ac_cv_member_struct_tm_tm_zone=yes |
| 26162 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26163 | $as_echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26165 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26166 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26167 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26168 | |
| 26169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26170 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26171 | |
| 26172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26173 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26174 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 26175 | $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 26176 | 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] | 26177 | |
| 26178 | cat >>confdefs.h <<_ACEOF |
| 26179 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 26180 | _ACEOF |
| 26181 | |
| 26182 | |
| 26183 | fi |
| 26184 | |
| 26185 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 26186 | |
| 26187 | cat >>confdefs.h <<\_ACEOF |
| 26188 | #define HAVE_TM_ZONE 1 |
| 26189 | _ACEOF |
| 26190 | |
| 26191 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26192 | { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 26193 | $as_echo_n "checking whether tzname is declared... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26194 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26195 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26196 | else |
| 26197 | cat >conftest.$ac_ext <<_ACEOF |
| 26198 | /* confdefs.h. */ |
| 26199 | _ACEOF |
| 26200 | cat confdefs.h >>conftest.$ac_ext |
| 26201 | cat >>conftest.$ac_ext <<_ACEOF |
| 26202 | /* end confdefs.h. */ |
| 26203 | #include <time.h> |
| 26204 | |
| 26205 | int |
| 26206 | main () |
| 26207 | { |
| 26208 | #ifndef tzname |
| 26209 | (void) tzname; |
| 26210 | #endif |
| 26211 | |
| 26212 | ; |
| 26213 | return 0; |
| 26214 | } |
| 26215 | _ACEOF |
| 26216 | rm -f conftest.$ac_objext |
| 26217 | if { (ac_try="$ac_compile" |
| 26218 | case "(($ac_try" in |
| 26219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26220 | *) ac_try_echo=$ac_try;; |
| 26221 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26222 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26223 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26224 | (eval "$ac_compile") 2>conftest.er1 |
| 26225 | ac_status=$? |
| 26226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26227 | rm -f conftest.er1 |
| 26228 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26229 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26230 | (exit $ac_status); } && { |
| 26231 | test -z "$ac_c_werror_flag" || |
| 26232 | test ! -s conftest.err |
| 26233 | } && test -s conftest.$ac_objext; then |
| 26234 | ac_cv_have_decl_tzname=yes |
| 26235 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26236 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26238 | |
| 26239 | ac_cv_have_decl_tzname=no |
| 26240 | fi |
| 26241 | |
| 26242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26243 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26244 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 26245 | $as_echo "$ac_cv_have_decl_tzname" >&6; } |
| 26246 | if test "x$ac_cv_have_decl_tzname" = x""yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26247 | |
| 26248 | cat >>confdefs.h <<_ACEOF |
| 26249 | #define HAVE_DECL_TZNAME 1 |
| 26250 | _ACEOF |
| 26251 | |
| 26252 | |
| 26253 | else |
| 26254 | cat >>confdefs.h <<_ACEOF |
| 26255 | #define HAVE_DECL_TZNAME 0 |
| 26256 | _ACEOF |
| 26257 | |
| 26258 | |
| 26259 | fi |
| 26260 | |
| 26261 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26262 | { $as_echo "$as_me:$LINENO: checking for tzname" >&5 |
| 26263 | $as_echo_n "checking for tzname... " >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26264 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26265 | $as_echo_n "(cached) " >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26266 | else |
| 26267 | cat >conftest.$ac_ext <<_ACEOF |
| 26268 | /* confdefs.h. */ |
| 26269 | _ACEOF |
| 26270 | cat confdefs.h >>conftest.$ac_ext |
| 26271 | cat >>conftest.$ac_ext <<_ACEOF |
| 26272 | /* end confdefs.h. */ |
| 26273 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26274 | #if !HAVE_DECL_TZNAME |
| 26275 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26276 | #endif |
| 26277 | |
| 26278 | int |
| 26279 | main () |
| 26280 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26281 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26282 | ; |
| 26283 | return 0; |
| 26284 | } |
| 26285 | _ACEOF |
| 26286 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26287 | if { (ac_try="$ac_link" |
| 26288 | case "(($ac_try" in |
| 26289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26290 | *) ac_try_echo=$ac_try;; |
| 26291 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26293 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26294 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26295 | ac_status=$? |
| 26296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26297 | rm -f conftest.er1 |
| 26298 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26300 | (exit $ac_status); } && { |
| 26301 | test -z "$ac_c_werror_flag" || |
| 26302 | test ! -s conftest.err |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26303 | } && test -s conftest$ac_exeext && { |
| 26304 | test "$cross_compiling" = yes || |
| 26305 | $as_test_x conftest$ac_exeext |
| 26306 | }; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26307 | ac_cv_var_tzname=yes |
| 26308 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26309 | $as_echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26311 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26312 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26313 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26314 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26315 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26316 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26317 | conftest$ac_exeext conftest.$ac_ext |
| 26318 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26319 | { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 26320 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26321 | if test $ac_cv_var_tzname = yes; then |
| 26322 | |
| 26323 | cat >>confdefs.h <<\_ACEOF |
| 26324 | #define HAVE_TZNAME 1 |
| 26325 | _ACEOF |
| 26326 | |
| 26327 | fi |
| 26328 | fi |
| 26329 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26330 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26331 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26332 | { $as_echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 26333 | $as_echo_n "checking for working tzset()... " >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26334 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26335 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26336 | else |
| 26337 | |
| 26338 | if test "$cross_compiling" = yes; then |
| 26339 | ac_cv_working_tzset=no |
| 26340 | else |
| 26341 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26342 | /* confdefs.h. */ |
| 26343 | _ACEOF |
| 26344 | cat confdefs.h >>conftest.$ac_ext |
| 26345 | cat >>conftest.$ac_ext <<_ACEOF |
| 26346 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26347 | |
| 26348 | #include <stdlib.h> |
| 26349 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26350 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26351 | |
| 26352 | #if HAVE_TZNAME |
| 26353 | extern char *tzname[]; |
| 26354 | #endif |
| 26355 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26356 | int main() |
| 26357 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26358 | /* Note that we need to ensure that not only does tzset(3) |
| 26359 | do 'something' with localtime, but it works as documented |
| 26360 | 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] | 26361 | This includes making sure that tzname is set properly if |
| 26362 | tm->tm_zone does not exist since it is the alternative way |
| 26363 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26364 | |
| 26365 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26366 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26367 | */ |
| 26368 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26369 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26370 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 26371 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26372 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26373 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26374 | if (localtime(&groundhogday)->tm_hour != 0) |
| 26375 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26376 | #if HAVE_TZNAME |
| 26377 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 26378 | if (strcmp(tzname[0], "UTC") || |
| 26379 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 26380 | exit(1); |
| 26381 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26382 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26383 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26384 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26385 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26386 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26387 | #if HAVE_TZNAME |
| 26388 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 26389 | exit(1); |
| 26390 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26391 | |
| 26392 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 26393 | tzset(); |
| 26394 | if (localtime(&groundhogday)->tm_hour != 11) |
| 26395 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26396 | #if HAVE_TZNAME |
| 26397 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 26398 | exit(1); |
| 26399 | #endif |
| 26400 | |
| 26401 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26402 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 26403 | exit(1); |
| 26404 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 26405 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26406 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26407 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26408 | exit(0); |
| 26409 | } |
| 26410 | |
| 26411 | _ACEOF |
| 26412 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26413 | if { (ac_try="$ac_link" |
| 26414 | case "(($ac_try" in |
| 26415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26416 | *) ac_try_echo=$ac_try;; |
| 26417 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26418 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26419 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26420 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26421 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26422 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26423 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26424 | { (case "(($ac_try" in |
| 26425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26426 | *) ac_try_echo=$ac_try;; |
| 26427 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26428 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26429 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26430 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26431 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26432 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26433 | (exit $ac_status); }; }; then |
| 26434 | ac_cv_working_tzset=yes |
| 26435 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26436 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 26437 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26439 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26440 | ( exit $ac_status ) |
| 26441 | ac_cv_working_tzset=no |
| 26442 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26443 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26444 | 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] | 26445 | fi |
| 26446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26447 | |
| 26448 | fi |
| 26449 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26450 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 26451 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26452 | if test "$ac_cv_working_tzset" = yes |
| 26453 | then |
| 26454 | |
| 26455 | cat >>confdefs.h <<\_ACEOF |
| 26456 | #define HAVE_WORKING_TZSET 1 |
| 26457 | _ACEOF |
| 26458 | |
| 26459 | fi |
| 26460 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26461 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26462 | { $as_echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 26463 | $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] | 26464 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26465 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26466 | else |
| 26467 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26468 | /* confdefs.h. */ |
| 26469 | _ACEOF |
| 26470 | cat confdefs.h >>conftest.$ac_ext |
| 26471 | cat >>conftest.$ac_ext <<_ACEOF |
| 26472 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26473 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26474 | int |
| 26475 | main () |
| 26476 | { |
| 26477 | |
| 26478 | struct stat st; |
| 26479 | st.st_mtim.tv_nsec = 1; |
| 26480 | |
| 26481 | ; |
| 26482 | return 0; |
| 26483 | } |
| 26484 | _ACEOF |
| 26485 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26486 | if { (ac_try="$ac_compile" |
| 26487 | case "(($ac_try" in |
| 26488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26489 | *) ac_try_echo=$ac_try;; |
| 26490 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26491 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26492 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26493 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26494 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26496 | rm -f conftest.er1 |
| 26497 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26499 | (exit $ac_status); } && { |
| 26500 | test -z "$ac_c_werror_flag" || |
| 26501 | test ! -s conftest.err |
| 26502 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 26503 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26504 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26505 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26507 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26508 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26509 | fi |
| 26510 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26512 | fi |
| 26513 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26514 | { $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 26515 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26516 | if test "$ac_cv_stat_tv_nsec" = yes |
| 26517 | then |
| 26518 | |
| 26519 | cat >>confdefs.h <<\_ACEOF |
| 26520 | #define HAVE_STAT_TV_NSEC 1 |
| 26521 | _ACEOF |
| 26522 | |
| 26523 | fi |
| 26524 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26525 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26526 | { $as_echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 26527 | $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] | 26528 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26529 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26530 | else |
| 26531 | cat >conftest.$ac_ext <<_ACEOF |
| 26532 | /* confdefs.h. */ |
| 26533 | _ACEOF |
| 26534 | cat confdefs.h >>conftest.$ac_ext |
| 26535 | cat >>conftest.$ac_ext <<_ACEOF |
| 26536 | /* end confdefs.h. */ |
| 26537 | #include <sys/stat.h> |
| 26538 | int |
| 26539 | main () |
| 26540 | { |
| 26541 | |
| 26542 | struct stat st; |
| 26543 | st.st_mtimespec.tv_nsec = 1; |
| 26544 | |
| 26545 | ; |
| 26546 | return 0; |
| 26547 | } |
| 26548 | _ACEOF |
| 26549 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26550 | if { (ac_try="$ac_compile" |
| 26551 | case "(($ac_try" in |
| 26552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26553 | *) ac_try_echo=$ac_try;; |
| 26554 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26556 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26557 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26558 | ac_status=$? |
| 26559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26560 | rm -f conftest.er1 |
| 26561 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26563 | (exit $ac_status); } && { |
| 26564 | test -z "$ac_c_werror_flag" || |
| 26565 | test ! -s conftest.err |
| 26566 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26567 | ac_cv_stat_tv_nsec2=yes |
| 26568 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26569 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26571 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26572 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26573 | fi |
| 26574 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26576 | fi |
| 26577 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26578 | { $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 26579 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26580 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 26581 | then |
| 26582 | |
| 26583 | cat >>confdefs.h <<\_ACEOF |
| 26584 | #define HAVE_STAT_TV_NSEC2 1 |
| 26585 | _ACEOF |
| 26586 | |
| 26587 | fi |
| 26588 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26589 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26590 | { $as_echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 26591 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26592 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26593 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26594 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26595 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26596 | /* confdefs.h. */ |
| 26597 | _ACEOF |
| 26598 | cat confdefs.h >>conftest.$ac_ext |
| 26599 | cat >>conftest.$ac_ext <<_ACEOF |
| 26600 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26601 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26602 | int |
| 26603 | main () |
| 26604 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26605 | |
| 26606 | int rtn; |
| 26607 | rtn = mvwdelch(0,0,0); |
| 26608 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26609 | ; |
| 26610 | return 0; |
| 26611 | } |
| 26612 | _ACEOF |
| 26613 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26614 | if { (ac_try="$ac_compile" |
| 26615 | case "(($ac_try" in |
| 26616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26617 | *) ac_try_echo=$ac_try;; |
| 26618 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26620 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26621 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26622 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26624 | rm -f conftest.er1 |
| 26625 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26627 | (exit $ac_status); } && { |
| 26628 | test -z "$ac_c_werror_flag" || |
| 26629 | test ! -s conftest.err |
| 26630 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26631 | ac_cv_mvwdelch_is_expression=yes |
| 26632 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26633 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26635 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26636 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26637 | fi |
| 26638 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26640 | fi |
| 26641 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26642 | { $as_echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 26643 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26644 | |
| 26645 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 26646 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26647 | |
| 26648 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26649 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26650 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26651 | |
| 26652 | fi |
| 26653 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26654 | { $as_echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 26655 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26656 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26657 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26659 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26660 | /* confdefs.h. */ |
| 26661 | _ACEOF |
| 26662 | cat confdefs.h >>conftest.$ac_ext |
| 26663 | cat >>conftest.$ac_ext <<_ACEOF |
| 26664 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26665 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26666 | int |
| 26667 | main () |
| 26668 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26669 | |
| 26670 | WINDOW *w; |
| 26671 | w->_flags = 0; |
| 26672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26673 | ; |
| 26674 | return 0; |
| 26675 | } |
| 26676 | _ACEOF |
| 26677 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26678 | if { (ac_try="$ac_compile" |
| 26679 | case "(($ac_try" in |
| 26680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26681 | *) ac_try_echo=$ac_try;; |
| 26682 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26683 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26684 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26685 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26686 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26688 | rm -f conftest.er1 |
| 26689 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26691 | (exit $ac_status); } && { |
| 26692 | test -z "$ac_c_werror_flag" || |
| 26693 | test ! -s conftest.err |
| 26694 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26695 | ac_cv_window_has_flags=yes |
| 26696 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26697 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26699 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26700 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26701 | fi |
| 26702 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26704 | fi |
| 26705 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26706 | { $as_echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 26707 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26708 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26709 | |
| 26710 | if test "$ac_cv_window_has_flags" = yes |
| 26711 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26712 | |
| 26713 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26714 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26715 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26716 | |
| 26717 | fi |
| 26718 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26719 | { $as_echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 26720 | $as_echo_n "checking for is_term_resized... " >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26721 | cat >conftest.$ac_ext <<_ACEOF |
| 26722 | /* confdefs.h. */ |
| 26723 | _ACEOF |
| 26724 | cat confdefs.h >>conftest.$ac_ext |
| 26725 | cat >>conftest.$ac_ext <<_ACEOF |
| 26726 | /* end confdefs.h. */ |
| 26727 | #include <curses.h> |
| 26728 | int |
| 26729 | main () |
| 26730 | { |
| 26731 | void *x=is_term_resized |
| 26732 | ; |
| 26733 | return 0; |
| 26734 | } |
| 26735 | _ACEOF |
| 26736 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26737 | if { (ac_try="$ac_compile" |
| 26738 | case "(($ac_try" in |
| 26739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26740 | *) ac_try_echo=$ac_try;; |
| 26741 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26742 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26743 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26744 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26745 | ac_status=$? |
| 26746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26747 | rm -f conftest.er1 |
| 26748 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26749 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26750 | (exit $ac_status); } && { |
| 26751 | test -z "$ac_c_werror_flag" || |
| 26752 | test ! -s conftest.err |
| 26753 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26754 | |
| 26755 | cat >>confdefs.h <<\_ACEOF |
| 26756 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 26757 | _ACEOF |
| 26758 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26759 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 26760 | $as_echo "yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26761 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26762 | $as_echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26764 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26765 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 26766 | $as_echo "no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26767 | |
| 26768 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26769 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26771 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26772 | { $as_echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 26773 | $as_echo_n "checking for resize_term... " >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26774 | cat >conftest.$ac_ext <<_ACEOF |
| 26775 | /* confdefs.h. */ |
| 26776 | _ACEOF |
| 26777 | cat confdefs.h >>conftest.$ac_ext |
| 26778 | cat >>conftest.$ac_ext <<_ACEOF |
| 26779 | /* end confdefs.h. */ |
| 26780 | #include <curses.h> |
| 26781 | int |
| 26782 | main () |
| 26783 | { |
| 26784 | void *x=resize_term |
| 26785 | ; |
| 26786 | return 0; |
| 26787 | } |
| 26788 | _ACEOF |
| 26789 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26790 | if { (ac_try="$ac_compile" |
| 26791 | case "(($ac_try" in |
| 26792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26793 | *) ac_try_echo=$ac_try;; |
| 26794 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26795 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26796 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26797 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26798 | ac_status=$? |
| 26799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26800 | rm -f conftest.er1 |
| 26801 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26802 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26803 | (exit $ac_status); } && { |
| 26804 | test -z "$ac_c_werror_flag" || |
| 26805 | test ! -s conftest.err |
| 26806 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26807 | |
| 26808 | cat >>confdefs.h <<\_ACEOF |
| 26809 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 26810 | _ACEOF |
| 26811 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26812 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 26813 | $as_echo "yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26814 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26815 | $as_echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26817 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26818 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 26819 | $as_echo "no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26820 | |
| 26821 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26822 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26824 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26825 | { $as_echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 26826 | $as_echo_n "checking for resizeterm... " >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26827 | cat >conftest.$ac_ext <<_ACEOF |
| 26828 | /* confdefs.h. */ |
| 26829 | _ACEOF |
| 26830 | cat confdefs.h >>conftest.$ac_ext |
| 26831 | cat >>conftest.$ac_ext <<_ACEOF |
| 26832 | /* end confdefs.h. */ |
| 26833 | #include <curses.h> |
| 26834 | int |
| 26835 | main () |
| 26836 | { |
| 26837 | void *x=resizeterm |
| 26838 | ; |
| 26839 | return 0; |
| 26840 | } |
| 26841 | _ACEOF |
| 26842 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26843 | if { (ac_try="$ac_compile" |
| 26844 | case "(($ac_try" in |
| 26845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26846 | *) ac_try_echo=$ac_try;; |
| 26847 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26848 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26849 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26850 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26851 | ac_status=$? |
| 26852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26853 | rm -f conftest.er1 |
| 26854 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26856 | (exit $ac_status); } && { |
| 26857 | test -z "$ac_c_werror_flag" || |
| 26858 | test ! -s conftest.err |
| 26859 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26860 | |
| 26861 | cat >>confdefs.h <<\_ACEOF |
| 26862 | #define HAVE_CURSES_RESIZETERM 1 |
| 26863 | _ACEOF |
| 26864 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26865 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 26866 | $as_echo "yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26867 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26868 | $as_echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26870 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26871 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 26872 | $as_echo "no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26873 | |
| 26874 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26875 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26877 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26878 | { $as_echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 26879 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26880 | |
| 26881 | if test -r /dev/ptmx |
| 26882 | then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26883 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 26884 | $as_echo "yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 26885 | |
| 26886 | cat >>confdefs.h <<\_ACEOF |
| 26887 | #define HAVE_DEV_PTMX 1 |
| 26888 | _ACEOF |
| 26889 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26890 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26891 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 26892 | $as_echo "no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 26893 | fi |
| 26894 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26895 | { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 26896 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26897 | |
| 26898 | if test -r /dev/ptc |
| 26899 | then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26900 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 26901 | $as_echo "yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 26902 | |
| 26903 | cat >>confdefs.h <<\_ACEOF |
| 26904 | #define HAVE_DEV_PTC 1 |
| 26905 | _ACEOF |
| 26906 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26907 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26908 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 26909 | $as_echo "no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 26910 | fi |
| 26911 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26912 | { $as_echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 26913 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
| 26914 | if test "${ac_cv_have_size_t_format+set}" = set; then |
| 26915 | $as_echo_n "(cached) " >&6 |
| 26916 | else |
| 26917 | if test "$cross_compiling" = yes; then |
| 26918 | ac_cv_have_size_t_format=no |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26919 | else |
| 26920 | cat >conftest.$ac_ext <<_ACEOF |
| 26921 | /* confdefs.h. */ |
| 26922 | _ACEOF |
| 26923 | cat confdefs.h >>conftest.$ac_ext |
| 26924 | cat >>conftest.$ac_ext <<_ACEOF |
| 26925 | /* end confdefs.h. */ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26926 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26927 | #include <stdio.h> |
| 26928 | #include <stddef.h> |
| 26929 | #include <string.h> |
| 26930 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 26931 | #ifdef HAVE_SYS_TYPES_H |
| 26932 | #include <sys/types.h> |
| 26933 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 26934 | |
| 26935 | #ifdef HAVE_SSIZE_T |
| 26936 | typedef ssize_t Py_ssize_t; |
| 26937 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 26938 | typedef long Py_ssize_t; |
| 26939 | #else |
| 26940 | typedef int Py_ssize_t; |
| 26941 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26942 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 26943 | int main() |
| 26944 | { |
| 26945 | char buffer[256]; |
| 26946 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26947 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 26948 | return 1; |
| 26949 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 26950 | if (strcmp(buffer, "123")) |
| 26951 | return 1; |
| 26952 | |
| 26953 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 26954 | return 1; |
| 26955 | |
| 26956 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26957 | return 1; |
| 26958 | |
| 26959 | return 0; |
| 26960 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26961 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26962 | _ACEOF |
| 26963 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26964 | if { (ac_try="$ac_link" |
| 26965 | case "(($ac_try" in |
| 26966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26967 | *) ac_try_echo=$ac_try;; |
| 26968 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26970 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26971 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26972 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26974 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26975 | { (case "(($ac_try" in |
| 26976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26977 | *) ac_try_echo=$ac_try;; |
| 26978 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26979 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26980 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26981 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26982 | ac_status=$? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26984 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26985 | ac_cv_have_size_t_format=yes |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26986 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26987 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 26988 | $as_echo "$as_me: failed program was:" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26990 | |
| 26991 | ( exit $ac_status ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26992 | ac_cv_have_size_t_format=no |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26993 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 26994 | rm -rf conftest.dSYM |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26995 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26996 | fi |
| 26997 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26998 | |
| 26999 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27000 | fi |
| 27001 | |
| 27002 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5 |
| 27003 | $as_echo "$ac_cv_have_size_t_format" >&6; } |
| 27004 | if test $ac_cv_have_size_t_format = yes |
| 27005 | then |
| 27006 | |
| 27007 | cat >>confdefs.h <<\_ACEOF |
| 27008 | #define PY_FORMAT_SIZE_T "z" |
| 27009 | _ACEOF |
| 27010 | |
| 27011 | fi |
| 27012 | |
| 27013 | { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 27014 | $as_echo_n "checking for socklen_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27015 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27016 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27017 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27018 | ac_cv_type_socklen_t=no |
| 27019 | cat >conftest.$ac_ext <<_ACEOF |
| 27020 | /* confdefs.h. */ |
| 27021 | _ACEOF |
| 27022 | cat confdefs.h >>conftest.$ac_ext |
| 27023 | cat >>conftest.$ac_ext <<_ACEOF |
| 27024 | /* end confdefs.h. */ |
| 27025 | |
| 27026 | #ifdef HAVE_SYS_TYPES_H |
| 27027 | #include <sys/types.h> |
| 27028 | #endif |
| 27029 | #ifdef HAVE_SYS_SOCKET_H |
| 27030 | #include <sys/socket.h> |
| 27031 | #endif |
| 27032 | |
| 27033 | |
| 27034 | int |
| 27035 | main () |
| 27036 | { |
| 27037 | if (sizeof (socklen_t)) |
| 27038 | return 0; |
| 27039 | ; |
| 27040 | return 0; |
| 27041 | } |
| 27042 | _ACEOF |
| 27043 | rm -f conftest.$ac_objext |
| 27044 | if { (ac_try="$ac_compile" |
| 27045 | case "(($ac_try" in |
| 27046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27047 | *) ac_try_echo=$ac_try;; |
| 27048 | esac |
| 27049 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27050 | $as_echo "$ac_try_echo") >&5 |
| 27051 | (eval "$ac_compile") 2>conftest.er1 |
| 27052 | ac_status=$? |
| 27053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27054 | rm -f conftest.er1 |
| 27055 | cat conftest.err >&5 |
| 27056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27057 | (exit $ac_status); } && { |
| 27058 | test -z "$ac_c_werror_flag" || |
| 27059 | test ! -s conftest.err |
| 27060 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27061 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27062 | /* confdefs.h. */ |
| 27063 | _ACEOF |
| 27064 | cat confdefs.h >>conftest.$ac_ext |
| 27065 | cat >>conftest.$ac_ext <<_ACEOF |
| 27066 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27067 | |
| 27068 | #ifdef HAVE_SYS_TYPES_H |
| 27069 | #include <sys/types.h> |
| 27070 | #endif |
| 27071 | #ifdef HAVE_SYS_SOCKET_H |
| 27072 | #include <sys/socket.h> |
| 27073 | #endif |
| 27074 | |
| 27075 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27076 | int |
| 27077 | main () |
| 27078 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27079 | if (sizeof ((socklen_t))) |
| 27080 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27081 | ; |
| 27082 | return 0; |
| 27083 | } |
| 27084 | _ACEOF |
| 27085 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27086 | if { (ac_try="$ac_compile" |
| 27087 | case "(($ac_try" in |
| 27088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27089 | *) ac_try_echo=$ac_try;; |
| 27090 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27091 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27092 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27093 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27094 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27096 | rm -f conftest.er1 |
| 27097 | cat conftest.err >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27098 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27099 | (exit $ac_status); } && { |
| 27100 | test -z "$ac_c_werror_flag" || |
| 27101 | test ! -s conftest.err |
| 27102 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27103 | : |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27104 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27105 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27107 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27108 | ac_cv_type_socklen_t=yes |
| 27109 | fi |
| 27110 | |
| 27111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27112 | else |
| 27113 | $as_echo "$as_me: failed program was:" >&5 |
| 27114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27115 | |
| 27116 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27117 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27118 | |
| 27119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27120 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27121 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 27122 | $as_echo "$ac_cv_type_socklen_t" >&6; } |
| 27123 | 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] | 27124 | : |
| 27125 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27126 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27127 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27128 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27129 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27130 | |
| 27131 | fi |
| 27132 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27133 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27134 | |
| 27135 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 27136 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 27137 | do |
| 27138 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 27139 | done |
| 27140 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27141 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 27142 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27143 | { $as_echo "$as_me:$LINENO: checking for build directories" >&5 |
| 27144 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27145 | for dir in $SRCDIRS; do |
| 27146 | if test ! -d $dir; then |
| 27147 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 27148 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27149 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27150 | { $as_echo "$as_me:$LINENO: result: done" >&5 |
| 27151 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 27152 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27153 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27154 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 27155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27156 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27157 | # This file is a shell script that caches the results of configure |
| 27158 | # 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] | 27159 | # scripts and configure runs, see configure's option --config-cache. |
| 27160 | # It is not useful on other systems. If it contains results you don't |
| 27161 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27162 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27163 | # config.status only pays attention to the cache file if you give it |
| 27164 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27165 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27166 | # `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] | 27167 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 27168 | # following values. |
| 27169 | |
| 27170 | _ACEOF |
| 27171 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 27172 | # The following way of writing the cache mishandles newlines in values, |
| 27173 | # but we know of no workaround that is simple, portable, and efficient. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27174 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27175 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 27176 | # and sets the high bit in the cache file unless we assign to the vars. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27177 | ( |
| 27178 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 27179 | eval ac_val=\$$ac_var |
| 27180 | case $ac_val in #( |
| 27181 | *${as_nl}*) |
| 27182 | case $ac_var in #( |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27183 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 27184 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27185 | esac |
| 27186 | case $ac_var in #( |
| 27187 | _ | IFS | as_nl) ;; #( |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27188 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27189 | *) $as_unset $ac_var ;; |
| 27190 | esac ;; |
| 27191 | esac |
| 27192 | done |
| 27193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27194 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27195 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 27196 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27197 | # `set' does not quote correctly, so add quotes (double-quote |
| 27198 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 27199 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27200 | "s/'/'\\\\''/g; |
| 27201 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27202 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27203 | *) |
| 27204 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27205 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27206 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27207 | esac | |
| 27208 | sort |
| 27209 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27210 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27211 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27212 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27213 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27214 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 27215 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27216 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 27217 | :end' >>confcache |
| 27218 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 27219 | if test -w "$cache_file"; then |
| 27220 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27221 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 27222 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27223 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27224 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27225 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 27226 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27227 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27228 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27229 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27230 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27231 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 27232 | # Let make expand exec_prefix. |
| 27233 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27234 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27235 | DEFS=-DHAVE_CONFIG_H |
| 27236 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27237 | ac_libobjs= |
| 27238 | ac_ltlibobjs= |
| 27239 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 27240 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27241 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27242 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27243 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 27244 | # will be set to the directory where LIBOBJS objects are built. |
| 27245 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 27246 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27247 | done |
| 27248 | LIBOBJS=$ac_libobjs |
| 27249 | |
| 27250 | LTLIBOBJS=$ac_ltlibobjs |
| 27251 | |
| 27252 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27253 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27254 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27255 | : ${CONFIG_STATUS=./config.status} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27256 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27257 | ac_clean_files_save=$ac_clean_files |
| 27258 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27259 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 27260 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 27261 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27262 | #! $SHELL |
| 27263 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27264 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27265 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27266 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27268 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27269 | ac_cs_recheck=false |
| 27270 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27271 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 27272 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27273 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27274 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27275 | ## --------------------- ## |
| 27276 | ## M4sh Initialization. ## |
| 27277 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27278 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27279 | # Be more Bourne compatible |
| 27280 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27281 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 27282 | emulate sh |
| 27283 | NULLCMD=: |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27284 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27285 | # is contrary to our usage. Disable this feature. |
| 27286 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27287 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27288 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27289 | case `(set -o) 2>/dev/null` in |
| 27290 | *posix*) set -o posix ;; |
| 27291 | esac |
| 27292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27293 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27294 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27296 | |
| 27297 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27298 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27299 | # Avoid depending upon Character Ranges. |
| 27300 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 27301 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 27302 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 27303 | as_cr_digits='0123456789' |
| 27304 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 27305 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27306 | as_nl=' |
| 27307 | ' |
| 27308 | export as_nl |
| 27309 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 27310 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 27311 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 27312 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 27313 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 27314 | as_echo='printf %s\n' |
| 27315 | as_echo_n='printf %s' |
| 27316 | else |
| 27317 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 27318 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 27319 | as_echo_n='/usr/ucb/echo -n' |
| 27320 | else |
| 27321 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 27322 | as_echo_n_body='eval |
| 27323 | arg=$1; |
| 27324 | case $arg in |
| 27325 | *"$as_nl"*) |
| 27326 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 27327 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 27328 | esac; |
| 27329 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 27330 | ' |
| 27331 | export as_echo_n_body |
| 27332 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 27333 | fi |
| 27334 | export as_echo_body |
| 27335 | as_echo='sh -c $as_echo_body as_echo' |
| 27336 | fi |
| 27337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27338 | # The user is always right. |
| 27339 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27340 | PATH_SEPARATOR=: |
| 27341 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 27342 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 27343 | PATH_SEPARATOR=';' |
| 27344 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27345 | fi |
| 27346 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27347 | # Support unset when possible. |
| 27348 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 27349 | as_unset=unset |
| 27350 | else |
| 27351 | as_unset=false |
| 27352 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27353 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27354 | |
| 27355 | # IFS |
| 27356 | # We need space, tab and new line, in precisely that order. Quoting is |
| 27357 | # there to prevent editors from complaining about space-tab. |
| 27358 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 27359 | # splitting by setting IFS to empty value.) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27360 | IFS=" "" $as_nl" |
| 27361 | |
| 27362 | # Find who we are. Look in the path if we contain no directory separator. |
| 27363 | case $0 in |
| 27364 | *[\\/]* ) as_myself=$0 ;; |
| 27365 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27366 | for as_dir in $PATH |
| 27367 | do |
| 27368 | IFS=$as_save_IFS |
| 27369 | test -z "$as_dir" && as_dir=. |
| 27370 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 27371 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27372 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27373 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27374 | ;; |
| 27375 | esac |
| 27376 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 27377 | # in which case we are not to be found in the path. |
| 27378 | if test "x$as_myself" = x; then |
| 27379 | as_myself=$0 |
| 27380 | fi |
| 27381 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27382 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27383 | { (exit 1); exit 1; } |
| 27384 | fi |
| 27385 | |
| 27386 | # Work around bugs in pre-3.0 UWIN ksh. |
| 27387 | for as_var in ENV MAIL MAILPATH |
| 27388 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 27389 | done |
| 27390 | PS1='$ ' |
| 27391 | PS2='> ' |
| 27392 | PS4='+ ' |
| 27393 | |
| 27394 | # NLS nuisances. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27395 | LC_ALL=C |
| 27396 | export LC_ALL |
| 27397 | LANGUAGE=C |
| 27398 | export LANGUAGE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27399 | |
| 27400 | # Required to use basename. |
| 27401 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 27402 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 27403 | as_expr=expr |
| 27404 | else |
| 27405 | as_expr=false |
| 27406 | fi |
| 27407 | |
| 27408 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 27409 | as_basename=basename |
| 27410 | else |
| 27411 | as_basename=false |
| 27412 | fi |
| 27413 | |
| 27414 | |
| 27415 | # Name of the executable. |
| 27416 | as_me=`$as_basename -- "$0" || |
| 27417 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 27418 | X"$0" : 'X\(//\)$' \| \ |
| 27419 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27420 | $as_echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27421 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 27422 | s//\1/ |
| 27423 | q |
| 27424 | } |
| 27425 | /^X\/\(\/\/\)$/{ |
| 27426 | s//\1/ |
| 27427 | q |
| 27428 | } |
| 27429 | /^X\/\(\/\).*/{ |
| 27430 | s//\1/ |
| 27431 | q |
| 27432 | } |
| 27433 | s/.*/./; q'` |
| 27434 | |
| 27435 | # CDPATH. |
| 27436 | $as_unset CDPATH |
| 27437 | |
| 27438 | |
| 27439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27440 | as_lineno_1=$LINENO |
| 27441 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27442 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27443 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27445 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 27446 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27447 | # line-number line after each line using $LINENO; the second 'sed' |
| 27448 | # does the real work. The second script uses 'N' to pair each |
| 27449 | # line-number line with the line containing $LINENO, and appends |
| 27450 | # trailing '-' during substitution so that $LINENO is not a special |
| 27451 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27452 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27453 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 27454 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 27455 | sed -n ' |
| 27456 | p |
| 27457 | /[$]LINENO/= |
| 27458 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27459 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27460 | s/[$]LINENO.*/&-/ |
| 27461 | t lineno |
| 27462 | b |
| 27463 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27464 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27465 | :loop |
| 27466 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27467 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27468 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27469 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27470 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27471 | { $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] | 27472 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27473 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27474 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 27475 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27476 | # original and so on. Autoconf is especially sensitive to this). |
| 27477 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27478 | # Exit status is that of the last command. |
| 27479 | exit |
| 27480 | } |
| 27481 | |
| 27482 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27483 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 27484 | as_dirname=dirname |
| 27485 | else |
| 27486 | as_dirname=false |
| 27487 | fi |
| 27488 | |
| 27489 | ECHO_C= ECHO_N= ECHO_T= |
| 27490 | case `echo -n x` in |
| 27491 | -n*) |
| 27492 | case `echo 'x\c'` in |
| 27493 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 27494 | *) ECHO_C='\c';; |
| 27495 | esac;; |
| 27496 | *) |
| 27497 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27498 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27499 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 27500 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27501 | as_expr=expr |
| 27502 | else |
| 27503 | as_expr=false |
| 27504 | fi |
| 27505 | |
| 27506 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27507 | if test -d conf$$.dir; then |
| 27508 | rm -f conf$$.dir/conf$$.file |
| 27509 | else |
| 27510 | rm -f conf$$.dir |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27511 | mkdir conf$$.dir 2>/dev/null |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27512 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27513 | if (echo >conf$$.file) 2>/dev/null; then |
| 27514 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 27515 | as_ln_s='ln -s' |
| 27516 | # ... but there are two gotchas: |
| 27517 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 27518 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 27519 | # In both cases, we have to default to `cp -p'. |
| 27520 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 27521 | as_ln_s='cp -p' |
| 27522 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 27523 | as_ln_s=ln |
| 27524 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27525 | as_ln_s='cp -p' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27526 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27527 | else |
| 27528 | as_ln_s='cp -p' |
| 27529 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27530 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 27531 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27532 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27533 | if mkdir -p . 2>/dev/null; then |
| 27534 | as_mkdir_p=: |
| 27535 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27536 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27537 | as_mkdir_p=false |
| 27538 | fi |
| 27539 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27540 | if test -x / >/dev/null 2>&1; then |
| 27541 | as_test_x='test -x' |
| 27542 | else |
| 27543 | if ls -dL / >/dev/null 2>&1; then |
| 27544 | as_ls_L_option=L |
| 27545 | else |
| 27546 | as_ls_L_option= |
| 27547 | fi |
| 27548 | as_test_x=' |
| 27549 | eval sh -c '\'' |
| 27550 | if test -d "$1"; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27551 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27552 | else |
| 27553 | case $1 in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27554 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27555 | esac; |
| 27556 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 27557 | ???[sx]*):;;*)false;;esac;fi |
| 27558 | '\'' sh |
| 27559 | ' |
| 27560 | fi |
| 27561 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27562 | |
| 27563 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27564 | 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] | 27565 | |
| 27566 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27567 | 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] | 27568 | |
| 27569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27570 | exec 6>&1 |
| 27571 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27572 | # 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] | 27573 | # report actual input values of CONFIG_FILES etc. instead of their |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27574 | # values after options handling. |
| 27575 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 27576 | This file was extended by python $as_me 2.7, which was |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27577 | generated by GNU Autoconf 2.63. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27578 | |
| 27579 | CONFIG_FILES = $CONFIG_FILES |
| 27580 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 27581 | CONFIG_LINKS = $CONFIG_LINKS |
| 27582 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 27583 | $ $0 $@ |
| 27584 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27585 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 27586 | " |
| 27587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27588 | _ACEOF |
| 27589 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27590 | case $ac_config_files in *" |
| 27591 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 27592 | esac |
| 27593 | |
| 27594 | case $ac_config_headers in *" |
| 27595 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 27596 | esac |
| 27597 | |
| 27598 | |
| 27599 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27600 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 27601 | config_files="$ac_config_files" |
| 27602 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27603 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27604 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27605 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27606 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27607 | ac_cs_usage="\ |
| 27608 | \`$as_me' instantiates files from templates according to the |
| 27609 | current configuration. |
| 27610 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27611 | Usage: $0 [OPTION]... [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27612 | |
| 27613 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27614 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27615 | -q, --quiet, --silent |
| 27616 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27617 | -d, --debug don't remove temporary files |
| 27618 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27619 | --file=FILE[:TEMPLATE] |
| 27620 | instantiate the configuration file FILE |
| 27621 | --header=FILE[:TEMPLATE] |
| 27622 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27623 | |
| 27624 | Configuration files: |
| 27625 | $config_files |
| 27626 | |
| 27627 | Configuration headers: |
| 27628 | $config_headers |
| 27629 | |
| 27630 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27631 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27632 | _ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27633 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27634 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 27635 | python config.status 2.7 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27636 | configured by $0, generated by GNU Autoconf 2.63, |
| 27637 | 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] | 27638 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27639 | Copyright (C) 2008 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27640 | This config.status script is free software; the Free Software Foundation |
| 27641 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27642 | |
| 27643 | ac_pwd='$ac_pwd' |
| 27644 | srcdir='$srcdir' |
| 27645 | INSTALL='$INSTALL' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27646 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27647 | _ACEOF |
| 27648 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27649 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 27650 | # 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] | 27651 | ac_need_defaults=: |
| 27652 | while test $# != 0 |
| 27653 | do |
| 27654 | case $1 in |
| 27655 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27656 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 27657 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27658 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27659 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27660 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27661 | ac_option=$1 |
| 27662 | ac_optarg=$2 |
| 27663 | ac_shift=shift |
| 27664 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27665 | esac |
| 27666 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27667 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27668 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27669 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 27670 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27671 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27672 | $as_echo "$ac_cs_version"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27673 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27674 | debug=: ;; |
| 27675 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27676 | $ac_shift |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27677 | case $ac_optarg in |
| 27678 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 27679 | esac |
| 27680 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27681 | ac_need_defaults=false;; |
| 27682 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27683 | $ac_shift |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27684 | case $ac_optarg in |
| 27685 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 27686 | esac |
| 27687 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27688 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27689 | --he | --h) |
| 27690 | # Conflict between --help and --header |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27691 | { $as_echo "$as_me: error: ambiguous option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27692 | Try \`$0 --help' for more information." >&2 |
| 27693 | { (exit 1); exit 1; }; };; |
| 27694 | --help | --hel | -h ) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27695 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27696 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 27697 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 27698 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27699 | |
| 27700 | # This is an error. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27701 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27702 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27703 | { (exit 1); exit 1; }; } ;; |
| 27704 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27705 | *) ac_config_targets="$ac_config_targets $1" |
| 27706 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27707 | |
| 27708 | esac |
| 27709 | shift |
| 27710 | done |
| 27711 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27712 | ac_configure_extra_args= |
| 27713 | |
| 27714 | if $ac_cs_silent; then |
| 27715 | exec 6>/dev/null |
| 27716 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 27717 | fi |
| 27718 | |
| 27719 | _ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27720 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27721 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27722 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 27723 | shift |
| 27724 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 27725 | CONFIG_SHELL='$SHELL' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27726 | export CONFIG_SHELL |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27727 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27728 | fi |
| 27729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27730 | _ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27731 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27732 | exec 5>>config.log |
| 27733 | { |
| 27734 | echo |
| 27735 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 27736 | ## Running $as_me. ## |
| 27737 | _ASBOX |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27738 | $as_echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27739 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27740 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27741 | _ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27742 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27743 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27744 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27745 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27746 | |
| 27747 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27748 | for ac_config_target in $ac_config_targets |
| 27749 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27750 | case $ac_config_target in |
| 27751 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 27752 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 27753 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 27754 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 27755 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 27756 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27757 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 27758 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27759 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27760 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27761 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 27762 | $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] | 27763 | { (exit 1); exit 1; }; };; |
| 27764 | esac |
| 27765 | done |
| 27766 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27768 | # If the user did not use the arguments to specify the items to instantiate, |
| 27769 | # then the envvar interface is used. Set only those that are not. |
| 27770 | # We use the long form for the default assignment because of an extremely |
| 27771 | # bizarre bug on SunOS 4.1.3. |
| 27772 | if $ac_need_defaults; then |
| 27773 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 27774 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 27775 | fi |
| 27776 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27777 | # Have a temporary directory for convenience. Make it in the build tree |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27778 | # 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] | 27779 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27780 | # Hook for its removal unless debugging. |
| 27781 | # Note that there is a small window in which the directory will not be cleaned: |
| 27782 | # 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] | 27783 | $debug || |
| 27784 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27785 | tmp= |
| 27786 | trap 'exit_status=$? |
| 27787 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 27788 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27789 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 27790 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27791 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27793 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27794 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27795 | test -n "$tmp" && test -d "$tmp" |
| 27796 | } || |
| 27797 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27798 | tmp=./conf$$-$RANDOM |
| 27799 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27800 | } || |
| 27801 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27802 | $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] | 27803 | { (exit 1); exit 1; } |
| 27804 | } |
| 27805 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27806 | # Set up the scripts for CONFIG_FILES section. |
| 27807 | # No need to generate them if there are no CONFIG_FILES. |
| 27808 | # This happens for instance with `./config.status config.h'. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27809 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27810 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27811 | |
| 27812 | ac_cr=`echo X | tr X '\015'` |
| 27813 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 27814 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 27815 | ac_cs_awk_cr='\\r' |
| 27816 | else |
| 27817 | ac_cs_awk_cr=$ac_cr |
| 27818 | fi |
| 27819 | |
| 27820 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27821 | _ACEOF |
| 27822 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27823 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27824 | { |
| 27825 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 27826 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 27827 | echo "_ACEOF" |
| 27828 | } >conf$$subs.sh || |
| 27829 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 27830 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 27831 | { (exit 1); exit 1; }; } |
| 27832 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27833 | ac_delim='%!_!# ' |
| 27834 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27835 | . ./conf$$subs.sh || |
| 27836 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 27837 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 27838 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27839 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27840 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 27841 | if test $ac_delim_n = $ac_delim_num; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27842 | break |
| 27843 | elif $ac_last_try; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27844 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 27845 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27846 | { (exit 1); exit 1; }; } |
| 27847 | else |
| 27848 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27849 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27850 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27851 | rm -f conf$$subs.sh |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27852 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27853 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 27854 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27855 | _ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27856 | sed -n ' |
| 27857 | h |
| 27858 | s/^/S["/; s/!.*/"]=/ |
| 27859 | p |
| 27860 | g |
| 27861 | s/^[^!]*!// |
| 27862 | :repl |
| 27863 | t repl |
| 27864 | s/'"$ac_delim"'$// |
| 27865 | t delim |
| 27866 | :nl |
| 27867 | h |
| 27868 | s/\(.\{148\}\).*/\1/ |
| 27869 | t more1 |
| 27870 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 27871 | p |
| 27872 | n |
| 27873 | b repl |
| 27874 | :more1 |
| 27875 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 27876 | p |
| 27877 | g |
| 27878 | s/.\{148\}// |
| 27879 | t nl |
| 27880 | :delim |
| 27881 | h |
| 27882 | s/\(.\{148\}\).*/\1/ |
| 27883 | t more2 |
| 27884 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 27885 | p |
| 27886 | b |
| 27887 | :more2 |
| 27888 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 27889 | p |
| 27890 | g |
| 27891 | s/.\{148\}// |
| 27892 | t delim |
| 27893 | ' <conf$$subs.awk | sed ' |
| 27894 | /^[^""]/{ |
| 27895 | N |
| 27896 | s/\n// |
| 27897 | } |
| 27898 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 27899 | rm -f conf$$subs.awk |
| 27900 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 27901 | _ACAWK |
| 27902 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 27903 | for (key in S) S_is_set[key] = 1 |
| 27904 | FS = "" |
| 27905 | |
| 27906 | } |
| 27907 | { |
| 27908 | line = $ 0 |
| 27909 | nfields = split(line, field, "@") |
| 27910 | substed = 0 |
| 27911 | len = length(field[1]) |
| 27912 | for (i = 2; i < nfields; i++) { |
| 27913 | key = field[i] |
| 27914 | keylen = length(key) |
| 27915 | if (S_is_set[key]) { |
| 27916 | value = S[key] |
| 27917 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 27918 | len += length(value) + length(field[++i]) |
| 27919 | substed = 1 |
| 27920 | } else |
| 27921 | len += 1 + keylen |
| 27922 | } |
| 27923 | |
| 27924 | print line |
| 27925 | } |
| 27926 | |
| 27927 | _ACAWK |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27928 | _ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27929 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 27930 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 27931 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 27932 | else |
| 27933 | cat |
| 27934 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 27935 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 27936 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27937 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27938 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27939 | |
| 27940 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 27941 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 27942 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 27943 | # (actually we leave an empty line to preserve line numbers). |
| 27944 | if test "x$srcdir" = x.; then |
| 27945 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 27946 | s/:*\$(srcdir):*/:/ |
| 27947 | s/:*\${srcdir}:*/:/ |
| 27948 | s/:*@srcdir@:*/:/ |
| 27949 | s/^\([^=]*=[ ]*\):*/\1/ |
| 27950 | s/:*$// |
| 27951 | s/^[^=]*=[ ]*$// |
| 27952 | }' |
| 27953 | fi |
| 27954 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27955 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27956 | fi # test -n "$CONFIG_FILES" |
| 27957 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27958 | # Set up the scripts for CONFIG_HEADERS section. |
| 27959 | # No need to generate them if there are no CONFIG_HEADERS. |
| 27960 | # This happens for instance with `./config.status Makefile'. |
| 27961 | if test -n "$CONFIG_HEADERS"; then |
| 27962 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 27963 | BEGIN { |
| 27964 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27965 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 27966 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 27967 | # here-document in config.status, that substitutes the proper values into |
| 27968 | # config.h.in to produce config.h. |
| 27969 | |
| 27970 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 27971 | # handling of long lines. |
| 27972 | ac_delim='%!_!# ' |
| 27973 | for ac_last_try in false false :; do |
| 27974 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 27975 | if test -z "$ac_t"; then |
| 27976 | break |
| 27977 | elif $ac_last_try; then |
| 27978 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 27979 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 27980 | { (exit 1); exit 1; }; } |
| 27981 | else |
| 27982 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 27983 | fi |
| 27984 | done |
| 27985 | |
| 27986 | # For the awk script, D is an array of macro values keyed by name, |
| 27987 | # likewise P contains macro parameters if any. Preserve backslash |
| 27988 | # newline sequences. |
| 27989 | |
| 27990 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 27991 | sed -n ' |
| 27992 | s/.\{148\}/&'"$ac_delim"'/g |
| 27993 | t rset |
| 27994 | :rset |
| 27995 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 27996 | t def |
| 27997 | d |
| 27998 | :def |
| 27999 | s/\\$// |
| 28000 | t bsnl |
| 28001 | s/["\\]/\\&/g |
| 28002 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 28003 | D["\1"]=" \3"/p |
| 28004 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 28005 | d |
| 28006 | :bsnl |
| 28007 | s/["\\]/\\&/g |
| 28008 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 28009 | D["\1"]=" \3\\\\\\n"\\/p |
| 28010 | t cont |
| 28011 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 28012 | t cont |
| 28013 | d |
| 28014 | :cont |
| 28015 | n |
| 28016 | s/.\{148\}/&'"$ac_delim"'/g |
| 28017 | t clear |
| 28018 | :clear |
| 28019 | s/\\$// |
| 28020 | t bsnlc |
| 28021 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 28022 | d |
| 28023 | :bsnlc |
| 28024 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 28025 | b cont |
| 28026 | ' <confdefs.h | sed ' |
| 28027 | s/'"$ac_delim"'/"\\\ |
| 28028 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 28029 | |
| 28030 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 28031 | for (key in D) D_is_set[key] = 1 |
| 28032 | FS = "" |
| 28033 | } |
| 28034 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 28035 | line = \$ 0 |
| 28036 | split(line, arg, " ") |
| 28037 | if (arg[1] == "#") { |
| 28038 | defundef = arg[2] |
| 28039 | mac1 = arg[3] |
| 28040 | } else { |
| 28041 | defundef = substr(arg[1], 2) |
| 28042 | mac1 = arg[2] |
| 28043 | } |
| 28044 | split(mac1, mac2, "(") #) |
| 28045 | macro = mac2[1] |
| 28046 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 28047 | if (D_is_set[macro]) { |
| 28048 | # Preserve the white space surrounding the "#". |
| 28049 | print prefix "define", macro P[macro] D[macro] |
| 28050 | next |
| 28051 | } else { |
| 28052 | # Replace #undef with comments. This is necessary, for example, |
| 28053 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 28054 | # on some systems where configure will not decide to define it. |
| 28055 | if (defundef == "undef") { |
| 28056 | print "/*", prefix defundef, macro, "*/" |
| 28057 | next |
| 28058 | } |
| 28059 | } |
| 28060 | } |
| 28061 | { print } |
| 28062 | _ACAWK |
| 28063 | _ACEOF |
| 28064 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 28065 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 28066 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 28067 | { (exit 1); exit 1; }; } |
| 28068 | fi # test -n "$CONFIG_HEADERS" |
| 28069 | |
| 28070 | |
| 28071 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 28072 | shift |
| 28073 | for ac_tag |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28074 | do |
| 28075 | case $ac_tag in |
| 28076 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 28077 | esac |
| 28078 | case $ac_mode$ac_tag in |
| 28079 | :[FHL]*:*);; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28080 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
| 28081 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28082 | { (exit 1); exit 1; }; };; |
| 28083 | :[FH]-) ac_tag=-:-;; |
| 28084 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 28085 | esac |
| 28086 | ac_save_IFS=$IFS |
| 28087 | IFS=: |
| 28088 | set x $ac_tag |
| 28089 | IFS=$ac_save_IFS |
| 28090 | shift |
| 28091 | ac_file=$1 |
| 28092 | shift |
| 28093 | |
| 28094 | case $ac_mode in |
| 28095 | :L) ac_source=$1;; |
| 28096 | :[FH]) |
| 28097 | ac_file_inputs= |
| 28098 | for ac_f |
| 28099 | do |
| 28100 | case $ac_f in |
| 28101 | -) ac_f="$tmp/stdin";; |
| 28102 | *) # Look for the file first in the build tree, then in the source tree |
| 28103 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 28104 | # because $ac_f cannot contain `:'. |
| 28105 | test -f "$ac_f" || |
| 28106 | case $ac_f in |
| 28107 | [\\/$]*) false;; |
| 28108 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 28109 | esac || |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28110 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 28111 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28112 | { (exit 1); exit 1; }; };; |
| 28113 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28114 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 28115 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28116 | done |
| 28117 | |
| 28118 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 28119 | # use $as_me), people would be surprised to read: |
| 28120 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28121 | configure_input='Generated from '` |
| 28122 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 28123 | `' by configure.' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28124 | if test x"$ac_file" != x-; then |
| 28125 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28126 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 28127 | $as_echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28128 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28129 | # Neutralize special characters interpreted by sed in replacement strings. |
| 28130 | case $configure_input in #( |
| 28131 | *\&* | *\|* | *\\* ) |
| 28132 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 28133 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 28134 | *) ac_sed_conf_input=$configure_input;; |
| 28135 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28136 | |
| 28137 | case $ac_tag in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28138 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 28139 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 28140 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 28141 | { (exit 1); exit 1; }; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28142 | esac |
| 28143 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28144 | esac |
| 28145 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28146 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28147 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28148 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 28149 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28150 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28151 | $as_echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28152 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28153 | s//\1/ |
| 28154 | q |
| 28155 | } |
| 28156 | /^X\(\/\/\)[^/].*/{ |
| 28157 | s//\1/ |
| 28158 | q |
| 28159 | } |
| 28160 | /^X\(\/\/\)$/{ |
| 28161 | s//\1/ |
| 28162 | q |
| 28163 | } |
| 28164 | /^X\(\/\).*/{ |
| 28165 | s//\1/ |
| 28166 | q |
| 28167 | } |
| 28168 | s/.*/./; q'` |
| 28169 | { as_dir="$ac_dir" |
| 28170 | case $as_dir in #( |
| 28171 | -*) as_dir=./$as_dir;; |
| 28172 | esac |
| 28173 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28174 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28175 | while :; do |
| 28176 | case $as_dir in #( |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28177 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28178 | *) as_qdir=$as_dir;; |
| 28179 | esac |
| 28180 | as_dirs="'$as_qdir' $as_dirs" |
| 28181 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28182 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28183 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 28184 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28185 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28186 | $as_echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28187 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28188 | s//\1/ |
| 28189 | q |
| 28190 | } |
| 28191 | /^X\(\/\/\)[^/].*/{ |
| 28192 | s//\1/ |
| 28193 | q |
| 28194 | } |
| 28195 | /^X\(\/\/\)$/{ |
| 28196 | s//\1/ |
| 28197 | q |
| 28198 | } |
| 28199 | /^X\(\/\).*/{ |
| 28200 | s//\1/ |
| 28201 | q |
| 28202 | } |
| 28203 | s/.*/./; q'` |
| 28204 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28205 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28206 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28207 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 28208 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28209 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28210 | ac_builddir=. |
| 28211 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28212 | case "$ac_dir" in |
| 28213 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28214 | *) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28215 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28216 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28217 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28218 | case $ac_top_builddir_sub in |
| 28219 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28220 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 28221 | esac ;; |
| 28222 | esac |
| 28223 | ac_abs_top_builddir=$ac_pwd |
| 28224 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 28225 | # for backward compatibility: |
| 28226 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28227 | |
| 28228 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28229 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28230 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28231 | ac_top_srcdir=$ac_top_builddir_sub |
| 28232 | ac_abs_top_srcdir=$ac_pwd ;; |
| 28233 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28234 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28235 | ac_top_srcdir=$srcdir |
| 28236 | ac_abs_top_srcdir=$srcdir ;; |
| 28237 | *) # Relative name. |
| 28238 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 28239 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 28240 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28241 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28242 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28244 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28245 | case $ac_mode in |
| 28246 | :F) |
| 28247 | # |
| 28248 | # CONFIG_FILE |
| 28249 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28250 | |
| 28251 | case $INSTALL in |
| 28252 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28253 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28254 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 28255 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28256 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28257 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28258 | # If the template does not know about datarootdir, expand it. |
| 28259 | # FIXME: This hack should be removed a few years after 2.60. |
| 28260 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 28261 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28262 | ac_sed_dataroot=' |
| 28263 | /datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28264 | p |
| 28265 | q |
| 28266 | } |
| 28267 | /@datadir@/p |
| 28268 | /@docdir@/p |
| 28269 | /@infodir@/p |
| 28270 | /@localedir@/p |
| 28271 | /@mandir@/p |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28272 | ' |
| 28273 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28274 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 28275 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28276 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 28277 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28278 | _ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28279 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28280 | ac_datarootdir_hack=' |
| 28281 | s&@datadir@&$datadir&g |
| 28282 | s&@docdir@&$docdir&g |
| 28283 | s&@infodir@&$infodir&g |
| 28284 | s&@localedir@&$localedir&g |
| 28285 | s&@mandir@&$mandir&g |
| 28286 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 28287 | esac |
| 28288 | _ACEOF |
| 28289 | |
| 28290 | # Neutralize VPATH when `$srcdir' = `.'. |
| 28291 | # Shell code in configure.ac might set extrasub. |
| 28292 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28293 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 28294 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28295 | $extrasub |
| 28296 | _ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28297 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28298 | :t |
| 28299 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28300 | s|@configure_input@|$ac_sed_conf_input|;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28301 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28302 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28303 | s&@srcdir@&$ac_srcdir&;t t |
| 28304 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 28305 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 28306 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 28307 | s&@builddir@&$ac_builddir&;t t |
| 28308 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 28309 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 28310 | s&@INSTALL@&$ac_INSTALL&;t t |
| 28311 | $ac_datarootdir_hack |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28312 | " |
| 28313 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 28314 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 28315 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 28316 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 28317 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28318 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 28319 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 28320 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28321 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28322 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28323 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28324 | which seems to be undefined. Please make sure it is defined." >&2;} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 28325 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28326 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28327 | case $ac_file in |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28328 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 28329 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 28330 | esac \ |
| 28331 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 28332 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 28333 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28334 | ;; |
| 28335 | :H) |
| 28336 | # |
| 28337 | # CONFIG_HEADER |
| 28338 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28339 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28340 | { |
| 28341 | $as_echo "/* $configure_input */" \ |
| 28342 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 28343 | } >"$tmp/config.h" \ |
| 28344 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 28345 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 28346 | { (exit 1); exit 1; }; } |
| 28347 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 28348 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 28349 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28350 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28351 | rm -f "$ac_file" |
| 28352 | mv "$tmp/config.h" "$ac_file" \ |
| 28353 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 28354 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 28355 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28356 | fi |
| 28357 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28358 | $as_echo "/* $configure_input */" \ |
| 28359 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 28360 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 28361 | $as_echo "$as_me: error: could not create -" >&2;} |
| 28362 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28363 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28364 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 28365 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28366 | |
| 28367 | esac |
| 28368 | |
| 28369 | done # for ac_tag |
| 28370 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 28371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28372 | { (exit 0); exit 0; } |
| 28373 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 28374 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28375 | ac_clean_files=$ac_clean_files_save |
| 28376 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28377 | test $ac_write_fail = 0 || |
| 28378 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 28379 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 28380 | { (exit 1); exit 1; }; } |
| 28381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28382 | |
| 28383 | # configure is writing to config.log, and then calls config.status. |
| 28384 | # config.status does its own redirection, appending to config.log. |
| 28385 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 28386 | # by configure, so config.status won't be able to write to it; its |
| 28387 | # output is simply discarded. So we exec the FD to /dev/null, |
| 28388 | # effectively closing config.log, so it can be properly (re)opened and |
| 28389 | # appended to by config.status. When coming back to configure, we |
| 28390 | # need to make the FD available again. |
| 28391 | if test "$no_create" != yes; then |
| 28392 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28393 | ac_config_status_args= |
| 28394 | test "$silent" = yes && |
| 28395 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28396 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28397 | $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] | 28398 | exec 5>>config.log |
| 28399 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 28400 | # would make configure fail if this is the last instruction. |
| 28401 | $ac_cs_success || { (exit 1); exit 1; } |
| 28402 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28403 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 28404 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 28405 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 28406 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 28407 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 28408 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 28409 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 28410 | if test ! -f Modules/Setup |
| 28411 | then |
| 28412 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 28413 | fi |
| 28414 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 28415 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 28416 | if test ! -f Modules/Setup.local |
| 28417 | then |
| 28418 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 28419 | fi |
| 28420 | |
| 28421 | echo "creating Makefile" |
| 28422 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 28423 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 28424 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28425 | |
| 28426 | case $ac_sys_system in |
| 28427 | BeOS) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28428 | { $as_echo "$as_me:$LINENO: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28429 | |
| 28430 | Support for BeOS is deprecated as of Python 2.6. |
| 28431 | See PEP 11 for the gory details. |
| 28432 | " >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame^] | 28433 | $as_echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28434 | |
| 28435 | Support for BeOS is deprecated as of Python 2.6. |
| 28436 | See PEP 11 for the gory details. |
| 28437 | " >&2;} |
| 28438 | ;; |
| 28439 | *) ;; |
| 28440 | esac |
| 28441 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 28442 | mv config.c Modules |