Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 1.329 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.53. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 7 | # Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 12 | as_expr=expr |
| 13 | else |
| 14 | as_expr=false |
| 15 | fi |
| 16 | |
| 17 | |
| 18 | ## --------------------- ## |
| 19 | ## M4sh Initialization. ## |
| 20 | ## --------------------- ## |
| 21 | |
| 22 | # Be Bourne compatible |
| 23 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 24 | emulate sh |
| 25 | NULLCMD=: |
| 26 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 27 | set -o posix |
| 28 | fi |
| 29 | |
| 30 | # NLS nuisances. |
| 31 | # Support unset when possible. |
| 32 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 33 | as_unset=unset |
| 34 | else |
| 35 | as_unset=false |
| 36 | fi |
| 37 | |
| 38 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 39 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 40 | { LANG=C; export LANG; } |
| 41 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 42 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 43 | { LC_ALL=C; export LC_ALL; } |
| 44 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 45 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 46 | { LC_TIME=C; export LC_TIME; } |
| 47 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 48 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 49 | { LC_CTYPE=C; export LC_CTYPE; } |
| 50 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 51 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 52 | { LANGUAGE=C; export LANGUAGE; } |
| 53 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 54 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 55 | { LC_COLLATE=C; export LC_COLLATE; } |
| 56 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 57 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 58 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 59 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 60 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 61 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 62 | |
| 63 | |
| 64 | # Name of the executable. |
| 65 | as_me=`(basename "$0") 2>/dev/null || |
| 66 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 67 | X"$0" : 'X\(//\)$' \| \ |
| 68 | X"$0" : 'X\(/\)$' \| \ |
| 69 | . : '\(.\)' 2>/dev/null || |
| 70 | echo X/"$0" | |
| 71 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 72 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 74 | s/.*/./; q'` |
| 75 | |
| 76 | # PATH needs CR, and LINENO needs CR and PATH. |
| 77 | # Avoid depending upon Character Ranges. |
| 78 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 79 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 80 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 81 | as_cr_digits='0123456789' |
| 82 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 83 | |
| 84 | # The user is always right. |
| 85 | if test "${PATH_SEPARATOR+set}" != set; then |
| 86 | echo "#! /bin/sh" >conftest.sh |
| 87 | echo "exit 0" >>conftest.sh |
| 88 | chmod +x conftest.sh |
| 89 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 90 | PATH_SEPARATOR=';' |
| 91 | else |
| 92 | PATH_SEPARATOR=: |
| 93 | fi |
| 94 | rm -f conftest.sh |
| 95 | fi |
| 96 | |
| 97 | |
| 98 | as_lineno_1=$LINENO |
| 99 | as_lineno_2=$LINENO |
| 100 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 101 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 102 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 103 | # Find who we are. Look in the path if we contain no path at all |
| 104 | # relative or not. |
| 105 | case $0 in |
| 106 | *[\\/]* ) as_myself=$0 ;; |
| 107 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 108 | for as_dir in $PATH |
| 109 | do |
| 110 | IFS=$as_save_IFS |
| 111 | test -z "$as_dir" && as_dir=. |
| 112 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 113 | done |
| 114 | |
| 115 | ;; |
| 116 | esac |
| 117 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 118 | # in which case we are not to be found in the path. |
| 119 | if test "x$as_myself" = x; then |
| 120 | as_myself=$0 |
| 121 | fi |
| 122 | if test ! -f "$as_myself"; then |
| 123 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 124 | { (exit 1); exit 1; }; } |
| 125 | fi |
| 126 | case $CONFIG_SHELL in |
| 127 | '') |
| 128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 129 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 130 | do |
| 131 | IFS=$as_save_IFS |
| 132 | test -z "$as_dir" && as_dir=. |
| 133 | for as_base in sh bash ksh sh5; do |
| 134 | case $as_dir in |
| 135 | /*) |
| 136 | if ("$as_dir/$as_base" -c ' |
| 137 | as_lineno_1=$LINENO |
| 138 | as_lineno_2=$LINENO |
| 139 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 140 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 141 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 142 | CONFIG_SHELL=$as_dir/$as_base |
| 143 | export CONFIG_SHELL |
| 144 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 145 | fi;; |
| 146 | esac |
| 147 | done |
| 148 | done |
| 149 | ;; |
| 150 | esac |
| 151 | |
| 152 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 153 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 154 | # line-number line before each line; the second 'sed' does the real |
| 155 | # work. The second script uses 'N' to pair each line-number line |
| 156 | # with the numbered line, and appends trailing '-' during |
| 157 | # substitution so that $LINENO is not a special case at line end. |
| 158 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 159 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 160 | sed '=' <$as_myself | |
| 161 | sed ' |
| 162 | N |
| 163 | s,$,-, |
| 164 | : loop |
| 165 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 166 | t loop |
| 167 | s,-$,, |
| 168 | s,^['$as_cr_digits']*\n,, |
| 169 | ' >$as_me.lineno && |
| 170 | chmod +x $as_me.lineno || |
| 171 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 172 | { (exit 1); exit 1; }; } |
| 173 | |
| 174 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 175 | # (the dirname of $[0] is not the place where we might find the |
| 176 | # original and so on. Autoconf is especially sensible to this). |
| 177 | . ./$as_me.lineno |
| 178 | # Exit status is that of the last command. |
| 179 | exit |
| 180 | } |
| 181 | |
| 182 | |
| 183 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 184 | *c*,-n*) ECHO_N= ECHO_C=' |
| 185 | ' ECHO_T=' ' ;; |
| 186 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 187 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 188 | esac |
| 189 | |
| 190 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 191 | as_expr=expr |
| 192 | else |
| 193 | as_expr=false |
| 194 | fi |
| 195 | |
| 196 | rm -f conf$$ conf$$.exe conf$$.file |
| 197 | echo >conf$$.file |
| 198 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 199 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 200 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 201 | if test -f conf$$.exe; then |
| 202 | # Don't use ln at all; we don't have any links |
| 203 | as_ln_s='cp -p' |
| 204 | else |
| 205 | as_ln_s='ln -s' |
| 206 | fi |
| 207 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 208 | as_ln_s=ln |
| 209 | else |
| 210 | as_ln_s='cp -p' |
| 211 | fi |
| 212 | rm -f conf$$ conf$$.exe conf$$.file |
| 213 | |
| 214 | as_executable_p="test -f" |
| 215 | |
| 216 | # Sed expression to map a string onto a valid CPP name. |
| 217 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 218 | |
| 219 | # Sed expression to map a string onto a valid variable name. |
| 220 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 221 | |
| 222 | |
| 223 | # IFS |
| 224 | # We need space, tab and new line, in precisely that order. |
| 225 | as_nl=' |
| 226 | ' |
| 227 | IFS=" $as_nl" |
| 228 | |
| 229 | # CDPATH. |
| 230 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 231 | |
| 232 | |
| 233 | # Name of the host. |
| 234 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 235 | # so uname gets run too. |
| 236 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 237 | |
| 238 | exec 6>&1 |
| 239 | |
| 240 | # |
| 241 | # Initializations. |
| 242 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 243 | ac_default_prefix=/usr/local |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 244 | cross_compiling=no |
| 245 | subdirs= |
| 246 | MFLAGS= |
| 247 | MAKEFLAGS= |
| 248 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 249 | |
| 250 | # Maximum number of lines to put in a shell here document. |
| 251 | # This variable seems obsolete. It should probably be removed, and |
| 252 | # only ac_max_sed_lines should be used. |
| 253 | : ${ac_max_here_lines=38} |
| 254 | |
| 255 | # Identity of this package. |
| 256 | PACKAGE_NAME= |
| 257 | PACKAGE_TARNAME= |
| 258 | PACKAGE_VERSION= |
| 259 | PACKAGE_STRING= |
| 260 | PACKAGE_BUGREPORT= |
| 261 | |
| 262 | ac_unique_file="Include/object.h" |
| 263 | # Factoring default headers for most tests. |
| 264 | ac_includes_default="\ |
| 265 | #include <stdio.h> |
| 266 | #if HAVE_SYS_TYPES_H |
| 267 | # include <sys/types.h> |
| 268 | #endif |
| 269 | #if HAVE_SYS_STAT_H |
| 270 | # include <sys/stat.h> |
| 271 | #endif |
| 272 | #if STDC_HEADERS |
| 273 | # include <stdlib.h> |
| 274 | # include <stddef.h> |
| 275 | #else |
| 276 | # if HAVE_STDLIB_H |
| 277 | # include <stdlib.h> |
| 278 | # endif |
| 279 | #endif |
| 280 | #if HAVE_STRING_H |
| 281 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 282 | # include <memory.h> |
| 283 | # endif |
| 284 | # include <string.h> |
| 285 | #endif |
| 286 | #if HAVE_STRINGS_H |
| 287 | # include <strings.h> |
| 288 | #endif |
| 289 | #if HAVE_INTTYPES_H |
| 290 | # include <inttypes.h> |
| 291 | #else |
| 292 | # if HAVE_STDINT_H |
| 293 | # include <stdint.h> |
| 294 | # endif |
| 295 | #endif |
| 296 | #if HAVE_UNISTD_H |
| 297 | # include <unistd.h> |
| 298 | #endif" |
| 299 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 300 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 301 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 302 | ac_init_help= |
| 303 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 304 | # The variables have the same names as the options, with |
| 305 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 306 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 307 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 308 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 309 | no_recursion= |
| 310 | prefix=NONE |
| 311 | program_prefix=NONE |
| 312 | program_suffix=NONE |
| 313 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 314 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 315 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 316 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 317 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 318 | x_includes=NONE |
| 319 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 320 | |
| 321 | # Installation directory options. |
| 322 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 323 | # and all the variables that are supposed to be based on exec_prefix |
| 324 | # by default will actually change. |
| 325 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 326 | bindir='${exec_prefix}/bin' |
| 327 | sbindir='${exec_prefix}/sbin' |
| 328 | libexecdir='${exec_prefix}/libexec' |
| 329 | datadir='${prefix}/share' |
| 330 | sysconfdir='${prefix}/etc' |
| 331 | sharedstatedir='${prefix}/com' |
| 332 | localstatedir='${prefix}/var' |
| 333 | libdir='${exec_prefix}/lib' |
| 334 | includedir='${prefix}/include' |
| 335 | oldincludedir='/usr/include' |
| 336 | infodir='${prefix}/info' |
| 337 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 338 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 339 | ac_prev= |
| 340 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 341 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 342 | # If the previous option needs an argument, assign it. |
| 343 | if test -n "$ac_prev"; then |
| 344 | eval "$ac_prev=\$ac_option" |
| 345 | ac_prev= |
| 346 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 347 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 348 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 349 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 350 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 351 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 353 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 354 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 355 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 356 | ac_prev=bindir ;; |
| 357 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 358 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 359 | |
| 360 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 361 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 362 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 363 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 364 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 365 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 366 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 367 | ac_prev=cache_file ;; |
| 368 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 369 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 370 | cache_file=$ac_optarg ;; |
| 371 | |
| 372 | --config-cache | -C) |
| 373 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 374 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 375 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 376 | ac_prev=datadir ;; |
| 377 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 378 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 379 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 380 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 381 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 382 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 383 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 384 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 385 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 386 | { (exit 1); exit 1; }; } |
| 387 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 388 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 389 | |
| 390 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 391 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 392 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 393 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 394 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 395 | { (exit 1); exit 1; }; } |
| 396 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 397 | case $ac_option in |
| 398 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 399 | *) ac_optarg=yes ;; |
| 400 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 401 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 402 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 403 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 404 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 405 | | --exec | --exe | --ex) |
| 406 | ac_prev=exec_prefix ;; |
| 407 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 408 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 409 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 410 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 411 | |
| 412 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 413 | # Obsolete; use --with-gas. |
| 414 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 416 | -help | --help | --hel | --he | -h) |
| 417 | ac_init_help=long ;; |
| 418 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 419 | ac_init_help=recursive ;; |
| 420 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 421 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 422 | |
| 423 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 424 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 425 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 426 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 427 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 428 | -includedir | --includedir | --includedi | --included | --include \ |
| 429 | | --includ | --inclu | --incl | --inc) |
| 430 | ac_prev=includedir ;; |
| 431 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 432 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 433 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 434 | |
| 435 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 436 | ac_prev=infodir ;; |
| 437 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 439 | |
| 440 | -libdir | --libdir | --libdi | --libd) |
| 441 | ac_prev=libdir ;; |
| 442 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 443 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 444 | |
| 445 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 446 | | --libexe | --libex | --libe) |
| 447 | ac_prev=libexecdir ;; |
| 448 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 449 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 451 | |
| 452 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 453 | | --localstate | --localstat | --localsta | --localst \ |
| 454 | | --locals | --local | --loca | --loc | --lo) |
| 455 | ac_prev=localstatedir ;; |
| 456 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 457 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 458 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 459 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 460 | |
| 461 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 462 | ac_prev=mandir ;; |
| 463 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 465 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 466 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 467 | # Obsolete; use --without-fp. |
| 468 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 469 | |
| 470 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 471 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 472 | no_create=yes ;; |
| 473 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 474 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 475 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 476 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 477 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 478 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 479 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 480 | | --oldin | --oldi | --old | --ol | --o) |
| 481 | ac_prev=oldincludedir ;; |
| 482 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 483 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 484 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 485 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 486 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 487 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 488 | ac_prev=prefix ;; |
| 489 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 490 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 491 | |
| 492 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 493 | | --program-pre | --program-pr | --program-p) |
| 494 | ac_prev=program_prefix ;; |
| 495 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 496 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 497 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 498 | |
| 499 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 500 | | --program-suf | --program-su | --program-s) |
| 501 | ac_prev=program_suffix ;; |
| 502 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 503 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 504 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 505 | |
| 506 | -program-transform-name | --program-transform-name \ |
| 507 | | --program-transform-nam | --program-transform-na \ |
| 508 | | --program-transform-n | --program-transform- \ |
| 509 | | --program-transform | --program-transfor \ |
| 510 | | --program-transfo | --program-transf \ |
| 511 | | --program-trans | --program-tran \ |
| 512 | | --progr-tra | --program-tr | --program-t) |
| 513 | ac_prev=program_transform_name ;; |
| 514 | -program-transform-name=* | --program-transform-name=* \ |
| 515 | | --program-transform-nam=* | --program-transform-na=* \ |
| 516 | | --program-transform-n=* | --program-transform-=* \ |
| 517 | | --program-transform=* | --program-transfor=* \ |
| 518 | | --program-transfo=* | --program-transf=* \ |
| 519 | | --program-trans=* | --program-tran=* \ |
| 520 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 521 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 522 | |
| 523 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 524 | | -silent | --silent | --silen | --sile | --sil) |
| 525 | silent=yes ;; |
| 526 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 527 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 528 | ac_prev=sbindir ;; |
| 529 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 530 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 531 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 532 | |
| 533 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 534 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 535 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 536 | | --sha | --sh) |
| 537 | ac_prev=sharedstatedir ;; |
| 538 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 539 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 540 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 541 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 542 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 543 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | -site | --site | --sit) |
| 545 | ac_prev=site ;; |
| 546 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 547 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 548 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 549 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 550 | ac_prev=srcdir ;; |
| 551 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 553 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 554 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 555 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 556 | ac_prev=sysconfdir ;; |
| 557 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 558 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 559 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 560 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 561 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 563 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 564 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 565 | |
| 566 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 567 | verbose=yes ;; |
| 568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | -version | --version | --versio | --versi | --vers | -V) |
| 570 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 571 | |
| 572 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 573 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 574 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 576 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 577 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 578 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 | case $ac_option in |
| 580 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 581 | *) ac_optarg=yes ;; |
| 582 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 583 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 584 | |
| 585 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 586 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 587 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 590 | { (exit 1); exit 1; }; } |
| 591 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 592 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 593 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 594 | --x) |
| 595 | # Obsolete; use --with-x. |
| 596 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 597 | |
| 598 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 599 | | --x-incl | --x-inc | --x-in | --x-i) |
| 600 | ac_prev=x_includes ;; |
| 601 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 602 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 604 | |
| 605 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 606 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 607 | ac_prev=x_libraries ;; |
| 608 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 609 | | --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] | 610 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 612 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 613 | Try \`$0 --help' for more information." >&2 |
| 614 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 615 | ;; |
| 616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 617 | *=*) |
| 618 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 619 | # Reject names that are not valid shell variable names. |
| 620 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 621 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 622 | { (exit 1); exit 1; }; } |
| 623 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 624 | eval "$ac_envvar='$ac_optarg'" |
| 625 | export $ac_envvar ;; |
| 626 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 627 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 628 | # FIXME: should be removed in autoconf 3.0. |
| 629 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 630 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 631 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 632 | : ${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] | 633 | ;; |
| 634 | |
| 635 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 636 | done |
| 637 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 638 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 639 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 640 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 641 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 642 | fi |
| 643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 644 | # Be sure to have absolute paths. |
| 645 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 646 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 647 | eval ac_val=$`echo $ac_var` |
| 648 | case $ac_val in |
| 649 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 650 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 651 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 652 | esac |
| 653 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 655 | # Be sure to have absolute paths. |
| 656 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 657 | localstatedir libdir includedir oldincludedir infodir mandir |
| 658 | do |
| 659 | eval ac_val=$`echo $ac_var` |
| 660 | case $ac_val in |
| 661 | [\\/$]* | ?:[\\/]* ) ;; |
| 662 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 663 | { (exit 1); exit 1; }; };; |
| 664 | esac |
| 665 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 667 | # There might be people who depend on the old broken behavior: `$host' |
| 668 | # used to hold the argument of --host etc. |
| 669 | # FIXME: To remove some day. |
| 670 | build=$build_alias |
| 671 | host=$host_alias |
| 672 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 674 | # FIXME: To remove some day. |
| 675 | if test "x$host_alias" != x; then |
| 676 | if test "x$build_alias" = x; then |
| 677 | cross_compiling=maybe |
| 678 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 679 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 680 | elif test "x$build_alias" != "x$host_alias"; then |
| 681 | cross_compiling=yes |
| 682 | fi |
| 683 | fi |
| 684 | |
| 685 | ac_tool_prefix= |
| 686 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 687 | |
| 688 | test "$silent" = yes && exec 6>/dev/null |
| 689 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 690 | |
| 691 | # Find the source files, if location was not specified. |
| 692 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 693 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 694 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 695 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 696 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 697 | X"$0" : 'X\(//\)[^/]' \| \ |
| 698 | X"$0" : 'X\(//\)$' \| \ |
| 699 | X"$0" : 'X\(/\)' \| \ |
| 700 | . : '\(.\)' 2>/dev/null || |
| 701 | echo X"$0" | |
| 702 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 703 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 704 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 705 | /^X\(\/\).*/{ s//\1/; q; } |
| 706 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 707 | srcdir=$ac_confdir |
| 708 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 709 | srcdir=.. |
| 710 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 711 | else |
| 712 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 713 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 714 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 715 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 716 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 717 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 718 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 719 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 720 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 721 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 722 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 723 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 724 | ac_env_build_alias_set=${build_alias+set} |
| 725 | ac_env_build_alias_value=$build_alias |
| 726 | ac_cv_env_build_alias_set=${build_alias+set} |
| 727 | ac_cv_env_build_alias_value=$build_alias |
| 728 | ac_env_host_alias_set=${host_alias+set} |
| 729 | ac_env_host_alias_value=$host_alias |
| 730 | ac_cv_env_host_alias_set=${host_alias+set} |
| 731 | ac_cv_env_host_alias_value=$host_alias |
| 732 | ac_env_target_alias_set=${target_alias+set} |
| 733 | ac_env_target_alias_value=$target_alias |
| 734 | ac_cv_env_target_alias_set=${target_alias+set} |
| 735 | ac_cv_env_target_alias_value=$target_alias |
| 736 | ac_env_CC_set=${CC+set} |
| 737 | ac_env_CC_value=$CC |
| 738 | ac_cv_env_CC_set=${CC+set} |
| 739 | ac_cv_env_CC_value=$CC |
| 740 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 741 | ac_env_CFLAGS_value=$CFLAGS |
| 742 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 743 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 744 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 745 | ac_env_LDFLAGS_value=$LDFLAGS |
| 746 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 747 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 748 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 749 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 750 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 751 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 752 | ac_env_CPP_set=${CPP+set} |
| 753 | ac_env_CPP_value=$CPP |
| 754 | ac_cv_env_CPP_set=${CPP+set} |
| 755 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 757 | # |
| 758 | # Report the --help message. |
| 759 | # |
| 760 | if test "$ac_init_help" = "long"; then |
| 761 | # Omit some internal or obsolete options to make the list less imposing. |
| 762 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 763 | cat <<_ACEOF |
| 764 | \`configure' configures this package to adapt to many kinds of systems. |
| 765 | |
| 766 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 767 | |
| 768 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 769 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 770 | |
| 771 | Defaults for the options are specified in brackets. |
| 772 | |
| 773 | Configuration: |
| 774 | -h, --help display this help and exit |
| 775 | --help=short display options specific to this package |
| 776 | --help=recursive display the short help of all the included packages |
| 777 | -V, --version display version information and exit |
| 778 | -q, --quiet, --silent do not print \`checking...' messages |
| 779 | --cache-file=FILE cache test results in FILE [disabled] |
| 780 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 781 | -n, --no-create do not create output files |
| 782 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 783 | |
| 784 | _ACEOF |
| 785 | |
| 786 | cat <<_ACEOF |
| 787 | Installation directories: |
| 788 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 789 | [$ac_default_prefix] |
| 790 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 791 | [PREFIX] |
| 792 | |
| 793 | By default, \`make install' will install all the files in |
| 794 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 795 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 796 | for instance \`--prefix=\$HOME'. |
| 797 | |
| 798 | For better control, use the options below. |
| 799 | |
| 800 | Fine tuning of the installation directories: |
| 801 | --bindir=DIR user executables [EPREFIX/bin] |
| 802 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 803 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 804 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 805 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 806 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 807 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 808 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 809 | --includedir=DIR C header files [PREFIX/include] |
| 810 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 811 | --infodir=DIR info documentation [PREFIX/info] |
| 812 | --mandir=DIR man documentation [PREFIX/man] |
| 813 | _ACEOF |
| 814 | |
| 815 | cat <<\_ACEOF |
| 816 | _ACEOF |
| 817 | fi |
| 818 | |
| 819 | if test -n "$ac_init_help"; then |
| 820 | |
| 821 | cat <<\_ACEOF |
| 822 | |
| 823 | Optional Features: |
| 824 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 825 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 826 | --enable-framework=INSTALLDIR Build (MacOSX|Darwin) framework |
| 827 | --enable-shared disable/enable building shared python library |
| 828 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 829 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 830 | --disable-ipv6 Disable ipv6 support |
| 831 | --enable-unicode=ucs2,ucs4 Enable Unicode strings (default is yes) |
| 832 | |
| 833 | Optional Packages: |
| 834 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 835 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 836 | --without-gcc never use gcc |
| 837 | --with-cxx=<compiler> enable C++ support |
| 838 | --with-suffix=.exe set executable suffix |
| 839 | --with-pydebug build with Py_DEBUG defined |
| 840 | --with-libs='lib1 ...' link against additional libs |
| 841 | --with-signal-module disable/enable signal module |
| 842 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 843 | --with(out)-threads=DIRECTORY disable/enable thread support |
| 844 | --with(out)-thread=DIRECTORY deprecated; use --with(out)-threads |
| 845 | --with-pth use GNU pth threading libraries |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 846 | --with(out)-universal-newlines disable/enable foreign newlines |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 847 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 848 | --with(out)-pymalloc disable/enable specialized mallocs |
| 849 | --with-wctype-functions use wctype.h functions |
| 850 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking |
| 851 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking |
| 852 | --with-fpectl enable SIGFPE catching |
| 853 | --with-libm=STRING math library |
| 854 | --with-libc=STRING C library |
| 855 | |
| 856 | Some influential environment variables: |
| 857 | CC C compiler command |
| 858 | CFLAGS C compiler flags |
| 859 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 860 | nonstandard directory <lib dir> |
| 861 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 862 | headers in a nonstandard directory <include dir> |
| 863 | CPP C preprocessor |
| 864 | |
| 865 | Use these variables to override the choices made by `configure' or to help |
| 866 | it to find libraries and programs with nonstandard names/locations. |
| 867 | |
| 868 | _ACEOF |
| 869 | fi |
| 870 | |
| 871 | if test "$ac_init_help" = "recursive"; then |
| 872 | # If there are subdirs, report their specific --help. |
| 873 | ac_popdir=`pwd` |
| 874 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 875 | test -d $ac_dir || continue |
| 876 | ac_builddir=. |
| 877 | |
| 878 | if test "$ac_dir" != .; then |
| 879 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 880 | # A "../" for each directory in $ac_dir_suffix. |
| 881 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 882 | else |
| 883 | ac_dir_suffix= ac_top_builddir= |
| 884 | fi |
| 885 | |
| 886 | case $srcdir in |
| 887 | .) # No --srcdir option. We are building in place. |
| 888 | ac_srcdir=. |
| 889 | if test -z "$ac_top_builddir"; then |
| 890 | ac_top_srcdir=. |
| 891 | else |
| 892 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 893 | fi ;; |
| 894 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 895 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 896 | ac_top_srcdir=$srcdir ;; |
| 897 | *) # Relative path. |
| 898 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 899 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 900 | esac |
| 901 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 902 | # absolute. |
| 903 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 904 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 905 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 906 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 907 | |
| 908 | cd $ac_dir |
| 909 | # Check for guested configure; otherwise get Cygnus style configure. |
| 910 | if test -f $ac_srcdir/configure.gnu; then |
| 911 | echo |
| 912 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 913 | elif test -f $ac_srcdir/configure; then |
| 914 | echo |
| 915 | $SHELL $ac_srcdir/configure --help=recursive |
| 916 | elif test -f $ac_srcdir/configure.ac || |
| 917 | test -f $ac_srcdir/configure.in; then |
| 918 | echo |
| 919 | $ac_configure --help |
| 920 | else |
| 921 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 922 | fi |
| 923 | cd $ac_popdir |
| 924 | done |
| 925 | fi |
| 926 | |
| 927 | test -n "$ac_init_help" && exit 0 |
| 928 | if $ac_init_version; then |
| 929 | cat <<\_ACEOF |
| 930 | |
| 931 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 932 | Free Software Foundation, Inc. |
| 933 | This configure script is free software; the Free Software Foundation |
| 934 | gives unlimited permission to copy, distribute and modify it. |
| 935 | _ACEOF |
| 936 | exit 0 |
| 937 | fi |
| 938 | exec 5>config.log |
| 939 | cat >&5 <<_ACEOF |
| 940 | This file contains any messages produced by compilers while |
| 941 | running configure, to aid debugging if configure makes a mistake. |
| 942 | |
| 943 | It was created by $as_me, which was |
| 944 | generated by GNU Autoconf 2.53. Invocation command line was |
| 945 | |
| 946 | $ $0 $@ |
| 947 | |
| 948 | _ACEOF |
| 949 | { |
| 950 | cat <<_ASUNAME |
| 951 | ## --------- ## |
| 952 | ## Platform. ## |
| 953 | ## --------- ## |
| 954 | |
| 955 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 956 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 957 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 958 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 959 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 960 | |
| 961 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 962 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 963 | |
| 964 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 965 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 966 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 967 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 968 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 969 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 970 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 971 | |
| 972 | _ASUNAME |
| 973 | |
| 974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 975 | for as_dir in $PATH |
| 976 | do |
| 977 | IFS=$as_save_IFS |
| 978 | test -z "$as_dir" && as_dir=. |
| 979 | echo "PATH: $as_dir" |
| 980 | done |
| 981 | |
| 982 | } >&5 |
| 983 | |
| 984 | cat >&5 <<_ACEOF |
| 985 | |
| 986 | |
| 987 | ## ----------- ## |
| 988 | ## Core tests. ## |
| 989 | ## ----------- ## |
| 990 | |
| 991 | _ACEOF |
| 992 | |
| 993 | |
| 994 | # Keep a trace of the command line. |
| 995 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 996 | # Also quote any args containing shell meta-characters. |
| 997 | ac_configure_args= |
| 998 | ac_sep= |
| 999 | for ac_arg |
| 1000 | do |
| 1001 | case $ac_arg in |
| 1002 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1003 | | --no-cr | --no-c | -n ) continue ;; |
| 1004 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1005 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1006 | continue ;; |
| 1007 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1008 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1009 | esac |
| 1010 | case " $ac_configure_args " in |
| 1011 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1012 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1013 | ac_sep=" " ;; |
| 1014 | esac |
| 1015 | # Get rid of the leading space. |
| 1016 | done |
| 1017 | |
| 1018 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1019 | # config.log. We remove comments because anyway the quotes in there |
| 1020 | # would cause problems or look ugly. |
| 1021 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1022 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1023 | trap 'exit_status=$? |
| 1024 | # Save into config.log some information that might help in debugging. |
| 1025 | { |
| 1026 | echo |
| 1027 | cat <<\_ASBOX |
| 1028 | ## ---------------- ## |
| 1029 | ## Cache variables. ## |
| 1030 | ## ---------------- ## |
| 1031 | _ASBOX |
| 1032 | echo |
| 1033 | # The following way of writing the cache mishandles newlines in values, |
| 1034 | { |
| 1035 | (set) 2>&1 | |
| 1036 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1037 | *ac_space=\ *) |
| 1038 | sed -n \ |
| 1039 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1040 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1041 | ;; |
| 1042 | *) |
| 1043 | sed -n \ |
| 1044 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1045 | ;; |
| 1046 | esac; |
| 1047 | } |
| 1048 | echo |
| 1049 | if test -s confdefs.h; then |
| 1050 | cat <<\_ASBOX |
| 1051 | ## ----------- ## |
| 1052 | ## confdefs.h. ## |
| 1053 | ## ----------- ## |
| 1054 | _ASBOX |
| 1055 | echo |
| 1056 | sed "/^$/d" confdefs.h |
| 1057 | echo |
| 1058 | fi |
| 1059 | test "$ac_signal" != 0 && |
| 1060 | echo "$as_me: caught signal $ac_signal" |
| 1061 | echo "$as_me: exit $exit_status" |
| 1062 | } >&5 |
| 1063 | rm -f core core.* *.core && |
| 1064 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1065 | exit $exit_status |
| 1066 | ' 0 |
| 1067 | for ac_signal in 1 2 13 15; do |
| 1068 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1069 | done |
| 1070 | ac_signal=0 |
| 1071 | |
| 1072 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1073 | rm -rf conftest* confdefs.h |
| 1074 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1075 | echo >confdefs.h |
| 1076 | |
| 1077 | # Predefined preprocessor variables. |
| 1078 | |
| 1079 | cat >>confdefs.h <<_ACEOF |
| 1080 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1081 | _ACEOF |
| 1082 | |
| 1083 | |
| 1084 | cat >>confdefs.h <<_ACEOF |
| 1085 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1086 | _ACEOF |
| 1087 | |
| 1088 | |
| 1089 | cat >>confdefs.h <<_ACEOF |
| 1090 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1091 | _ACEOF |
| 1092 | |
| 1093 | |
| 1094 | cat >>confdefs.h <<_ACEOF |
| 1095 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1096 | _ACEOF |
| 1097 | |
| 1098 | |
| 1099 | cat >>confdefs.h <<_ACEOF |
| 1100 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1101 | _ACEOF |
| 1102 | |
| 1103 | |
| 1104 | # Let the site file select an alternate cache file if it wants to. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1105 | # Prefer explicitly selected file to automatically selected ones. |
| 1106 | if test -z "$CONFIG_SITE"; then |
| 1107 | if test "x$prefix" != xNONE; then |
| 1108 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1109 | else |
| 1110 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1111 | fi |
| 1112 | fi |
| 1113 | for ac_site_file in $CONFIG_SITE; do |
| 1114 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1115 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1116 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1117 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1118 | . "$ac_site_file" |
| 1119 | fi |
| 1120 | done |
| 1121 | |
| 1122 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1123 | # Some versions of bash will fail to source /dev/null (special |
| 1124 | # files actually), so we avoid doing that. |
| 1125 | if test -f "$cache_file"; then |
| 1126 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1127 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1128 | case $cache_file in |
| 1129 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1130 | *) . ./$cache_file;; |
| 1131 | esac |
| 1132 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1134 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1135 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1136 | >$cache_file |
| 1137 | fi |
| 1138 | |
| 1139 | # Check that the precious variables saved in the cache have kept the same |
| 1140 | # value. |
| 1141 | ac_cache_corrupted=false |
| 1142 | for ac_var in `(set) 2>&1 | |
| 1143 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1144 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1145 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1146 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1147 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1148 | case $ac_old_set,$ac_new_set in |
| 1149 | set,) |
| 1150 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1151 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1152 | ac_cache_corrupted=: ;; |
| 1153 | ,set) |
| 1154 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1155 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1156 | ac_cache_corrupted=: ;; |
| 1157 | ,);; |
| 1158 | *) |
| 1159 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1160 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1161 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1162 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1163 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1164 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1165 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1166 | ac_cache_corrupted=: |
| 1167 | fi;; |
| 1168 | esac |
| 1169 | # Pass precious variables to config.status. |
| 1170 | if test "$ac_new_set" = set; then |
| 1171 | case $ac_new_val in |
| 1172 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1173 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1174 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1175 | esac |
| 1176 | case " $ac_configure_args " in |
| 1177 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1178 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1179 | esac |
| 1180 | fi |
| 1181 | done |
| 1182 | if $ac_cache_corrupted; then |
| 1183 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1184 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1185 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1186 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1187 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1188 | fi |
| 1189 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1190 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1191 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1192 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1193 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1194 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1195 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1196 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1197 | |
| 1198 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1199 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1200 | |
| 1201 | |
| 1202 | |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | ac_config_headers="$ac_config_headers pyconfig.h" |
| 1214 | |
| 1215 | |
| 1216 | # This is for stuff that absolutely must end up in pyconfig.h. |
| 1217 | # Please use pyport.h instead, if possible. |
| 1218 | |
| 1219 | |
| 1220 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1221 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 1222 | |
Andrew M. Kuchling | f2f219d | 2002-02-11 16:31:10 +0000 | [diff] [blame] | 1223 | VERSION=2.3 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1224 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1225 | |
| 1226 | SOVERSION=1.0 |
| 1227 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1228 | # Arguments passed to configure. |
| 1229 | |
| 1230 | CONFIG_ARGS="$ac_configure_args" |
| 1231 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1232 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1233 | # Check whether --enable-framework or --disable-framework was given. |
| 1234 | if test "${enable_framework+set}" = set; then |
| 1235 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1236 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1237 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1238 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1239 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1240 | esac |
| 1241 | case $enableval in |
| 1242 | no) |
| 1243 | PYTHONFRAMEWORK= |
| 1244 | PYTHONFRAMEWORKDIR=no-framework |
| 1245 | PYTHONFRAMEWORKPREFIX= |
| 1246 | PYTHONFRAMEWORKINSTALLDIR= |
| 1247 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1248 | ;; |
| 1249 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1250 | PYTHONFRAMEWORK=Python |
| 1251 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1252 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1253 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1254 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1255 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1256 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1258 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1259 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1260 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1261 | PYTHONFRAMEWORKPREFIX= |
| 1262 | PYTHONFRAMEWORKINSTALLDIR= |
| 1263 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1265 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1266 | |
| 1267 | |
| 1268 | |
| 1269 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1270 | |
| 1271 | ##AC_ARG_WITH(dyld, |
| 1272 | ##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,) |
| 1273 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1274 | # Set name for machine-dependent library files |
| 1275 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1276 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1277 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1278 | if test -z "$MACHDEP" |
| 1279 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1280 | ac_sys_system=`uname -s` |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1281 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1282 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1283 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1284 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1285 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1286 | ac_md_system=`echo $ac_sys_system | |
| 1287 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1288 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1289 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1290 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1291 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1292 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1293 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1294 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1295 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1296 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1297 | esac |
| 1298 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1299 | |
| 1300 | # |
| 1301 | # SGI compilers allow the specification of the both the ABI and the |
| 1302 | # ISA on the command line. Depending on the values of these switches, |
| 1303 | # different and often incompatable code will be generated. |
| 1304 | # |
| 1305 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1306 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1307 | # variable is also adjusted. |
| 1308 | # |
| 1309 | |
| 1310 | if test ! -z "$SGI_ABI" |
| 1311 | then |
| 1312 | CC="cc $SGI_ABI" |
| 1313 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1314 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1315 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1316 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1317 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1318 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1319 | # checks for alternative programs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1320 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1321 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1322 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1323 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1324 | if test "${with_gcc+set}" = set; then |
| 1325 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1326 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1327 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1328 | no) CC=cc |
| 1329 | without_gcc=yes;; |
| 1330 | yes) CC=gcc |
| 1331 | without_gcc=no;; |
| 1332 | *) CC=$withval |
| 1333 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1334 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1335 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1336 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1337 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1338 | AIX*) CC=cc_r |
| 1339 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1340 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1341 | case $BE_HOST_CPU in |
| 1342 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1343 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1344 | without_gcc=yes |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1345 | OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1346 | CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1347 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1348 | ;; |
| 1349 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1350 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1351 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1352 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1353 | ;; |
| 1354 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1355 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1356 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1357 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1358 | ;; |
| 1359 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1360 | AR="\$(srcdir)/Modules/ar_beos" |
| 1361 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1362 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1363 | Monterey*) |
| 1364 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1365 | without_gcc=;; |
| 1366 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1367 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1368 | fi; |
| 1369 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1370 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1371 | |
| 1372 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1373 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1374 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1375 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1376 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1377 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1378 | # Check whether --with-cxx or --without-cxx was given. |
| 1379 | if test "${with_cxx+set}" = set; then |
| 1380 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1381 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1382 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1383 | case $withval in |
| 1384 | no) CXX= |
| 1385 | with_cxx=no;; |
| 1386 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1387 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1388 | with_cxx=$withval;; |
| 1389 | esac |
| 1390 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1391 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1392 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1393 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1395 | fi; |
| 1396 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1397 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1398 | |
| 1399 | if test "$with_cxx" = "yes" |
| 1400 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1401 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1402 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1403 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1404 | fi |
| 1405 | |
| 1406 | |
| 1407 | |
| 1408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1409 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1410 | then |
| 1411 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1412 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1413 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1414 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1415 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1417 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1419 | else |
| 1420 | if test -n "$CXX"; then |
| 1421 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1424 | for as_dir in $PATH |
| 1425 | do |
| 1426 | IFS=$as_save_IFS |
| 1427 | test -z "$as_dir" && as_dir=. |
| 1428 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1429 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1430 | ac_cv_prog_CXX="$ac_prog" |
| 1431 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1432 | break 2 |
| 1433 | fi |
| 1434 | done |
| 1435 | done |
| 1436 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1437 | fi |
| 1438 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1439 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1440 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1441 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1442 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | echo "$as_me:$LINENO: result: no" >&5 |
| 1445 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1446 | fi |
| 1447 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1448 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1449 | done |
| 1450 | test -n "$CXX" || CXX="notfound" |
| 1451 | |
| 1452 | if test "$CXX" = "notfound" |
| 1453 | then |
| 1454 | CXX= |
| 1455 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1456 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1457 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1458 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1459 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1460 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1461 | cat >conftest.$ac_ext <<_ACEOF |
| 1462 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1463 | #include "confdefs.h" |
| 1464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1465 | #ifdef F77_DUMMY_MAIN |
| 1466 | # ifdef __cplusplus |
| 1467 | extern "C" |
| 1468 | # endif |
| 1469 | int F77_DUMMY_MAIN() { return 1; } |
| 1470 | #endif |
| 1471 | int |
| 1472 | main () |
| 1473 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1475 | ; |
| 1476 | return 0; |
| 1477 | } |
| 1478 | _ACEOF |
| 1479 | ac_clean_files_save=$ac_clean_files |
| 1480 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1481 | # Try to create an executable without -o first, disregard a.out. |
| 1482 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1483 | # of exeext. |
| 1484 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1485 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1486 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1487 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1488 | (eval $ac_link_default) 2>&5 |
| 1489 | ac_status=$? |
| 1490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1491 | (exit $ac_status); }; then |
| 1492 | # Find the output, starting from the most likely. This scheme is |
| 1493 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1494 | # resort. |
| 1495 | |
| 1496 | # Be careful to initialize this variable, since it used to be cached. |
| 1497 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1498 | ac_cv_exeext= |
| 1499 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1500 | ls a.out conftest 2>/dev/null; |
| 1501 | ls a.* conftest.* 2>/dev/null`; do |
| 1502 | case $ac_file in |
| 1503 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1504 | a.out ) # We found the default executable, but exeext='' is most |
| 1505 | # certainly right. |
| 1506 | break;; |
| 1507 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1508 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1509 | export ac_cv_exeext |
| 1510 | break;; |
| 1511 | * ) break;; |
| 1512 | esac |
| 1513 | done |
| 1514 | else |
| 1515 | echo "$as_me: failed program was:" >&5 |
| 1516 | cat conftest.$ac_ext >&5 |
| 1517 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1518 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
| 1519 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1520 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1521 | |
| 1522 | ac_exeext=$ac_cv_exeext |
| 1523 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1524 | echo "${ECHO_T}$ac_file" >&6 |
| 1525 | |
| 1526 | # Check the compiler produces executables we can run. If not, either |
| 1527 | # the compiler is broken, or we cross compile. |
| 1528 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1529 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1530 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1531 | # If not cross compiling, check that we can run a simple program. |
| 1532 | if test "$cross_compiling" != yes; then |
| 1533 | if { ac_try='./$ac_file' |
| 1534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1535 | (eval $ac_try) 2>&5 |
| 1536 | ac_status=$? |
| 1537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1538 | (exit $ac_status); }; }; then |
| 1539 | cross_compiling=no |
| 1540 | else |
| 1541 | if test "$cross_compiling" = maybe; then |
| 1542 | cross_compiling=yes |
| 1543 | else |
| 1544 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1545 | If you meant to cross compile, use \`--host'." >&5 |
| 1546 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1547 | If you meant to cross compile, use \`--host'." >&2;} |
| 1548 | { (exit 1); exit 1; }; } |
| 1549 | fi |
| 1550 | fi |
| 1551 | fi |
| 1552 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1553 | echo "${ECHO_T}yes" >&6 |
| 1554 | |
| 1555 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1556 | ac_clean_files=$ac_clean_files_save |
| 1557 | # Check the compiler produces executables we can run. If not, either |
| 1558 | # the compiler is broken, or we cross compile. |
| 1559 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1560 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1561 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1562 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1563 | |
| 1564 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1565 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1567 | (eval $ac_link) 2>&5 |
| 1568 | ac_status=$? |
| 1569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1570 | (exit $ac_status); }; then |
| 1571 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1572 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1573 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1574 | # `rm'. |
| 1575 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1576 | case $ac_file in |
| 1577 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1578 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1579 | export ac_cv_exeext |
| 1580 | break;; |
| 1581 | * ) break;; |
| 1582 | esac |
| 1583 | done |
| 1584 | else |
| 1585 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1586 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1587 | { (exit 1); exit 1; }; } |
| 1588 | fi |
| 1589 | |
| 1590 | rm -f conftest$ac_cv_exeext |
| 1591 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1592 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1593 | |
| 1594 | rm -f conftest.$ac_ext |
| 1595 | EXEEXT=$ac_cv_exeext |
| 1596 | ac_exeext=$EXEEXT |
| 1597 | |
| 1598 | ac_ext=c |
| 1599 | ac_cpp='$CPP $CPPFLAGS' |
| 1600 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1601 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1602 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1603 | |
| 1604 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1605 | |
| 1606 | fi |
| 1607 | fi |
| 1608 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1609 | # If the user switches compilers, we can't believe the cache |
| 1610 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1611 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1612 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1613 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1614 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1615 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1616 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1617 | fi |
| 1618 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1619 | ac_ext=c |
| 1620 | ac_cpp='$CPP $CPPFLAGS' |
| 1621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1624 | if test -n "$ac_tool_prefix"; then |
| 1625 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1626 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1629 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1631 | else |
| 1632 | if test -n "$CC"; then |
| 1633 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1636 | for as_dir in $PATH |
| 1637 | do |
| 1638 | IFS=$as_save_IFS |
| 1639 | test -z "$as_dir" && as_dir=. |
| 1640 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1642 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1644 | break 2 |
| 1645 | fi |
| 1646 | done |
| 1647 | done |
| 1648 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1649 | fi |
| 1650 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1651 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1652 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1653 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1654 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1655 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1656 | echo "$as_me:$LINENO: result: no" >&5 |
| 1657 | echo "${ECHO_T}no" >&6 |
| 1658 | fi |
| 1659 | |
| 1660 | fi |
| 1661 | if test -z "$ac_cv_prog_CC"; then |
| 1662 | ac_ct_CC=$CC |
| 1663 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1664 | set dummy gcc; ac_word=$2 |
| 1665 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1667 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1669 | else |
| 1670 | if test -n "$ac_ct_CC"; then |
| 1671 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1672 | else |
| 1673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1674 | for as_dir in $PATH |
| 1675 | do |
| 1676 | IFS=$as_save_IFS |
| 1677 | test -z "$as_dir" && as_dir=. |
| 1678 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1679 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1680 | ac_cv_prog_ac_ct_CC="gcc" |
| 1681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1682 | break 2 |
| 1683 | fi |
| 1684 | done |
| 1685 | done |
| 1686 | |
| 1687 | fi |
| 1688 | fi |
| 1689 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1690 | if test -n "$ac_ct_CC"; then |
| 1691 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1692 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1693 | else |
| 1694 | echo "$as_me:$LINENO: result: no" >&5 |
| 1695 | echo "${ECHO_T}no" >&6 |
| 1696 | fi |
| 1697 | |
| 1698 | CC=$ac_ct_CC |
| 1699 | else |
| 1700 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1701 | fi |
| 1702 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1703 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1704 | if test -n "$ac_tool_prefix"; then |
| 1705 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1706 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1707 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1709 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1711 | else |
| 1712 | if test -n "$CC"; then |
| 1713 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1716 | for as_dir in $PATH |
| 1717 | do |
| 1718 | IFS=$as_save_IFS |
| 1719 | test -z "$as_dir" && as_dir=. |
| 1720 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1721 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1722 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1724 | break 2 |
| 1725 | fi |
| 1726 | done |
| 1727 | done |
| 1728 | |
| 1729 | fi |
| 1730 | fi |
| 1731 | CC=$ac_cv_prog_CC |
| 1732 | if test -n "$CC"; then |
| 1733 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1734 | echo "${ECHO_T}$CC" >&6 |
| 1735 | else |
| 1736 | echo "$as_me:$LINENO: result: no" >&5 |
| 1737 | echo "${ECHO_T}no" >&6 |
| 1738 | fi |
| 1739 | |
| 1740 | fi |
| 1741 | if test -z "$ac_cv_prog_CC"; then |
| 1742 | ac_ct_CC=$CC |
| 1743 | # Extract the first word of "cc", so it can be a program name with args. |
| 1744 | set dummy cc; ac_word=$2 |
| 1745 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1747 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1749 | else |
| 1750 | if test -n "$ac_ct_CC"; then |
| 1751 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1752 | else |
| 1753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1754 | for as_dir in $PATH |
| 1755 | do |
| 1756 | IFS=$as_save_IFS |
| 1757 | test -z "$as_dir" && as_dir=. |
| 1758 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1759 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1760 | ac_cv_prog_ac_ct_CC="cc" |
| 1761 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1762 | break 2 |
| 1763 | fi |
| 1764 | done |
| 1765 | done |
| 1766 | |
| 1767 | fi |
| 1768 | fi |
| 1769 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1770 | if test -n "$ac_ct_CC"; then |
| 1771 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1772 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1773 | else |
| 1774 | echo "$as_me:$LINENO: result: no" >&5 |
| 1775 | echo "${ECHO_T}no" >&6 |
| 1776 | fi |
| 1777 | |
| 1778 | CC=$ac_ct_CC |
| 1779 | else |
| 1780 | CC="$ac_cv_prog_CC" |
| 1781 | fi |
| 1782 | |
| 1783 | fi |
| 1784 | if test -z "$CC"; then |
| 1785 | # Extract the first word of "cc", so it can be a program name with args. |
| 1786 | set dummy cc; ac_word=$2 |
| 1787 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1789 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1791 | else |
| 1792 | if test -n "$CC"; then |
| 1793 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1794 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1795 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1797 | for as_dir in $PATH |
| 1798 | do |
| 1799 | IFS=$as_save_IFS |
| 1800 | test -z "$as_dir" && as_dir=. |
| 1801 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1802 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1803 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1804 | ac_prog_rejected=yes |
| 1805 | continue |
| 1806 | fi |
| 1807 | ac_cv_prog_CC="cc" |
| 1808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1809 | break 2 |
| 1810 | fi |
| 1811 | done |
| 1812 | done |
| 1813 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1814 | if test $ac_prog_rejected = yes; then |
| 1815 | # We found a bogon in the path, so make sure we never use it. |
| 1816 | set dummy $ac_cv_prog_CC |
| 1817 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1818 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1819 | # We chose a different compiler from the bogus one. |
| 1820 | # However, it has the same basename, so the bogon will be chosen |
| 1821 | # first if we set CC to just the basename; use the full file name. |
| 1822 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1823 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1824 | shift |
| 1825 | ac_cv_prog_CC="$@" |
| 1826 | fi |
| 1827 | fi |
| 1828 | fi |
| 1829 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1830 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1831 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1832 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1833 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1834 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1835 | echo "$as_me:$LINENO: result: no" >&5 |
| 1836 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1837 | fi |
| 1838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1839 | fi |
| 1840 | if test -z "$CC"; then |
| 1841 | if test -n "$ac_tool_prefix"; then |
| 1842 | for ac_prog in cl |
| 1843 | do |
| 1844 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1845 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1846 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1847 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1848 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1850 | else |
| 1851 | if test -n "$CC"; then |
| 1852 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1855 | for as_dir in $PATH |
| 1856 | do |
| 1857 | IFS=$as_save_IFS |
| 1858 | test -z "$as_dir" && as_dir=. |
| 1859 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1860 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1861 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1863 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1864 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1865 | done |
| 1866 | done |
| 1867 | |
| 1868 | fi |
| 1869 | fi |
| 1870 | CC=$ac_cv_prog_CC |
| 1871 | if test -n "$CC"; then |
| 1872 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1873 | echo "${ECHO_T}$CC" >&6 |
| 1874 | else |
| 1875 | echo "$as_me:$LINENO: result: no" >&5 |
| 1876 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1877 | fi |
| 1878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1879 | test -n "$CC" && break |
| 1880 | done |
| 1881 | fi |
| 1882 | if test -z "$CC"; then |
| 1883 | ac_ct_CC=$CC |
| 1884 | for ac_prog in cl |
| 1885 | do |
| 1886 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1887 | set dummy $ac_prog; ac_word=$2 |
| 1888 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1889 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1890 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1892 | else |
| 1893 | if test -n "$ac_ct_CC"; then |
| 1894 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1895 | else |
| 1896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1897 | for as_dir in $PATH |
| 1898 | do |
| 1899 | IFS=$as_save_IFS |
| 1900 | test -z "$as_dir" && as_dir=. |
| 1901 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1902 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1903 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1904 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1905 | break 2 |
| 1906 | fi |
| 1907 | done |
| 1908 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1910 | fi |
| 1911 | fi |
| 1912 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1913 | if test -n "$ac_ct_CC"; then |
| 1914 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1915 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1916 | else |
| 1917 | echo "$as_me:$LINENO: result: no" >&5 |
| 1918 | echo "${ECHO_T}no" >&6 |
| 1919 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1921 | test -n "$ac_ct_CC" && break |
| 1922 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1924 | CC=$ac_ct_CC |
| 1925 | fi |
| 1926 | |
| 1927 | fi |
| 1928 | |
| 1929 | |
| 1930 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1931 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 1932 | { (exit 1); exit 1; }; } |
| 1933 | |
| 1934 | # Provide some information about the compiler. |
| 1935 | echo "$as_me:$LINENO:" \ |
| 1936 | "checking for C compiler version" >&5 |
| 1937 | ac_compiler=`set X $ac_compile; echo $2` |
| 1938 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1939 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1940 | ac_status=$? |
| 1941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1942 | (exit $ac_status); } |
| 1943 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1944 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1945 | ac_status=$? |
| 1946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1947 | (exit $ac_status); } |
| 1948 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1949 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1950 | ac_status=$? |
| 1951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1952 | (exit $ac_status); } |
| 1953 | |
| 1954 | cat >conftest.$ac_ext <<_ACEOF |
| 1955 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1956 | #include "confdefs.h" |
| 1957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1958 | #ifdef F77_DUMMY_MAIN |
| 1959 | # ifdef __cplusplus |
| 1960 | extern "C" |
| 1961 | # endif |
| 1962 | int F77_DUMMY_MAIN() { return 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1963 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1964 | int |
| 1965 | main () |
| 1966 | { |
| 1967 | |
| 1968 | ; |
| 1969 | return 0; |
| 1970 | } |
| 1971 | _ACEOF |
| 1972 | ac_clean_files_save=$ac_clean_files |
| 1973 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1974 | # Try to create an executable without -o first, disregard a.out. |
| 1975 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1976 | # of exeext. |
| 1977 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 1978 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1979 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1980 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1981 | (eval $ac_link_default) 2>&5 |
| 1982 | ac_status=$? |
| 1983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1984 | (exit $ac_status); }; then |
| 1985 | # Find the output, starting from the most likely. This scheme is |
| 1986 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1987 | # resort. |
| 1988 | |
| 1989 | # Be careful to initialize this variable, since it used to be cached. |
| 1990 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1991 | ac_cv_exeext= |
| 1992 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1993 | ls a.out conftest 2>/dev/null; |
| 1994 | ls a.* conftest.* 2>/dev/null`; do |
| 1995 | case $ac_file in |
| 1996 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1997 | a.out ) # We found the default executable, but exeext='' is most |
| 1998 | # certainly right. |
| 1999 | break;; |
| 2000 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2001 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2002 | export ac_cv_exeext |
| 2003 | break;; |
| 2004 | * ) break;; |
| 2005 | esac |
| 2006 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2008 | echo "$as_me: failed program was:" >&5 |
| 2009 | cat conftest.$ac_ext >&5 |
| 2010 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2011 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2012 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2013 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2015 | ac_exeext=$ac_cv_exeext |
| 2016 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2017 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2019 | # Check the compiler produces executables we can run. If not, either |
| 2020 | # the compiler is broken, or we cross compile. |
| 2021 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2022 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2023 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2024 | # If not cross compiling, check that we can run a simple program. |
| 2025 | if test "$cross_compiling" != yes; then |
| 2026 | if { ac_try='./$ac_file' |
| 2027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2028 | (eval $ac_try) 2>&5 |
| 2029 | ac_status=$? |
| 2030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2031 | (exit $ac_status); }; }; then |
| 2032 | cross_compiling=no |
| 2033 | else |
| 2034 | if test "$cross_compiling" = maybe; then |
| 2035 | cross_compiling=yes |
| 2036 | else |
| 2037 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2038 | If you meant to cross compile, use \`--host'." >&5 |
| 2039 | echo "$as_me: error: cannot run C compiled programs. |
| 2040 | If you meant to cross compile, use \`--host'." >&2;} |
| 2041 | { (exit 1); exit 1; }; } |
| 2042 | fi |
| 2043 | fi |
| 2044 | fi |
| 2045 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2046 | echo "${ECHO_T}yes" >&6 |
| 2047 | |
| 2048 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2049 | ac_clean_files=$ac_clean_files_save |
| 2050 | # Check the compiler produces executables we can run. If not, either |
| 2051 | # the compiler is broken, or we cross compile. |
| 2052 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2053 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2054 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2055 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2056 | |
| 2057 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2058 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2060 | (eval $ac_link) 2>&5 |
| 2061 | ac_status=$? |
| 2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2063 | (exit $ac_status); }; then |
| 2064 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2065 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2066 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2067 | # `rm'. |
| 2068 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2069 | case $ac_file in |
| 2070 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2071 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2072 | export ac_cv_exeext |
| 2073 | break;; |
| 2074 | * ) break;; |
| 2075 | esac |
| 2076 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2077 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2078 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2079 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2080 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2081 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2083 | rm -f conftest$ac_cv_exeext |
| 2084 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2085 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2086 | |
| 2087 | rm -f conftest.$ac_ext |
| 2088 | EXEEXT=$ac_cv_exeext |
| 2089 | ac_exeext=$EXEEXT |
| 2090 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2091 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2092 | if test "${ac_cv_objext+set}" = set; then |
| 2093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2094 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2095 | cat >conftest.$ac_ext <<_ACEOF |
| 2096 | #line $LINENO "configure" |
| 2097 | #include "confdefs.h" |
| 2098 | |
| 2099 | #ifdef F77_DUMMY_MAIN |
| 2100 | # ifdef __cplusplus |
| 2101 | extern "C" |
| 2102 | # endif |
| 2103 | int F77_DUMMY_MAIN() { return 1; } |
| 2104 | #endif |
| 2105 | int |
| 2106 | main () |
| 2107 | { |
| 2108 | |
| 2109 | ; |
| 2110 | return 0; |
| 2111 | } |
| 2112 | _ACEOF |
| 2113 | rm -f conftest.o conftest.obj |
| 2114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2115 | (eval $ac_compile) 2>&5 |
| 2116 | ac_status=$? |
| 2117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2118 | (exit $ac_status); }; then |
| 2119 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2120 | case $ac_file in |
| 2121 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2122 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2123 | break;; |
| 2124 | esac |
| 2125 | done |
| 2126 | else |
| 2127 | echo "$as_me: failed program was:" >&5 |
| 2128 | cat conftest.$ac_ext >&5 |
| 2129 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2130 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2131 | { (exit 1); exit 1; }; } |
| 2132 | fi |
| 2133 | |
| 2134 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2135 | fi |
| 2136 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2137 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2138 | OBJEXT=$ac_cv_objext |
| 2139 | ac_objext=$OBJEXT |
| 2140 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2141 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2142 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2144 | else |
| 2145 | cat >conftest.$ac_ext <<_ACEOF |
| 2146 | #line $LINENO "configure" |
| 2147 | #include "confdefs.h" |
| 2148 | |
| 2149 | #ifdef F77_DUMMY_MAIN |
| 2150 | # ifdef __cplusplus |
| 2151 | extern "C" |
| 2152 | # endif |
| 2153 | int F77_DUMMY_MAIN() { return 1; } |
| 2154 | #endif |
| 2155 | int |
| 2156 | main () |
| 2157 | { |
| 2158 | #ifndef __GNUC__ |
| 2159 | choke me |
| 2160 | #endif |
| 2161 | |
| 2162 | ; |
| 2163 | return 0; |
| 2164 | } |
| 2165 | _ACEOF |
| 2166 | rm -f conftest.$ac_objext |
| 2167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2168 | (eval $ac_compile) 2>&5 |
| 2169 | ac_status=$? |
| 2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2171 | (exit $ac_status); } && |
| 2172 | { ac_try='test -s conftest.$ac_objext' |
| 2173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2174 | (eval $ac_try) 2>&5 |
| 2175 | ac_status=$? |
| 2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2177 | (exit $ac_status); }; }; then |
| 2178 | ac_compiler_gnu=yes |
| 2179 | else |
| 2180 | echo "$as_me: failed program was:" >&5 |
| 2181 | cat conftest.$ac_ext >&5 |
| 2182 | ac_compiler_gnu=no |
| 2183 | fi |
| 2184 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2185 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2186 | |
| 2187 | fi |
| 2188 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2189 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2190 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2191 | ac_test_CFLAGS=${CFLAGS+set} |
| 2192 | ac_save_CFLAGS=$CFLAGS |
| 2193 | CFLAGS="-g" |
| 2194 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2195 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2196 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2198 | else |
| 2199 | cat >conftest.$ac_ext <<_ACEOF |
| 2200 | #line $LINENO "configure" |
| 2201 | #include "confdefs.h" |
| 2202 | |
| 2203 | #ifdef F77_DUMMY_MAIN |
| 2204 | # ifdef __cplusplus |
| 2205 | extern "C" |
| 2206 | # endif |
| 2207 | int F77_DUMMY_MAIN() { return 1; } |
| 2208 | #endif |
| 2209 | int |
| 2210 | main () |
| 2211 | { |
| 2212 | |
| 2213 | ; |
| 2214 | return 0; |
| 2215 | } |
| 2216 | _ACEOF |
| 2217 | rm -f conftest.$ac_objext |
| 2218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2219 | (eval $ac_compile) 2>&5 |
| 2220 | ac_status=$? |
| 2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2222 | (exit $ac_status); } && |
| 2223 | { ac_try='test -s conftest.$ac_objext' |
| 2224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2225 | (eval $ac_try) 2>&5 |
| 2226 | ac_status=$? |
| 2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2228 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2229 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2230 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2231 | echo "$as_me: failed program was:" >&5 |
| 2232 | cat conftest.$ac_ext >&5 |
| 2233 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2234 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2235 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2236 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2237 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2238 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2239 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2240 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2241 | elif test $ac_cv_prog_cc_g = yes; then |
| 2242 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2243 | CFLAGS="-g -O2" |
| 2244 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2245 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2246 | fi |
| 2247 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2248 | if test "$GCC" = yes; then |
| 2249 | CFLAGS="-O2" |
| 2250 | else |
| 2251 | CFLAGS= |
| 2252 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2253 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2254 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2255 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2256 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2257 | # the declaration of exit, since it's the most demanding environment. |
| 2258 | cat >conftest.$ac_ext <<_ACEOF |
| 2259 | #ifndef __cplusplus |
| 2260 | choke me |
| 2261 | #endif |
| 2262 | _ACEOF |
| 2263 | rm -f conftest.$ac_objext |
| 2264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2265 | (eval $ac_compile) 2>&5 |
| 2266 | ac_status=$? |
| 2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2268 | (exit $ac_status); } && |
| 2269 | { ac_try='test -s conftest.$ac_objext' |
| 2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2271 | (eval $ac_try) 2>&5 |
| 2272 | ac_status=$? |
| 2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2274 | (exit $ac_status); }; }; then |
| 2275 | for ac_declaration in \ |
| 2276 | ''\ |
| 2277 | '#include <stdlib.h>' \ |
| 2278 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2279 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2280 | 'extern "C" void exit (int) throw ();' \ |
| 2281 | 'extern "C" void exit (int);' \ |
| 2282 | 'void exit (int);' |
| 2283 | do |
| 2284 | cat >conftest.$ac_ext <<_ACEOF |
| 2285 | #line $LINENO "configure" |
| 2286 | #include "confdefs.h" |
| 2287 | #include <stdlib.h> |
| 2288 | $ac_declaration |
| 2289 | #ifdef F77_DUMMY_MAIN |
| 2290 | # ifdef __cplusplus |
| 2291 | extern "C" |
| 2292 | # endif |
| 2293 | int F77_DUMMY_MAIN() { return 1; } |
| 2294 | #endif |
| 2295 | int |
| 2296 | main () |
| 2297 | { |
| 2298 | exit (42); |
| 2299 | ; |
| 2300 | return 0; |
| 2301 | } |
| 2302 | _ACEOF |
| 2303 | rm -f conftest.$ac_objext |
| 2304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2305 | (eval $ac_compile) 2>&5 |
| 2306 | ac_status=$? |
| 2307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2308 | (exit $ac_status); } && |
| 2309 | { ac_try='test -s conftest.$ac_objext' |
| 2310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2311 | (eval $ac_try) 2>&5 |
| 2312 | ac_status=$? |
| 2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2314 | (exit $ac_status); }; }; then |
| 2315 | : |
| 2316 | else |
| 2317 | echo "$as_me: failed program was:" >&5 |
| 2318 | cat conftest.$ac_ext >&5 |
| 2319 | continue |
| 2320 | fi |
| 2321 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2322 | cat >conftest.$ac_ext <<_ACEOF |
| 2323 | #line $LINENO "configure" |
| 2324 | #include "confdefs.h" |
| 2325 | $ac_declaration |
| 2326 | #ifdef F77_DUMMY_MAIN |
| 2327 | # ifdef __cplusplus |
| 2328 | extern "C" |
| 2329 | # endif |
| 2330 | int F77_DUMMY_MAIN() { return 1; } |
| 2331 | #endif |
| 2332 | int |
| 2333 | main () |
| 2334 | { |
| 2335 | exit (42); |
| 2336 | ; |
| 2337 | return 0; |
| 2338 | } |
| 2339 | _ACEOF |
| 2340 | rm -f conftest.$ac_objext |
| 2341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2342 | (eval $ac_compile) 2>&5 |
| 2343 | ac_status=$? |
| 2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2345 | (exit $ac_status); } && |
| 2346 | { ac_try='test -s conftest.$ac_objext' |
| 2347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2348 | (eval $ac_try) 2>&5 |
| 2349 | ac_status=$? |
| 2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2351 | (exit $ac_status); }; }; then |
| 2352 | break |
| 2353 | else |
| 2354 | echo "$as_me: failed program was:" >&5 |
| 2355 | cat conftest.$ac_ext >&5 |
| 2356 | fi |
| 2357 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2358 | done |
| 2359 | rm -f conftest* |
| 2360 | if test -n "$ac_declaration"; then |
| 2361 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2362 | echo $ac_declaration >>confdefs.h |
| 2363 | echo '#endif' >>confdefs.h |
| 2364 | fi |
| 2365 | |
| 2366 | else |
| 2367 | echo "$as_me: failed program was:" >&5 |
| 2368 | cat conftest.$ac_ext >&5 |
| 2369 | fi |
| 2370 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2371 | ac_ext=c |
| 2372 | ac_cpp='$CPP $CPPFLAGS' |
| 2373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2376 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2377 | |
| 2378 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2379 | |
| 2380 | ac_ext=c |
| 2381 | ac_cpp='$CPP $CPPFLAGS' |
| 2382 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2383 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2384 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2385 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2386 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2387 | # On Suns, sometimes $CPP names a directory. |
| 2388 | if test -n "$CPP" && test -d "$CPP"; then |
| 2389 | CPP= |
| 2390 | fi |
| 2391 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2392 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2394 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2395 | # Double quotes because CPP needs to be expanded |
| 2396 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2397 | do |
| 2398 | ac_preproc_ok=false |
| 2399 | for ac_c_preproc_warn_flag in '' yes |
| 2400 | do |
| 2401 | # Use a header file that comes with gcc, so configuring glibc |
| 2402 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2403 | # 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] | 2404 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2405 | cat >conftest.$ac_ext <<_ACEOF |
| 2406 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2407 | #include "confdefs.h" |
| 2408 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2409 | Syntax error |
| 2410 | _ACEOF |
| 2411 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2412 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2413 | ac_status=$? |
| 2414 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2415 | rm -f conftest.er1 |
| 2416 | cat conftest.err >&5 |
| 2417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2418 | (exit $ac_status); } >/dev/null; then |
| 2419 | if test -s conftest.err; then |
| 2420 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2421 | else |
| 2422 | ac_cpp_err= |
| 2423 | fi |
| 2424 | else |
| 2425 | ac_cpp_err=yes |
| 2426 | fi |
| 2427 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2428 | : |
| 2429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2430 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2431 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2432 | # Broken: fails on valid input. |
| 2433 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2435 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2436 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2437 | # OK, works on sane cases. Now check whether non-existent headers |
| 2438 | # can be detected and how. |
| 2439 | cat >conftest.$ac_ext <<_ACEOF |
| 2440 | #line $LINENO "configure" |
| 2441 | #include "confdefs.h" |
| 2442 | #include <ac_nonexistent.h> |
| 2443 | _ACEOF |
| 2444 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2445 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2446 | ac_status=$? |
| 2447 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2448 | rm -f conftest.er1 |
| 2449 | cat conftest.err >&5 |
| 2450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2451 | (exit $ac_status); } >/dev/null; then |
| 2452 | if test -s conftest.err; then |
| 2453 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2454 | else |
| 2455 | ac_cpp_err= |
| 2456 | fi |
| 2457 | else |
| 2458 | ac_cpp_err=yes |
| 2459 | fi |
| 2460 | if test -z "$ac_cpp_err"; then |
| 2461 | # Broken: success on invalid input. |
| 2462 | continue |
| 2463 | else |
| 2464 | echo "$as_me: failed program was:" >&5 |
| 2465 | cat conftest.$ac_ext >&5 |
| 2466 | # Passes both tests. |
| 2467 | ac_preproc_ok=: |
| 2468 | break |
| 2469 | fi |
| 2470 | rm -f conftest.err conftest.$ac_ext |
| 2471 | |
| 2472 | done |
| 2473 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2474 | rm -f conftest.err conftest.$ac_ext |
| 2475 | if $ac_preproc_ok; then |
| 2476 | break |
| 2477 | fi |
| 2478 | |
| 2479 | done |
| 2480 | ac_cv_prog_CPP=$CPP |
| 2481 | |
| 2482 | fi |
| 2483 | CPP=$ac_cv_prog_CPP |
| 2484 | else |
| 2485 | ac_cv_prog_CPP=$CPP |
| 2486 | fi |
| 2487 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2488 | echo "${ECHO_T}$CPP" >&6 |
| 2489 | ac_preproc_ok=false |
| 2490 | for ac_c_preproc_warn_flag in '' yes |
| 2491 | do |
| 2492 | # Use a header file that comes with gcc, so configuring glibc |
| 2493 | # with a fresh cross-compiler works. |
| 2494 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2495 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2496 | cat >conftest.$ac_ext <<_ACEOF |
| 2497 | #line $LINENO "configure" |
| 2498 | #include "confdefs.h" |
| 2499 | #include <assert.h> |
| 2500 | Syntax error |
| 2501 | _ACEOF |
| 2502 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2503 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2504 | ac_status=$? |
| 2505 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2506 | rm -f conftest.er1 |
| 2507 | cat conftest.err >&5 |
| 2508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2509 | (exit $ac_status); } >/dev/null; then |
| 2510 | if test -s conftest.err; then |
| 2511 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2512 | else |
| 2513 | ac_cpp_err= |
| 2514 | fi |
| 2515 | else |
| 2516 | ac_cpp_err=yes |
| 2517 | fi |
| 2518 | if test -z "$ac_cpp_err"; then |
| 2519 | : |
| 2520 | else |
| 2521 | echo "$as_me: failed program was:" >&5 |
| 2522 | cat conftest.$ac_ext >&5 |
| 2523 | # Broken: fails on valid input. |
| 2524 | continue |
| 2525 | fi |
| 2526 | rm -f conftest.err conftest.$ac_ext |
| 2527 | |
| 2528 | # OK, works on sane cases. Now check whether non-existent headers |
| 2529 | # can be detected and how. |
| 2530 | cat >conftest.$ac_ext <<_ACEOF |
| 2531 | #line $LINENO "configure" |
| 2532 | #include "confdefs.h" |
| 2533 | #include <ac_nonexistent.h> |
| 2534 | _ACEOF |
| 2535 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2536 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2537 | ac_status=$? |
| 2538 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2539 | rm -f conftest.er1 |
| 2540 | cat conftest.err >&5 |
| 2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2542 | (exit $ac_status); } >/dev/null; then |
| 2543 | if test -s conftest.err; then |
| 2544 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2545 | else |
| 2546 | ac_cpp_err= |
| 2547 | fi |
| 2548 | else |
| 2549 | ac_cpp_err=yes |
| 2550 | fi |
| 2551 | if test -z "$ac_cpp_err"; then |
| 2552 | # Broken: success on invalid input. |
| 2553 | continue |
| 2554 | else |
| 2555 | echo "$as_me: failed program was:" >&5 |
| 2556 | cat conftest.$ac_ext >&5 |
| 2557 | # Passes both tests. |
| 2558 | ac_preproc_ok=: |
| 2559 | break |
| 2560 | fi |
| 2561 | rm -f conftest.err conftest.$ac_ext |
| 2562 | |
| 2563 | done |
| 2564 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2565 | rm -f conftest.err conftest.$ac_ext |
| 2566 | if $ac_preproc_ok; then |
| 2567 | : |
| 2568 | else |
| 2569 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2570 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2571 | { (exit 1); exit 1; }; } |
| 2572 | fi |
| 2573 | |
| 2574 | ac_ext=c |
| 2575 | ac_cpp='$CPP $CPPFLAGS' |
| 2576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2579 | |
| 2580 | |
| 2581 | |
| 2582 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2583 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2584 | cat >conftest.$ac_ext <<_ACEOF |
| 2585 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2586 | #include "confdefs.h" |
| 2587 | #ifdef _AIX |
| 2588 | yes |
| 2589 | #endif |
| 2590 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2591 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2592 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2593 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2594 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2595 | echo "${ECHO_T}yes" >&6 |
| 2596 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2597 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2598 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2599 | |
| 2600 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2601 | echo "$as_me:$LINENO: result: no" >&5 |
| 2602 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2603 | fi |
| 2604 | rm -f conftest* |
| 2605 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2607 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2608 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2609 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2611 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2612 | cat >conftest.$ac_ext <<_ACEOF |
| 2613 | #line $LINENO "configure" |
| 2614 | #include "confdefs.h" |
| 2615 | #include <stdlib.h> |
| 2616 | #include <stdarg.h> |
| 2617 | #include <string.h> |
| 2618 | #include <float.h> |
| 2619 | |
| 2620 | _ACEOF |
| 2621 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2622 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2623 | ac_status=$? |
| 2624 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2625 | rm -f conftest.er1 |
| 2626 | cat conftest.err >&5 |
| 2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2628 | (exit $ac_status); } >/dev/null; then |
| 2629 | if test -s conftest.err; then |
| 2630 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2631 | else |
| 2632 | ac_cpp_err= |
| 2633 | fi |
| 2634 | else |
| 2635 | ac_cpp_err=yes |
| 2636 | fi |
| 2637 | if test -z "$ac_cpp_err"; then |
| 2638 | ac_cv_header_stdc=yes |
| 2639 | else |
| 2640 | echo "$as_me: failed program was:" >&5 |
| 2641 | cat conftest.$ac_ext >&5 |
| 2642 | ac_cv_header_stdc=no |
| 2643 | fi |
| 2644 | rm -f conftest.err conftest.$ac_ext |
| 2645 | |
| 2646 | if test $ac_cv_header_stdc = yes; then |
| 2647 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2648 | cat >conftest.$ac_ext <<_ACEOF |
| 2649 | #line $LINENO "configure" |
| 2650 | #include "confdefs.h" |
| 2651 | #include <string.h> |
| 2652 | |
| 2653 | _ACEOF |
| 2654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2655 | egrep "memchr" >/dev/null 2>&1; then |
| 2656 | : |
| 2657 | else |
| 2658 | ac_cv_header_stdc=no |
| 2659 | fi |
| 2660 | rm -f conftest* |
| 2661 | |
| 2662 | fi |
| 2663 | |
| 2664 | if test $ac_cv_header_stdc = yes; then |
| 2665 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2666 | cat >conftest.$ac_ext <<_ACEOF |
| 2667 | #line $LINENO "configure" |
| 2668 | #include "confdefs.h" |
| 2669 | #include <stdlib.h> |
| 2670 | |
| 2671 | _ACEOF |
| 2672 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2673 | egrep "free" >/dev/null 2>&1; then |
| 2674 | : |
| 2675 | else |
| 2676 | ac_cv_header_stdc=no |
| 2677 | fi |
| 2678 | rm -f conftest* |
| 2679 | |
| 2680 | fi |
| 2681 | |
| 2682 | if test $ac_cv_header_stdc = yes; then |
| 2683 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2684 | if test "$cross_compiling" = yes; then |
| 2685 | : |
| 2686 | else |
| 2687 | cat >conftest.$ac_ext <<_ACEOF |
| 2688 | #line $LINENO "configure" |
| 2689 | #include "confdefs.h" |
| 2690 | #include <ctype.h> |
| 2691 | #if ((' ' & 0x0FF) == 0x020) |
| 2692 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2693 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2694 | #else |
| 2695 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2696 | || ('j' <= (c) && (c) <= 'r') \ |
| 2697 | || ('s' <= (c) && (c) <= 'z')) |
| 2698 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2699 | #endif |
| 2700 | |
| 2701 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2702 | int |
| 2703 | main () |
| 2704 | { |
| 2705 | int i; |
| 2706 | for (i = 0; i < 256; i++) |
| 2707 | if (XOR (islower (i), ISLOWER (i)) |
| 2708 | || toupper (i) != TOUPPER (i)) |
| 2709 | exit(2); |
| 2710 | exit (0); |
| 2711 | } |
| 2712 | _ACEOF |
| 2713 | rm -f conftest$ac_exeext |
| 2714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2715 | (eval $ac_link) 2>&5 |
| 2716 | ac_status=$? |
| 2717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2718 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2720 | (eval $ac_try) 2>&5 |
| 2721 | ac_status=$? |
| 2722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2723 | (exit $ac_status); }; }; then |
| 2724 | : |
| 2725 | else |
| 2726 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2727 | echo "$as_me: failed program was:" >&5 |
| 2728 | cat conftest.$ac_ext >&5 |
| 2729 | ( exit $ac_status ) |
| 2730 | ac_cv_header_stdc=no |
| 2731 | fi |
| 2732 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2733 | fi |
| 2734 | fi |
| 2735 | fi |
| 2736 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2737 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2738 | if test $ac_cv_header_stdc = yes; then |
| 2739 | |
| 2740 | cat >>confdefs.h <<\_ACEOF |
| 2741 | #define STDC_HEADERS 1 |
| 2742 | _ACEOF |
| 2743 | |
| 2744 | fi |
| 2745 | |
| 2746 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2747 | |
| 2748 | |
| 2749 | |
| 2750 | |
| 2751 | |
| 2752 | |
| 2753 | |
| 2754 | |
| 2755 | |
| 2756 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2757 | inttypes.h stdint.h unistd.h |
| 2758 | do |
| 2759 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2760 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2764 | else |
| 2765 | cat >conftest.$ac_ext <<_ACEOF |
| 2766 | #line $LINENO "configure" |
| 2767 | #include "confdefs.h" |
| 2768 | $ac_includes_default |
| 2769 | |
| 2770 | #include <$ac_header> |
| 2771 | _ACEOF |
| 2772 | rm -f conftest.$ac_objext |
| 2773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2774 | (eval $ac_compile) 2>&5 |
| 2775 | ac_status=$? |
| 2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2777 | (exit $ac_status); } && |
| 2778 | { ac_try='test -s conftest.$ac_objext' |
| 2779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2780 | (eval $ac_try) 2>&5 |
| 2781 | ac_status=$? |
| 2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2783 | (exit $ac_status); }; }; then |
| 2784 | eval "$as_ac_Header=yes" |
| 2785 | else |
| 2786 | echo "$as_me: failed program was:" >&5 |
| 2787 | cat conftest.$ac_ext >&5 |
| 2788 | eval "$as_ac_Header=no" |
| 2789 | fi |
| 2790 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2791 | fi |
| 2792 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2793 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2794 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2795 | cat >>confdefs.h <<_ACEOF |
| 2796 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2797 | _ACEOF |
| 2798 | |
| 2799 | fi |
| 2800 | |
| 2801 | done |
| 2802 | |
| 2803 | |
| 2804 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2805 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2806 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2807 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2809 | fi |
| 2810 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2811 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2812 | else |
| 2813 | # Is the header compilable? |
| 2814 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2815 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2816 | cat >conftest.$ac_ext <<_ACEOF |
| 2817 | #line $LINENO "configure" |
| 2818 | #include "confdefs.h" |
| 2819 | $ac_includes_default |
| 2820 | #include <minix/config.h> |
| 2821 | _ACEOF |
| 2822 | rm -f conftest.$ac_objext |
| 2823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2824 | (eval $ac_compile) 2>&5 |
| 2825 | ac_status=$? |
| 2826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2827 | (exit $ac_status); } && |
| 2828 | { ac_try='test -s conftest.$ac_objext' |
| 2829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2830 | (eval $ac_try) 2>&5 |
| 2831 | ac_status=$? |
| 2832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2833 | (exit $ac_status); }; }; then |
| 2834 | ac_header_compiler=yes |
| 2835 | else |
| 2836 | echo "$as_me: failed program was:" >&5 |
| 2837 | cat conftest.$ac_ext >&5 |
| 2838 | ac_header_compiler=no |
| 2839 | fi |
| 2840 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2841 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2842 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2843 | |
| 2844 | # Is the header present? |
| 2845 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2846 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2847 | cat >conftest.$ac_ext <<_ACEOF |
| 2848 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2849 | #include "confdefs.h" |
| 2850 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2851 | _ACEOF |
| 2852 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2853 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2854 | ac_status=$? |
| 2855 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2856 | rm -f conftest.er1 |
| 2857 | cat conftest.err >&5 |
| 2858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2859 | (exit $ac_status); } >/dev/null; then |
| 2860 | if test -s conftest.err; then |
| 2861 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2862 | else |
| 2863 | ac_cpp_err= |
| 2864 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2866 | ac_cpp_err=yes |
| 2867 | fi |
| 2868 | if test -z "$ac_cpp_err"; then |
| 2869 | ac_header_preproc=yes |
| 2870 | else |
| 2871 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2872 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2873 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2874 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2875 | rm -f conftest.err conftest.$ac_ext |
| 2876 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2877 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2878 | |
| 2879 | # So? What about this header? |
| 2880 | case $ac_header_compiler:$ac_header_preproc in |
| 2881 | yes:no ) |
| 2882 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2883 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2884 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2885 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2886 | no:yes ) |
| 2887 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2888 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2889 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2890 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2891 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2892 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2893 | esac |
| 2894 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2895 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2896 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2898 | else |
| 2899 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2900 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2901 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2902 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2903 | |
| 2904 | fi |
| 2905 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2906 | MINIX=yes |
| 2907 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2908 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2909 | fi |
| 2910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2911 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2912 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2913 | |
| 2914 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2915 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2916 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | |
| 2919 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2920 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2921 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2923 | |
| 2924 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2925 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2926 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2927 | |
| 2928 | fi |
| 2929 | |
| 2930 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2932 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 2933 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2934 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2935 | # Check whether --with-suffix or --without-suffix was given. |
| 2936 | if test "${with_suffix+set}" = set; then |
| 2937 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2938 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2939 | case $withval in |
| 2940 | no) EXEEXT=;; |
| 2941 | yes) EXEEXT=.exe;; |
| 2942 | *) EXEEXT=$withval;; |
| 2943 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2944 | fi; |
| 2945 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 2946 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2947 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2948 | # Test whether we're running on a non-case-sensitive system, in which |
| 2949 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2951 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 2952 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 2953 | if test -d "${srcdir}/python" |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2954 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2955 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2956 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2957 | BUILDEXEEXT=.exe |
| 2958 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2959 | echo "$as_me:$LINENO: result: no" >&5 |
| 2960 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2961 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2962 | fi |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 2963 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 2964 | case $MACHDEP in |
| 2965 | bsdos*) |
| 2966 | case $CC in |
| 2967 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 2968 | esac;; |
| 2969 | esac |
| 2970 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2971 | case $ac_sys_system in |
| 2972 | hp*|HP*) |
| 2973 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 2974 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2975 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2976 | Monterey*) |
| 2977 | case $CC in |
| 2978 | cc) CC="$CC -Wl,-Bexport";; |
| 2979 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 2980 | SunOS*) |
| 2981 | # Some functions have a prototype only with that define, e.g. confstr |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2982 | |
| 2983 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 2984 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2985 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 2986 | |
| 2987 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2988 | esac |
| 2989 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2990 | |
| 2991 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2992 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 2993 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2994 | if test -z "$LIBRARY" |
| 2995 | then |
| 2996 | LIBRARY='libpython$(VERSION).a' |
| 2997 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2998 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 2999 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3000 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3001 | # LDLIBRARY is the name of the library to link against (as opposed to the |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3002 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3003 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3004 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3005 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3006 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3007 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3008 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3009 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3010 | # RUNSHARED is used to run shared python without installed libraries |
| 3011 | # |
| 3012 | # INSTSONAME is the name of the shared library that will be use to install |
| 3013 | # on the system - some systems like version suffix, others don't |
| 3014 | |
| 3015 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3016 | |
| 3017 | |
| 3018 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3019 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3020 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3021 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3022 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3023 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3024 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3025 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3026 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3027 | # LINKCC is the command that links the python executable -- default is $(CC). |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3028 | # If CXX is set, and if it is needed to link a main function that was |
| 3029 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3030 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3031 | # This is altered for AIX in order to build the export list before |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3032 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3034 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3035 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3036 | if test -z "$LINKCC" |
| 3037 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3038 | if test -z "$CXX"; then |
| 3039 | LINKCC="\$(PURIFY) \$(CC)" |
| 3040 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3041 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3042 | $CXX -c conftest.$ac_ext 2>&5 |
| 3043 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3044 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3045 | then |
| 3046 | LINKCC="\$(PURIFY) \$(CC)" |
| 3047 | else |
| 3048 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3049 | fi |
| 3050 | rm -fr conftest* |
| 3051 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3052 | case $ac_sys_system in |
| 3053 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3054 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3055 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3056 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3057 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3058 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3059 | esac |
| 3060 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3061 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3062 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3064 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3065 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3066 | # Check whether --enable-shared or --disable-shared was given. |
| 3067 | if test "${enable_shared+set}" = set; then |
| 3068 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3070 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3071 | |
| 3072 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3073 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3074 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3075 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3076 | enable_shared="yes";; |
| 3077 | *) |
| 3078 | enable_shared="no";; |
| 3079 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3080 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3081 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3082 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3083 | |
| 3084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3085 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3086 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3087 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3088 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3089 | # library that we build, but we do not want to link against it (we |
| 3090 | # will find it with a -framework option). For this reason there is an |
| 3091 | # extra variable BLDLIBRARY against which Python and the extension |
| 3092 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3093 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3094 | if test "$enable_framework" |
| 3095 | then |
| 3096 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3097 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3098 | BLDLIBRARY='' |
| 3099 | else |
| 3100 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3101 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3102 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3103 | # Other platforms follow |
| 3104 | if test $enable_shared = "yes"; then |
| 3105 | case $ac_sys_system in |
| 3106 | BeOS*) |
| 3107 | LDLIBRARY='libpython$(VERSION).so' |
| 3108 | ;; |
| 3109 | CYGWIN*) |
| 3110 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3111 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3112 | ;; |
| 3113 | SunOS*) |
| 3114 | LDLIBRARY='libpython$(VERSION).so' |
| 3115 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3116 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3117 | ;; |
| 3118 | Linux*) |
| 3119 | LDLIBRARY='libpython$(VERSION).so' |
| 3120 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3121 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3122 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3123 | ;; |
| 3124 | hp*|HP*) |
| 3125 | LDLIBRARY='libpython$(VERSION).sl' |
| 3126 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3127 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3128 | ;; |
| 3129 | OSF*) |
| 3130 | LDLIBRARY='libpython$(VERSION).so' |
| 3131 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3132 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3133 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3134 | atheos*) |
| 3135 | LDLIBRARY='libpython$(VERSION).so' |
| 3136 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3137 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3138 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3139 | esac |
| 3140 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3141 | case $MACHDEP in |
| 3142 | dguxR4) |
| 3143 | LDLIBRARY='libpython$(VERSION).so' |
| 3144 | OPT="$OPT -pic" |
| 3145 | ;; |
| 3146 | esac |
| 3147 | fi |
| 3148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3149 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3150 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3152 | if test -n "$ac_tool_prefix"; then |
| 3153 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3154 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3155 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3157 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3159 | else |
| 3160 | if test -n "$RANLIB"; then |
| 3161 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3164 | for as_dir in $PATH |
| 3165 | do |
| 3166 | IFS=$as_save_IFS |
| 3167 | test -z "$as_dir" && as_dir=. |
| 3168 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3169 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3170 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3171 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3172 | break 2 |
| 3173 | fi |
| 3174 | done |
| 3175 | done |
| 3176 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3177 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3178 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3179 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3180 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3181 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3182 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3184 | echo "$as_me:$LINENO: result: no" >&5 |
| 3185 | echo "${ECHO_T}no" >&6 |
| 3186 | fi |
| 3187 | |
| 3188 | fi |
| 3189 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3190 | ac_ct_RANLIB=$RANLIB |
| 3191 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3192 | set dummy ranlib; ac_word=$2 |
| 3193 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3195 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3197 | else |
| 3198 | if test -n "$ac_ct_RANLIB"; then |
| 3199 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3200 | else |
| 3201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3202 | for as_dir in $PATH |
| 3203 | do |
| 3204 | IFS=$as_save_IFS |
| 3205 | test -z "$as_dir" && as_dir=. |
| 3206 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3207 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3208 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3210 | break 2 |
| 3211 | fi |
| 3212 | done |
| 3213 | done |
| 3214 | |
| 3215 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3216 | fi |
| 3217 | fi |
| 3218 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3219 | if test -n "$ac_ct_RANLIB"; then |
| 3220 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3221 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3222 | else |
| 3223 | echo "$as_me:$LINENO: result: no" >&5 |
| 3224 | echo "${ECHO_T}no" >&6 |
| 3225 | fi |
| 3226 | |
| 3227 | RANLIB=$ac_ct_RANLIB |
| 3228 | else |
| 3229 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3230 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3231 | |
| 3232 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3233 | for ac_prog in ar aal |
| 3234 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3235 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3236 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3237 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3239 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3241 | else |
| 3242 | if test -n "$AR"; then |
| 3243 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3246 | for as_dir in $PATH |
| 3247 | do |
| 3248 | IFS=$as_save_IFS |
| 3249 | test -z "$as_dir" && as_dir=. |
| 3250 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3251 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3252 | ac_cv_prog_AR="$ac_prog" |
| 3253 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3254 | break 2 |
| 3255 | fi |
| 3256 | done |
| 3257 | done |
| 3258 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3259 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3260 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3261 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3262 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3263 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3264 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3266 | echo "$as_me:$LINENO: result: no" >&5 |
| 3267 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3268 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3270 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3271 | done |
| 3272 | test -n "$AR" || AR="ar" |
| 3273 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3274 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3275 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3276 | bsdos*|hp*|HP*) |
| 3277 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3278 | if test -z "$INSTALL" |
| 3279 | then |
| 3280 | INSTALL="${srcdir}/install-sh -c" |
| 3281 | fi |
| 3282 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3283 | ac_aux_dir= |
| 3284 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3285 | if test -f $ac_dir/install-sh; then |
| 3286 | ac_aux_dir=$ac_dir |
| 3287 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3288 | break |
| 3289 | elif test -f $ac_dir/install.sh; then |
| 3290 | ac_aux_dir=$ac_dir |
| 3291 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3292 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3293 | elif test -f $ac_dir/shtool; then |
| 3294 | ac_aux_dir=$ac_dir |
| 3295 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3296 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3297 | fi |
| 3298 | done |
| 3299 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3300 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3301 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3302 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3303 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3304 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3305 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3306 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3307 | |
| 3308 | # Find a good install program. We prefer a C program (faster), |
| 3309 | # so one script is as good as another. But avoid the broken or |
| 3310 | # incompatible versions: |
| 3311 | # SysV /etc/install, /usr/sbin/install |
| 3312 | # SunOS /usr/etc/install |
| 3313 | # IRIX /sbin/install |
| 3314 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3315 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3316 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3317 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3318 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3319 | # ./install, which can be erroneously created by make from ./install.sh. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3320 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3321 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3322 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3323 | if test "${ac_cv_path_install+set}" = set; then |
| 3324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3325 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3327 | for as_dir in $PATH |
| 3328 | do |
| 3329 | IFS=$as_save_IFS |
| 3330 | test -z "$as_dir" && as_dir=. |
| 3331 | # Account for people who put trailing slashes in PATH elements. |
| 3332 | case $as_dir/ in |
| 3333 | ./ | .// | /cC/* | \ |
| 3334 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3335 | /usr/ucb/* ) ;; |
| 3336 | *) |
| 3337 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3338 | # Don't use installbsd from OSF since it installs stuff as root |
| 3339 | # by default. |
| 3340 | for ac_prog in ginstall scoinst install; do |
| 3341 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3342 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3343 | if test $ac_prog = install && |
| 3344 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3345 | # AIX install. It has an incompatible calling convention. |
| 3346 | : |
| 3347 | elif test $ac_prog = install && |
| 3348 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3349 | # program-specific install script used by HP pwplus--don't use. |
| 3350 | : |
| 3351 | else |
| 3352 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3353 | break 3 |
| 3354 | fi |
| 3355 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3356 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3357 | done |
| 3358 | ;; |
| 3359 | esac |
| 3360 | done |
| 3361 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3362 | |
| 3363 | fi |
| 3364 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3365 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3366 | else |
| 3367 | # As a last resort, use the slow shell script. We don't cache a |
| 3368 | # path for INSTALL within a source directory, because that will |
| 3369 | # break other packages using the cache if that directory is |
| 3370 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3371 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3372 | fi |
| 3373 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3374 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3375 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3376 | |
| 3377 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3378 | # It thinks the first close brace ends the variable substitution. |
| 3379 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3381 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3382 | |
| 3383 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3384 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3385 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3386 | # Not every filesystem supports hard links |
| 3387 | |
| 3388 | if test -z "$LN" ; then |
| 3389 | case $ac_sys_system in |
| 3390 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3391 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3392 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3393 | *) LN=ln;; |
| 3394 | esac |
| 3395 | fi |
| 3396 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3397 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3398 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3399 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3400 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3401 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3402 | if test "${with_pydebug+set}" = set; then |
| 3403 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3404 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3405 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3406 | then |
| 3407 | |
| 3408 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3409 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3410 | _ACEOF |
| 3411 | |
| 3412 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3413 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3414 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3415 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3416 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3417 | fi |
| 3418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3419 | echo "$as_me:$LINENO: result: no" >&5 |
| 3420 | echo "${ECHO_T}no" >&6 |
| 3421 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3422 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3423 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3424 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3425 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3426 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3427 | case $GCC in |
| 3428 | yes) |
| 3429 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3430 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3431 | if test "$Py_DEBUG" = 'true' ; then |
| 3432 | # Optimization messes up debuggers, so turn it off for |
| 3433 | # debug builds. |
| 3434 | OPT="-g -Wall -Wstrict-prototypes" |
| 3435 | else |
| 3436 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3437 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3438 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3439 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3440 | esac |
| 3441 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3442 | *) |
| 3443 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3444 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3445 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
| 3446 | *) |
| 3447 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3448 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3449 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3450 | case $ac_sys_system in |
| 3451 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3452 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3453 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3454 | fi |
| 3455 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3456 | if test "$Py_DEBUG" = 'true'; then |
| 3457 | : |
| 3458 | else |
| 3459 | OPT="-DNDEBUG $OPT" |
| 3460 | fi |
| 3461 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3462 | # The current (beta) Monterey compiler dies with optimizations |
| 3463 | case $ac_sys_system in |
| 3464 | Monterey*) OPT="";; |
| 3465 | esac |
| 3466 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3467 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3468 | then |
| 3469 | OPT="$OPT $ac_arch_flags" |
| 3470 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3472 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3473 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3474 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3476 | else |
| 3477 | ac_save_cc="$CC" |
| 3478 | CC="$CC -OPT:Olimit=0" |
| 3479 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3480 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3482 | cat >conftest.$ac_ext <<_ACEOF |
| 3483 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3484 | #include "confdefs.h" |
| 3485 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3486 | _ACEOF |
| 3487 | rm -f conftest$ac_exeext |
| 3488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3489 | (eval $ac_link) 2>&5 |
| 3490 | ac_status=$? |
| 3491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3492 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3494 | (eval $ac_try) 2>&5 |
| 3495 | ac_status=$? |
| 3496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3497 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3498 | ac_cv_opt_olimit_ok=yes |
| 3499 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3500 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3501 | echo "$as_me: failed program was:" >&5 |
| 3502 | cat conftest.$ac_ext >&5 |
| 3503 | ( exit $ac_status ) |
| 3504 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3505 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3506 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3507 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3508 | CC="$ac_save_cc" |
| 3509 | fi |
| 3510 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3511 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3512 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3513 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3514 | case $ac_sys_system in |
| 3515 | Darwin*) OPT="$OPT" ;; |
| 3516 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3517 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3519 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3520 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3521 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3523 | else |
| 3524 | ac_save_cc="$CC" |
| 3525 | CC="$CC -Olimit 1500" |
| 3526 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3527 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3529 | cat >conftest.$ac_ext <<_ACEOF |
| 3530 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3531 | #include "confdefs.h" |
| 3532 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3533 | _ACEOF |
| 3534 | rm -f conftest$ac_exeext |
| 3535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3536 | (eval $ac_link) 2>&5 |
| 3537 | ac_status=$? |
| 3538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3539 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3541 | (eval $ac_try) 2>&5 |
| 3542 | ac_status=$? |
| 3543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3544 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3545 | ac_cv_olimit_ok=yes |
| 3546 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3547 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3548 | echo "$as_me: failed program was:" >&5 |
| 3549 | cat conftest.$ac_ext >&5 |
| 3550 | ( exit $ac_status ) |
| 3551 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3552 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3553 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3554 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3555 | CC="$ac_save_cc" |
| 3556 | fi |
| 3557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3558 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3559 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3560 | if test $ac_cv_olimit_ok = yes; then |
| 3561 | OPT="$OPT -Olimit 1500" |
| 3562 | fi |
| 3563 | fi |
| 3564 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3565 | # On some compilers, pthreads are available without further options |
| 3566 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3567 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3568 | # So we have to see first whether pthreads are available without |
| 3569 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3570 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3571 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3572 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3574 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3575 | if test "$cross_compiling" = yes; then |
| 3576 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3578 | cat >conftest.$ac_ext <<_ACEOF |
| 3579 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3580 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3581 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3582 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3583 | |
| 3584 | void* routine(void* p){return NULL;} |
| 3585 | |
| 3586 | int main(){ |
| 3587 | pthread_t p; |
| 3588 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3589 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3590 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3591 | return 0; |
| 3592 | } |
| 3593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3594 | _ACEOF |
| 3595 | rm -f conftest$ac_exeext |
| 3596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3597 | (eval $ac_link) 2>&5 |
| 3598 | ac_status=$? |
| 3599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3602 | (eval $ac_try) 2>&5 |
| 3603 | ac_status=$? |
| 3604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3605 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3606 | ac_cv_pthread_is_default=yes |
| 3607 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3608 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3609 | echo "$as_me: failed program was:" >&5 |
| 3610 | cat conftest.$ac_ext >&5 |
| 3611 | ( exit $ac_status ) |
| 3612 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3613 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3614 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3615 | fi |
| 3616 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3617 | fi |
| 3618 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3619 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3620 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3621 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3623 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3624 | then |
| 3625 | ac_cv_kpthread=no |
| 3626 | else |
| 3627 | # -Kpthread, if available, provides the right #defines |
| 3628 | # and linker options to make pthread_create available |
| 3629 | # Some compilers won't report that they do not support -Kpthread, |
| 3630 | # so we need to run a program to see whether it really made the |
| 3631 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3632 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3633 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3634 | if test "${ac_cv_kpthread+set}" = set; then |
| 3635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3636 | else |
| 3637 | ac_save_cc="$CC" |
| 3638 | CC="$CC -Kpthread" |
| 3639 | if test "$cross_compiling" = yes; then |
| 3640 | ac_cv_kpthread=no |
| 3641 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3642 | cat >conftest.$ac_ext <<_ACEOF |
| 3643 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3644 | #include "confdefs.h" |
| 3645 | |
| 3646 | #include <pthread.h> |
| 3647 | |
| 3648 | void* routine(void* p){return NULL;} |
| 3649 | |
| 3650 | int main(){ |
| 3651 | pthread_t p; |
| 3652 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3653 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3654 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3655 | return 0; |
| 3656 | } |
| 3657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3658 | _ACEOF |
| 3659 | rm -f conftest$ac_exeext |
| 3660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3661 | (eval $ac_link) 2>&5 |
| 3662 | ac_status=$? |
| 3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3664 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3666 | (eval $ac_try) 2>&5 |
| 3667 | ac_status=$? |
| 3668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3669 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3670 | ac_cv_kpthread=yes |
| 3671 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3672 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3673 | echo "$as_me: failed program was:" >&5 |
| 3674 | cat conftest.$ac_ext >&5 |
| 3675 | ( exit $ac_status ) |
| 3676 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3677 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3678 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3679 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3680 | CC="$ac_save_cc" |
| 3681 | fi |
| 3682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3683 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3684 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3685 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3686 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3687 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3688 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3689 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3690 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3691 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3693 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3694 | cat >conftest.$ac_ext <<_ACEOF |
| 3695 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3696 | #include "confdefs.h" |
| 3697 | #include <stdlib.h> |
| 3698 | #include <stdarg.h> |
| 3699 | #include <string.h> |
| 3700 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3701 | |
| 3702 | _ACEOF |
| 3703 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3704 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3705 | ac_status=$? |
| 3706 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3707 | rm -f conftest.er1 |
| 3708 | cat conftest.err >&5 |
| 3709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3710 | (exit $ac_status); } >/dev/null; then |
| 3711 | if test -s conftest.err; then |
| 3712 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3713 | else |
| 3714 | ac_cpp_err= |
| 3715 | fi |
| 3716 | else |
| 3717 | ac_cpp_err=yes |
| 3718 | fi |
| 3719 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3720 | ac_cv_header_stdc=yes |
| 3721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3723 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3724 | ac_cv_header_stdc=no |
| 3725 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3726 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3727 | |
| 3728 | if test $ac_cv_header_stdc = yes; then |
| 3729 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3730 | cat >conftest.$ac_ext <<_ACEOF |
| 3731 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3732 | #include "confdefs.h" |
| 3733 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3734 | |
| 3735 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3736 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3737 | egrep "memchr" >/dev/null 2>&1; then |
| 3738 | : |
| 3739 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3740 | ac_cv_header_stdc=no |
| 3741 | fi |
| 3742 | rm -f conftest* |
| 3743 | |
| 3744 | fi |
| 3745 | |
| 3746 | if test $ac_cv_header_stdc = yes; then |
| 3747 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3748 | cat >conftest.$ac_ext <<_ACEOF |
| 3749 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3750 | #include "confdefs.h" |
| 3751 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3752 | |
| 3753 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3755 | egrep "free" >/dev/null 2>&1; then |
| 3756 | : |
| 3757 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3758 | ac_cv_header_stdc=no |
| 3759 | fi |
| 3760 | rm -f conftest* |
| 3761 | |
| 3762 | fi |
| 3763 | |
| 3764 | if test $ac_cv_header_stdc = yes; then |
| 3765 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3766 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3767 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3768 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3769 | cat >conftest.$ac_ext <<_ACEOF |
| 3770 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3771 | #include "confdefs.h" |
| 3772 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | #if ((' ' & 0x0FF) == 0x020) |
| 3774 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3775 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3776 | #else |
| 3777 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3778 | || ('j' <= (c) && (c) <= 'r') \ |
| 3779 | || ('s' <= (c) && (c) <= 'z')) |
| 3780 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3781 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3783 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3784 | int |
| 3785 | main () |
| 3786 | { |
| 3787 | int i; |
| 3788 | for (i = 0; i < 256; i++) |
| 3789 | if (XOR (islower (i), ISLOWER (i)) |
| 3790 | || toupper (i) != TOUPPER (i)) |
| 3791 | exit(2); |
| 3792 | exit (0); |
| 3793 | } |
| 3794 | _ACEOF |
| 3795 | rm -f conftest$ac_exeext |
| 3796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3797 | (eval $ac_link) 2>&5 |
| 3798 | ac_status=$? |
| 3799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3800 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3802 | (eval $ac_try) 2>&5 |
| 3803 | ac_status=$? |
| 3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3805 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3806 | : |
| 3807 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3808 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3809 | echo "$as_me: failed program was:" >&5 |
| 3810 | cat conftest.$ac_ext >&5 |
| 3811 | ( exit $ac_status ) |
| 3812 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3813 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3814 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3815 | fi |
| 3816 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3817 | fi |
| 3818 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3819 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3820 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3821 | |
| 3822 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3823 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3824 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3825 | |
| 3826 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3828 | |
| 3829 | |
| 3830 | |
| 3831 | |
| 3832 | |
| 3833 | |
| 3834 | |
| 3835 | |
| 3836 | |
| 3837 | |
| 3838 | |
| 3839 | |
| 3840 | |
| 3841 | |
| 3842 | |
| 3843 | |
| 3844 | |
| 3845 | |
| 3846 | |
| 3847 | |
| 3848 | |
| 3849 | |
| 3850 | |
| 3851 | |
| 3852 | |
| 3853 | |
| 3854 | |
| 3855 | |
| 3856 | |
| 3857 | |
| 3858 | |
| 3859 | |
| 3860 | |
| 3861 | |
| 3862 | |
| 3863 | |
| 3864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3865 | for ac_header in dlfcn.h fcntl.h grp.h limits.h langinfo.h \ |
Martin v. Löwis | 2e64c34 | 2002-03-27 18:49:02 +0000 | [diff] [blame] | 3866 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3867 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ |
Skip Montanaro | 57454e5 | 2002-06-14 20:30:31 +0000 | [diff] [blame] | 3868 | sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3869 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Martin v. Löwis | 6953233 | 2001-10-13 09:12:41 +0000 | [diff] [blame] | 3870 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Skip Montanaro | 8345f71 | 2002-06-25 05:53:48 +0000 | [diff] [blame] | 3871 | sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3872 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3873 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3875 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3879 | fi |
| 3880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3881 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3883 | # Is the header compilable? |
| 3884 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3885 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3886 | cat >conftest.$ac_ext <<_ACEOF |
| 3887 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3888 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3889 | $ac_includes_default |
| 3890 | #include <$ac_header> |
| 3891 | _ACEOF |
| 3892 | rm -f conftest.$ac_objext |
| 3893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3894 | (eval $ac_compile) 2>&5 |
| 3895 | ac_status=$? |
| 3896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3897 | (exit $ac_status); } && |
| 3898 | { ac_try='test -s conftest.$ac_objext' |
| 3899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3900 | (eval $ac_try) 2>&5 |
| 3901 | ac_status=$? |
| 3902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3903 | (exit $ac_status); }; }; then |
| 3904 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3906 | echo "$as_me: failed program was:" >&5 |
| 3907 | cat conftest.$ac_ext >&5 |
| 3908 | ac_header_compiler=no |
| 3909 | fi |
| 3910 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3911 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3912 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3913 | |
| 3914 | # Is the header present? |
| 3915 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3916 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3917 | cat >conftest.$ac_ext <<_ACEOF |
| 3918 | #line $LINENO "configure" |
| 3919 | #include "confdefs.h" |
| 3920 | #include <$ac_header> |
| 3921 | _ACEOF |
| 3922 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3923 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3924 | ac_status=$? |
| 3925 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3926 | rm -f conftest.er1 |
| 3927 | cat conftest.err >&5 |
| 3928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3929 | (exit $ac_status); } >/dev/null; then |
| 3930 | if test -s conftest.err; then |
| 3931 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3932 | else |
| 3933 | ac_cpp_err= |
| 3934 | fi |
| 3935 | else |
| 3936 | ac_cpp_err=yes |
| 3937 | fi |
| 3938 | if test -z "$ac_cpp_err"; then |
| 3939 | ac_header_preproc=yes |
| 3940 | else |
| 3941 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3942 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3943 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3944 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3945 | rm -f conftest.err conftest.$ac_ext |
| 3946 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3947 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3948 | |
| 3949 | # So? What about this header? |
| 3950 | case $ac_header_compiler:$ac_header_preproc in |
| 3951 | yes:no ) |
| 3952 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3953 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3954 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3955 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3956 | no:yes ) |
| 3957 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3958 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3959 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3960 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3961 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3962 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3963 | esac |
| 3964 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3965 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3966 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3968 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3969 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3970 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3971 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3972 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3973 | |
| 3974 | fi |
| 3975 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3976 | cat >>confdefs.h <<_ACEOF |
| 3977 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3978 | _ACEOF |
| 3979 | |
| 3980 | fi |
| 3981 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3982 | done |
| 3983 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3984 | |
| 3985 | |
| 3986 | |
| 3987 | |
| 3988 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3989 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3990 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 3991 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 3992 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 3993 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 3994 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3996 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3997 | cat >conftest.$ac_ext <<_ACEOF |
| 3998 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3999 | #include "confdefs.h" |
| 4000 | #include <sys/types.h> |
| 4001 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4002 | |
| 4003 | #ifdef F77_DUMMY_MAIN |
| 4004 | # ifdef __cplusplus |
| 4005 | extern "C" |
| 4006 | # endif |
| 4007 | int F77_DUMMY_MAIN() { return 1; } |
| 4008 | #endif |
| 4009 | int |
| 4010 | main () |
| 4011 | { |
| 4012 | if ((DIR *) 0) |
| 4013 | return 0; |
| 4014 | ; |
| 4015 | return 0; |
| 4016 | } |
| 4017 | _ACEOF |
| 4018 | rm -f conftest.$ac_objext |
| 4019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4020 | (eval $ac_compile) 2>&5 |
| 4021 | ac_status=$? |
| 4022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4023 | (exit $ac_status); } && |
| 4024 | { ac_try='test -s conftest.$ac_objext' |
| 4025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4026 | (eval $ac_try) 2>&5 |
| 4027 | ac_status=$? |
| 4028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4029 | (exit $ac_status); }; }; then |
| 4030 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4031 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4032 | echo "$as_me: failed program was:" >&5 |
| 4033 | cat conftest.$ac_ext >&5 |
| 4034 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4035 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4036 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4037 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4038 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4039 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4040 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4041 | cat >>confdefs.h <<_ACEOF |
| 4042 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4043 | _ACEOF |
| 4044 | |
| 4045 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4046 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4047 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4048 | done |
| 4049 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4050 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4051 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4052 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4053 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4056 | ac_func_search_save_LIBS=$LIBS |
| 4057 | ac_cv_search_opendir=no |
| 4058 | cat >conftest.$ac_ext <<_ACEOF |
| 4059 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4060 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4061 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4062 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4063 | #ifdef __cplusplus |
| 4064 | extern "C" |
| 4065 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4066 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4067 | builtin and then its argument prototype would still apply. */ |
| 4068 | char opendir (); |
| 4069 | #ifdef F77_DUMMY_MAIN |
| 4070 | # ifdef __cplusplus |
| 4071 | extern "C" |
| 4072 | # endif |
| 4073 | int F77_DUMMY_MAIN() { return 1; } |
| 4074 | #endif |
| 4075 | int |
| 4076 | main () |
| 4077 | { |
| 4078 | opendir (); |
| 4079 | ; |
| 4080 | return 0; |
| 4081 | } |
| 4082 | _ACEOF |
| 4083 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4085 | (eval $ac_link) 2>&5 |
| 4086 | ac_status=$? |
| 4087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4088 | (exit $ac_status); } && |
| 4089 | { ac_try='test -s conftest$ac_exeext' |
| 4090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4091 | (eval $ac_try) 2>&5 |
| 4092 | ac_status=$? |
| 4093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4094 | (exit $ac_status); }; }; then |
| 4095 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4097 | echo "$as_me: failed program was:" >&5 |
| 4098 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4099 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4100 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4101 | if test "$ac_cv_search_opendir" = no; then |
| 4102 | for ac_lib in dir; do |
| 4103 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4104 | cat >conftest.$ac_ext <<_ACEOF |
| 4105 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4106 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4107 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4108 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4109 | #ifdef __cplusplus |
| 4110 | extern "C" |
| 4111 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4112 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4113 | builtin and then its argument prototype would still apply. */ |
| 4114 | char opendir (); |
| 4115 | #ifdef F77_DUMMY_MAIN |
| 4116 | # ifdef __cplusplus |
| 4117 | extern "C" |
| 4118 | # endif |
| 4119 | int F77_DUMMY_MAIN() { return 1; } |
| 4120 | #endif |
| 4121 | int |
| 4122 | main () |
| 4123 | { |
| 4124 | opendir (); |
| 4125 | ; |
| 4126 | return 0; |
| 4127 | } |
| 4128 | _ACEOF |
| 4129 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4131 | (eval $ac_link) 2>&5 |
| 4132 | ac_status=$? |
| 4133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4134 | (exit $ac_status); } && |
| 4135 | { ac_try='test -s conftest$ac_exeext' |
| 4136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4137 | (eval $ac_try) 2>&5 |
| 4138 | ac_status=$? |
| 4139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4140 | (exit $ac_status); }; }; then |
| 4141 | ac_cv_search_opendir="-l$ac_lib" |
| 4142 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4144 | echo "$as_me: failed program was:" >&5 |
| 4145 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4146 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4147 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4148 | done |
| 4149 | fi |
| 4150 | LIBS=$ac_func_search_save_LIBS |
| 4151 | fi |
| 4152 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4153 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4154 | if test "$ac_cv_search_opendir" != no; then |
| 4155 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4156 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4157 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4158 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4159 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4160 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4161 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4162 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4164 | else |
| 4165 | ac_func_search_save_LIBS=$LIBS |
| 4166 | ac_cv_search_opendir=no |
| 4167 | cat >conftest.$ac_ext <<_ACEOF |
| 4168 | #line $LINENO "configure" |
| 4169 | #include "confdefs.h" |
| 4170 | |
| 4171 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4172 | #ifdef __cplusplus |
| 4173 | extern "C" |
| 4174 | #endif |
| 4175 | /* We use char because int might match the return type of a gcc2 |
| 4176 | builtin and then its argument prototype would still apply. */ |
| 4177 | char opendir (); |
| 4178 | #ifdef F77_DUMMY_MAIN |
| 4179 | # ifdef __cplusplus |
| 4180 | extern "C" |
| 4181 | # endif |
| 4182 | int F77_DUMMY_MAIN() { return 1; } |
| 4183 | #endif |
| 4184 | int |
| 4185 | main () |
| 4186 | { |
| 4187 | opendir (); |
| 4188 | ; |
| 4189 | return 0; |
| 4190 | } |
| 4191 | _ACEOF |
| 4192 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4194 | (eval $ac_link) 2>&5 |
| 4195 | ac_status=$? |
| 4196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4197 | (exit $ac_status); } && |
| 4198 | { ac_try='test -s conftest$ac_exeext' |
| 4199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4200 | (eval $ac_try) 2>&5 |
| 4201 | ac_status=$? |
| 4202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4203 | (exit $ac_status); }; }; then |
| 4204 | ac_cv_search_opendir="none required" |
| 4205 | else |
| 4206 | echo "$as_me: failed program was:" >&5 |
| 4207 | cat conftest.$ac_ext >&5 |
| 4208 | fi |
| 4209 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4210 | if test "$ac_cv_search_opendir" = no; then |
| 4211 | for ac_lib in x; do |
| 4212 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4213 | cat >conftest.$ac_ext <<_ACEOF |
| 4214 | #line $LINENO "configure" |
| 4215 | #include "confdefs.h" |
| 4216 | |
| 4217 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4218 | #ifdef __cplusplus |
| 4219 | extern "C" |
| 4220 | #endif |
| 4221 | /* We use char because int might match the return type of a gcc2 |
| 4222 | builtin and then its argument prototype would still apply. */ |
| 4223 | char opendir (); |
| 4224 | #ifdef F77_DUMMY_MAIN |
| 4225 | # ifdef __cplusplus |
| 4226 | extern "C" |
| 4227 | # endif |
| 4228 | int F77_DUMMY_MAIN() { return 1; } |
| 4229 | #endif |
| 4230 | int |
| 4231 | main () |
| 4232 | { |
| 4233 | opendir (); |
| 4234 | ; |
| 4235 | return 0; |
| 4236 | } |
| 4237 | _ACEOF |
| 4238 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4240 | (eval $ac_link) 2>&5 |
| 4241 | ac_status=$? |
| 4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4243 | (exit $ac_status); } && |
| 4244 | { ac_try='test -s conftest$ac_exeext' |
| 4245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4246 | (eval $ac_try) 2>&5 |
| 4247 | ac_status=$? |
| 4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4249 | (exit $ac_status); }; }; then |
| 4250 | ac_cv_search_opendir="-l$ac_lib" |
| 4251 | break |
| 4252 | else |
| 4253 | echo "$as_me: failed program was:" >&5 |
| 4254 | cat conftest.$ac_ext >&5 |
| 4255 | fi |
| 4256 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4257 | done |
| 4258 | fi |
| 4259 | LIBS=$ac_func_search_save_LIBS |
| 4260 | fi |
| 4261 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4262 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4263 | if test "$ac_cv_search_opendir" != no; then |
| 4264 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4265 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4266 | fi |
| 4267 | |
| 4268 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4269 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4270 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4271 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4272 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4273 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4274 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4275 | cat >conftest.$ac_ext <<_ACEOF |
| 4276 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4277 | #include "confdefs.h" |
| 4278 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4279 | |
| 4280 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4282 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4283 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4285 | |
| 4286 | |
| 4287 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4288 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4289 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4290 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4291 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4292 | fi |
| 4293 | rm -f conftest* |
| 4294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4295 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4296 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4297 | |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4298 | # Two defines needed to enable largefile support on various platforms |
| 4299 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4301 | cat >>confdefs.h <<\_ACEOF |
| 4302 | #define _LARGEFILE_SOURCE 1 |
| 4303 | _ACEOF |
| 4304 | |
| 4305 | |
| 4306 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4307 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4308 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4309 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4310 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4311 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4312 | cat >> confdefs.h <<\EOF |
| 4313 | #if defined(SCO_DS) |
| 4314 | #undef _OFF_T |
| 4315 | #endif |
| 4316 | EOF |
| 4317 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4318 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4319 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4320 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4321 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4324 | cat >conftest.$ac_ext <<_ACEOF |
| 4325 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4326 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4327 | $ac_includes_default |
| 4328 | #ifdef F77_DUMMY_MAIN |
| 4329 | # ifdef __cplusplus |
| 4330 | extern "C" |
| 4331 | # endif |
| 4332 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4333 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4334 | int |
| 4335 | main () |
| 4336 | { |
| 4337 | if ((mode_t *) 0) |
| 4338 | return 0; |
| 4339 | if (sizeof (mode_t)) |
| 4340 | return 0; |
| 4341 | ; |
| 4342 | return 0; |
| 4343 | } |
| 4344 | _ACEOF |
| 4345 | rm -f conftest.$ac_objext |
| 4346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4347 | (eval $ac_compile) 2>&5 |
| 4348 | ac_status=$? |
| 4349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4350 | (exit $ac_status); } && |
| 4351 | { ac_try='test -s conftest.$ac_objext' |
| 4352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4353 | (eval $ac_try) 2>&5 |
| 4354 | ac_status=$? |
| 4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4356 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4357 | ac_cv_type_mode_t=yes |
| 4358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4359 | echo "$as_me: failed program was:" >&5 |
| 4360 | cat conftest.$ac_ext >&5 |
| 4361 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4362 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4363 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4364 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4365 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4366 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4367 | if test $ac_cv_type_mode_t = yes; then |
| 4368 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4369 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4370 | |
| 4371 | cat >>confdefs.h <<_ACEOF |
| 4372 | #define mode_t int |
| 4373 | _ACEOF |
| 4374 | |
| 4375 | fi |
| 4376 | |
| 4377 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4378 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4379 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4381 | else |
| 4382 | cat >conftest.$ac_ext <<_ACEOF |
| 4383 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4384 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4385 | $ac_includes_default |
| 4386 | #ifdef F77_DUMMY_MAIN |
| 4387 | # ifdef __cplusplus |
| 4388 | extern "C" |
| 4389 | # endif |
| 4390 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4391 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4392 | int |
| 4393 | main () |
| 4394 | { |
| 4395 | if ((off_t *) 0) |
| 4396 | return 0; |
| 4397 | if (sizeof (off_t)) |
| 4398 | return 0; |
| 4399 | ; |
| 4400 | return 0; |
| 4401 | } |
| 4402 | _ACEOF |
| 4403 | rm -f conftest.$ac_objext |
| 4404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4405 | (eval $ac_compile) 2>&5 |
| 4406 | ac_status=$? |
| 4407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4408 | (exit $ac_status); } && |
| 4409 | { ac_try='test -s conftest.$ac_objext' |
| 4410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4411 | (eval $ac_try) 2>&5 |
| 4412 | ac_status=$? |
| 4413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4414 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4415 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4416 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4417 | echo "$as_me: failed program was:" >&5 |
| 4418 | cat conftest.$ac_ext >&5 |
| 4419 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4421 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4422 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4423 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4424 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4425 | if test $ac_cv_type_off_t = yes; then |
| 4426 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4427 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4428 | |
| 4429 | cat >>confdefs.h <<_ACEOF |
| 4430 | #define off_t long |
| 4431 | _ACEOF |
| 4432 | |
| 4433 | fi |
| 4434 | |
| 4435 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4436 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4437 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4439 | else |
| 4440 | cat >conftest.$ac_ext <<_ACEOF |
| 4441 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4442 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4443 | $ac_includes_default |
| 4444 | #ifdef F77_DUMMY_MAIN |
| 4445 | # ifdef __cplusplus |
| 4446 | extern "C" |
| 4447 | # endif |
| 4448 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4449 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4450 | int |
| 4451 | main () |
| 4452 | { |
| 4453 | if ((pid_t *) 0) |
| 4454 | return 0; |
| 4455 | if (sizeof (pid_t)) |
| 4456 | return 0; |
| 4457 | ; |
| 4458 | return 0; |
| 4459 | } |
| 4460 | _ACEOF |
| 4461 | rm -f conftest.$ac_objext |
| 4462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4463 | (eval $ac_compile) 2>&5 |
| 4464 | ac_status=$? |
| 4465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4466 | (exit $ac_status); } && |
| 4467 | { ac_try='test -s conftest.$ac_objext' |
| 4468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4469 | (eval $ac_try) 2>&5 |
| 4470 | ac_status=$? |
| 4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4472 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4473 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4475 | echo "$as_me: failed program was:" >&5 |
| 4476 | cat conftest.$ac_ext >&5 |
| 4477 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4478 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4479 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4480 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4481 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 4482 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 4483 | if test $ac_cv_type_pid_t = yes; then |
| 4484 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4485 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4486 | |
| 4487 | cat >>confdefs.h <<_ACEOF |
| 4488 | #define pid_t int |
| 4489 | _ACEOF |
| 4490 | |
| 4491 | fi |
| 4492 | |
| 4493 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 4494 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 4495 | if test "${ac_cv_type_signal+set}" = set; then |
| 4496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4497 | else |
| 4498 | cat >conftest.$ac_ext <<_ACEOF |
| 4499 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4500 | #include "confdefs.h" |
| 4501 | #include <sys/types.h> |
| 4502 | #include <signal.h> |
| 4503 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4504 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4505 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4506 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4507 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 4508 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4509 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4510 | #endif |
| 4511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4512 | #ifdef F77_DUMMY_MAIN |
| 4513 | # ifdef __cplusplus |
| 4514 | extern "C" |
| 4515 | # endif |
| 4516 | int F77_DUMMY_MAIN() { return 1; } |
| 4517 | #endif |
| 4518 | int |
| 4519 | main () |
| 4520 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4521 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4522 | ; |
| 4523 | return 0; |
| 4524 | } |
| 4525 | _ACEOF |
| 4526 | rm -f conftest.$ac_objext |
| 4527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4528 | (eval $ac_compile) 2>&5 |
| 4529 | ac_status=$? |
| 4530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4531 | (exit $ac_status); } && |
| 4532 | { ac_try='test -s conftest.$ac_objext' |
| 4533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4534 | (eval $ac_try) 2>&5 |
| 4535 | ac_status=$? |
| 4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4537 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4538 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4540 | echo "$as_me: failed program was:" >&5 |
| 4541 | cat conftest.$ac_ext >&5 |
| 4542 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4543 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4544 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4545 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4546 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 4547 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4549 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4550 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4551 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4552 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4554 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 4555 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 4556 | if test "${ac_cv_type_size_t+set}" = set; then |
| 4557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4558 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4559 | cat >conftest.$ac_ext <<_ACEOF |
| 4560 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4561 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4562 | $ac_includes_default |
| 4563 | #ifdef F77_DUMMY_MAIN |
| 4564 | # ifdef __cplusplus |
| 4565 | extern "C" |
| 4566 | # endif |
| 4567 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4568 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4569 | int |
| 4570 | main () |
| 4571 | { |
| 4572 | if ((size_t *) 0) |
| 4573 | return 0; |
| 4574 | if (sizeof (size_t)) |
| 4575 | return 0; |
| 4576 | ; |
| 4577 | return 0; |
| 4578 | } |
| 4579 | _ACEOF |
| 4580 | rm -f conftest.$ac_objext |
| 4581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4582 | (eval $ac_compile) 2>&5 |
| 4583 | ac_status=$? |
| 4584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4585 | (exit $ac_status); } && |
| 4586 | { ac_try='test -s conftest.$ac_objext' |
| 4587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4588 | (eval $ac_try) 2>&5 |
| 4589 | ac_status=$? |
| 4590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4591 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4592 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4593 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4594 | echo "$as_me: failed program was:" >&5 |
| 4595 | cat conftest.$ac_ext >&5 |
| 4596 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4597 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4598 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4599 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4600 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 4601 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 4602 | if test $ac_cv_type_size_t = yes; then |
| 4603 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4604 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4605 | |
| 4606 | cat >>confdefs.h <<_ACEOF |
| 4607 | #define size_t unsigned |
| 4608 | _ACEOF |
| 4609 | |
| 4610 | fi |
| 4611 | |
| 4612 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 4613 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 4614 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 4615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4616 | else |
| 4617 | cat >conftest.$ac_ext <<_ACEOF |
| 4618 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4619 | #include "confdefs.h" |
| 4620 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4621 | |
| 4622 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4624 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4625 | ac_cv_type_uid_t=yes |
| 4626 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4627 | ac_cv_type_uid_t=no |
| 4628 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4629 | rm -f conftest* |
| 4630 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4631 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4632 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 4633 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4634 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4636 | cat >>confdefs.h <<\_ACEOF |
| 4637 | #define uid_t int |
| 4638 | _ACEOF |
| 4639 | |
| 4640 | |
| 4641 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4642 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4643 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4644 | |
| 4645 | fi |
| 4646 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4647 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4648 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4649 | echo "$as_me:$LINENO: checking for int" >&5 |
| 4650 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 4651 | if test "${ac_cv_type_int+set}" = set; then |
| 4652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4653 | else |
| 4654 | cat >conftest.$ac_ext <<_ACEOF |
| 4655 | #line $LINENO "configure" |
| 4656 | #include "confdefs.h" |
| 4657 | $ac_includes_default |
| 4658 | #ifdef F77_DUMMY_MAIN |
| 4659 | # ifdef __cplusplus |
| 4660 | extern "C" |
| 4661 | # endif |
| 4662 | int F77_DUMMY_MAIN() { return 1; } |
| 4663 | #endif |
| 4664 | int |
| 4665 | main () |
| 4666 | { |
| 4667 | if ((int *) 0) |
| 4668 | return 0; |
| 4669 | if (sizeof (int)) |
| 4670 | return 0; |
| 4671 | ; |
| 4672 | return 0; |
| 4673 | } |
| 4674 | _ACEOF |
| 4675 | rm -f conftest.$ac_objext |
| 4676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4677 | (eval $ac_compile) 2>&5 |
| 4678 | ac_status=$? |
| 4679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4680 | (exit $ac_status); } && |
| 4681 | { ac_try='test -s conftest.$ac_objext' |
| 4682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4683 | (eval $ac_try) 2>&5 |
| 4684 | ac_status=$? |
| 4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4686 | (exit $ac_status); }; }; then |
| 4687 | ac_cv_type_int=yes |
| 4688 | else |
| 4689 | echo "$as_me: failed program was:" >&5 |
| 4690 | cat conftest.$ac_ext >&5 |
| 4691 | ac_cv_type_int=no |
| 4692 | fi |
| 4693 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4694 | fi |
| 4695 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 4696 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 4697 | |
| 4698 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 4699 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 4700 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 4701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4702 | else |
| 4703 | if test "$ac_cv_type_int" = yes; then |
| 4704 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 4705 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4706 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4707 | # This bug is HP SR number 8606223364. |
| 4708 | if test "$cross_compiling" = yes; then |
| 4709 | # Depending upon the size, compute the lo and hi bounds. |
| 4710 | cat >conftest.$ac_ext <<_ACEOF |
| 4711 | #line $LINENO "configure" |
| 4712 | #include "confdefs.h" |
| 4713 | $ac_includes_default |
| 4714 | #ifdef F77_DUMMY_MAIN |
| 4715 | # ifdef __cplusplus |
| 4716 | extern "C" |
| 4717 | # endif |
| 4718 | int F77_DUMMY_MAIN() { return 1; } |
| 4719 | #endif |
| 4720 | int |
| 4721 | main () |
| 4722 | { |
| 4723 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 4724 | test_array [0] = 0 |
| 4725 | |
| 4726 | ; |
| 4727 | return 0; |
| 4728 | } |
| 4729 | _ACEOF |
| 4730 | rm -f conftest.$ac_objext |
| 4731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4732 | (eval $ac_compile) 2>&5 |
| 4733 | ac_status=$? |
| 4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4735 | (exit $ac_status); } && |
| 4736 | { ac_try='test -s conftest.$ac_objext' |
| 4737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4738 | (eval $ac_try) 2>&5 |
| 4739 | ac_status=$? |
| 4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4741 | (exit $ac_status); }; }; then |
| 4742 | ac_lo=0 ac_mid=0 |
| 4743 | while :; do |
| 4744 | cat >conftest.$ac_ext <<_ACEOF |
| 4745 | #line $LINENO "configure" |
| 4746 | #include "confdefs.h" |
| 4747 | $ac_includes_default |
| 4748 | #ifdef F77_DUMMY_MAIN |
| 4749 | # ifdef __cplusplus |
| 4750 | extern "C" |
| 4751 | # endif |
| 4752 | int F77_DUMMY_MAIN() { return 1; } |
| 4753 | #endif |
| 4754 | int |
| 4755 | main () |
| 4756 | { |
| 4757 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4758 | test_array [0] = 0 |
| 4759 | |
| 4760 | ; |
| 4761 | return 0; |
| 4762 | } |
| 4763 | _ACEOF |
| 4764 | rm -f conftest.$ac_objext |
| 4765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4766 | (eval $ac_compile) 2>&5 |
| 4767 | ac_status=$? |
| 4768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4769 | (exit $ac_status); } && |
| 4770 | { ac_try='test -s conftest.$ac_objext' |
| 4771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4772 | (eval $ac_try) 2>&5 |
| 4773 | ac_status=$? |
| 4774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4775 | (exit $ac_status); }; }; then |
| 4776 | ac_hi=$ac_mid; break |
| 4777 | else |
| 4778 | echo "$as_me: failed program was:" >&5 |
| 4779 | cat conftest.$ac_ext >&5 |
| 4780 | ac_lo=`expr $ac_mid + 1` |
| 4781 | if test $ac_lo -le $ac_mid; then |
| 4782 | ac_lo= ac_hi= |
| 4783 | break |
| 4784 | fi |
| 4785 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 4786 | fi |
| 4787 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4788 | done |
| 4789 | else |
| 4790 | echo "$as_me: failed program was:" >&5 |
| 4791 | cat conftest.$ac_ext >&5 |
| 4792 | cat >conftest.$ac_ext <<_ACEOF |
| 4793 | #line $LINENO "configure" |
| 4794 | #include "confdefs.h" |
| 4795 | $ac_includes_default |
| 4796 | #ifdef F77_DUMMY_MAIN |
| 4797 | # ifdef __cplusplus |
| 4798 | extern "C" |
| 4799 | # endif |
| 4800 | int F77_DUMMY_MAIN() { return 1; } |
| 4801 | #endif |
| 4802 | int |
| 4803 | main () |
| 4804 | { |
| 4805 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 4806 | test_array [0] = 0 |
| 4807 | |
| 4808 | ; |
| 4809 | return 0; |
| 4810 | } |
| 4811 | _ACEOF |
| 4812 | rm -f conftest.$ac_objext |
| 4813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4814 | (eval $ac_compile) 2>&5 |
| 4815 | ac_status=$? |
| 4816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4817 | (exit $ac_status); } && |
| 4818 | { ac_try='test -s conftest.$ac_objext' |
| 4819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4820 | (eval $ac_try) 2>&5 |
| 4821 | ac_status=$? |
| 4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4823 | (exit $ac_status); }; }; then |
| 4824 | ac_hi=-1 ac_mid=-1 |
| 4825 | while :; do |
| 4826 | cat >conftest.$ac_ext <<_ACEOF |
| 4827 | #line $LINENO "configure" |
| 4828 | #include "confdefs.h" |
| 4829 | $ac_includes_default |
| 4830 | #ifdef F77_DUMMY_MAIN |
| 4831 | # ifdef __cplusplus |
| 4832 | extern "C" |
| 4833 | # endif |
| 4834 | int F77_DUMMY_MAIN() { return 1; } |
| 4835 | #endif |
| 4836 | int |
| 4837 | main () |
| 4838 | { |
| 4839 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 4840 | test_array [0] = 0 |
| 4841 | |
| 4842 | ; |
| 4843 | return 0; |
| 4844 | } |
| 4845 | _ACEOF |
| 4846 | rm -f conftest.$ac_objext |
| 4847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4848 | (eval $ac_compile) 2>&5 |
| 4849 | ac_status=$? |
| 4850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4851 | (exit $ac_status); } && |
| 4852 | { ac_try='test -s conftest.$ac_objext' |
| 4853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4854 | (eval $ac_try) 2>&5 |
| 4855 | ac_status=$? |
| 4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4857 | (exit $ac_status); }; }; then |
| 4858 | ac_lo=$ac_mid; break |
| 4859 | else |
| 4860 | echo "$as_me: failed program was:" >&5 |
| 4861 | cat conftest.$ac_ext >&5 |
| 4862 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 4863 | if test $ac_mid -le $ac_hi; then |
| 4864 | ac_lo= ac_hi= |
| 4865 | break |
| 4866 | fi |
| 4867 | ac_mid=`expr 2 '*' $ac_mid` |
| 4868 | fi |
| 4869 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4870 | done |
| 4871 | else |
| 4872 | echo "$as_me: failed program was:" >&5 |
| 4873 | cat conftest.$ac_ext >&5 |
| 4874 | ac_lo= ac_hi= |
| 4875 | fi |
| 4876 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4877 | fi |
| 4878 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4879 | # Binary search between lo and hi bounds. |
| 4880 | while test "x$ac_lo" != "x$ac_hi"; do |
| 4881 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 4882 | cat >conftest.$ac_ext <<_ACEOF |
| 4883 | #line $LINENO "configure" |
| 4884 | #include "confdefs.h" |
| 4885 | $ac_includes_default |
| 4886 | #ifdef F77_DUMMY_MAIN |
| 4887 | # ifdef __cplusplus |
| 4888 | extern "C" |
| 4889 | # endif |
| 4890 | int F77_DUMMY_MAIN() { return 1; } |
| 4891 | #endif |
| 4892 | int |
| 4893 | main () |
| 4894 | { |
| 4895 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4896 | test_array [0] = 0 |
| 4897 | |
| 4898 | ; |
| 4899 | return 0; |
| 4900 | } |
| 4901 | _ACEOF |
| 4902 | rm -f conftest.$ac_objext |
| 4903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4904 | (eval $ac_compile) 2>&5 |
| 4905 | ac_status=$? |
| 4906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4907 | (exit $ac_status); } && |
| 4908 | { ac_try='test -s conftest.$ac_objext' |
| 4909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4910 | (eval $ac_try) 2>&5 |
| 4911 | ac_status=$? |
| 4912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4913 | (exit $ac_status); }; }; then |
| 4914 | ac_hi=$ac_mid |
| 4915 | else |
| 4916 | echo "$as_me: failed program was:" >&5 |
| 4917 | cat conftest.$ac_ext >&5 |
| 4918 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 4919 | fi |
| 4920 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4921 | done |
| 4922 | case $ac_lo in |
| 4923 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 4924 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 4925 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 4926 | { (exit 1); exit 1; }; } ;; |
| 4927 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4928 | else |
| 4929 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4930 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 4931 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 4932 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4934 | cat >conftest.$ac_ext <<_ACEOF |
| 4935 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4936 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4937 | $ac_includes_default |
| 4938 | long longval () { return (long) (sizeof (int)); } |
| 4939 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4940 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4941 | #include <stdlib.h> |
| 4942 | #ifdef F77_DUMMY_MAIN |
| 4943 | # ifdef __cplusplus |
| 4944 | extern "C" |
| 4945 | # endif |
| 4946 | int F77_DUMMY_MAIN() { return 1; } |
| 4947 | #endif |
| 4948 | int |
| 4949 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4950 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4951 | |
| 4952 | FILE *f = fopen ("conftest.val", "w"); |
| 4953 | if (! f) |
| 4954 | exit (1); |
| 4955 | if (((long) (sizeof (int))) < 0) |
| 4956 | { |
| 4957 | long i = longval (); |
| 4958 | if (i != ((long) (sizeof (int)))) |
| 4959 | exit (1); |
| 4960 | fprintf (f, "%ld\n", i); |
| 4961 | } |
| 4962 | else |
| 4963 | { |
| 4964 | unsigned long i = ulongval (); |
| 4965 | if (i != ((long) (sizeof (int)))) |
| 4966 | exit (1); |
| 4967 | fprintf (f, "%lu\n", i); |
| 4968 | } |
| 4969 | exit (ferror (f) || fclose (f) != 0); |
| 4970 | |
| 4971 | ; |
| 4972 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4973 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4974 | _ACEOF |
| 4975 | rm -f conftest$ac_exeext |
| 4976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4977 | (eval $ac_link) 2>&5 |
| 4978 | ac_status=$? |
| 4979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4980 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4982 | (eval $ac_try) 2>&5 |
| 4983 | ac_status=$? |
| 4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4985 | (exit $ac_status); }; }; then |
| 4986 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4987 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4988 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4989 | echo "$as_me: failed program was:" >&5 |
| 4990 | cat conftest.$ac_ext >&5 |
| 4991 | ( exit $ac_status ) |
| 4992 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 4993 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 4994 | { (exit 1); exit 1; }; } |
| 4995 | fi |
| 4996 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4997 | fi |
| 4998 | fi |
| 4999 | rm -f conftest.val |
| 5000 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5001 | ac_cv_sizeof_int=0 |
| 5002 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5003 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5004 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5005 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5006 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5007 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5008 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5009 | |
| 5010 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5011 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5012 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5013 | if test "${ac_cv_type_long+set}" = set; then |
| 5014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5015 | else |
| 5016 | cat >conftest.$ac_ext <<_ACEOF |
| 5017 | #line $LINENO "configure" |
| 5018 | #include "confdefs.h" |
| 5019 | $ac_includes_default |
| 5020 | #ifdef F77_DUMMY_MAIN |
| 5021 | # ifdef __cplusplus |
| 5022 | extern "C" |
| 5023 | # endif |
| 5024 | int F77_DUMMY_MAIN() { return 1; } |
| 5025 | #endif |
| 5026 | int |
| 5027 | main () |
| 5028 | { |
| 5029 | if ((long *) 0) |
| 5030 | return 0; |
| 5031 | if (sizeof (long)) |
| 5032 | return 0; |
| 5033 | ; |
| 5034 | return 0; |
| 5035 | } |
| 5036 | _ACEOF |
| 5037 | rm -f conftest.$ac_objext |
| 5038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5039 | (eval $ac_compile) 2>&5 |
| 5040 | ac_status=$? |
| 5041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5042 | (exit $ac_status); } && |
| 5043 | { ac_try='test -s conftest.$ac_objext' |
| 5044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5045 | (eval $ac_try) 2>&5 |
| 5046 | ac_status=$? |
| 5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5048 | (exit $ac_status); }; }; then |
| 5049 | ac_cv_type_long=yes |
| 5050 | else |
| 5051 | echo "$as_me: failed program was:" >&5 |
| 5052 | cat conftest.$ac_ext >&5 |
| 5053 | ac_cv_type_long=no |
| 5054 | fi |
| 5055 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5056 | fi |
| 5057 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5058 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5059 | |
| 5060 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5061 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5062 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5064 | else |
| 5065 | if test "$ac_cv_type_long" = yes; then |
| 5066 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5067 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5068 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5069 | # This bug is HP SR number 8606223364. |
| 5070 | if test "$cross_compiling" = yes; then |
| 5071 | # Depending upon the size, compute the lo and hi bounds. |
| 5072 | cat >conftest.$ac_ext <<_ACEOF |
| 5073 | #line $LINENO "configure" |
| 5074 | #include "confdefs.h" |
| 5075 | $ac_includes_default |
| 5076 | #ifdef F77_DUMMY_MAIN |
| 5077 | # ifdef __cplusplus |
| 5078 | extern "C" |
| 5079 | # endif |
| 5080 | int F77_DUMMY_MAIN() { return 1; } |
| 5081 | #endif |
| 5082 | int |
| 5083 | main () |
| 5084 | { |
| 5085 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5086 | test_array [0] = 0 |
| 5087 | |
| 5088 | ; |
| 5089 | return 0; |
| 5090 | } |
| 5091 | _ACEOF |
| 5092 | rm -f conftest.$ac_objext |
| 5093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5094 | (eval $ac_compile) 2>&5 |
| 5095 | ac_status=$? |
| 5096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5097 | (exit $ac_status); } && |
| 5098 | { ac_try='test -s conftest.$ac_objext' |
| 5099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5100 | (eval $ac_try) 2>&5 |
| 5101 | ac_status=$? |
| 5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5103 | (exit $ac_status); }; }; then |
| 5104 | ac_lo=0 ac_mid=0 |
| 5105 | while :; do |
| 5106 | cat >conftest.$ac_ext <<_ACEOF |
| 5107 | #line $LINENO "configure" |
| 5108 | #include "confdefs.h" |
| 5109 | $ac_includes_default |
| 5110 | #ifdef F77_DUMMY_MAIN |
| 5111 | # ifdef __cplusplus |
| 5112 | extern "C" |
| 5113 | # endif |
| 5114 | int F77_DUMMY_MAIN() { return 1; } |
| 5115 | #endif |
| 5116 | int |
| 5117 | main () |
| 5118 | { |
| 5119 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5120 | test_array [0] = 0 |
| 5121 | |
| 5122 | ; |
| 5123 | return 0; |
| 5124 | } |
| 5125 | _ACEOF |
| 5126 | rm -f conftest.$ac_objext |
| 5127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5128 | (eval $ac_compile) 2>&5 |
| 5129 | ac_status=$? |
| 5130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5131 | (exit $ac_status); } && |
| 5132 | { ac_try='test -s conftest.$ac_objext' |
| 5133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5134 | (eval $ac_try) 2>&5 |
| 5135 | ac_status=$? |
| 5136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5137 | (exit $ac_status); }; }; then |
| 5138 | ac_hi=$ac_mid; break |
| 5139 | else |
| 5140 | echo "$as_me: failed program was:" >&5 |
| 5141 | cat conftest.$ac_ext >&5 |
| 5142 | ac_lo=`expr $ac_mid + 1` |
| 5143 | if test $ac_lo -le $ac_mid; then |
| 5144 | ac_lo= ac_hi= |
| 5145 | break |
| 5146 | fi |
| 5147 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5148 | fi |
| 5149 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5150 | done |
| 5151 | else |
| 5152 | echo "$as_me: failed program was:" >&5 |
| 5153 | cat conftest.$ac_ext >&5 |
| 5154 | cat >conftest.$ac_ext <<_ACEOF |
| 5155 | #line $LINENO "configure" |
| 5156 | #include "confdefs.h" |
| 5157 | $ac_includes_default |
| 5158 | #ifdef F77_DUMMY_MAIN |
| 5159 | # ifdef __cplusplus |
| 5160 | extern "C" |
| 5161 | # endif |
| 5162 | int F77_DUMMY_MAIN() { return 1; } |
| 5163 | #endif |
| 5164 | int |
| 5165 | main () |
| 5166 | { |
| 5167 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5168 | test_array [0] = 0 |
| 5169 | |
| 5170 | ; |
| 5171 | return 0; |
| 5172 | } |
| 5173 | _ACEOF |
| 5174 | rm -f conftest.$ac_objext |
| 5175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5176 | (eval $ac_compile) 2>&5 |
| 5177 | ac_status=$? |
| 5178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5179 | (exit $ac_status); } && |
| 5180 | { ac_try='test -s conftest.$ac_objext' |
| 5181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5182 | (eval $ac_try) 2>&5 |
| 5183 | ac_status=$? |
| 5184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5185 | (exit $ac_status); }; }; then |
| 5186 | ac_hi=-1 ac_mid=-1 |
| 5187 | while :; do |
| 5188 | cat >conftest.$ac_ext <<_ACEOF |
| 5189 | #line $LINENO "configure" |
| 5190 | #include "confdefs.h" |
| 5191 | $ac_includes_default |
| 5192 | #ifdef F77_DUMMY_MAIN |
| 5193 | # ifdef __cplusplus |
| 5194 | extern "C" |
| 5195 | # endif |
| 5196 | int F77_DUMMY_MAIN() { return 1; } |
| 5197 | #endif |
| 5198 | int |
| 5199 | main () |
| 5200 | { |
| 5201 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5202 | test_array [0] = 0 |
| 5203 | |
| 5204 | ; |
| 5205 | return 0; |
| 5206 | } |
| 5207 | _ACEOF |
| 5208 | rm -f conftest.$ac_objext |
| 5209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5210 | (eval $ac_compile) 2>&5 |
| 5211 | ac_status=$? |
| 5212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5213 | (exit $ac_status); } && |
| 5214 | { ac_try='test -s conftest.$ac_objext' |
| 5215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5216 | (eval $ac_try) 2>&5 |
| 5217 | ac_status=$? |
| 5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5219 | (exit $ac_status); }; }; then |
| 5220 | ac_lo=$ac_mid; break |
| 5221 | else |
| 5222 | echo "$as_me: failed program was:" >&5 |
| 5223 | cat conftest.$ac_ext >&5 |
| 5224 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5225 | if test $ac_mid -le $ac_hi; then |
| 5226 | ac_lo= ac_hi= |
| 5227 | break |
| 5228 | fi |
| 5229 | ac_mid=`expr 2 '*' $ac_mid` |
| 5230 | fi |
| 5231 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5232 | done |
| 5233 | else |
| 5234 | echo "$as_me: failed program was:" >&5 |
| 5235 | cat conftest.$ac_ext >&5 |
| 5236 | ac_lo= ac_hi= |
| 5237 | fi |
| 5238 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5239 | fi |
| 5240 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5241 | # Binary search between lo and hi bounds. |
| 5242 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5243 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5244 | cat >conftest.$ac_ext <<_ACEOF |
| 5245 | #line $LINENO "configure" |
| 5246 | #include "confdefs.h" |
| 5247 | $ac_includes_default |
| 5248 | #ifdef F77_DUMMY_MAIN |
| 5249 | # ifdef __cplusplus |
| 5250 | extern "C" |
| 5251 | # endif |
| 5252 | int F77_DUMMY_MAIN() { return 1; } |
| 5253 | #endif |
| 5254 | int |
| 5255 | main () |
| 5256 | { |
| 5257 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5258 | test_array [0] = 0 |
| 5259 | |
| 5260 | ; |
| 5261 | return 0; |
| 5262 | } |
| 5263 | _ACEOF |
| 5264 | rm -f conftest.$ac_objext |
| 5265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5266 | (eval $ac_compile) 2>&5 |
| 5267 | ac_status=$? |
| 5268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5269 | (exit $ac_status); } && |
| 5270 | { ac_try='test -s conftest.$ac_objext' |
| 5271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5272 | (eval $ac_try) 2>&5 |
| 5273 | ac_status=$? |
| 5274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5275 | (exit $ac_status); }; }; then |
| 5276 | ac_hi=$ac_mid |
| 5277 | else |
| 5278 | echo "$as_me: failed program was:" >&5 |
| 5279 | cat conftest.$ac_ext >&5 |
| 5280 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5281 | fi |
| 5282 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5283 | done |
| 5284 | case $ac_lo in |
| 5285 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5286 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5287 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5288 | { (exit 1); exit 1; }; } ;; |
| 5289 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5290 | else |
| 5291 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5292 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5293 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5294 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5295 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5296 | cat >conftest.$ac_ext <<_ACEOF |
| 5297 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5298 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5299 | $ac_includes_default |
| 5300 | long longval () { return (long) (sizeof (long)); } |
| 5301 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5302 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5303 | #include <stdlib.h> |
| 5304 | #ifdef F77_DUMMY_MAIN |
| 5305 | # ifdef __cplusplus |
| 5306 | extern "C" |
| 5307 | # endif |
| 5308 | int F77_DUMMY_MAIN() { return 1; } |
| 5309 | #endif |
| 5310 | int |
| 5311 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5312 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5313 | |
| 5314 | FILE *f = fopen ("conftest.val", "w"); |
| 5315 | if (! f) |
| 5316 | exit (1); |
| 5317 | if (((long) (sizeof (long))) < 0) |
| 5318 | { |
| 5319 | long i = longval (); |
| 5320 | if (i != ((long) (sizeof (long)))) |
| 5321 | exit (1); |
| 5322 | fprintf (f, "%ld\n", i); |
| 5323 | } |
| 5324 | else |
| 5325 | { |
| 5326 | unsigned long i = ulongval (); |
| 5327 | if (i != ((long) (sizeof (long)))) |
| 5328 | exit (1); |
| 5329 | fprintf (f, "%lu\n", i); |
| 5330 | } |
| 5331 | exit (ferror (f) || fclose (f) != 0); |
| 5332 | |
| 5333 | ; |
| 5334 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5335 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5336 | _ACEOF |
| 5337 | rm -f conftest$ac_exeext |
| 5338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5339 | (eval $ac_link) 2>&5 |
| 5340 | ac_status=$? |
| 5341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5342 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5344 | (eval $ac_try) 2>&5 |
| 5345 | ac_status=$? |
| 5346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5347 | (exit $ac_status); }; }; then |
| 5348 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5350 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5351 | echo "$as_me: failed program was:" >&5 |
| 5352 | cat conftest.$ac_ext >&5 |
| 5353 | ( exit $ac_status ) |
| 5354 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5355 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5356 | { (exit 1); exit 1; }; } |
| 5357 | fi |
| 5358 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5359 | fi |
| 5360 | fi |
| 5361 | rm -f conftest.val |
| 5362 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5363 | ac_cv_sizeof_long=0 |
| 5364 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5365 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5366 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5367 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5368 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5369 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5370 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5371 | |
| 5372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5373 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5374 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5375 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5377 | else |
| 5378 | cat >conftest.$ac_ext <<_ACEOF |
| 5379 | #line $LINENO "configure" |
| 5380 | #include "confdefs.h" |
| 5381 | $ac_includes_default |
| 5382 | #ifdef F77_DUMMY_MAIN |
| 5383 | # ifdef __cplusplus |
| 5384 | extern "C" |
| 5385 | # endif |
| 5386 | int F77_DUMMY_MAIN() { return 1; } |
| 5387 | #endif |
| 5388 | int |
| 5389 | main () |
| 5390 | { |
| 5391 | if ((void * *) 0) |
| 5392 | return 0; |
| 5393 | if (sizeof (void *)) |
| 5394 | return 0; |
| 5395 | ; |
| 5396 | return 0; |
| 5397 | } |
| 5398 | _ACEOF |
| 5399 | rm -f conftest.$ac_objext |
| 5400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5401 | (eval $ac_compile) 2>&5 |
| 5402 | ac_status=$? |
| 5403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5404 | (exit $ac_status); } && |
| 5405 | { ac_try='test -s conftest.$ac_objext' |
| 5406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5407 | (eval $ac_try) 2>&5 |
| 5408 | ac_status=$? |
| 5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5410 | (exit $ac_status); }; }; then |
| 5411 | ac_cv_type_void_p=yes |
| 5412 | else |
| 5413 | echo "$as_me: failed program was:" >&5 |
| 5414 | cat conftest.$ac_ext >&5 |
| 5415 | ac_cv_type_void_p=no |
| 5416 | fi |
| 5417 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5418 | fi |
| 5419 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5420 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5421 | |
| 5422 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5423 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5424 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5426 | else |
| 5427 | if test "$ac_cv_type_void_p" = yes; then |
| 5428 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5429 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5430 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5431 | # This bug is HP SR number 8606223364. |
| 5432 | if test "$cross_compiling" = yes; then |
| 5433 | # Depending upon the size, compute the lo and hi bounds. |
| 5434 | cat >conftest.$ac_ext <<_ACEOF |
| 5435 | #line $LINENO "configure" |
| 5436 | #include "confdefs.h" |
| 5437 | $ac_includes_default |
| 5438 | #ifdef F77_DUMMY_MAIN |
| 5439 | # ifdef __cplusplus |
| 5440 | extern "C" |
| 5441 | # endif |
| 5442 | int F77_DUMMY_MAIN() { return 1; } |
| 5443 | #endif |
| 5444 | int |
| 5445 | main () |
| 5446 | { |
| 5447 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5448 | test_array [0] = 0 |
| 5449 | |
| 5450 | ; |
| 5451 | return 0; |
| 5452 | } |
| 5453 | _ACEOF |
| 5454 | rm -f conftest.$ac_objext |
| 5455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5456 | (eval $ac_compile) 2>&5 |
| 5457 | ac_status=$? |
| 5458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5459 | (exit $ac_status); } && |
| 5460 | { ac_try='test -s conftest.$ac_objext' |
| 5461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5462 | (eval $ac_try) 2>&5 |
| 5463 | ac_status=$? |
| 5464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5465 | (exit $ac_status); }; }; then |
| 5466 | ac_lo=0 ac_mid=0 |
| 5467 | while :; do |
| 5468 | cat >conftest.$ac_ext <<_ACEOF |
| 5469 | #line $LINENO "configure" |
| 5470 | #include "confdefs.h" |
| 5471 | $ac_includes_default |
| 5472 | #ifdef F77_DUMMY_MAIN |
| 5473 | # ifdef __cplusplus |
| 5474 | extern "C" |
| 5475 | # endif |
| 5476 | int F77_DUMMY_MAIN() { return 1; } |
| 5477 | #endif |
| 5478 | int |
| 5479 | main () |
| 5480 | { |
| 5481 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5482 | test_array [0] = 0 |
| 5483 | |
| 5484 | ; |
| 5485 | return 0; |
| 5486 | } |
| 5487 | _ACEOF |
| 5488 | rm -f conftest.$ac_objext |
| 5489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5490 | (eval $ac_compile) 2>&5 |
| 5491 | ac_status=$? |
| 5492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5493 | (exit $ac_status); } && |
| 5494 | { ac_try='test -s conftest.$ac_objext' |
| 5495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5496 | (eval $ac_try) 2>&5 |
| 5497 | ac_status=$? |
| 5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5499 | (exit $ac_status); }; }; then |
| 5500 | ac_hi=$ac_mid; break |
| 5501 | else |
| 5502 | echo "$as_me: failed program was:" >&5 |
| 5503 | cat conftest.$ac_ext >&5 |
| 5504 | ac_lo=`expr $ac_mid + 1` |
| 5505 | if test $ac_lo -le $ac_mid; then |
| 5506 | ac_lo= ac_hi= |
| 5507 | break |
| 5508 | fi |
| 5509 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5510 | fi |
| 5511 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5512 | done |
| 5513 | else |
| 5514 | echo "$as_me: failed program was:" >&5 |
| 5515 | cat conftest.$ac_ext >&5 |
| 5516 | cat >conftest.$ac_ext <<_ACEOF |
| 5517 | #line $LINENO "configure" |
| 5518 | #include "confdefs.h" |
| 5519 | $ac_includes_default |
| 5520 | #ifdef F77_DUMMY_MAIN |
| 5521 | # ifdef __cplusplus |
| 5522 | extern "C" |
| 5523 | # endif |
| 5524 | int F77_DUMMY_MAIN() { return 1; } |
| 5525 | #endif |
| 5526 | int |
| 5527 | main () |
| 5528 | { |
| 5529 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 5530 | test_array [0] = 0 |
| 5531 | |
| 5532 | ; |
| 5533 | return 0; |
| 5534 | } |
| 5535 | _ACEOF |
| 5536 | rm -f conftest.$ac_objext |
| 5537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5538 | (eval $ac_compile) 2>&5 |
| 5539 | ac_status=$? |
| 5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5541 | (exit $ac_status); } && |
| 5542 | { ac_try='test -s conftest.$ac_objext' |
| 5543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5544 | (eval $ac_try) 2>&5 |
| 5545 | ac_status=$? |
| 5546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5547 | (exit $ac_status); }; }; then |
| 5548 | ac_hi=-1 ac_mid=-1 |
| 5549 | while :; do |
| 5550 | cat >conftest.$ac_ext <<_ACEOF |
| 5551 | #line $LINENO "configure" |
| 5552 | #include "confdefs.h" |
| 5553 | $ac_includes_default |
| 5554 | #ifdef F77_DUMMY_MAIN |
| 5555 | # ifdef __cplusplus |
| 5556 | extern "C" |
| 5557 | # endif |
| 5558 | int F77_DUMMY_MAIN() { return 1; } |
| 5559 | #endif |
| 5560 | int |
| 5561 | main () |
| 5562 | { |
| 5563 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 5564 | test_array [0] = 0 |
| 5565 | |
| 5566 | ; |
| 5567 | return 0; |
| 5568 | } |
| 5569 | _ACEOF |
| 5570 | rm -f conftest.$ac_objext |
| 5571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5572 | (eval $ac_compile) 2>&5 |
| 5573 | ac_status=$? |
| 5574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5575 | (exit $ac_status); } && |
| 5576 | { ac_try='test -s conftest.$ac_objext' |
| 5577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5578 | (eval $ac_try) 2>&5 |
| 5579 | ac_status=$? |
| 5580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5581 | (exit $ac_status); }; }; then |
| 5582 | ac_lo=$ac_mid; break |
| 5583 | else |
| 5584 | echo "$as_me: failed program was:" >&5 |
| 5585 | cat conftest.$ac_ext >&5 |
| 5586 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5587 | if test $ac_mid -le $ac_hi; then |
| 5588 | ac_lo= ac_hi= |
| 5589 | break |
| 5590 | fi |
| 5591 | ac_mid=`expr 2 '*' $ac_mid` |
| 5592 | fi |
| 5593 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5594 | done |
| 5595 | else |
| 5596 | echo "$as_me: failed program was:" >&5 |
| 5597 | cat conftest.$ac_ext >&5 |
| 5598 | ac_lo= ac_hi= |
| 5599 | fi |
| 5600 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5601 | fi |
| 5602 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5603 | # Binary search between lo and hi bounds. |
| 5604 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5605 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5606 | cat >conftest.$ac_ext <<_ACEOF |
| 5607 | #line $LINENO "configure" |
| 5608 | #include "confdefs.h" |
| 5609 | $ac_includes_default |
| 5610 | #ifdef F77_DUMMY_MAIN |
| 5611 | # ifdef __cplusplus |
| 5612 | extern "C" |
| 5613 | # endif |
| 5614 | int F77_DUMMY_MAIN() { return 1; } |
| 5615 | #endif |
| 5616 | int |
| 5617 | main () |
| 5618 | { |
| 5619 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5620 | test_array [0] = 0 |
| 5621 | |
| 5622 | ; |
| 5623 | return 0; |
| 5624 | } |
| 5625 | _ACEOF |
| 5626 | rm -f conftest.$ac_objext |
| 5627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5628 | (eval $ac_compile) 2>&5 |
| 5629 | ac_status=$? |
| 5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5631 | (exit $ac_status); } && |
| 5632 | { ac_try='test -s conftest.$ac_objext' |
| 5633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5634 | (eval $ac_try) 2>&5 |
| 5635 | ac_status=$? |
| 5636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5637 | (exit $ac_status); }; }; then |
| 5638 | ac_hi=$ac_mid |
| 5639 | else |
| 5640 | echo "$as_me: failed program was:" >&5 |
| 5641 | cat conftest.$ac_ext >&5 |
| 5642 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5643 | fi |
| 5644 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5645 | done |
| 5646 | case $ac_lo in |
| 5647 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 5648 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5649 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5650 | { (exit 1); exit 1; }; } ;; |
| 5651 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5652 | else |
| 5653 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5654 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5655 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5656 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5657 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5658 | cat >conftest.$ac_ext <<_ACEOF |
| 5659 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5660 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5661 | $ac_includes_default |
| 5662 | long longval () { return (long) (sizeof (void *)); } |
| 5663 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5664 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5665 | #include <stdlib.h> |
| 5666 | #ifdef F77_DUMMY_MAIN |
| 5667 | # ifdef __cplusplus |
| 5668 | extern "C" |
| 5669 | # endif |
| 5670 | int F77_DUMMY_MAIN() { return 1; } |
| 5671 | #endif |
| 5672 | int |
| 5673 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5674 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5675 | |
| 5676 | FILE *f = fopen ("conftest.val", "w"); |
| 5677 | if (! f) |
| 5678 | exit (1); |
| 5679 | if (((long) (sizeof (void *))) < 0) |
| 5680 | { |
| 5681 | long i = longval (); |
| 5682 | if (i != ((long) (sizeof (void *)))) |
| 5683 | exit (1); |
| 5684 | fprintf (f, "%ld\n", i); |
| 5685 | } |
| 5686 | else |
| 5687 | { |
| 5688 | unsigned long i = ulongval (); |
| 5689 | if (i != ((long) (sizeof (void *)))) |
| 5690 | exit (1); |
| 5691 | fprintf (f, "%lu\n", i); |
| 5692 | } |
| 5693 | exit (ferror (f) || fclose (f) != 0); |
| 5694 | |
| 5695 | ; |
| 5696 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5697 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5698 | _ACEOF |
| 5699 | rm -f conftest$ac_exeext |
| 5700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5701 | (eval $ac_link) 2>&5 |
| 5702 | ac_status=$? |
| 5703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5704 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5706 | (eval $ac_try) 2>&5 |
| 5707 | ac_status=$? |
| 5708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5709 | (exit $ac_status); }; }; then |
| 5710 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5712 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5713 | echo "$as_me: failed program was:" >&5 |
| 5714 | cat conftest.$ac_ext >&5 |
| 5715 | ( exit $ac_status ) |
| 5716 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5717 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5718 | { (exit 1); exit 1; }; } |
| 5719 | fi |
| 5720 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5721 | fi |
| 5722 | fi |
| 5723 | rm -f conftest.val |
| 5724 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5725 | ac_cv_sizeof_void_p=0 |
| 5726 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5727 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5728 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 5729 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 5730 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5731 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5732 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5733 | |
| 5734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5735 | echo "$as_me:$LINENO: checking for char" >&5 |
| 5736 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 5737 | if test "${ac_cv_type_char+set}" = set; then |
| 5738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5739 | else |
| 5740 | cat >conftest.$ac_ext <<_ACEOF |
| 5741 | #line $LINENO "configure" |
| 5742 | #include "confdefs.h" |
| 5743 | $ac_includes_default |
| 5744 | #ifdef F77_DUMMY_MAIN |
| 5745 | # ifdef __cplusplus |
| 5746 | extern "C" |
| 5747 | # endif |
| 5748 | int F77_DUMMY_MAIN() { return 1; } |
| 5749 | #endif |
| 5750 | int |
| 5751 | main () |
| 5752 | { |
| 5753 | if ((char *) 0) |
| 5754 | return 0; |
| 5755 | if (sizeof (char)) |
| 5756 | return 0; |
| 5757 | ; |
| 5758 | return 0; |
| 5759 | } |
| 5760 | _ACEOF |
| 5761 | rm -f conftest.$ac_objext |
| 5762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5763 | (eval $ac_compile) 2>&5 |
| 5764 | ac_status=$? |
| 5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5766 | (exit $ac_status); } && |
| 5767 | { ac_try='test -s conftest.$ac_objext' |
| 5768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5769 | (eval $ac_try) 2>&5 |
| 5770 | ac_status=$? |
| 5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5772 | (exit $ac_status); }; }; then |
| 5773 | ac_cv_type_char=yes |
| 5774 | else |
| 5775 | echo "$as_me: failed program was:" >&5 |
| 5776 | cat conftest.$ac_ext >&5 |
| 5777 | ac_cv_type_char=no |
| 5778 | fi |
| 5779 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5780 | fi |
| 5781 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 5782 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 5783 | |
| 5784 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 5785 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 5786 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 5787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5788 | else |
| 5789 | if test "$ac_cv_type_char" = yes; then |
| 5790 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5791 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5792 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5793 | # This bug is HP SR number 8606223364. |
| 5794 | if test "$cross_compiling" = yes; then |
| 5795 | # Depending upon the size, compute the lo and hi bounds. |
| 5796 | cat >conftest.$ac_ext <<_ACEOF |
| 5797 | #line $LINENO "configure" |
| 5798 | #include "confdefs.h" |
| 5799 | $ac_includes_default |
| 5800 | #ifdef F77_DUMMY_MAIN |
| 5801 | # ifdef __cplusplus |
| 5802 | extern "C" |
| 5803 | # endif |
| 5804 | int F77_DUMMY_MAIN() { return 1; } |
| 5805 | #endif |
| 5806 | int |
| 5807 | main () |
| 5808 | { |
| 5809 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 5810 | test_array [0] = 0 |
| 5811 | |
| 5812 | ; |
| 5813 | return 0; |
| 5814 | } |
| 5815 | _ACEOF |
| 5816 | rm -f conftest.$ac_objext |
| 5817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5818 | (eval $ac_compile) 2>&5 |
| 5819 | ac_status=$? |
| 5820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5821 | (exit $ac_status); } && |
| 5822 | { ac_try='test -s conftest.$ac_objext' |
| 5823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5824 | (eval $ac_try) 2>&5 |
| 5825 | ac_status=$? |
| 5826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5827 | (exit $ac_status); }; }; then |
| 5828 | ac_lo=0 ac_mid=0 |
| 5829 | while :; do |
| 5830 | cat >conftest.$ac_ext <<_ACEOF |
| 5831 | #line $LINENO "configure" |
| 5832 | #include "confdefs.h" |
| 5833 | $ac_includes_default |
| 5834 | #ifdef F77_DUMMY_MAIN |
| 5835 | # ifdef __cplusplus |
| 5836 | extern "C" |
| 5837 | # endif |
| 5838 | int F77_DUMMY_MAIN() { return 1; } |
| 5839 | #endif |
| 5840 | int |
| 5841 | main () |
| 5842 | { |
| 5843 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5844 | test_array [0] = 0 |
| 5845 | |
| 5846 | ; |
| 5847 | return 0; |
| 5848 | } |
| 5849 | _ACEOF |
| 5850 | rm -f conftest.$ac_objext |
| 5851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5852 | (eval $ac_compile) 2>&5 |
| 5853 | ac_status=$? |
| 5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5855 | (exit $ac_status); } && |
| 5856 | { ac_try='test -s conftest.$ac_objext' |
| 5857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5858 | (eval $ac_try) 2>&5 |
| 5859 | ac_status=$? |
| 5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5861 | (exit $ac_status); }; }; then |
| 5862 | ac_hi=$ac_mid; break |
| 5863 | else |
| 5864 | echo "$as_me: failed program was:" >&5 |
| 5865 | cat conftest.$ac_ext >&5 |
| 5866 | ac_lo=`expr $ac_mid + 1` |
| 5867 | if test $ac_lo -le $ac_mid; then |
| 5868 | ac_lo= ac_hi= |
| 5869 | break |
| 5870 | fi |
| 5871 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5872 | fi |
| 5873 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5874 | done |
| 5875 | else |
| 5876 | echo "$as_me: failed program was:" >&5 |
| 5877 | cat conftest.$ac_ext >&5 |
| 5878 | cat >conftest.$ac_ext <<_ACEOF |
| 5879 | #line $LINENO "configure" |
| 5880 | #include "confdefs.h" |
| 5881 | $ac_includes_default |
| 5882 | #ifdef F77_DUMMY_MAIN |
| 5883 | # ifdef __cplusplus |
| 5884 | extern "C" |
| 5885 | # endif |
| 5886 | int F77_DUMMY_MAIN() { return 1; } |
| 5887 | #endif |
| 5888 | int |
| 5889 | main () |
| 5890 | { |
| 5891 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 5892 | test_array [0] = 0 |
| 5893 | |
| 5894 | ; |
| 5895 | return 0; |
| 5896 | } |
| 5897 | _ACEOF |
| 5898 | rm -f conftest.$ac_objext |
| 5899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5900 | (eval $ac_compile) 2>&5 |
| 5901 | ac_status=$? |
| 5902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5903 | (exit $ac_status); } && |
| 5904 | { ac_try='test -s conftest.$ac_objext' |
| 5905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5906 | (eval $ac_try) 2>&5 |
| 5907 | ac_status=$? |
| 5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5909 | (exit $ac_status); }; }; then |
| 5910 | ac_hi=-1 ac_mid=-1 |
| 5911 | while :; do |
| 5912 | cat >conftest.$ac_ext <<_ACEOF |
| 5913 | #line $LINENO "configure" |
| 5914 | #include "confdefs.h" |
| 5915 | $ac_includes_default |
| 5916 | #ifdef F77_DUMMY_MAIN |
| 5917 | # ifdef __cplusplus |
| 5918 | extern "C" |
| 5919 | # endif |
| 5920 | int F77_DUMMY_MAIN() { return 1; } |
| 5921 | #endif |
| 5922 | int |
| 5923 | main () |
| 5924 | { |
| 5925 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 5926 | test_array [0] = 0 |
| 5927 | |
| 5928 | ; |
| 5929 | return 0; |
| 5930 | } |
| 5931 | _ACEOF |
| 5932 | rm -f conftest.$ac_objext |
| 5933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5934 | (eval $ac_compile) 2>&5 |
| 5935 | ac_status=$? |
| 5936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5937 | (exit $ac_status); } && |
| 5938 | { ac_try='test -s conftest.$ac_objext' |
| 5939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5940 | (eval $ac_try) 2>&5 |
| 5941 | ac_status=$? |
| 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5943 | (exit $ac_status); }; }; then |
| 5944 | ac_lo=$ac_mid; break |
| 5945 | else |
| 5946 | echo "$as_me: failed program was:" >&5 |
| 5947 | cat conftest.$ac_ext >&5 |
| 5948 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5949 | if test $ac_mid -le $ac_hi; then |
| 5950 | ac_lo= ac_hi= |
| 5951 | break |
| 5952 | fi |
| 5953 | ac_mid=`expr 2 '*' $ac_mid` |
| 5954 | fi |
| 5955 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5956 | done |
| 5957 | else |
| 5958 | echo "$as_me: failed program was:" >&5 |
| 5959 | cat conftest.$ac_ext >&5 |
| 5960 | ac_lo= ac_hi= |
| 5961 | fi |
| 5962 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5963 | fi |
| 5964 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5965 | # Binary search between lo and hi bounds. |
| 5966 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5967 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5968 | cat >conftest.$ac_ext <<_ACEOF |
| 5969 | #line $LINENO "configure" |
| 5970 | #include "confdefs.h" |
| 5971 | $ac_includes_default |
| 5972 | #ifdef F77_DUMMY_MAIN |
| 5973 | # ifdef __cplusplus |
| 5974 | extern "C" |
| 5975 | # endif |
| 5976 | int F77_DUMMY_MAIN() { return 1; } |
| 5977 | #endif |
| 5978 | int |
| 5979 | main () |
| 5980 | { |
| 5981 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5982 | test_array [0] = 0 |
| 5983 | |
| 5984 | ; |
| 5985 | return 0; |
| 5986 | } |
| 5987 | _ACEOF |
| 5988 | rm -f conftest.$ac_objext |
| 5989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5990 | (eval $ac_compile) 2>&5 |
| 5991 | ac_status=$? |
| 5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5993 | (exit $ac_status); } && |
| 5994 | { ac_try='test -s conftest.$ac_objext' |
| 5995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5996 | (eval $ac_try) 2>&5 |
| 5997 | ac_status=$? |
| 5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5999 | (exit $ac_status); }; }; then |
| 6000 | ac_hi=$ac_mid |
| 6001 | else |
| 6002 | echo "$as_me: failed program was:" >&5 |
| 6003 | cat conftest.$ac_ext >&5 |
| 6004 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6005 | fi |
| 6006 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6007 | done |
| 6008 | case $ac_lo in |
| 6009 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6010 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6011 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6012 | { (exit 1); exit 1; }; } ;; |
| 6013 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6014 | else |
| 6015 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6016 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6017 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6018 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6020 | cat >conftest.$ac_ext <<_ACEOF |
| 6021 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6022 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6023 | $ac_includes_default |
| 6024 | long longval () { return (long) (sizeof (char)); } |
| 6025 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6026 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6027 | #include <stdlib.h> |
| 6028 | #ifdef F77_DUMMY_MAIN |
| 6029 | # ifdef __cplusplus |
| 6030 | extern "C" |
| 6031 | # endif |
| 6032 | int F77_DUMMY_MAIN() { return 1; } |
| 6033 | #endif |
| 6034 | int |
| 6035 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6036 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6037 | |
| 6038 | FILE *f = fopen ("conftest.val", "w"); |
| 6039 | if (! f) |
| 6040 | exit (1); |
| 6041 | if (((long) (sizeof (char))) < 0) |
| 6042 | { |
| 6043 | long i = longval (); |
| 6044 | if (i != ((long) (sizeof (char)))) |
| 6045 | exit (1); |
| 6046 | fprintf (f, "%ld\n", i); |
| 6047 | } |
| 6048 | else |
| 6049 | { |
| 6050 | unsigned long i = ulongval (); |
| 6051 | if (i != ((long) (sizeof (char)))) |
| 6052 | exit (1); |
| 6053 | fprintf (f, "%lu\n", i); |
| 6054 | } |
| 6055 | exit (ferror (f) || fclose (f) != 0); |
| 6056 | |
| 6057 | ; |
| 6058 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6059 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6060 | _ACEOF |
| 6061 | rm -f conftest$ac_exeext |
| 6062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6063 | (eval $ac_link) 2>&5 |
| 6064 | ac_status=$? |
| 6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6066 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6068 | (eval $ac_try) 2>&5 |
| 6069 | ac_status=$? |
| 6070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6071 | (exit $ac_status); }; }; then |
| 6072 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6074 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6075 | echo "$as_me: failed program was:" >&5 |
| 6076 | cat conftest.$ac_ext >&5 |
| 6077 | ( exit $ac_status ) |
| 6078 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6079 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6080 | { (exit 1); exit 1; }; } |
| 6081 | fi |
| 6082 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6083 | fi |
| 6084 | fi |
| 6085 | rm -f conftest.val |
| 6086 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6087 | ac_cv_sizeof_char=0 |
| 6088 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6089 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6090 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6091 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6092 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6093 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6094 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6095 | |
| 6096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6097 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6098 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6099 | if test "${ac_cv_type_short+set}" = set; then |
| 6100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6101 | else |
| 6102 | cat >conftest.$ac_ext <<_ACEOF |
| 6103 | #line $LINENO "configure" |
| 6104 | #include "confdefs.h" |
| 6105 | $ac_includes_default |
| 6106 | #ifdef F77_DUMMY_MAIN |
| 6107 | # ifdef __cplusplus |
| 6108 | extern "C" |
| 6109 | # endif |
| 6110 | int F77_DUMMY_MAIN() { return 1; } |
| 6111 | #endif |
| 6112 | int |
| 6113 | main () |
| 6114 | { |
| 6115 | if ((short *) 0) |
| 6116 | return 0; |
| 6117 | if (sizeof (short)) |
| 6118 | return 0; |
| 6119 | ; |
| 6120 | return 0; |
| 6121 | } |
| 6122 | _ACEOF |
| 6123 | rm -f conftest.$ac_objext |
| 6124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6125 | (eval $ac_compile) 2>&5 |
| 6126 | ac_status=$? |
| 6127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6128 | (exit $ac_status); } && |
| 6129 | { ac_try='test -s conftest.$ac_objext' |
| 6130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6131 | (eval $ac_try) 2>&5 |
| 6132 | ac_status=$? |
| 6133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6134 | (exit $ac_status); }; }; then |
| 6135 | ac_cv_type_short=yes |
| 6136 | else |
| 6137 | echo "$as_me: failed program was:" >&5 |
| 6138 | cat conftest.$ac_ext >&5 |
| 6139 | ac_cv_type_short=no |
| 6140 | fi |
| 6141 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6142 | fi |
| 6143 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6144 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6145 | |
| 6146 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6147 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6148 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6150 | else |
| 6151 | if test "$ac_cv_type_short" = yes; then |
| 6152 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6153 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6154 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6155 | # This bug is HP SR number 8606223364. |
| 6156 | if test "$cross_compiling" = yes; then |
| 6157 | # Depending upon the size, compute the lo and hi bounds. |
| 6158 | cat >conftest.$ac_ext <<_ACEOF |
| 6159 | #line $LINENO "configure" |
| 6160 | #include "confdefs.h" |
| 6161 | $ac_includes_default |
| 6162 | #ifdef F77_DUMMY_MAIN |
| 6163 | # ifdef __cplusplus |
| 6164 | extern "C" |
| 6165 | # endif |
| 6166 | int F77_DUMMY_MAIN() { return 1; } |
| 6167 | #endif |
| 6168 | int |
| 6169 | main () |
| 6170 | { |
| 6171 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6172 | test_array [0] = 0 |
| 6173 | |
| 6174 | ; |
| 6175 | return 0; |
| 6176 | } |
| 6177 | _ACEOF |
| 6178 | rm -f conftest.$ac_objext |
| 6179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6180 | (eval $ac_compile) 2>&5 |
| 6181 | ac_status=$? |
| 6182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6183 | (exit $ac_status); } && |
| 6184 | { ac_try='test -s conftest.$ac_objext' |
| 6185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6186 | (eval $ac_try) 2>&5 |
| 6187 | ac_status=$? |
| 6188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6189 | (exit $ac_status); }; }; then |
| 6190 | ac_lo=0 ac_mid=0 |
| 6191 | while :; do |
| 6192 | cat >conftest.$ac_ext <<_ACEOF |
| 6193 | #line $LINENO "configure" |
| 6194 | #include "confdefs.h" |
| 6195 | $ac_includes_default |
| 6196 | #ifdef F77_DUMMY_MAIN |
| 6197 | # ifdef __cplusplus |
| 6198 | extern "C" |
| 6199 | # endif |
| 6200 | int F77_DUMMY_MAIN() { return 1; } |
| 6201 | #endif |
| 6202 | int |
| 6203 | main () |
| 6204 | { |
| 6205 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6206 | test_array [0] = 0 |
| 6207 | |
| 6208 | ; |
| 6209 | return 0; |
| 6210 | } |
| 6211 | _ACEOF |
| 6212 | rm -f conftest.$ac_objext |
| 6213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6214 | (eval $ac_compile) 2>&5 |
| 6215 | ac_status=$? |
| 6216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6217 | (exit $ac_status); } && |
| 6218 | { ac_try='test -s conftest.$ac_objext' |
| 6219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6220 | (eval $ac_try) 2>&5 |
| 6221 | ac_status=$? |
| 6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6223 | (exit $ac_status); }; }; then |
| 6224 | ac_hi=$ac_mid; break |
| 6225 | else |
| 6226 | echo "$as_me: failed program was:" >&5 |
| 6227 | cat conftest.$ac_ext >&5 |
| 6228 | ac_lo=`expr $ac_mid + 1` |
| 6229 | if test $ac_lo -le $ac_mid; then |
| 6230 | ac_lo= ac_hi= |
| 6231 | break |
| 6232 | fi |
| 6233 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6234 | fi |
| 6235 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6236 | done |
| 6237 | else |
| 6238 | echo "$as_me: failed program was:" >&5 |
| 6239 | cat conftest.$ac_ext >&5 |
| 6240 | cat >conftest.$ac_ext <<_ACEOF |
| 6241 | #line $LINENO "configure" |
| 6242 | #include "confdefs.h" |
| 6243 | $ac_includes_default |
| 6244 | #ifdef F77_DUMMY_MAIN |
| 6245 | # ifdef __cplusplus |
| 6246 | extern "C" |
| 6247 | # endif |
| 6248 | int F77_DUMMY_MAIN() { return 1; } |
| 6249 | #endif |
| 6250 | int |
| 6251 | main () |
| 6252 | { |
| 6253 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6254 | test_array [0] = 0 |
| 6255 | |
| 6256 | ; |
| 6257 | return 0; |
| 6258 | } |
| 6259 | _ACEOF |
| 6260 | rm -f conftest.$ac_objext |
| 6261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6262 | (eval $ac_compile) 2>&5 |
| 6263 | ac_status=$? |
| 6264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6265 | (exit $ac_status); } && |
| 6266 | { ac_try='test -s conftest.$ac_objext' |
| 6267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6268 | (eval $ac_try) 2>&5 |
| 6269 | ac_status=$? |
| 6270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6271 | (exit $ac_status); }; }; then |
| 6272 | ac_hi=-1 ac_mid=-1 |
| 6273 | while :; do |
| 6274 | cat >conftest.$ac_ext <<_ACEOF |
| 6275 | #line $LINENO "configure" |
| 6276 | #include "confdefs.h" |
| 6277 | $ac_includes_default |
| 6278 | #ifdef F77_DUMMY_MAIN |
| 6279 | # ifdef __cplusplus |
| 6280 | extern "C" |
| 6281 | # endif |
| 6282 | int F77_DUMMY_MAIN() { return 1; } |
| 6283 | #endif |
| 6284 | int |
| 6285 | main () |
| 6286 | { |
| 6287 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6288 | test_array [0] = 0 |
| 6289 | |
| 6290 | ; |
| 6291 | return 0; |
| 6292 | } |
| 6293 | _ACEOF |
| 6294 | rm -f conftest.$ac_objext |
| 6295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6296 | (eval $ac_compile) 2>&5 |
| 6297 | ac_status=$? |
| 6298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6299 | (exit $ac_status); } && |
| 6300 | { ac_try='test -s conftest.$ac_objext' |
| 6301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6302 | (eval $ac_try) 2>&5 |
| 6303 | ac_status=$? |
| 6304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6305 | (exit $ac_status); }; }; then |
| 6306 | ac_lo=$ac_mid; break |
| 6307 | else |
| 6308 | echo "$as_me: failed program was:" >&5 |
| 6309 | cat conftest.$ac_ext >&5 |
| 6310 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6311 | if test $ac_mid -le $ac_hi; then |
| 6312 | ac_lo= ac_hi= |
| 6313 | break |
| 6314 | fi |
| 6315 | ac_mid=`expr 2 '*' $ac_mid` |
| 6316 | fi |
| 6317 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6318 | done |
| 6319 | else |
| 6320 | echo "$as_me: failed program was:" >&5 |
| 6321 | cat conftest.$ac_ext >&5 |
| 6322 | ac_lo= ac_hi= |
| 6323 | fi |
| 6324 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6325 | fi |
| 6326 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6327 | # Binary search between lo and hi bounds. |
| 6328 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6329 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6330 | cat >conftest.$ac_ext <<_ACEOF |
| 6331 | #line $LINENO "configure" |
| 6332 | #include "confdefs.h" |
| 6333 | $ac_includes_default |
| 6334 | #ifdef F77_DUMMY_MAIN |
| 6335 | # ifdef __cplusplus |
| 6336 | extern "C" |
| 6337 | # endif |
| 6338 | int F77_DUMMY_MAIN() { return 1; } |
| 6339 | #endif |
| 6340 | int |
| 6341 | main () |
| 6342 | { |
| 6343 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6344 | test_array [0] = 0 |
| 6345 | |
| 6346 | ; |
| 6347 | return 0; |
| 6348 | } |
| 6349 | _ACEOF |
| 6350 | rm -f conftest.$ac_objext |
| 6351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6352 | (eval $ac_compile) 2>&5 |
| 6353 | ac_status=$? |
| 6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6355 | (exit $ac_status); } && |
| 6356 | { ac_try='test -s conftest.$ac_objext' |
| 6357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6358 | (eval $ac_try) 2>&5 |
| 6359 | ac_status=$? |
| 6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6361 | (exit $ac_status); }; }; then |
| 6362 | ac_hi=$ac_mid |
| 6363 | else |
| 6364 | echo "$as_me: failed program was:" >&5 |
| 6365 | cat conftest.$ac_ext >&5 |
| 6366 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6367 | fi |
| 6368 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6369 | done |
| 6370 | case $ac_lo in |
| 6371 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6372 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6373 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6374 | { (exit 1); exit 1; }; } ;; |
| 6375 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6376 | else |
| 6377 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6378 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6379 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6380 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6381 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6382 | cat >conftest.$ac_ext <<_ACEOF |
| 6383 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6384 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6385 | $ac_includes_default |
| 6386 | long longval () { return (long) (sizeof (short)); } |
| 6387 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6388 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6389 | #include <stdlib.h> |
| 6390 | #ifdef F77_DUMMY_MAIN |
| 6391 | # ifdef __cplusplus |
| 6392 | extern "C" |
| 6393 | # endif |
| 6394 | int F77_DUMMY_MAIN() { return 1; } |
| 6395 | #endif |
| 6396 | int |
| 6397 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6398 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6399 | |
| 6400 | FILE *f = fopen ("conftest.val", "w"); |
| 6401 | if (! f) |
| 6402 | exit (1); |
| 6403 | if (((long) (sizeof (short))) < 0) |
| 6404 | { |
| 6405 | long i = longval (); |
| 6406 | if (i != ((long) (sizeof (short)))) |
| 6407 | exit (1); |
| 6408 | fprintf (f, "%ld\n", i); |
| 6409 | } |
| 6410 | else |
| 6411 | { |
| 6412 | unsigned long i = ulongval (); |
| 6413 | if (i != ((long) (sizeof (short)))) |
| 6414 | exit (1); |
| 6415 | fprintf (f, "%lu\n", i); |
| 6416 | } |
| 6417 | exit (ferror (f) || fclose (f) != 0); |
| 6418 | |
| 6419 | ; |
| 6420 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6421 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6422 | _ACEOF |
| 6423 | rm -f conftest$ac_exeext |
| 6424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6425 | (eval $ac_link) 2>&5 |
| 6426 | ac_status=$? |
| 6427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6428 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6430 | (eval $ac_try) 2>&5 |
| 6431 | ac_status=$? |
| 6432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6433 | (exit $ac_status); }; }; then |
| 6434 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6436 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6437 | echo "$as_me: failed program was:" >&5 |
| 6438 | cat conftest.$ac_ext >&5 |
| 6439 | ( exit $ac_status ) |
| 6440 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6441 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6442 | { (exit 1); exit 1; }; } |
| 6443 | fi |
| 6444 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6445 | fi |
| 6446 | fi |
| 6447 | rm -f conftest.val |
| 6448 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6449 | ac_cv_sizeof_short=0 |
| 6450 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6451 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6452 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6453 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6454 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6455 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6456 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6457 | |
| 6458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6459 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6460 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6461 | if test "${ac_cv_type_float+set}" = set; then |
| 6462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6463 | else |
| 6464 | cat >conftest.$ac_ext <<_ACEOF |
| 6465 | #line $LINENO "configure" |
| 6466 | #include "confdefs.h" |
| 6467 | $ac_includes_default |
| 6468 | #ifdef F77_DUMMY_MAIN |
| 6469 | # ifdef __cplusplus |
| 6470 | extern "C" |
| 6471 | # endif |
| 6472 | int F77_DUMMY_MAIN() { return 1; } |
| 6473 | #endif |
| 6474 | int |
| 6475 | main () |
| 6476 | { |
| 6477 | if ((float *) 0) |
| 6478 | return 0; |
| 6479 | if (sizeof (float)) |
| 6480 | return 0; |
| 6481 | ; |
| 6482 | return 0; |
| 6483 | } |
| 6484 | _ACEOF |
| 6485 | rm -f conftest.$ac_objext |
| 6486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6487 | (eval $ac_compile) 2>&5 |
| 6488 | ac_status=$? |
| 6489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6490 | (exit $ac_status); } && |
| 6491 | { ac_try='test -s conftest.$ac_objext' |
| 6492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6493 | (eval $ac_try) 2>&5 |
| 6494 | ac_status=$? |
| 6495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6496 | (exit $ac_status); }; }; then |
| 6497 | ac_cv_type_float=yes |
| 6498 | else |
| 6499 | echo "$as_me: failed program was:" >&5 |
| 6500 | cat conftest.$ac_ext >&5 |
| 6501 | ac_cv_type_float=no |
| 6502 | fi |
| 6503 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6504 | fi |
| 6505 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 6506 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 6507 | |
| 6508 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 6509 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 6510 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 6511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6512 | else |
| 6513 | if test "$ac_cv_type_float" = yes; then |
| 6514 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6515 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6516 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6517 | # This bug is HP SR number 8606223364. |
| 6518 | if test "$cross_compiling" = yes; then |
| 6519 | # Depending upon the size, compute the lo and hi bounds. |
| 6520 | cat >conftest.$ac_ext <<_ACEOF |
| 6521 | #line $LINENO "configure" |
| 6522 | #include "confdefs.h" |
| 6523 | $ac_includes_default |
| 6524 | #ifdef F77_DUMMY_MAIN |
| 6525 | # ifdef __cplusplus |
| 6526 | extern "C" |
| 6527 | # endif |
| 6528 | int F77_DUMMY_MAIN() { return 1; } |
| 6529 | #endif |
| 6530 | int |
| 6531 | main () |
| 6532 | { |
| 6533 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 6534 | test_array [0] = 0 |
| 6535 | |
| 6536 | ; |
| 6537 | return 0; |
| 6538 | } |
| 6539 | _ACEOF |
| 6540 | rm -f conftest.$ac_objext |
| 6541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6542 | (eval $ac_compile) 2>&5 |
| 6543 | ac_status=$? |
| 6544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6545 | (exit $ac_status); } && |
| 6546 | { ac_try='test -s conftest.$ac_objext' |
| 6547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6548 | (eval $ac_try) 2>&5 |
| 6549 | ac_status=$? |
| 6550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6551 | (exit $ac_status); }; }; then |
| 6552 | ac_lo=0 ac_mid=0 |
| 6553 | while :; do |
| 6554 | cat >conftest.$ac_ext <<_ACEOF |
| 6555 | #line $LINENO "configure" |
| 6556 | #include "confdefs.h" |
| 6557 | $ac_includes_default |
| 6558 | #ifdef F77_DUMMY_MAIN |
| 6559 | # ifdef __cplusplus |
| 6560 | extern "C" |
| 6561 | # endif |
| 6562 | int F77_DUMMY_MAIN() { return 1; } |
| 6563 | #endif |
| 6564 | int |
| 6565 | main () |
| 6566 | { |
| 6567 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6568 | test_array [0] = 0 |
| 6569 | |
| 6570 | ; |
| 6571 | return 0; |
| 6572 | } |
| 6573 | _ACEOF |
| 6574 | rm -f conftest.$ac_objext |
| 6575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6576 | (eval $ac_compile) 2>&5 |
| 6577 | ac_status=$? |
| 6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6579 | (exit $ac_status); } && |
| 6580 | { ac_try='test -s conftest.$ac_objext' |
| 6581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6582 | (eval $ac_try) 2>&5 |
| 6583 | ac_status=$? |
| 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6585 | (exit $ac_status); }; }; then |
| 6586 | ac_hi=$ac_mid; break |
| 6587 | else |
| 6588 | echo "$as_me: failed program was:" >&5 |
| 6589 | cat conftest.$ac_ext >&5 |
| 6590 | ac_lo=`expr $ac_mid + 1` |
| 6591 | if test $ac_lo -le $ac_mid; then |
| 6592 | ac_lo= ac_hi= |
| 6593 | break |
| 6594 | fi |
| 6595 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6596 | fi |
| 6597 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6598 | done |
| 6599 | else |
| 6600 | echo "$as_me: failed program was:" >&5 |
| 6601 | cat conftest.$ac_ext >&5 |
| 6602 | cat >conftest.$ac_ext <<_ACEOF |
| 6603 | #line $LINENO "configure" |
| 6604 | #include "confdefs.h" |
| 6605 | $ac_includes_default |
| 6606 | #ifdef F77_DUMMY_MAIN |
| 6607 | # ifdef __cplusplus |
| 6608 | extern "C" |
| 6609 | # endif |
| 6610 | int F77_DUMMY_MAIN() { return 1; } |
| 6611 | #endif |
| 6612 | int |
| 6613 | main () |
| 6614 | { |
| 6615 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 6616 | test_array [0] = 0 |
| 6617 | |
| 6618 | ; |
| 6619 | return 0; |
| 6620 | } |
| 6621 | _ACEOF |
| 6622 | rm -f conftest.$ac_objext |
| 6623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6624 | (eval $ac_compile) 2>&5 |
| 6625 | ac_status=$? |
| 6626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6627 | (exit $ac_status); } && |
| 6628 | { ac_try='test -s conftest.$ac_objext' |
| 6629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6630 | (eval $ac_try) 2>&5 |
| 6631 | ac_status=$? |
| 6632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6633 | (exit $ac_status); }; }; then |
| 6634 | ac_hi=-1 ac_mid=-1 |
| 6635 | while :; do |
| 6636 | cat >conftest.$ac_ext <<_ACEOF |
| 6637 | #line $LINENO "configure" |
| 6638 | #include "confdefs.h" |
| 6639 | $ac_includes_default |
| 6640 | #ifdef F77_DUMMY_MAIN |
| 6641 | # ifdef __cplusplus |
| 6642 | extern "C" |
| 6643 | # endif |
| 6644 | int F77_DUMMY_MAIN() { return 1; } |
| 6645 | #endif |
| 6646 | int |
| 6647 | main () |
| 6648 | { |
| 6649 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 6650 | test_array [0] = 0 |
| 6651 | |
| 6652 | ; |
| 6653 | return 0; |
| 6654 | } |
| 6655 | _ACEOF |
| 6656 | rm -f conftest.$ac_objext |
| 6657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6658 | (eval $ac_compile) 2>&5 |
| 6659 | ac_status=$? |
| 6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6661 | (exit $ac_status); } && |
| 6662 | { ac_try='test -s conftest.$ac_objext' |
| 6663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6664 | (eval $ac_try) 2>&5 |
| 6665 | ac_status=$? |
| 6666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6667 | (exit $ac_status); }; }; then |
| 6668 | ac_lo=$ac_mid; break |
| 6669 | else |
| 6670 | echo "$as_me: failed program was:" >&5 |
| 6671 | cat conftest.$ac_ext >&5 |
| 6672 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6673 | if test $ac_mid -le $ac_hi; then |
| 6674 | ac_lo= ac_hi= |
| 6675 | break |
| 6676 | fi |
| 6677 | ac_mid=`expr 2 '*' $ac_mid` |
| 6678 | fi |
| 6679 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6680 | done |
| 6681 | else |
| 6682 | echo "$as_me: failed program was:" >&5 |
| 6683 | cat conftest.$ac_ext >&5 |
| 6684 | ac_lo= ac_hi= |
| 6685 | fi |
| 6686 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6687 | fi |
| 6688 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6689 | # Binary search between lo and hi bounds. |
| 6690 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6691 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6692 | cat >conftest.$ac_ext <<_ACEOF |
| 6693 | #line $LINENO "configure" |
| 6694 | #include "confdefs.h" |
| 6695 | $ac_includes_default |
| 6696 | #ifdef F77_DUMMY_MAIN |
| 6697 | # ifdef __cplusplus |
| 6698 | extern "C" |
| 6699 | # endif |
| 6700 | int F77_DUMMY_MAIN() { return 1; } |
| 6701 | #endif |
| 6702 | int |
| 6703 | main () |
| 6704 | { |
| 6705 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6706 | test_array [0] = 0 |
| 6707 | |
| 6708 | ; |
| 6709 | return 0; |
| 6710 | } |
| 6711 | _ACEOF |
| 6712 | rm -f conftest.$ac_objext |
| 6713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6714 | (eval $ac_compile) 2>&5 |
| 6715 | ac_status=$? |
| 6716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6717 | (exit $ac_status); } && |
| 6718 | { ac_try='test -s conftest.$ac_objext' |
| 6719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6720 | (eval $ac_try) 2>&5 |
| 6721 | ac_status=$? |
| 6722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6723 | (exit $ac_status); }; }; then |
| 6724 | ac_hi=$ac_mid |
| 6725 | else |
| 6726 | echo "$as_me: failed program was:" >&5 |
| 6727 | cat conftest.$ac_ext >&5 |
| 6728 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6729 | fi |
| 6730 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6731 | done |
| 6732 | case $ac_lo in |
| 6733 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 6734 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6735 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6736 | { (exit 1); exit 1; }; } ;; |
| 6737 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6738 | else |
| 6739 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6740 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6741 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6742 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6744 | cat >conftest.$ac_ext <<_ACEOF |
| 6745 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6746 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6747 | $ac_includes_default |
| 6748 | long longval () { return (long) (sizeof (float)); } |
| 6749 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6750 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6751 | #include <stdlib.h> |
| 6752 | #ifdef F77_DUMMY_MAIN |
| 6753 | # ifdef __cplusplus |
| 6754 | extern "C" |
| 6755 | # endif |
| 6756 | int F77_DUMMY_MAIN() { return 1; } |
| 6757 | #endif |
| 6758 | int |
| 6759 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6760 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6761 | |
| 6762 | FILE *f = fopen ("conftest.val", "w"); |
| 6763 | if (! f) |
| 6764 | exit (1); |
| 6765 | if (((long) (sizeof (float))) < 0) |
| 6766 | { |
| 6767 | long i = longval (); |
| 6768 | if (i != ((long) (sizeof (float)))) |
| 6769 | exit (1); |
| 6770 | fprintf (f, "%ld\n", i); |
| 6771 | } |
| 6772 | else |
| 6773 | { |
| 6774 | unsigned long i = ulongval (); |
| 6775 | if (i != ((long) (sizeof (float)))) |
| 6776 | exit (1); |
| 6777 | fprintf (f, "%lu\n", i); |
| 6778 | } |
| 6779 | exit (ferror (f) || fclose (f) != 0); |
| 6780 | |
| 6781 | ; |
| 6782 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6783 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6784 | _ACEOF |
| 6785 | rm -f conftest$ac_exeext |
| 6786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6787 | (eval $ac_link) 2>&5 |
| 6788 | ac_status=$? |
| 6789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6790 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6792 | (eval $ac_try) 2>&5 |
| 6793 | ac_status=$? |
| 6794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6795 | (exit $ac_status); }; }; then |
| 6796 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6797 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6798 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6799 | echo "$as_me: failed program was:" >&5 |
| 6800 | cat conftest.$ac_ext >&5 |
| 6801 | ( exit $ac_status ) |
| 6802 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6803 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6804 | { (exit 1); exit 1; }; } |
| 6805 | fi |
| 6806 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6807 | fi |
| 6808 | fi |
| 6809 | rm -f conftest.val |
| 6810 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6811 | ac_cv_sizeof_float=0 |
| 6812 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6813 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6814 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 6815 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 6816 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6817 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6818 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6819 | |
| 6820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6821 | echo "$as_me:$LINENO: checking for double" >&5 |
| 6822 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 6823 | if test "${ac_cv_type_double+set}" = set; then |
| 6824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6825 | else |
| 6826 | cat >conftest.$ac_ext <<_ACEOF |
| 6827 | #line $LINENO "configure" |
| 6828 | #include "confdefs.h" |
| 6829 | $ac_includes_default |
| 6830 | #ifdef F77_DUMMY_MAIN |
| 6831 | # ifdef __cplusplus |
| 6832 | extern "C" |
| 6833 | # endif |
| 6834 | int F77_DUMMY_MAIN() { return 1; } |
| 6835 | #endif |
| 6836 | int |
| 6837 | main () |
| 6838 | { |
| 6839 | if ((double *) 0) |
| 6840 | return 0; |
| 6841 | if (sizeof (double)) |
| 6842 | return 0; |
| 6843 | ; |
| 6844 | return 0; |
| 6845 | } |
| 6846 | _ACEOF |
| 6847 | rm -f conftest.$ac_objext |
| 6848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6849 | (eval $ac_compile) 2>&5 |
| 6850 | ac_status=$? |
| 6851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6852 | (exit $ac_status); } && |
| 6853 | { ac_try='test -s conftest.$ac_objext' |
| 6854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6855 | (eval $ac_try) 2>&5 |
| 6856 | ac_status=$? |
| 6857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6858 | (exit $ac_status); }; }; then |
| 6859 | ac_cv_type_double=yes |
| 6860 | else |
| 6861 | echo "$as_me: failed program was:" >&5 |
| 6862 | cat conftest.$ac_ext >&5 |
| 6863 | ac_cv_type_double=no |
| 6864 | fi |
| 6865 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6866 | fi |
| 6867 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 6868 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 6869 | |
| 6870 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 6871 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 6872 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 6873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6874 | else |
| 6875 | if test "$ac_cv_type_double" = yes; then |
| 6876 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6877 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6878 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6879 | # This bug is HP SR number 8606223364. |
| 6880 | if test "$cross_compiling" = yes; then |
| 6881 | # Depending upon the size, compute the lo and hi bounds. |
| 6882 | cat >conftest.$ac_ext <<_ACEOF |
| 6883 | #line $LINENO "configure" |
| 6884 | #include "confdefs.h" |
| 6885 | $ac_includes_default |
| 6886 | #ifdef F77_DUMMY_MAIN |
| 6887 | # ifdef __cplusplus |
| 6888 | extern "C" |
| 6889 | # endif |
| 6890 | int F77_DUMMY_MAIN() { return 1; } |
| 6891 | #endif |
| 6892 | int |
| 6893 | main () |
| 6894 | { |
| 6895 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 6896 | test_array [0] = 0 |
| 6897 | |
| 6898 | ; |
| 6899 | return 0; |
| 6900 | } |
| 6901 | _ACEOF |
| 6902 | rm -f conftest.$ac_objext |
| 6903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6904 | (eval $ac_compile) 2>&5 |
| 6905 | ac_status=$? |
| 6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6907 | (exit $ac_status); } && |
| 6908 | { ac_try='test -s conftest.$ac_objext' |
| 6909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6910 | (eval $ac_try) 2>&5 |
| 6911 | ac_status=$? |
| 6912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6913 | (exit $ac_status); }; }; then |
| 6914 | ac_lo=0 ac_mid=0 |
| 6915 | while :; do |
| 6916 | cat >conftest.$ac_ext <<_ACEOF |
| 6917 | #line $LINENO "configure" |
| 6918 | #include "confdefs.h" |
| 6919 | $ac_includes_default |
| 6920 | #ifdef F77_DUMMY_MAIN |
| 6921 | # ifdef __cplusplus |
| 6922 | extern "C" |
| 6923 | # endif |
| 6924 | int F77_DUMMY_MAIN() { return 1; } |
| 6925 | #endif |
| 6926 | int |
| 6927 | main () |
| 6928 | { |
| 6929 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 6930 | test_array [0] = 0 |
| 6931 | |
| 6932 | ; |
| 6933 | return 0; |
| 6934 | } |
| 6935 | _ACEOF |
| 6936 | rm -f conftest.$ac_objext |
| 6937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6938 | (eval $ac_compile) 2>&5 |
| 6939 | ac_status=$? |
| 6940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6941 | (exit $ac_status); } && |
| 6942 | { ac_try='test -s conftest.$ac_objext' |
| 6943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6944 | (eval $ac_try) 2>&5 |
| 6945 | ac_status=$? |
| 6946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6947 | (exit $ac_status); }; }; then |
| 6948 | ac_hi=$ac_mid; break |
| 6949 | else |
| 6950 | echo "$as_me: failed program was:" >&5 |
| 6951 | cat conftest.$ac_ext >&5 |
| 6952 | ac_lo=`expr $ac_mid + 1` |
| 6953 | if test $ac_lo -le $ac_mid; then |
| 6954 | ac_lo= ac_hi= |
| 6955 | break |
| 6956 | fi |
| 6957 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6958 | fi |
| 6959 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6960 | done |
| 6961 | else |
| 6962 | echo "$as_me: failed program was:" >&5 |
| 6963 | cat conftest.$ac_ext >&5 |
| 6964 | cat >conftest.$ac_ext <<_ACEOF |
| 6965 | #line $LINENO "configure" |
| 6966 | #include "confdefs.h" |
| 6967 | $ac_includes_default |
| 6968 | #ifdef F77_DUMMY_MAIN |
| 6969 | # ifdef __cplusplus |
| 6970 | extern "C" |
| 6971 | # endif |
| 6972 | int F77_DUMMY_MAIN() { return 1; } |
| 6973 | #endif |
| 6974 | int |
| 6975 | main () |
| 6976 | { |
| 6977 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 6978 | test_array [0] = 0 |
| 6979 | |
| 6980 | ; |
| 6981 | return 0; |
| 6982 | } |
| 6983 | _ACEOF |
| 6984 | rm -f conftest.$ac_objext |
| 6985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6986 | (eval $ac_compile) 2>&5 |
| 6987 | ac_status=$? |
| 6988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6989 | (exit $ac_status); } && |
| 6990 | { ac_try='test -s conftest.$ac_objext' |
| 6991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6992 | (eval $ac_try) 2>&5 |
| 6993 | ac_status=$? |
| 6994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6995 | (exit $ac_status); }; }; then |
| 6996 | ac_hi=-1 ac_mid=-1 |
| 6997 | while :; do |
| 6998 | cat >conftest.$ac_ext <<_ACEOF |
| 6999 | #line $LINENO "configure" |
| 7000 | #include "confdefs.h" |
| 7001 | $ac_includes_default |
| 7002 | #ifdef F77_DUMMY_MAIN |
| 7003 | # ifdef __cplusplus |
| 7004 | extern "C" |
| 7005 | # endif |
| 7006 | int F77_DUMMY_MAIN() { return 1; } |
| 7007 | #endif |
| 7008 | int |
| 7009 | main () |
| 7010 | { |
| 7011 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7012 | test_array [0] = 0 |
| 7013 | |
| 7014 | ; |
| 7015 | return 0; |
| 7016 | } |
| 7017 | _ACEOF |
| 7018 | rm -f conftest.$ac_objext |
| 7019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7020 | (eval $ac_compile) 2>&5 |
| 7021 | ac_status=$? |
| 7022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7023 | (exit $ac_status); } && |
| 7024 | { ac_try='test -s conftest.$ac_objext' |
| 7025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7026 | (eval $ac_try) 2>&5 |
| 7027 | ac_status=$? |
| 7028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7029 | (exit $ac_status); }; }; then |
| 7030 | ac_lo=$ac_mid; break |
| 7031 | else |
| 7032 | echo "$as_me: failed program was:" >&5 |
| 7033 | cat conftest.$ac_ext >&5 |
| 7034 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7035 | if test $ac_mid -le $ac_hi; then |
| 7036 | ac_lo= ac_hi= |
| 7037 | break |
| 7038 | fi |
| 7039 | ac_mid=`expr 2 '*' $ac_mid` |
| 7040 | fi |
| 7041 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7042 | done |
| 7043 | else |
| 7044 | echo "$as_me: failed program was:" >&5 |
| 7045 | cat conftest.$ac_ext >&5 |
| 7046 | ac_lo= ac_hi= |
| 7047 | fi |
| 7048 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7049 | fi |
| 7050 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7051 | # Binary search between lo and hi bounds. |
| 7052 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7053 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7054 | cat >conftest.$ac_ext <<_ACEOF |
| 7055 | #line $LINENO "configure" |
| 7056 | #include "confdefs.h" |
| 7057 | $ac_includes_default |
| 7058 | #ifdef F77_DUMMY_MAIN |
| 7059 | # ifdef __cplusplus |
| 7060 | extern "C" |
| 7061 | # endif |
| 7062 | int F77_DUMMY_MAIN() { return 1; } |
| 7063 | #endif |
| 7064 | int |
| 7065 | main () |
| 7066 | { |
| 7067 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7068 | test_array [0] = 0 |
| 7069 | |
| 7070 | ; |
| 7071 | return 0; |
| 7072 | } |
| 7073 | _ACEOF |
| 7074 | rm -f conftest.$ac_objext |
| 7075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7076 | (eval $ac_compile) 2>&5 |
| 7077 | ac_status=$? |
| 7078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7079 | (exit $ac_status); } && |
| 7080 | { ac_try='test -s conftest.$ac_objext' |
| 7081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7082 | (eval $ac_try) 2>&5 |
| 7083 | ac_status=$? |
| 7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7085 | (exit $ac_status); }; }; then |
| 7086 | ac_hi=$ac_mid |
| 7087 | else |
| 7088 | echo "$as_me: failed program was:" >&5 |
| 7089 | cat conftest.$ac_ext >&5 |
| 7090 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7091 | fi |
| 7092 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7093 | done |
| 7094 | case $ac_lo in |
| 7095 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7096 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7097 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7098 | { (exit 1); exit 1; }; } ;; |
| 7099 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7100 | else |
| 7101 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7102 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7103 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7104 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7106 | cat >conftest.$ac_ext <<_ACEOF |
| 7107 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7108 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7109 | $ac_includes_default |
| 7110 | long longval () { return (long) (sizeof (double)); } |
| 7111 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7112 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7113 | #include <stdlib.h> |
| 7114 | #ifdef F77_DUMMY_MAIN |
| 7115 | # ifdef __cplusplus |
| 7116 | extern "C" |
| 7117 | # endif |
| 7118 | int F77_DUMMY_MAIN() { return 1; } |
| 7119 | #endif |
| 7120 | int |
| 7121 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7122 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7123 | |
| 7124 | FILE *f = fopen ("conftest.val", "w"); |
| 7125 | if (! f) |
| 7126 | exit (1); |
| 7127 | if (((long) (sizeof (double))) < 0) |
| 7128 | { |
| 7129 | long i = longval (); |
| 7130 | if (i != ((long) (sizeof (double)))) |
| 7131 | exit (1); |
| 7132 | fprintf (f, "%ld\n", i); |
| 7133 | } |
| 7134 | else |
| 7135 | { |
| 7136 | unsigned long i = ulongval (); |
| 7137 | if (i != ((long) (sizeof (double)))) |
| 7138 | exit (1); |
| 7139 | fprintf (f, "%lu\n", i); |
| 7140 | } |
| 7141 | exit (ferror (f) || fclose (f) != 0); |
| 7142 | |
| 7143 | ; |
| 7144 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7145 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7146 | _ACEOF |
| 7147 | rm -f conftest$ac_exeext |
| 7148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7149 | (eval $ac_link) 2>&5 |
| 7150 | ac_status=$? |
| 7151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7152 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7154 | (eval $ac_try) 2>&5 |
| 7155 | ac_status=$? |
| 7156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7157 | (exit $ac_status); }; }; then |
| 7158 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7159 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7160 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7161 | echo "$as_me: failed program was:" >&5 |
| 7162 | cat conftest.$ac_ext >&5 |
| 7163 | ( exit $ac_status ) |
| 7164 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7165 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7166 | { (exit 1); exit 1; }; } |
| 7167 | fi |
| 7168 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7169 | fi |
| 7170 | fi |
| 7171 | rm -f conftest.val |
| 7172 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7173 | ac_cv_sizeof_double=0 |
| 7174 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7175 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7176 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7177 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7178 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7179 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7180 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7181 | |
| 7182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7183 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7184 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7185 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7187 | else |
| 7188 | cat >conftest.$ac_ext <<_ACEOF |
| 7189 | #line $LINENO "configure" |
| 7190 | #include "confdefs.h" |
| 7191 | $ac_includes_default |
| 7192 | #ifdef F77_DUMMY_MAIN |
| 7193 | # ifdef __cplusplus |
| 7194 | extern "C" |
| 7195 | # endif |
| 7196 | int F77_DUMMY_MAIN() { return 1; } |
| 7197 | #endif |
| 7198 | int |
| 7199 | main () |
| 7200 | { |
| 7201 | if ((fpos_t *) 0) |
| 7202 | return 0; |
| 7203 | if (sizeof (fpos_t)) |
| 7204 | return 0; |
| 7205 | ; |
| 7206 | return 0; |
| 7207 | } |
| 7208 | _ACEOF |
| 7209 | rm -f conftest.$ac_objext |
| 7210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7211 | (eval $ac_compile) 2>&5 |
| 7212 | ac_status=$? |
| 7213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7214 | (exit $ac_status); } && |
| 7215 | { ac_try='test -s conftest.$ac_objext' |
| 7216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7217 | (eval $ac_try) 2>&5 |
| 7218 | ac_status=$? |
| 7219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7220 | (exit $ac_status); }; }; then |
| 7221 | ac_cv_type_fpos_t=yes |
| 7222 | else |
| 7223 | echo "$as_me: failed program was:" >&5 |
| 7224 | cat conftest.$ac_ext >&5 |
| 7225 | ac_cv_type_fpos_t=no |
| 7226 | fi |
| 7227 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7228 | fi |
| 7229 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7230 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7231 | |
| 7232 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7233 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7234 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7236 | else |
| 7237 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7238 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7239 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7240 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7241 | # This bug is HP SR number 8606223364. |
| 7242 | if test "$cross_compiling" = yes; then |
| 7243 | # Depending upon the size, compute the lo and hi bounds. |
| 7244 | cat >conftest.$ac_ext <<_ACEOF |
| 7245 | #line $LINENO "configure" |
| 7246 | #include "confdefs.h" |
| 7247 | $ac_includes_default |
| 7248 | #ifdef F77_DUMMY_MAIN |
| 7249 | # ifdef __cplusplus |
| 7250 | extern "C" |
| 7251 | # endif |
| 7252 | int F77_DUMMY_MAIN() { return 1; } |
| 7253 | #endif |
| 7254 | int |
| 7255 | main () |
| 7256 | { |
| 7257 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7258 | test_array [0] = 0 |
| 7259 | |
| 7260 | ; |
| 7261 | return 0; |
| 7262 | } |
| 7263 | _ACEOF |
| 7264 | rm -f conftest.$ac_objext |
| 7265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7266 | (eval $ac_compile) 2>&5 |
| 7267 | ac_status=$? |
| 7268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7269 | (exit $ac_status); } && |
| 7270 | { ac_try='test -s conftest.$ac_objext' |
| 7271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7272 | (eval $ac_try) 2>&5 |
| 7273 | ac_status=$? |
| 7274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7275 | (exit $ac_status); }; }; then |
| 7276 | ac_lo=0 ac_mid=0 |
| 7277 | while :; do |
| 7278 | cat >conftest.$ac_ext <<_ACEOF |
| 7279 | #line $LINENO "configure" |
| 7280 | #include "confdefs.h" |
| 7281 | $ac_includes_default |
| 7282 | #ifdef F77_DUMMY_MAIN |
| 7283 | # ifdef __cplusplus |
| 7284 | extern "C" |
| 7285 | # endif |
| 7286 | int F77_DUMMY_MAIN() { return 1; } |
| 7287 | #endif |
| 7288 | int |
| 7289 | main () |
| 7290 | { |
| 7291 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7292 | test_array [0] = 0 |
| 7293 | |
| 7294 | ; |
| 7295 | return 0; |
| 7296 | } |
| 7297 | _ACEOF |
| 7298 | rm -f conftest.$ac_objext |
| 7299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7300 | (eval $ac_compile) 2>&5 |
| 7301 | ac_status=$? |
| 7302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7303 | (exit $ac_status); } && |
| 7304 | { ac_try='test -s conftest.$ac_objext' |
| 7305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7306 | (eval $ac_try) 2>&5 |
| 7307 | ac_status=$? |
| 7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7309 | (exit $ac_status); }; }; then |
| 7310 | ac_hi=$ac_mid; break |
| 7311 | else |
| 7312 | echo "$as_me: failed program was:" >&5 |
| 7313 | cat conftest.$ac_ext >&5 |
| 7314 | ac_lo=`expr $ac_mid + 1` |
| 7315 | if test $ac_lo -le $ac_mid; then |
| 7316 | ac_lo= ac_hi= |
| 7317 | break |
| 7318 | fi |
| 7319 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7320 | fi |
| 7321 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7322 | done |
| 7323 | else |
| 7324 | echo "$as_me: failed program was:" >&5 |
| 7325 | cat conftest.$ac_ext >&5 |
| 7326 | cat >conftest.$ac_ext <<_ACEOF |
| 7327 | #line $LINENO "configure" |
| 7328 | #include "confdefs.h" |
| 7329 | $ac_includes_default |
| 7330 | #ifdef F77_DUMMY_MAIN |
| 7331 | # ifdef __cplusplus |
| 7332 | extern "C" |
| 7333 | # endif |
| 7334 | int F77_DUMMY_MAIN() { return 1; } |
| 7335 | #endif |
| 7336 | int |
| 7337 | main () |
| 7338 | { |
| 7339 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7340 | test_array [0] = 0 |
| 7341 | |
| 7342 | ; |
| 7343 | return 0; |
| 7344 | } |
| 7345 | _ACEOF |
| 7346 | rm -f conftest.$ac_objext |
| 7347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7348 | (eval $ac_compile) 2>&5 |
| 7349 | ac_status=$? |
| 7350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7351 | (exit $ac_status); } && |
| 7352 | { ac_try='test -s conftest.$ac_objext' |
| 7353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7354 | (eval $ac_try) 2>&5 |
| 7355 | ac_status=$? |
| 7356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7357 | (exit $ac_status); }; }; then |
| 7358 | ac_hi=-1 ac_mid=-1 |
| 7359 | while :; do |
| 7360 | cat >conftest.$ac_ext <<_ACEOF |
| 7361 | #line $LINENO "configure" |
| 7362 | #include "confdefs.h" |
| 7363 | $ac_includes_default |
| 7364 | #ifdef F77_DUMMY_MAIN |
| 7365 | # ifdef __cplusplus |
| 7366 | extern "C" |
| 7367 | # endif |
| 7368 | int F77_DUMMY_MAIN() { return 1; } |
| 7369 | #endif |
| 7370 | int |
| 7371 | main () |
| 7372 | { |
| 7373 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7374 | test_array [0] = 0 |
| 7375 | |
| 7376 | ; |
| 7377 | return 0; |
| 7378 | } |
| 7379 | _ACEOF |
| 7380 | rm -f conftest.$ac_objext |
| 7381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7382 | (eval $ac_compile) 2>&5 |
| 7383 | ac_status=$? |
| 7384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7385 | (exit $ac_status); } && |
| 7386 | { ac_try='test -s conftest.$ac_objext' |
| 7387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7388 | (eval $ac_try) 2>&5 |
| 7389 | ac_status=$? |
| 7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7391 | (exit $ac_status); }; }; then |
| 7392 | ac_lo=$ac_mid; break |
| 7393 | else |
| 7394 | echo "$as_me: failed program was:" >&5 |
| 7395 | cat conftest.$ac_ext >&5 |
| 7396 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7397 | if test $ac_mid -le $ac_hi; then |
| 7398 | ac_lo= ac_hi= |
| 7399 | break |
| 7400 | fi |
| 7401 | ac_mid=`expr 2 '*' $ac_mid` |
| 7402 | fi |
| 7403 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7404 | done |
| 7405 | else |
| 7406 | echo "$as_me: failed program was:" >&5 |
| 7407 | cat conftest.$ac_ext >&5 |
| 7408 | ac_lo= ac_hi= |
| 7409 | fi |
| 7410 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7411 | fi |
| 7412 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7413 | # Binary search between lo and hi bounds. |
| 7414 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7415 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7416 | cat >conftest.$ac_ext <<_ACEOF |
| 7417 | #line $LINENO "configure" |
| 7418 | #include "confdefs.h" |
| 7419 | $ac_includes_default |
| 7420 | #ifdef F77_DUMMY_MAIN |
| 7421 | # ifdef __cplusplus |
| 7422 | extern "C" |
| 7423 | # endif |
| 7424 | int F77_DUMMY_MAIN() { return 1; } |
| 7425 | #endif |
| 7426 | int |
| 7427 | main () |
| 7428 | { |
| 7429 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7430 | test_array [0] = 0 |
| 7431 | |
| 7432 | ; |
| 7433 | return 0; |
| 7434 | } |
| 7435 | _ACEOF |
| 7436 | rm -f conftest.$ac_objext |
| 7437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7438 | (eval $ac_compile) 2>&5 |
| 7439 | ac_status=$? |
| 7440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7441 | (exit $ac_status); } && |
| 7442 | { ac_try='test -s conftest.$ac_objext' |
| 7443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7444 | (eval $ac_try) 2>&5 |
| 7445 | ac_status=$? |
| 7446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7447 | (exit $ac_status); }; }; then |
| 7448 | ac_hi=$ac_mid |
| 7449 | else |
| 7450 | echo "$as_me: failed program was:" >&5 |
| 7451 | cat conftest.$ac_ext >&5 |
| 7452 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7453 | fi |
| 7454 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7455 | done |
| 7456 | case $ac_lo in |
| 7457 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7458 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7459 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7460 | { (exit 1); exit 1; }; } ;; |
| 7461 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7462 | else |
| 7463 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7464 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7465 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7466 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7468 | cat >conftest.$ac_ext <<_ACEOF |
| 7469 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7470 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7471 | $ac_includes_default |
| 7472 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7473 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7474 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7475 | #include <stdlib.h> |
| 7476 | #ifdef F77_DUMMY_MAIN |
| 7477 | # ifdef __cplusplus |
| 7478 | extern "C" |
| 7479 | # endif |
| 7480 | int F77_DUMMY_MAIN() { return 1; } |
| 7481 | #endif |
| 7482 | int |
| 7483 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7484 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7485 | |
| 7486 | FILE *f = fopen ("conftest.val", "w"); |
| 7487 | if (! f) |
| 7488 | exit (1); |
| 7489 | if (((long) (sizeof (fpos_t))) < 0) |
| 7490 | { |
| 7491 | long i = longval (); |
| 7492 | if (i != ((long) (sizeof (fpos_t)))) |
| 7493 | exit (1); |
| 7494 | fprintf (f, "%ld\n", i); |
| 7495 | } |
| 7496 | else |
| 7497 | { |
| 7498 | unsigned long i = ulongval (); |
| 7499 | if (i != ((long) (sizeof (fpos_t)))) |
| 7500 | exit (1); |
| 7501 | fprintf (f, "%lu\n", i); |
| 7502 | } |
| 7503 | exit (ferror (f) || fclose (f) != 0); |
| 7504 | |
| 7505 | ; |
| 7506 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7507 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7508 | _ACEOF |
| 7509 | rm -f conftest$ac_exeext |
| 7510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7511 | (eval $ac_link) 2>&5 |
| 7512 | ac_status=$? |
| 7513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7514 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7516 | (eval $ac_try) 2>&5 |
| 7517 | ac_status=$? |
| 7518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7519 | (exit $ac_status); }; }; then |
| 7520 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7522 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7523 | echo "$as_me: failed program was:" >&5 |
| 7524 | cat conftest.$ac_ext >&5 |
| 7525 | ( exit $ac_status ) |
| 7526 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7527 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7528 | { (exit 1); exit 1; }; } |
| 7529 | fi |
| 7530 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7531 | fi |
| 7532 | fi |
| 7533 | rm -f conftest.val |
| 7534 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7535 | ac_cv_sizeof_fpos_t=0 |
| 7536 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7537 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7538 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 7539 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 7540 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7541 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7542 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7543 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7544 | |
| 7545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7546 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 7547 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7548 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7549 | cat >conftest.$ac_ext <<_ACEOF |
| 7550 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7551 | #include "confdefs.h" |
| 7552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7553 | #ifdef F77_DUMMY_MAIN |
| 7554 | # ifdef __cplusplus |
| 7555 | extern "C" |
| 7556 | # endif |
| 7557 | int F77_DUMMY_MAIN() { return 1; } |
| 7558 | #endif |
| 7559 | int |
| 7560 | main () |
| 7561 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7562 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7563 | ; |
| 7564 | return 0; |
| 7565 | } |
| 7566 | _ACEOF |
| 7567 | rm -f conftest.$ac_objext |
| 7568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7569 | (eval $ac_compile) 2>&5 |
| 7570 | ac_status=$? |
| 7571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7572 | (exit $ac_status); } && |
| 7573 | { ac_try='test -s conftest.$ac_objext' |
| 7574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7575 | (eval $ac_try) 2>&5 |
| 7576 | ac_status=$? |
| 7577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7578 | (exit $ac_status); }; }; then |
| 7579 | |
| 7580 | |
| 7581 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7582 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7583 | _ACEOF |
| 7584 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7585 | have_long_long=yes |
| 7586 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7587 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7588 | echo "$as_me: failed program was:" >&5 |
| 7589 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7590 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7591 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7592 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 7593 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7594 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7595 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 7596 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 7597 | if test "${ac_cv_type_long_long+set}" = set; then |
| 7598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7599 | else |
| 7600 | cat >conftest.$ac_ext <<_ACEOF |
| 7601 | #line $LINENO "configure" |
| 7602 | #include "confdefs.h" |
| 7603 | $ac_includes_default |
| 7604 | #ifdef F77_DUMMY_MAIN |
| 7605 | # ifdef __cplusplus |
| 7606 | extern "C" |
| 7607 | # endif |
| 7608 | int F77_DUMMY_MAIN() { return 1; } |
| 7609 | #endif |
| 7610 | int |
| 7611 | main () |
| 7612 | { |
| 7613 | if ((long long *) 0) |
| 7614 | return 0; |
| 7615 | if (sizeof (long long)) |
| 7616 | return 0; |
| 7617 | ; |
| 7618 | return 0; |
| 7619 | } |
| 7620 | _ACEOF |
| 7621 | rm -f conftest.$ac_objext |
| 7622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7623 | (eval $ac_compile) 2>&5 |
| 7624 | ac_status=$? |
| 7625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7626 | (exit $ac_status); } && |
| 7627 | { ac_try='test -s conftest.$ac_objext' |
| 7628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7629 | (eval $ac_try) 2>&5 |
| 7630 | ac_status=$? |
| 7631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7632 | (exit $ac_status); }; }; then |
| 7633 | ac_cv_type_long_long=yes |
| 7634 | else |
| 7635 | echo "$as_me: failed program was:" >&5 |
| 7636 | cat conftest.$ac_ext >&5 |
| 7637 | ac_cv_type_long_long=no |
| 7638 | fi |
| 7639 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7640 | fi |
| 7641 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 7642 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 7643 | |
| 7644 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 7645 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 7646 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 7647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7648 | else |
| 7649 | if test "$ac_cv_type_long_long" = yes; then |
| 7650 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7651 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7652 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7653 | # This bug is HP SR number 8606223364. |
| 7654 | if test "$cross_compiling" = yes; then |
| 7655 | # Depending upon the size, compute the lo and hi bounds. |
| 7656 | cat >conftest.$ac_ext <<_ACEOF |
| 7657 | #line $LINENO "configure" |
| 7658 | #include "confdefs.h" |
| 7659 | $ac_includes_default |
| 7660 | #ifdef F77_DUMMY_MAIN |
| 7661 | # ifdef __cplusplus |
| 7662 | extern "C" |
| 7663 | # endif |
| 7664 | int F77_DUMMY_MAIN() { return 1; } |
| 7665 | #endif |
| 7666 | int |
| 7667 | main () |
| 7668 | { |
| 7669 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 7670 | test_array [0] = 0 |
| 7671 | |
| 7672 | ; |
| 7673 | return 0; |
| 7674 | } |
| 7675 | _ACEOF |
| 7676 | rm -f conftest.$ac_objext |
| 7677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7678 | (eval $ac_compile) 2>&5 |
| 7679 | ac_status=$? |
| 7680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7681 | (exit $ac_status); } && |
| 7682 | { ac_try='test -s conftest.$ac_objext' |
| 7683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7684 | (eval $ac_try) 2>&5 |
| 7685 | ac_status=$? |
| 7686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7687 | (exit $ac_status); }; }; then |
| 7688 | ac_lo=0 ac_mid=0 |
| 7689 | while :; do |
| 7690 | cat >conftest.$ac_ext <<_ACEOF |
| 7691 | #line $LINENO "configure" |
| 7692 | #include "confdefs.h" |
| 7693 | $ac_includes_default |
| 7694 | #ifdef F77_DUMMY_MAIN |
| 7695 | # ifdef __cplusplus |
| 7696 | extern "C" |
| 7697 | # endif |
| 7698 | int F77_DUMMY_MAIN() { return 1; } |
| 7699 | #endif |
| 7700 | int |
| 7701 | main () |
| 7702 | { |
| 7703 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7704 | test_array [0] = 0 |
| 7705 | |
| 7706 | ; |
| 7707 | return 0; |
| 7708 | } |
| 7709 | _ACEOF |
| 7710 | rm -f conftest.$ac_objext |
| 7711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7712 | (eval $ac_compile) 2>&5 |
| 7713 | ac_status=$? |
| 7714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7715 | (exit $ac_status); } && |
| 7716 | { ac_try='test -s conftest.$ac_objext' |
| 7717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7718 | (eval $ac_try) 2>&5 |
| 7719 | ac_status=$? |
| 7720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7721 | (exit $ac_status); }; }; then |
| 7722 | ac_hi=$ac_mid; break |
| 7723 | else |
| 7724 | echo "$as_me: failed program was:" >&5 |
| 7725 | cat conftest.$ac_ext >&5 |
| 7726 | ac_lo=`expr $ac_mid + 1` |
| 7727 | if test $ac_lo -le $ac_mid; then |
| 7728 | ac_lo= ac_hi= |
| 7729 | break |
| 7730 | fi |
| 7731 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7732 | fi |
| 7733 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7734 | done |
| 7735 | else |
| 7736 | echo "$as_me: failed program was:" >&5 |
| 7737 | cat conftest.$ac_ext >&5 |
| 7738 | cat >conftest.$ac_ext <<_ACEOF |
| 7739 | #line $LINENO "configure" |
| 7740 | #include "confdefs.h" |
| 7741 | $ac_includes_default |
| 7742 | #ifdef F77_DUMMY_MAIN |
| 7743 | # ifdef __cplusplus |
| 7744 | extern "C" |
| 7745 | # endif |
| 7746 | int F77_DUMMY_MAIN() { return 1; } |
| 7747 | #endif |
| 7748 | int |
| 7749 | main () |
| 7750 | { |
| 7751 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 7752 | test_array [0] = 0 |
| 7753 | |
| 7754 | ; |
| 7755 | return 0; |
| 7756 | } |
| 7757 | _ACEOF |
| 7758 | rm -f conftest.$ac_objext |
| 7759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7760 | (eval $ac_compile) 2>&5 |
| 7761 | ac_status=$? |
| 7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7763 | (exit $ac_status); } && |
| 7764 | { ac_try='test -s conftest.$ac_objext' |
| 7765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7766 | (eval $ac_try) 2>&5 |
| 7767 | ac_status=$? |
| 7768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7769 | (exit $ac_status); }; }; then |
| 7770 | ac_hi=-1 ac_mid=-1 |
| 7771 | while :; do |
| 7772 | cat >conftest.$ac_ext <<_ACEOF |
| 7773 | #line $LINENO "configure" |
| 7774 | #include "confdefs.h" |
| 7775 | $ac_includes_default |
| 7776 | #ifdef F77_DUMMY_MAIN |
| 7777 | # ifdef __cplusplus |
| 7778 | extern "C" |
| 7779 | # endif |
| 7780 | int F77_DUMMY_MAIN() { return 1; } |
| 7781 | #endif |
| 7782 | int |
| 7783 | main () |
| 7784 | { |
| 7785 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 7786 | test_array [0] = 0 |
| 7787 | |
| 7788 | ; |
| 7789 | return 0; |
| 7790 | } |
| 7791 | _ACEOF |
| 7792 | rm -f conftest.$ac_objext |
| 7793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7794 | (eval $ac_compile) 2>&5 |
| 7795 | ac_status=$? |
| 7796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7797 | (exit $ac_status); } && |
| 7798 | { ac_try='test -s conftest.$ac_objext' |
| 7799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7800 | (eval $ac_try) 2>&5 |
| 7801 | ac_status=$? |
| 7802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7803 | (exit $ac_status); }; }; then |
| 7804 | ac_lo=$ac_mid; break |
| 7805 | else |
| 7806 | echo "$as_me: failed program was:" >&5 |
| 7807 | cat conftest.$ac_ext >&5 |
| 7808 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7809 | if test $ac_mid -le $ac_hi; then |
| 7810 | ac_lo= ac_hi= |
| 7811 | break |
| 7812 | fi |
| 7813 | ac_mid=`expr 2 '*' $ac_mid` |
| 7814 | fi |
| 7815 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7816 | done |
| 7817 | else |
| 7818 | echo "$as_me: failed program was:" >&5 |
| 7819 | cat conftest.$ac_ext >&5 |
| 7820 | ac_lo= ac_hi= |
| 7821 | fi |
| 7822 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7823 | fi |
| 7824 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7825 | # Binary search between lo and hi bounds. |
| 7826 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7827 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7828 | cat >conftest.$ac_ext <<_ACEOF |
| 7829 | #line $LINENO "configure" |
| 7830 | #include "confdefs.h" |
| 7831 | $ac_includes_default |
| 7832 | #ifdef F77_DUMMY_MAIN |
| 7833 | # ifdef __cplusplus |
| 7834 | extern "C" |
| 7835 | # endif |
| 7836 | int F77_DUMMY_MAIN() { return 1; } |
| 7837 | #endif |
| 7838 | int |
| 7839 | main () |
| 7840 | { |
| 7841 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7842 | test_array [0] = 0 |
| 7843 | |
| 7844 | ; |
| 7845 | return 0; |
| 7846 | } |
| 7847 | _ACEOF |
| 7848 | rm -f conftest.$ac_objext |
| 7849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7850 | (eval $ac_compile) 2>&5 |
| 7851 | ac_status=$? |
| 7852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7853 | (exit $ac_status); } && |
| 7854 | { ac_try='test -s conftest.$ac_objext' |
| 7855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7856 | (eval $ac_try) 2>&5 |
| 7857 | ac_status=$? |
| 7858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7859 | (exit $ac_status); }; }; then |
| 7860 | ac_hi=$ac_mid |
| 7861 | else |
| 7862 | echo "$as_me: failed program was:" >&5 |
| 7863 | cat conftest.$ac_ext >&5 |
| 7864 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7865 | fi |
| 7866 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7867 | done |
| 7868 | case $ac_lo in |
| 7869 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 7870 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 7871 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7872 | { (exit 1); exit 1; }; } ;; |
| 7873 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7874 | else |
| 7875 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7876 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7877 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7878 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7879 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7880 | cat >conftest.$ac_ext <<_ACEOF |
| 7881 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7882 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7883 | $ac_includes_default |
| 7884 | long longval () { return (long) (sizeof (long long)); } |
| 7885 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7886 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7887 | #include <stdlib.h> |
| 7888 | #ifdef F77_DUMMY_MAIN |
| 7889 | # ifdef __cplusplus |
| 7890 | extern "C" |
| 7891 | # endif |
| 7892 | int F77_DUMMY_MAIN() { return 1; } |
| 7893 | #endif |
| 7894 | int |
| 7895 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7896 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7897 | |
| 7898 | FILE *f = fopen ("conftest.val", "w"); |
| 7899 | if (! f) |
| 7900 | exit (1); |
| 7901 | if (((long) (sizeof (long long))) < 0) |
| 7902 | { |
| 7903 | long i = longval (); |
| 7904 | if (i != ((long) (sizeof (long long)))) |
| 7905 | exit (1); |
| 7906 | fprintf (f, "%ld\n", i); |
| 7907 | } |
| 7908 | else |
| 7909 | { |
| 7910 | unsigned long i = ulongval (); |
| 7911 | if (i != ((long) (sizeof (long long)))) |
| 7912 | exit (1); |
| 7913 | fprintf (f, "%lu\n", i); |
| 7914 | } |
| 7915 | exit (ferror (f) || fclose (f) != 0); |
| 7916 | |
| 7917 | ; |
| 7918 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7919 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7920 | _ACEOF |
| 7921 | rm -f conftest$ac_exeext |
| 7922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7923 | (eval $ac_link) 2>&5 |
| 7924 | ac_status=$? |
| 7925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7926 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7928 | (eval $ac_try) 2>&5 |
| 7929 | ac_status=$? |
| 7930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7931 | (exit $ac_status); }; }; then |
| 7932 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7934 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7935 | echo "$as_me: failed program was:" >&5 |
| 7936 | cat conftest.$ac_ext >&5 |
| 7937 | ( exit $ac_status ) |
| 7938 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 7939 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7940 | { (exit 1); exit 1; }; } |
| 7941 | fi |
| 7942 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7943 | fi |
| 7944 | fi |
| 7945 | rm -f conftest.val |
| 7946 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7947 | ac_cv_sizeof_long_long=0 |
| 7948 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7949 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7950 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 7951 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 7952 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7953 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7954 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7955 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7956 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7957 | fi |
| 7958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7959 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 7960 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7961 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7962 | cat >conftest.$ac_ext <<_ACEOF |
| 7963 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7964 | #include "confdefs.h" |
| 7965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7966 | #ifdef F77_DUMMY_MAIN |
| 7967 | # ifdef __cplusplus |
| 7968 | extern "C" |
| 7969 | # endif |
| 7970 | int F77_DUMMY_MAIN() { return 1; } |
| 7971 | #endif |
| 7972 | int |
| 7973 | main () |
| 7974 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7975 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7976 | ; |
| 7977 | return 0; |
| 7978 | } |
| 7979 | _ACEOF |
| 7980 | rm -f conftest.$ac_objext |
| 7981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7982 | (eval $ac_compile) 2>&5 |
| 7983 | ac_status=$? |
| 7984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7985 | (exit $ac_status); } && |
| 7986 | { ac_try='test -s conftest.$ac_objext' |
| 7987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7988 | (eval $ac_try) 2>&5 |
| 7989 | ac_status=$? |
| 7990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7991 | (exit $ac_status); }; }; then |
| 7992 | |
| 7993 | |
| 7994 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7995 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7996 | _ACEOF |
| 7997 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7998 | have_uintptr_t=yes |
| 7999 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8000 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8001 | echo "$as_me: failed program was:" >&5 |
| 8002 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8003 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8004 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8005 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8006 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8007 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8008 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8009 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8010 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8012 | else |
| 8013 | cat >conftest.$ac_ext <<_ACEOF |
| 8014 | #line $LINENO "configure" |
| 8015 | #include "confdefs.h" |
| 8016 | $ac_includes_default |
| 8017 | #ifdef F77_DUMMY_MAIN |
| 8018 | # ifdef __cplusplus |
| 8019 | extern "C" |
| 8020 | # endif |
| 8021 | int F77_DUMMY_MAIN() { return 1; } |
| 8022 | #endif |
| 8023 | int |
| 8024 | main () |
| 8025 | { |
| 8026 | if ((uintptr_t *) 0) |
| 8027 | return 0; |
| 8028 | if (sizeof (uintptr_t)) |
| 8029 | return 0; |
| 8030 | ; |
| 8031 | return 0; |
| 8032 | } |
| 8033 | _ACEOF |
| 8034 | rm -f conftest.$ac_objext |
| 8035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8036 | (eval $ac_compile) 2>&5 |
| 8037 | ac_status=$? |
| 8038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8039 | (exit $ac_status); } && |
| 8040 | { ac_try='test -s conftest.$ac_objext' |
| 8041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8042 | (eval $ac_try) 2>&5 |
| 8043 | ac_status=$? |
| 8044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8045 | (exit $ac_status); }; }; then |
| 8046 | ac_cv_type_uintptr_t=yes |
| 8047 | else |
| 8048 | echo "$as_me: failed program was:" >&5 |
| 8049 | cat conftest.$ac_ext >&5 |
| 8050 | ac_cv_type_uintptr_t=no |
| 8051 | fi |
| 8052 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8053 | fi |
| 8054 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8055 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8056 | |
| 8057 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8058 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8059 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8061 | else |
| 8062 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8063 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8064 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8065 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8066 | # This bug is HP SR number 8606223364. |
| 8067 | if test "$cross_compiling" = yes; then |
| 8068 | # Depending upon the size, compute the lo and hi bounds. |
| 8069 | cat >conftest.$ac_ext <<_ACEOF |
| 8070 | #line $LINENO "configure" |
| 8071 | #include "confdefs.h" |
| 8072 | $ac_includes_default |
| 8073 | #ifdef F77_DUMMY_MAIN |
| 8074 | # ifdef __cplusplus |
| 8075 | extern "C" |
| 8076 | # endif |
| 8077 | int F77_DUMMY_MAIN() { return 1; } |
| 8078 | #endif |
| 8079 | int |
| 8080 | main () |
| 8081 | { |
| 8082 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8083 | test_array [0] = 0 |
| 8084 | |
| 8085 | ; |
| 8086 | return 0; |
| 8087 | } |
| 8088 | _ACEOF |
| 8089 | rm -f conftest.$ac_objext |
| 8090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8091 | (eval $ac_compile) 2>&5 |
| 8092 | ac_status=$? |
| 8093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8094 | (exit $ac_status); } && |
| 8095 | { ac_try='test -s conftest.$ac_objext' |
| 8096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8097 | (eval $ac_try) 2>&5 |
| 8098 | ac_status=$? |
| 8099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8100 | (exit $ac_status); }; }; then |
| 8101 | ac_lo=0 ac_mid=0 |
| 8102 | while :; do |
| 8103 | cat >conftest.$ac_ext <<_ACEOF |
| 8104 | #line $LINENO "configure" |
| 8105 | #include "confdefs.h" |
| 8106 | $ac_includes_default |
| 8107 | #ifdef F77_DUMMY_MAIN |
| 8108 | # ifdef __cplusplus |
| 8109 | extern "C" |
| 8110 | # endif |
| 8111 | int F77_DUMMY_MAIN() { return 1; } |
| 8112 | #endif |
| 8113 | int |
| 8114 | main () |
| 8115 | { |
| 8116 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8117 | test_array [0] = 0 |
| 8118 | |
| 8119 | ; |
| 8120 | return 0; |
| 8121 | } |
| 8122 | _ACEOF |
| 8123 | rm -f conftest.$ac_objext |
| 8124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8125 | (eval $ac_compile) 2>&5 |
| 8126 | ac_status=$? |
| 8127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8128 | (exit $ac_status); } && |
| 8129 | { ac_try='test -s conftest.$ac_objext' |
| 8130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8131 | (eval $ac_try) 2>&5 |
| 8132 | ac_status=$? |
| 8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8134 | (exit $ac_status); }; }; then |
| 8135 | ac_hi=$ac_mid; break |
| 8136 | else |
| 8137 | echo "$as_me: failed program was:" >&5 |
| 8138 | cat conftest.$ac_ext >&5 |
| 8139 | ac_lo=`expr $ac_mid + 1` |
| 8140 | if test $ac_lo -le $ac_mid; then |
| 8141 | ac_lo= ac_hi= |
| 8142 | break |
| 8143 | fi |
| 8144 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8145 | fi |
| 8146 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8147 | done |
| 8148 | else |
| 8149 | echo "$as_me: failed program was:" >&5 |
| 8150 | cat conftest.$ac_ext >&5 |
| 8151 | cat >conftest.$ac_ext <<_ACEOF |
| 8152 | #line $LINENO "configure" |
| 8153 | #include "confdefs.h" |
| 8154 | $ac_includes_default |
| 8155 | #ifdef F77_DUMMY_MAIN |
| 8156 | # ifdef __cplusplus |
| 8157 | extern "C" |
| 8158 | # endif |
| 8159 | int F77_DUMMY_MAIN() { return 1; } |
| 8160 | #endif |
| 8161 | int |
| 8162 | main () |
| 8163 | { |
| 8164 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8165 | test_array [0] = 0 |
| 8166 | |
| 8167 | ; |
| 8168 | return 0; |
| 8169 | } |
| 8170 | _ACEOF |
| 8171 | rm -f conftest.$ac_objext |
| 8172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8173 | (eval $ac_compile) 2>&5 |
| 8174 | ac_status=$? |
| 8175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8176 | (exit $ac_status); } && |
| 8177 | { ac_try='test -s conftest.$ac_objext' |
| 8178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8179 | (eval $ac_try) 2>&5 |
| 8180 | ac_status=$? |
| 8181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8182 | (exit $ac_status); }; }; then |
| 8183 | ac_hi=-1 ac_mid=-1 |
| 8184 | while :; do |
| 8185 | cat >conftest.$ac_ext <<_ACEOF |
| 8186 | #line $LINENO "configure" |
| 8187 | #include "confdefs.h" |
| 8188 | $ac_includes_default |
| 8189 | #ifdef F77_DUMMY_MAIN |
| 8190 | # ifdef __cplusplus |
| 8191 | extern "C" |
| 8192 | # endif |
| 8193 | int F77_DUMMY_MAIN() { return 1; } |
| 8194 | #endif |
| 8195 | int |
| 8196 | main () |
| 8197 | { |
| 8198 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8199 | test_array [0] = 0 |
| 8200 | |
| 8201 | ; |
| 8202 | return 0; |
| 8203 | } |
| 8204 | _ACEOF |
| 8205 | rm -f conftest.$ac_objext |
| 8206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8207 | (eval $ac_compile) 2>&5 |
| 8208 | ac_status=$? |
| 8209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8210 | (exit $ac_status); } && |
| 8211 | { ac_try='test -s conftest.$ac_objext' |
| 8212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8213 | (eval $ac_try) 2>&5 |
| 8214 | ac_status=$? |
| 8215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8216 | (exit $ac_status); }; }; then |
| 8217 | ac_lo=$ac_mid; break |
| 8218 | else |
| 8219 | echo "$as_me: failed program was:" >&5 |
| 8220 | cat conftest.$ac_ext >&5 |
| 8221 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8222 | if test $ac_mid -le $ac_hi; then |
| 8223 | ac_lo= ac_hi= |
| 8224 | break |
| 8225 | fi |
| 8226 | ac_mid=`expr 2 '*' $ac_mid` |
| 8227 | fi |
| 8228 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8229 | done |
| 8230 | else |
| 8231 | echo "$as_me: failed program was:" >&5 |
| 8232 | cat conftest.$ac_ext >&5 |
| 8233 | ac_lo= ac_hi= |
| 8234 | fi |
| 8235 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8236 | fi |
| 8237 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8238 | # Binary search between lo and hi bounds. |
| 8239 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8240 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8241 | cat >conftest.$ac_ext <<_ACEOF |
| 8242 | #line $LINENO "configure" |
| 8243 | #include "confdefs.h" |
| 8244 | $ac_includes_default |
| 8245 | #ifdef F77_DUMMY_MAIN |
| 8246 | # ifdef __cplusplus |
| 8247 | extern "C" |
| 8248 | # endif |
| 8249 | int F77_DUMMY_MAIN() { return 1; } |
| 8250 | #endif |
| 8251 | int |
| 8252 | main () |
| 8253 | { |
| 8254 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8255 | test_array [0] = 0 |
| 8256 | |
| 8257 | ; |
| 8258 | return 0; |
| 8259 | } |
| 8260 | _ACEOF |
| 8261 | rm -f conftest.$ac_objext |
| 8262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8263 | (eval $ac_compile) 2>&5 |
| 8264 | ac_status=$? |
| 8265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8266 | (exit $ac_status); } && |
| 8267 | { ac_try='test -s conftest.$ac_objext' |
| 8268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8269 | (eval $ac_try) 2>&5 |
| 8270 | ac_status=$? |
| 8271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8272 | (exit $ac_status); }; }; then |
| 8273 | ac_hi=$ac_mid |
| 8274 | else |
| 8275 | echo "$as_me: failed program was:" >&5 |
| 8276 | cat conftest.$ac_ext >&5 |
| 8277 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8278 | fi |
| 8279 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8280 | done |
| 8281 | case $ac_lo in |
| 8282 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8283 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8284 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8285 | { (exit 1); exit 1; }; } ;; |
| 8286 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8287 | else |
| 8288 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8289 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8290 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8291 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8293 | cat >conftest.$ac_ext <<_ACEOF |
| 8294 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8295 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8296 | $ac_includes_default |
| 8297 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8298 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8299 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8300 | #include <stdlib.h> |
| 8301 | #ifdef F77_DUMMY_MAIN |
| 8302 | # ifdef __cplusplus |
| 8303 | extern "C" |
| 8304 | # endif |
| 8305 | int F77_DUMMY_MAIN() { return 1; } |
| 8306 | #endif |
| 8307 | int |
| 8308 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8309 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8310 | |
| 8311 | FILE *f = fopen ("conftest.val", "w"); |
| 8312 | if (! f) |
| 8313 | exit (1); |
| 8314 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8315 | { |
| 8316 | long i = longval (); |
| 8317 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8318 | exit (1); |
| 8319 | fprintf (f, "%ld\n", i); |
| 8320 | } |
| 8321 | else |
| 8322 | { |
| 8323 | unsigned long i = ulongval (); |
| 8324 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8325 | exit (1); |
| 8326 | fprintf (f, "%lu\n", i); |
| 8327 | } |
| 8328 | exit (ferror (f) || fclose (f) != 0); |
| 8329 | |
| 8330 | ; |
| 8331 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8332 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8333 | _ACEOF |
| 8334 | rm -f conftest$ac_exeext |
| 8335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8336 | (eval $ac_link) 2>&5 |
| 8337 | ac_status=$? |
| 8338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8339 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8341 | (eval $ac_try) 2>&5 |
| 8342 | ac_status=$? |
| 8343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8344 | (exit $ac_status); }; }; then |
| 8345 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8347 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8348 | echo "$as_me: failed program was:" >&5 |
| 8349 | cat conftest.$ac_ext >&5 |
| 8350 | ( exit $ac_status ) |
| 8351 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8352 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8353 | { (exit 1); exit 1; }; } |
| 8354 | fi |
| 8355 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8356 | fi |
| 8357 | fi |
| 8358 | rm -f conftest.val |
| 8359 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8360 | ac_cv_sizeof_uintptr_t=0 |
| 8361 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8362 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8363 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8364 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8365 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8366 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8367 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8368 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8369 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8370 | fi |
| 8371 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8372 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8373 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8374 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8375 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8377 | else |
| 8378 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8379 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8380 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8381 | cat >conftest.$ac_ext <<_ACEOF |
| 8382 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8383 | #include "confdefs.h" |
| 8384 | #include <stdio.h> |
| 8385 | #include <sys/types.h> |
| 8386 | main() |
| 8387 | { |
| 8388 | FILE *f=fopen("conftestval", "w"); |
| 8389 | if (!f) exit(1); |
| 8390 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8391 | exit(0); |
| 8392 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8393 | _ACEOF |
| 8394 | rm -f conftest$ac_exeext |
| 8395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8396 | (eval $ac_link) 2>&5 |
| 8397 | ac_status=$? |
| 8398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8399 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8401 | (eval $ac_try) 2>&5 |
| 8402 | ac_status=$? |
| 8403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8404 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8405 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8407 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8408 | echo "$as_me: failed program was:" >&5 |
| 8409 | cat conftest.$ac_ext >&5 |
| 8410 | ( exit $ac_status ) |
| 8411 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8412 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8413 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8414 | fi |
| 8415 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8416 | fi |
| 8417 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8418 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8419 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8420 | |
| 8421 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8422 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8424 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8426 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8427 | echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8428 | if test "$have_long_long" = yes -a \ |
| 8429 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8430 | "$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] | 8431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8432 | cat >>confdefs.h <<\_ACEOF |
| 8433 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8434 | _ACEOF |
| 8435 | |
| 8436 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8437 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8439 | echo "$as_me:$LINENO: result: no" >&5 |
| 8440 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8441 | fi |
| 8442 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8443 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8444 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8445 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8446 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8448 | else |
| 8449 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8450 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8451 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8452 | cat >conftest.$ac_ext <<_ACEOF |
| 8453 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8454 | #include "confdefs.h" |
| 8455 | #include <stdio.h> |
| 8456 | #include <time.h> |
| 8457 | main() |
| 8458 | { |
| 8459 | FILE *f=fopen("conftestval", "w"); |
| 8460 | if (!f) exit(1); |
| 8461 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8462 | exit(0); |
| 8463 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8464 | _ACEOF |
| 8465 | rm -f conftest$ac_exeext |
| 8466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8467 | (eval $ac_link) 2>&5 |
| 8468 | ac_status=$? |
| 8469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8470 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8472 | (eval $ac_try) 2>&5 |
| 8473 | ac_status=$? |
| 8474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8475 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8476 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8478 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8479 | echo "$as_me: failed program was:" >&5 |
| 8480 | cat conftest.$ac_ext >&5 |
| 8481 | ( exit $ac_status ) |
| 8482 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8485 | fi |
| 8486 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8487 | fi |
| 8488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 8490 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 8491 | |
| 8492 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8493 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8494 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8495 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8496 | |
| 8497 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8498 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8499 | ac_save_cc="$CC" |
| 8500 | if test "$ac_cv_kpthread" = "yes" |
| 8501 | then CC="$CC -Kpthread" |
| 8502 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8503 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 8504 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8505 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8506 | cat >conftest.$ac_ext <<_ACEOF |
| 8507 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8508 | #include "confdefs.h" |
| 8509 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 | #ifdef F77_DUMMY_MAIN |
| 8511 | # ifdef __cplusplus |
| 8512 | extern "C" |
| 8513 | # endif |
| 8514 | int F77_DUMMY_MAIN() { return 1; } |
| 8515 | #endif |
| 8516 | int |
| 8517 | main () |
| 8518 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8519 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8520 | ; |
| 8521 | return 0; |
| 8522 | } |
| 8523 | _ACEOF |
| 8524 | rm -f conftest.$ac_objext |
| 8525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8526 | (eval $ac_compile) 2>&5 |
| 8527 | ac_status=$? |
| 8528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8529 | (exit $ac_status); } && |
| 8530 | { ac_try='test -s conftest.$ac_objext' |
| 8531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8532 | (eval $ac_try) 2>&5 |
| 8533 | ac_status=$? |
| 8534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8535 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8536 | have_pthread_t=yes |
| 8537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8538 | echo "$as_me: failed program was:" >&5 |
| 8539 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8540 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8541 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8542 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 8543 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8544 | if test "$have_pthread_t" = yes ; then |
| 8545 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8546 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 8547 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 8548 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 8549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8550 | else |
| 8551 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8552 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | cat >conftest.$ac_ext <<_ACEOF |
| 8555 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8556 | #include "confdefs.h" |
| 8557 | #include <stdio.h> |
| 8558 | #include <pthread.h> |
| 8559 | main() |
| 8560 | { |
| 8561 | FILE *f=fopen("conftestval", "w"); |
| 8562 | if (!f) exit(1); |
| 8563 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 8564 | exit(0); |
| 8565 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8566 | _ACEOF |
| 8567 | rm -f conftest$ac_exeext |
| 8568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8569 | (eval $ac_link) 2>&5 |
| 8570 | ac_status=$? |
| 8571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8572 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8574 | (eval $ac_try) 2>&5 |
| 8575 | ac_status=$? |
| 8576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8577 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8578 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 8579 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8581 | echo "$as_me: failed program was:" >&5 |
| 8582 | cat conftest.$ac_ext >&5 |
| 8583 | ( exit $ac_status ) |
| 8584 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8585 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8586 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8587 | fi |
| 8588 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8589 | fi |
| 8590 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8591 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 8592 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 8593 | |
| 8594 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8595 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8596 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8597 | |
| 8598 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8599 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8601 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 8602 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8603 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 8604 | if test "${enable_toolbox_glue+set}" = set; then |
| 8605 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8607 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8608 | |
| 8609 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8610 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8611 | case $ac_sys_system/$ac_sys_release in |
| 8612 | Darwin/*) |
| 8613 | enable_toolbox_glue="yes";; |
| 8614 | *) |
| 8615 | enable_toolbox_glue="no";; |
| 8616 | esac |
| 8617 | fi |
| 8618 | case "$enable_toolbox_glue" in |
| 8619 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 8620 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8621 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8622 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8623 | |
| 8624 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8625 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8626 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8627 | |
| 8628 | ;; |
| 8629 | *) |
| 8630 | extra_frameworks="" |
| 8631 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8632 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8633 | ;; |
| 8634 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8635 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 8636 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8637 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8638 | |
| 8639 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8640 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8641 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8642 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" |
| 8643 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8644 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8645 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8646 | Darwin/*) |
| 8647 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8648 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -flat_namespace -U $ns_undef_sym" |
| 8649 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8650 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8651 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8652 | esac |
| 8653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8654 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 8655 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8656 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8657 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 8658 | OPT="$OPT -fno-common -dynamic" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8659 | # -U __environ is needed since bundles don't have access |
| 8660 | # to crt0 when built but will always be linked against it |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8662 | # in the build location. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8663 | |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8664 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8665 | Darwin/1.3*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-U,$ns_undef_sym";; |
| 8666 | Darwin/*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-flat_namespace,-U,$ns_undef_sym";; |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8667 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8669 | cat >>confdefs.h <<\_ACEOF |
| 8670 | #define WITH_NEXT_FRAMEWORK 1 |
| 8671 | _ACEOF |
| 8672 | |
| 8673 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8674 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | echo "$as_me:$LINENO: result: no" >&5 |
| 8677 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8678 | fi |
| 8679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8680 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 8681 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8682 | case $ac_sys_system/$ac_sys_release in |
| 8683 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8685 | cat >>confdefs.h <<\_ACEOF |
| 8686 | #define WITH_DYLD 1 |
| 8687 | _ACEOF |
| 8688 | |
| 8689 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 8690 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8691 | ;; |
| 8692 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8693 | echo "$as_me:$LINENO: result: no" >&5 |
| 8694 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8695 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8696 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8697 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8698 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8699 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8700 | |
| 8701 | |
| 8702 | |
| 8703 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8704 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8705 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8706 | echo "$as_me:$LINENO: checking SO" >&5 |
| 8707 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8708 | if test -z "$SO" |
| 8709 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8710 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8711 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8712 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8713 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8714 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8715 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8716 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 8717 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8718 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8719 | # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8720 | # (Shared libraries in this instance are shared modules to be loaded into |
| 8721 | # Python, as opposed to building Python itself as a shared library.) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8722 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 8723 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8724 | if test -z "$LDSHARED" |
| 8725 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8726 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8727 | AIX*) |
| 8728 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8729 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8730 | ;; |
| 8731 | BeOS*) |
| 8732 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8733 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8734 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8735 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8736 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8737 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8738 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8739 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 8740 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8741 | else LDSHARED="$(CC) -G"; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8742 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8743 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8744 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 8745 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8746 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8747 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8748 | if test "$enable_framework" ; then |
| 8749 | # Link against the framework. All externals should be defined. |
| 8750 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8751 | else |
| 8752 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8753 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8754 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8755 | Darwin/*) |
| 8756 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8757 | if test "$enable_framework" ; then |
| 8758 | # Link against the framework. All externals should be defined. |
| 8759 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8760 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8761 | # No framework, use the Python app as bundle-loader |
| 8762 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 8763 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8764 | fi ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8765 | Linux*|GNU*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 8766 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 8767 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8768 | OpenBSD*|NetBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8769 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8770 | then |
| 8771 | LDSHARED="cc -shared ${LDFLAGS}" |
| 8772 | else |
| 8773 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 8774 | fi;; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8775 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8776 | if test "$GCC" = "yes" |
| 8777 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8778 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8779 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8780 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8781 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8782 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8783 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8784 | *) LDSHARED="ld";; |
| 8785 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8786 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 8788 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8789 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8790 | # 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] | 8791 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8792 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 8793 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8794 | if test -z "$CCSHARED" |
| 8795 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8796 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8797 | SunOS*) if test "$GCC" = yes; |
| 8798 | then CCSHARED="-fPIC"; |
| 8799 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8800 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8801 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8802 | else CCSHARED="+z"; |
| 8803 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8804 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8805 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8806 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8807 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8808 | if test "$GCC" = "yes" |
| 8809 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8810 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8811 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8812 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8813 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8814 | IRIX*/6*) case $CC in |
| 8815 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8816 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8817 | esac;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8818 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8819 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8820 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8821 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8822 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 8823 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8824 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8825 | # the python executable -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8826 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 8827 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8828 | if test -z "$LINKFORSHARED" |
| 8829 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8830 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8831 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8832 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8833 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 8834 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8835 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8836 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8837 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8838 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8839 | # -u __dummy makes the linker aware of the objc runtime |
| 8840 | # in System.framework; otherwise, __objcInit (referenced in |
| 8841 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 8842 | # loading of any modules which reference it in System.framework. |
| 8843 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 8844 | # not used by the core itself but which needs to be in the core so |
| 8845 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8846 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8847 | if test "$enable_framework" |
| 8848 | then |
| 8849 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 8850 | fi |
| 8851 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8852 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8853 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8854 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8855 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8856 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 8857 | then |
| 8858 | LINKFORSHARED="-Wl,--export-dynamic" |
| 8859 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8860 | SunOS/5*) case $CC in |
| 8861 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8862 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8863 | then |
| 8864 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8865 | fi;; |
| 8866 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8867 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8868 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8869 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 8870 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8871 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8873 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 8874 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8875 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 8876 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8877 | case $ac_sys_system in |
| 8878 | CYGWIN*) |
| 8879 | # Cygwin needs CCSHARED when building extension DLLs |
| 8880 | # but not when building the interpreter DLL. |
| 8881 | CFLAGSFORSHARED='';; |
| 8882 | *) |
| 8883 | CFLAGSFORSHARED='$(CCSHARED)' |
| 8884 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8886 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 8887 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8888 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8889 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 8890 | # library (with --enable-shared). |
| 8891 | # For platforms on which shared libraries are not allowed to have unresolved |
| 8892 | # symbols, this must be set to $(LIBS) (expanded by make). |
| 8893 | |
| 8894 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 8895 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 8896 | case "$ac_sys_system" in |
| 8897 | atheos*) |
| 8898 | SHLIBS='$(LIBS)';; |
| 8899 | *) |
| 8900 | SHLIBS='';; |
| 8901 | esac |
| 8902 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 8903 | echo "${ECHO_T}$SHLIBS" >&6 |
| 8904 | |
| 8905 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8906 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8907 | |
| 8908 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8909 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8910 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8913 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8914 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8915 | cat >conftest.$ac_ext <<_ACEOF |
| 8916 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8917 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8918 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8919 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8920 | #ifdef __cplusplus |
| 8921 | extern "C" |
| 8922 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8923 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8924 | builtin and then its argument prototype would still apply. */ |
| 8925 | char dlopen (); |
| 8926 | #ifdef F77_DUMMY_MAIN |
| 8927 | # ifdef __cplusplus |
| 8928 | extern "C" |
| 8929 | # endif |
| 8930 | int F77_DUMMY_MAIN() { return 1; } |
| 8931 | #endif |
| 8932 | int |
| 8933 | main () |
| 8934 | { |
| 8935 | dlopen (); |
| 8936 | ; |
| 8937 | return 0; |
| 8938 | } |
| 8939 | _ACEOF |
| 8940 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8942 | (eval $ac_link) 2>&5 |
| 8943 | ac_status=$? |
| 8944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8945 | (exit $ac_status); } && |
| 8946 | { ac_try='test -s conftest$ac_exeext' |
| 8947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8948 | (eval $ac_try) 2>&5 |
| 8949 | ac_status=$? |
| 8950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8951 | (exit $ac_status); }; }; then |
| 8952 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8954 | echo "$as_me: failed program was:" >&5 |
| 8955 | cat conftest.$ac_ext >&5 |
| 8956 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8957 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8958 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8959 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8960 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8961 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8962 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8963 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8964 | cat >>confdefs.h <<_ACEOF |
| 8965 | #define HAVE_LIBDL 1 |
| 8966 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8967 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8968 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8969 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8970 | fi |
| 8971 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8972 | |
| 8973 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8974 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 8975 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8978 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8979 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8980 | cat >conftest.$ac_ext <<_ACEOF |
| 8981 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8982 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8983 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8984 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 | #ifdef __cplusplus |
| 8986 | extern "C" |
| 8987 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8988 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | builtin and then its argument prototype would still apply. */ |
| 8990 | char shl_load (); |
| 8991 | #ifdef F77_DUMMY_MAIN |
| 8992 | # ifdef __cplusplus |
| 8993 | extern "C" |
| 8994 | # endif |
| 8995 | int F77_DUMMY_MAIN() { return 1; } |
| 8996 | #endif |
| 8997 | int |
| 8998 | main () |
| 8999 | { |
| 9000 | shl_load (); |
| 9001 | ; |
| 9002 | return 0; |
| 9003 | } |
| 9004 | _ACEOF |
| 9005 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9007 | (eval $ac_link) 2>&5 |
| 9008 | ac_status=$? |
| 9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9010 | (exit $ac_status); } && |
| 9011 | { ac_try='test -s conftest$ac_exeext' |
| 9012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9013 | (eval $ac_try) 2>&5 |
| 9014 | ac_status=$? |
| 9015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9016 | (exit $ac_status); }; }; then |
| 9017 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9019 | echo "$as_me: failed program was:" >&5 |
| 9020 | cat conftest.$ac_ext >&5 |
| 9021 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9022 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9023 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9024 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9025 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9026 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9027 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9028 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9029 | cat >>confdefs.h <<_ACEOF |
| 9030 | #define HAVE_LIBDLD 1 |
| 9031 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9032 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9033 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9034 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9035 | fi |
| 9036 | # Dynamic linking for HP-UX |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9037 | |
| 9038 | echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 |
| 9039 | echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6 |
| 9040 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then |
| 9041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9042 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9043 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9044 | LIBS="-lrt $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9045 | cat >conftest.$ac_ext <<_ACEOF |
| 9046 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9047 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9048 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9049 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9050 | #ifdef __cplusplus |
| 9051 | extern "C" |
| 9052 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9053 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9054 | builtin and then its argument prototype would still apply. */ |
| 9055 | char sem_init (); |
| 9056 | #ifdef F77_DUMMY_MAIN |
| 9057 | # ifdef __cplusplus |
| 9058 | extern "C" |
| 9059 | # endif |
| 9060 | int F77_DUMMY_MAIN() { return 1; } |
| 9061 | #endif |
| 9062 | int |
| 9063 | main () |
| 9064 | { |
| 9065 | sem_init (); |
| 9066 | ; |
| 9067 | return 0; |
| 9068 | } |
| 9069 | _ACEOF |
| 9070 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9072 | (eval $ac_link) 2>&5 |
| 9073 | ac_status=$? |
| 9074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9075 | (exit $ac_status); } && |
| 9076 | { ac_try='test -s conftest$ac_exeext' |
| 9077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9078 | (eval $ac_try) 2>&5 |
| 9079 | ac_status=$? |
| 9080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9081 | (exit $ac_status); }; }; then |
| 9082 | ac_cv_lib_rt_sem_init=yes |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9084 | echo "$as_me: failed program was:" >&5 |
| 9085 | cat conftest.$ac_ext >&5 |
| 9086 | ac_cv_lib_rt_sem_init=no |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9088 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9089 | LIBS=$ac_check_lib_save_LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9090 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9091 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 |
| 9092 | echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6 |
| 9093 | if test $ac_cv_lib_rt_sem_init = yes; then |
| 9094 | cat >>confdefs.h <<_ACEOF |
| 9095 | #define HAVE_LIBRT 1 |
| 9096 | _ACEOF |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9097 | |
| 9098 | LIBS="-lrt $LIBS" |
| 9099 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9100 | fi |
| 9101 | # 'Real Time' functions on Solaris |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9102 | |
| 9103 | # checks for system dependent C++ extensions support |
| 9104 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9106 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9107 | cat >conftest.$ac_ext <<_ACEOF |
| 9108 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9109 | #include "confdefs.h" |
| 9110 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9111 | #ifdef F77_DUMMY_MAIN |
| 9112 | # ifdef __cplusplus |
| 9113 | extern "C" |
| 9114 | # endif |
| 9115 | int F77_DUMMY_MAIN() { return 1; } |
| 9116 | #endif |
| 9117 | int |
| 9118 | main () |
| 9119 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9120 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9121 | ; |
| 9122 | return 0; |
| 9123 | } |
| 9124 | _ACEOF |
| 9125 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9127 | (eval $ac_link) 2>&5 |
| 9128 | ac_status=$? |
| 9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9130 | (exit $ac_status); } && |
| 9131 | { ac_try='test -s conftest$ac_exeext' |
| 9132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9133 | (eval $ac_try) 2>&5 |
| 9134 | ac_status=$? |
| 9135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9136 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | cat >>confdefs.h <<\_ACEOF |
| 9139 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9140 | _ACEOF |
| 9141 | |
| 9142 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9143 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9144 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9145 | echo "$as_me: failed program was:" >&5 |
| 9146 | cat conftest.$ac_ext >&5 |
| 9147 | echo "$as_me:$LINENO: result: no" >&5 |
| 9148 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9149 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9150 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9151 | *) ;; |
| 9152 | esac |
| 9153 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9154 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 9155 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9156 | # BeOS' sockets are stashed in libnet. |
| 9157 | case "$ac_sys_system" in |
| 9158 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9159 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9160 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9161 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9162 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9164 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9165 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9166 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9167 | cat >conftest.$ac_ext <<_ACEOF |
| 9168 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9169 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9170 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9171 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9172 | #ifdef __cplusplus |
| 9173 | extern "C" |
| 9174 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9175 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9176 | builtin and then its argument prototype would still apply. */ |
| 9177 | char t_open (); |
| 9178 | #ifdef F77_DUMMY_MAIN |
| 9179 | # ifdef __cplusplus |
| 9180 | extern "C" |
| 9181 | # endif |
| 9182 | int F77_DUMMY_MAIN() { return 1; } |
| 9183 | #endif |
| 9184 | int |
| 9185 | main () |
| 9186 | { |
| 9187 | t_open (); |
| 9188 | ; |
| 9189 | return 0; |
| 9190 | } |
| 9191 | _ACEOF |
| 9192 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9194 | (eval $ac_link) 2>&5 |
| 9195 | ac_status=$? |
| 9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9197 | (exit $ac_status); } && |
| 9198 | { ac_try='test -s conftest$ac_exeext' |
| 9199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9200 | (eval $ac_try) 2>&5 |
| 9201 | ac_status=$? |
| 9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9203 | (exit $ac_status); }; }; then |
| 9204 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9205 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9206 | echo "$as_me: failed program was:" >&5 |
| 9207 | cat conftest.$ac_ext >&5 |
| 9208 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9209 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9210 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9211 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9212 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9213 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9214 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9215 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9216 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9217 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9218 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9220 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9221 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9223 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9224 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9225 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9226 | cat >conftest.$ac_ext <<_ACEOF |
| 9227 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9228 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9229 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9230 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9231 | #ifdef __cplusplus |
| 9232 | extern "C" |
| 9233 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9234 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9235 | builtin and then its argument prototype would still apply. */ |
| 9236 | char socket (); |
| 9237 | #ifdef F77_DUMMY_MAIN |
| 9238 | # ifdef __cplusplus |
| 9239 | extern "C" |
| 9240 | # endif |
| 9241 | int F77_DUMMY_MAIN() { return 1; } |
| 9242 | #endif |
| 9243 | int |
| 9244 | main () |
| 9245 | { |
| 9246 | socket (); |
| 9247 | ; |
| 9248 | return 0; |
| 9249 | } |
| 9250 | _ACEOF |
| 9251 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9253 | (eval $ac_link) 2>&5 |
| 9254 | ac_status=$? |
| 9255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9256 | (exit $ac_status); } && |
| 9257 | { ac_try='test -s conftest$ac_exeext' |
| 9258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9259 | (eval $ac_try) 2>&5 |
| 9260 | ac_status=$? |
| 9261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9262 | (exit $ac_status); }; }; then |
| 9263 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9264 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9265 | echo "$as_me: failed program was:" >&5 |
| 9266 | cat conftest.$ac_ext >&5 |
| 9267 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9268 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9269 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9270 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9271 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9272 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9273 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9274 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9275 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9276 | fi |
| 9277 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9278 | ;; |
| 9279 | esac |
| 9280 | case "$ac_sys_system" in |
| 9281 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9282 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9283 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9284 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9287 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9288 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9289 | cat >conftest.$ac_ext <<_ACEOF |
| 9290 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9291 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9292 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9293 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9294 | #ifdef __cplusplus |
| 9295 | extern "C" |
| 9296 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9297 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9298 | builtin and then its argument prototype would still apply. */ |
| 9299 | char socket (); |
| 9300 | #ifdef F77_DUMMY_MAIN |
| 9301 | # ifdef __cplusplus |
| 9302 | extern "C" |
| 9303 | # endif |
| 9304 | int F77_DUMMY_MAIN() { return 1; } |
| 9305 | #endif |
| 9306 | int |
| 9307 | main () |
| 9308 | { |
| 9309 | socket (); |
| 9310 | ; |
| 9311 | return 0; |
| 9312 | } |
| 9313 | _ACEOF |
| 9314 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9316 | (eval $ac_link) 2>&5 |
| 9317 | ac_status=$? |
| 9318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9319 | (exit $ac_status); } && |
| 9320 | { ac_try='test -s conftest$ac_exeext' |
| 9321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9322 | (eval $ac_try) 2>&5 |
| 9323 | ac_status=$? |
| 9324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9325 | (exit $ac_status); }; }; then |
| 9326 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9327 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9328 | echo "$as_me: failed program was:" >&5 |
| 9329 | cat conftest.$ac_ext >&5 |
| 9330 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9331 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9332 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9333 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9334 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9335 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9336 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9337 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9338 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9339 | fi |
| 9340 | # BeOS |
| 9341 | ;; |
| 9342 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9345 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9346 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9347 | # Check whether --with-libs or --without-libs was given. |
| 9348 | if test "${with_libs+set}" = set; then |
| 9349 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9350 | |
| 9351 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9352 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9353 | LIBS="$withval $LIBS" |
| 9354 | |
| 9355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9356 | echo "$as_me:$LINENO: result: no" >&5 |
| 9357 | echo "${ECHO_T}no" >&6 |
| 9358 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9359 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9360 | # Determine if signalmodule should be used. |
| 9361 | |
| 9362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9363 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9364 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9365 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9366 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9367 | if test "${with_signal_module+set}" = set; then |
| 9368 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9370 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9371 | |
| 9372 | if test -z "$with_signal_module" |
| 9373 | then with_signal_module="yes" |
| 9374 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9375 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9376 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9377 | |
| 9378 | if test "${with_signal_module}" = "yes"; then |
| 9379 | USE_SIGNAL_MODULE="" |
| 9380 | SIGNAL_OBJS="" |
| 9381 | else |
| 9382 | USE_SIGNAL_MODULE="#" |
| 9383 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9384 | fi |
| 9385 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9386 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9387 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9388 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9390 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9391 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9392 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9393 | |
| 9394 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9395 | if test "${with_dec_threads+set}" = set; then |
| 9396 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9397 | |
| 9398 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9399 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9400 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9401 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9402 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9403 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9405 | echo "$as_me:$LINENO: result: no" >&5 |
| 9406 | echo "${ECHO_T}no" >&6 |
| 9407 | fi; |
| 9408 | |
| 9409 | # Templates for things AC_DEFINEd more than once. |
| 9410 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9411 | |
| 9412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9413 | |
| 9414 | |
| 9415 | |
| 9416 | |
| 9417 | |
| 9418 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9419 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9420 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9421 | # Check whether --with-threads or --without-threads was given. |
| 9422 | if test "${with_threads+set}" = set; then |
| 9423 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9425 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9426 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9427 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9428 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9429 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9430 | if test "${with_thread+set}" = set; then |
| 9431 | withval="$with_thread" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9433 | with_threads=$with_thread |
| 9434 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9435 | |
| 9436 | if test -z "$with_threads" |
| 9437 | then with_threads="yes" |
| 9438 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 9440 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9441 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9442 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9443 | if test "$with_threads" = "no" |
| 9444 | then |
| 9445 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9446 | elif test "$ac_cv_pthread_is_default" = yes |
| 9447 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9448 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9449 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9450 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9451 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9452 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9453 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9454 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9455 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9456 | |
| 9457 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9458 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9459 | elif test "$ac_cv_kpthread" = "yes" |
| 9460 | then |
| 9461 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9463 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9464 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9465 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9466 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9467 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9468 | else |
| 9469 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 9470 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 9471 | fi |
| 9472 | if test ! -z "$withval" -a -d "$withval" |
| 9473 | then LDFLAGS="$LDFLAGS -L$withval" |
| 9474 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9475 | |
| 9476 | # According to the POSIX spec, a pthreads implementation must |
| 9477 | # define _POSIX_THREADS in unistd.h. Some apparently don't (which ones?) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9478 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 9479 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 9480 | cat >conftest.$ac_ext <<_ACEOF |
| 9481 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9482 | #include "confdefs.h" |
| 9483 | #include <unistd.h> |
| 9484 | #ifdef _POSIX_THREADS |
| 9485 | yes |
| 9486 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9487 | |
| 9488 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9489 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9490 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9491 | unistd_defines_pthreads=yes |
| 9492 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9493 | unistd_defines_pthreads=no |
| 9494 | fi |
| 9495 | rm -f conftest* |
| 9496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9497 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 9498 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9500 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9501 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9502 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9504 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9505 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9506 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9507 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9509 | fi |
| 9510 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9511 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9512 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9513 | # Is the header compilable? |
| 9514 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 9515 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 9516 | cat >conftest.$ac_ext <<_ACEOF |
| 9517 | #line $LINENO "configure" |
| 9518 | #include "confdefs.h" |
| 9519 | $ac_includes_default |
| 9520 | #include <cthreads.h> |
| 9521 | _ACEOF |
| 9522 | rm -f conftest.$ac_objext |
| 9523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9524 | (eval $ac_compile) 2>&5 |
| 9525 | ac_status=$? |
| 9526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9527 | (exit $ac_status); } && |
| 9528 | { ac_try='test -s conftest.$ac_objext' |
| 9529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9530 | (eval $ac_try) 2>&5 |
| 9531 | ac_status=$? |
| 9532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9533 | (exit $ac_status); }; }; then |
| 9534 | ac_header_compiler=yes |
| 9535 | else |
| 9536 | echo "$as_me: failed program was:" >&5 |
| 9537 | cat conftest.$ac_ext >&5 |
| 9538 | ac_header_compiler=no |
| 9539 | fi |
| 9540 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9541 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9542 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9543 | |
| 9544 | # Is the header present? |
| 9545 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 9546 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 9547 | cat >conftest.$ac_ext <<_ACEOF |
| 9548 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9549 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9550 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9551 | _ACEOF |
| 9552 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9553 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9554 | ac_status=$? |
| 9555 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9556 | rm -f conftest.er1 |
| 9557 | cat conftest.err >&5 |
| 9558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9559 | (exit $ac_status); } >/dev/null; then |
| 9560 | if test -s conftest.err; then |
| 9561 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9562 | else |
| 9563 | ac_cpp_err= |
| 9564 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9566 | ac_cpp_err=yes |
| 9567 | fi |
| 9568 | if test -z "$ac_cpp_err"; then |
| 9569 | ac_header_preproc=yes |
| 9570 | else |
| 9571 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9572 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9573 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9574 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9575 | rm -f conftest.err conftest.$ac_ext |
| 9576 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9577 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9578 | |
| 9579 | # So? What about this header? |
| 9580 | case $ac_header_compiler:$ac_header_preproc in |
| 9581 | yes:no ) |
| 9582 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9583 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9584 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9585 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9586 | no:yes ) |
| 9587 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 9588 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 9589 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 9590 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9591 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9592 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9593 | esac |
| 9594 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9595 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9596 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9598 | else |
| 9599 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9600 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9601 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9602 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 9603 | |
| 9604 | fi |
| 9605 | if test $ac_cv_header_cthreads_h = yes; then |
| 9606 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9607 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9608 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9610 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9611 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9612 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9614 | |
| 9615 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9616 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9617 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9618 | |
| 9619 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9620 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9621 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9623 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9624 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9625 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9626 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9628 | fi |
| 9629 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9630 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9631 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9632 | # Is the header compilable? |
| 9633 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 9634 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 9635 | cat >conftest.$ac_ext <<_ACEOF |
| 9636 | #line $LINENO "configure" |
| 9637 | #include "confdefs.h" |
| 9638 | $ac_includes_default |
| 9639 | #include <mach/cthreads.h> |
| 9640 | _ACEOF |
| 9641 | rm -f conftest.$ac_objext |
| 9642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9643 | (eval $ac_compile) 2>&5 |
| 9644 | ac_status=$? |
| 9645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9646 | (exit $ac_status); } && |
| 9647 | { ac_try='test -s conftest.$ac_objext' |
| 9648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9649 | (eval $ac_try) 2>&5 |
| 9650 | ac_status=$? |
| 9651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9652 | (exit $ac_status); }; }; then |
| 9653 | ac_header_compiler=yes |
| 9654 | else |
| 9655 | echo "$as_me: failed program was:" >&5 |
| 9656 | cat conftest.$ac_ext >&5 |
| 9657 | ac_header_compiler=no |
| 9658 | fi |
| 9659 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9660 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9661 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9662 | |
| 9663 | # Is the header present? |
| 9664 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 9665 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 9666 | cat >conftest.$ac_ext <<_ACEOF |
| 9667 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9668 | #include "confdefs.h" |
| 9669 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9670 | _ACEOF |
| 9671 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9672 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9673 | ac_status=$? |
| 9674 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9675 | rm -f conftest.er1 |
| 9676 | cat conftest.err >&5 |
| 9677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9678 | (exit $ac_status); } >/dev/null; then |
| 9679 | if test -s conftest.err; then |
| 9680 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9681 | else |
| 9682 | ac_cpp_err= |
| 9683 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9684 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9685 | ac_cpp_err=yes |
| 9686 | fi |
| 9687 | if test -z "$ac_cpp_err"; then |
| 9688 | ac_header_preproc=yes |
| 9689 | else |
| 9690 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9691 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9692 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9693 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9694 | rm -f conftest.err conftest.$ac_ext |
| 9695 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9696 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9697 | |
| 9698 | # So? What about this header? |
| 9699 | case $ac_header_compiler:$ac_header_preproc in |
| 9700 | yes:no ) |
| 9701 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9702 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9703 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9704 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9705 | no:yes ) |
| 9706 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 9707 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 9708 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 9709 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9710 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9711 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9712 | esac |
| 9713 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9714 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9715 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9717 | else |
| 9718 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9719 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9720 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9721 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 9722 | |
| 9723 | fi |
| 9724 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 9725 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9726 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9727 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9729 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9730 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9731 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | |
| 9734 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9735 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9736 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9737 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9738 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9739 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9740 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9741 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 9742 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 9743 | |
| 9744 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9745 | if test "${with_pth+set}" = set; then |
| 9746 | withval="$with_pth" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9749 | echo "${ECHO_T}$withval" >&6 |
| 9750 | cat >>confdefs.h <<\_ACEOF |
| 9751 | #define WITH_THREAD 1 |
| 9752 | _ACEOF |
| 9753 | |
| 9754 | |
| 9755 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9756 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9757 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9758 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9759 | LIBS="-lpth $LIBS" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9760 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9761 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9762 | |
| 9763 | echo "$as_me:$LINENO: result: no" >&5 |
| 9764 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9765 | |
| 9766 | # Just looking for pthread_create in libpthread is not enough: |
| 9767 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 9768 | # So we really have to include pthread.h, and then link. |
| 9769 | _libs=$LIBS |
| 9770 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9771 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 9772 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 9773 | cat >conftest.$ac_ext <<_ACEOF |
| 9774 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9775 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9776 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9777 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9778 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9779 | #ifdef F77_DUMMY_MAIN |
| 9780 | # ifdef __cplusplus |
| 9781 | extern "C" |
| 9782 | # endif |
| 9783 | int F77_DUMMY_MAIN() { return 1; } |
| 9784 | #endif |
| 9785 | int |
| 9786 | main () |
| 9787 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9788 | |
| 9789 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9790 | ; |
| 9791 | return 0; |
| 9792 | } |
| 9793 | _ACEOF |
| 9794 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9796 | (eval $ac_link) 2>&5 |
| 9797 | ac_status=$? |
| 9798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9799 | (exit $ac_status); } && |
| 9800 | { ac_try='test -s conftest$ac_exeext' |
| 9801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9802 | (eval $ac_try) 2>&5 |
| 9803 | ac_status=$? |
| 9804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9805 | (exit $ac_status); }; }; then |
| 9806 | |
| 9807 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9808 | echo "${ECHO_T}yes" >&6 |
| 9809 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9810 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9811 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9812 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9813 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9814 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9815 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9816 | echo "$as_me: failed program was:" >&5 |
| 9817 | cat conftest.$ac_ext >&5 |
| 9818 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9819 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 9821 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 9822 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 9823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9825 | cat >conftest.$ac_ext <<_ACEOF |
| 9826 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9827 | #include "confdefs.h" |
| 9828 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9829 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9830 | #include <assert.h> |
| 9831 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9832 | #ifdef __cplusplus |
| 9833 | extern "C" |
| 9834 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9835 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9836 | builtin and then its argument prototype would still apply. */ |
| 9837 | char pthread_detach (); |
| 9838 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9840 | #ifdef F77_DUMMY_MAIN |
| 9841 | # ifdef __cplusplus |
| 9842 | extern "C" |
| 9843 | # endif |
| 9844 | int F77_DUMMY_MAIN() { return 1; } |
| 9845 | #endif |
| 9846 | int |
| 9847 | main () |
| 9848 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9849 | /* The GNU C library defines this for functions which it implements |
| 9850 | to always fail with ENOSYS. Some functions are actually named |
| 9851 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 9852 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9853 | choke me |
| 9854 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9855 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9856 | #endif |
| 9857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9858 | ; |
| 9859 | return 0; |
| 9860 | } |
| 9861 | _ACEOF |
| 9862 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9864 | (eval $ac_link) 2>&5 |
| 9865 | ac_status=$? |
| 9866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9867 | (exit $ac_status); } && |
| 9868 | { ac_try='test -s conftest$ac_exeext' |
| 9869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9870 | (eval $ac_try) 2>&5 |
| 9871 | ac_status=$? |
| 9872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9873 | (exit $ac_status); }; }; then |
| 9874 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9876 | echo "$as_me: failed program was:" >&5 |
| 9877 | cat conftest.$ac_ext >&5 |
| 9878 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9879 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9880 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9881 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 9883 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 9884 | if test $ac_cv_func_pthread_detach = yes; then |
| 9885 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9886 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9887 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9888 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9889 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9890 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9891 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9892 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9893 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 9894 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 9895 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 9896 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 9897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9898 | fi |
| 9899 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 9900 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 9901 | else |
| 9902 | # Is the header compilable? |
| 9903 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 9904 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 9905 | cat >conftest.$ac_ext <<_ACEOF |
| 9906 | #line $LINENO "configure" |
| 9907 | #include "confdefs.h" |
| 9908 | $ac_includes_default |
| 9909 | #include <atheos/threads.h> |
| 9910 | _ACEOF |
| 9911 | rm -f conftest.$ac_objext |
| 9912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9913 | (eval $ac_compile) 2>&5 |
| 9914 | ac_status=$? |
| 9915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9916 | (exit $ac_status); } && |
| 9917 | { ac_try='test -s conftest.$ac_objext' |
| 9918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9919 | (eval $ac_try) 2>&5 |
| 9920 | ac_status=$? |
| 9921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9922 | (exit $ac_status); }; }; then |
| 9923 | ac_header_compiler=yes |
| 9924 | else |
| 9925 | echo "$as_me: failed program was:" >&5 |
| 9926 | cat conftest.$ac_ext >&5 |
| 9927 | ac_header_compiler=no |
| 9928 | fi |
| 9929 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9930 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9931 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9932 | |
| 9933 | # Is the header present? |
| 9934 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 9935 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 9936 | cat >conftest.$ac_ext <<_ACEOF |
| 9937 | #line $LINENO "configure" |
| 9938 | #include "confdefs.h" |
| 9939 | #include <atheos/threads.h> |
| 9940 | _ACEOF |
| 9941 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9942 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9943 | ac_status=$? |
| 9944 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9945 | rm -f conftest.er1 |
| 9946 | cat conftest.err >&5 |
| 9947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9948 | (exit $ac_status); } >/dev/null; then |
| 9949 | if test -s conftest.err; then |
| 9950 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9951 | else |
| 9952 | ac_cpp_err= |
| 9953 | fi |
| 9954 | else |
| 9955 | ac_cpp_err=yes |
| 9956 | fi |
| 9957 | if test -z "$ac_cpp_err"; then |
| 9958 | ac_header_preproc=yes |
| 9959 | else |
| 9960 | echo "$as_me: failed program was:" >&5 |
| 9961 | cat conftest.$ac_ext >&5 |
| 9962 | ac_header_preproc=no |
| 9963 | fi |
| 9964 | rm -f conftest.err conftest.$ac_ext |
| 9965 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9966 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9967 | |
| 9968 | # So? What about this header? |
| 9969 | case $ac_header_compiler:$ac_header_preproc in |
| 9970 | yes:no ) |
| 9971 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9972 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9973 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 9974 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 9975 | no:yes ) |
| 9976 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 9977 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 9978 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 9979 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 9980 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 9981 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 9982 | esac |
| 9983 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 9984 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 9985 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 9986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9987 | else |
| 9988 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 9989 | fi |
| 9990 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 9991 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 9992 | |
| 9993 | fi |
| 9994 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 9995 | cat >>confdefs.h <<\_ACEOF |
| 9996 | #define WITH_THREAD 1 |
| 9997 | _ACEOF |
| 9998 | |
| 9999 | |
| 10000 | cat >>confdefs.h <<\_ACEOF |
| 10001 | #define ATHEOS_THREADS 1 |
| 10002 | _ACEOF |
| 10003 | |
| 10004 | THREADOBJ="Python/thread.o" |
| 10005 | else |
| 10006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10007 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10008 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10009 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10010 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10012 | fi |
| 10013 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10014 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10015 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10016 | # Is the header compilable? |
| 10017 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10018 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10019 | cat >conftest.$ac_ext <<_ACEOF |
| 10020 | #line $LINENO "configure" |
| 10021 | #include "confdefs.h" |
| 10022 | $ac_includes_default |
| 10023 | #include <kernel/OS.h> |
| 10024 | _ACEOF |
| 10025 | rm -f conftest.$ac_objext |
| 10026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10027 | (eval $ac_compile) 2>&5 |
| 10028 | ac_status=$? |
| 10029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10030 | (exit $ac_status); } && |
| 10031 | { ac_try='test -s conftest.$ac_objext' |
| 10032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10033 | (eval $ac_try) 2>&5 |
| 10034 | ac_status=$? |
| 10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10036 | (exit $ac_status); }; }; then |
| 10037 | ac_header_compiler=yes |
| 10038 | else |
| 10039 | echo "$as_me: failed program was:" >&5 |
| 10040 | cat conftest.$ac_ext >&5 |
| 10041 | ac_header_compiler=no |
| 10042 | fi |
| 10043 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10044 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10045 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10046 | |
| 10047 | # Is the header present? |
| 10048 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10049 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10050 | cat >conftest.$ac_ext <<_ACEOF |
| 10051 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10052 | #include "confdefs.h" |
| 10053 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10054 | _ACEOF |
| 10055 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10056 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10057 | ac_status=$? |
| 10058 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10059 | rm -f conftest.er1 |
| 10060 | cat conftest.err >&5 |
| 10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10062 | (exit $ac_status); } >/dev/null; then |
| 10063 | if test -s conftest.err; then |
| 10064 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10065 | else |
| 10066 | ac_cpp_err= |
| 10067 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10069 | ac_cpp_err=yes |
| 10070 | fi |
| 10071 | if test -z "$ac_cpp_err"; then |
| 10072 | ac_header_preproc=yes |
| 10073 | else |
| 10074 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10075 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10076 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10077 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10078 | rm -f conftest.err conftest.$ac_ext |
| 10079 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10080 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10081 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10082 | # So? What about this header? |
| 10083 | case $ac_header_compiler:$ac_header_preproc in |
| 10084 | yes:no ) |
| 10085 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10086 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10087 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10088 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10089 | no:yes ) |
| 10090 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10091 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10092 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10093 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10094 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10095 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10096 | esac |
| 10097 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10098 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10099 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10101 | else |
| 10102 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10103 | fi |
| 10104 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10105 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10106 | |
| 10107 | fi |
| 10108 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10109 | cat >>confdefs.h <<\_ACEOF |
| 10110 | #define WITH_THREAD 1 |
| 10111 | _ACEOF |
| 10112 | |
| 10113 | |
| 10114 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10115 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10116 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10117 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10118 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10119 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10121 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10122 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10123 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10125 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10126 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10127 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10128 | cat >conftest.$ac_ext <<_ACEOF |
| 10129 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10130 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10131 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10132 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10133 | #ifdef __cplusplus |
| 10134 | extern "C" |
| 10135 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10136 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10137 | builtin and then its argument prototype would still apply. */ |
| 10138 | char pthread_create (); |
| 10139 | #ifdef F77_DUMMY_MAIN |
| 10140 | # ifdef __cplusplus |
| 10141 | extern "C" |
| 10142 | # endif |
| 10143 | int F77_DUMMY_MAIN() { return 1; } |
| 10144 | #endif |
| 10145 | int |
| 10146 | main () |
| 10147 | { |
| 10148 | pthread_create (); |
| 10149 | ; |
| 10150 | return 0; |
| 10151 | } |
| 10152 | _ACEOF |
| 10153 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10155 | (eval $ac_link) 2>&5 |
| 10156 | ac_status=$? |
| 10157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10158 | (exit $ac_status); } && |
| 10159 | { ac_try='test -s conftest$ac_exeext' |
| 10160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10161 | (eval $ac_try) 2>&5 |
| 10162 | ac_status=$? |
| 10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10164 | (exit $ac_status); }; }; then |
| 10165 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10166 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10167 | echo "$as_me: failed program was:" >&5 |
| 10168 | cat conftest.$ac_ext >&5 |
| 10169 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10170 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10171 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10172 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10173 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10174 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10175 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10176 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10177 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10178 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10179 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10180 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10181 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10182 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10183 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10184 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10186 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10187 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10188 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10191 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10192 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10193 | cat >conftest.$ac_ext <<_ACEOF |
| 10194 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10195 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10197 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10198 | #ifdef __cplusplus |
| 10199 | extern "C" |
| 10200 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10201 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10202 | builtin and then its argument prototype would still apply. */ |
| 10203 | char pthread_create (); |
| 10204 | #ifdef F77_DUMMY_MAIN |
| 10205 | # ifdef __cplusplus |
| 10206 | extern "C" |
| 10207 | # endif |
| 10208 | int F77_DUMMY_MAIN() { return 1; } |
| 10209 | #endif |
| 10210 | int |
| 10211 | main () |
| 10212 | { |
| 10213 | pthread_create (); |
| 10214 | ; |
| 10215 | return 0; |
| 10216 | } |
| 10217 | _ACEOF |
| 10218 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10220 | (eval $ac_link) 2>&5 |
| 10221 | ac_status=$? |
| 10222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10223 | (exit $ac_status); } && |
| 10224 | { ac_try='test -s conftest$ac_exeext' |
| 10225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10226 | (eval $ac_try) 2>&5 |
| 10227 | ac_status=$? |
| 10228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10229 | (exit $ac_status); }; }; then |
| 10230 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10232 | echo "$as_me: failed program was:" >&5 |
| 10233 | cat conftest.$ac_ext >&5 |
| 10234 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10235 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10236 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10237 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10238 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10240 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10241 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10242 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10243 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10244 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10245 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10246 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10247 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10248 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10249 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10252 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10253 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10256 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10257 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10258 | cat >conftest.$ac_ext <<_ACEOF |
| 10259 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10260 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10261 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10262 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10263 | #ifdef __cplusplus |
| 10264 | extern "C" |
| 10265 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10266 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10267 | builtin and then its argument prototype would still apply. */ |
| 10268 | char __d6_pthread_create (); |
| 10269 | #ifdef F77_DUMMY_MAIN |
| 10270 | # ifdef __cplusplus |
| 10271 | extern "C" |
| 10272 | # endif |
| 10273 | int F77_DUMMY_MAIN() { return 1; } |
| 10274 | #endif |
| 10275 | int |
| 10276 | main () |
| 10277 | { |
| 10278 | __d6_pthread_create (); |
| 10279 | ; |
| 10280 | return 0; |
| 10281 | } |
| 10282 | _ACEOF |
| 10283 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10285 | (eval $ac_link) 2>&5 |
| 10286 | ac_status=$? |
| 10287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10288 | (exit $ac_status); } && |
| 10289 | { ac_try='test -s conftest$ac_exeext' |
| 10290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10291 | (eval $ac_try) 2>&5 |
| 10292 | ac_status=$? |
| 10293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10294 | (exit $ac_status); }; }; then |
| 10295 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10297 | echo "$as_me: failed program was:" >&5 |
| 10298 | cat conftest.$ac_ext >&5 |
| 10299 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10300 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10301 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10302 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10303 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10304 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10305 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10306 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10307 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10308 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10309 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10310 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10311 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10312 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10313 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10314 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10316 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10317 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10318 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10320 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10321 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10322 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10323 | cat >conftest.$ac_ext <<_ACEOF |
| 10324 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10325 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10327 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | #ifdef __cplusplus |
| 10329 | extern "C" |
| 10330 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10331 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10332 | builtin and then its argument prototype would still apply. */ |
| 10333 | char __pthread_create_system (); |
| 10334 | #ifdef F77_DUMMY_MAIN |
| 10335 | # ifdef __cplusplus |
| 10336 | extern "C" |
| 10337 | # endif |
| 10338 | int F77_DUMMY_MAIN() { return 1; } |
| 10339 | #endif |
| 10340 | int |
| 10341 | main () |
| 10342 | { |
| 10343 | __pthread_create_system (); |
| 10344 | ; |
| 10345 | return 0; |
| 10346 | } |
| 10347 | _ACEOF |
| 10348 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10350 | (eval $ac_link) 2>&5 |
| 10351 | ac_status=$? |
| 10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10353 | (exit $ac_status); } && |
| 10354 | { ac_try='test -s conftest$ac_exeext' |
| 10355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10356 | (eval $ac_try) 2>&5 |
| 10357 | ac_status=$? |
| 10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10359 | (exit $ac_status); }; }; then |
| 10360 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10361 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10362 | echo "$as_me: failed program was:" >&5 |
| 10363 | cat conftest.$ac_ext >&5 |
| 10364 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10365 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10366 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10367 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10368 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10369 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10370 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10371 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10372 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10373 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10374 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10375 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10376 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10377 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10378 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10379 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10381 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10382 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10383 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10385 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10386 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10387 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10388 | cat >conftest.$ac_ext <<_ACEOF |
| 10389 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10390 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10391 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10392 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10393 | #ifdef __cplusplus |
| 10394 | extern "C" |
| 10395 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10396 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | builtin and then its argument prototype would still apply. */ |
| 10398 | char pthread_create (); |
| 10399 | #ifdef F77_DUMMY_MAIN |
| 10400 | # ifdef __cplusplus |
| 10401 | extern "C" |
| 10402 | # endif |
| 10403 | int F77_DUMMY_MAIN() { return 1; } |
| 10404 | #endif |
| 10405 | int |
| 10406 | main () |
| 10407 | { |
| 10408 | pthread_create (); |
| 10409 | ; |
| 10410 | return 0; |
| 10411 | } |
| 10412 | _ACEOF |
| 10413 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10415 | (eval $ac_link) 2>&5 |
| 10416 | ac_status=$? |
| 10417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10418 | (exit $ac_status); } && |
| 10419 | { ac_try='test -s conftest$ac_exeext' |
| 10420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10421 | (eval $ac_try) 2>&5 |
| 10422 | ac_status=$? |
| 10423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10424 | (exit $ac_status); }; }; then |
| 10425 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10427 | echo "$as_me: failed program was:" >&5 |
| 10428 | cat conftest.$ac_ext >&5 |
| 10429 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10430 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10431 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10432 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10433 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10434 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10435 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10436 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10437 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10438 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10439 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10440 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10441 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10442 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10443 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10444 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10445 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10446 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10447 | fi |
| 10448 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10449 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10450 | fi |
| 10451 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10452 | fi |
| 10453 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10454 | fi |
| 10455 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10456 | fi |
| 10457 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10458 | fi |
| 10459 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10460 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10461 | fi |
| 10462 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10463 | |
| 10464 | fi |
| 10465 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10466 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10467 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10468 | fi; |
| 10469 | fi |
| 10470 | |
| 10471 | |
| 10472 | fi |
| 10473 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10474 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10475 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10476 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10477 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10478 | |
| 10479 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10480 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10481 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10482 | |
| 10483 | fi |
| 10484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10485 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10486 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 10487 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 10488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10489 | else |
| 10490 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10491 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10493 | cat >conftest.$ac_ext <<_ACEOF |
| 10494 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10495 | #include "confdefs.h" |
| 10496 | #include <pthread.h> |
| 10497 | void *foo(void *parm) { |
| 10498 | return NULL; |
| 10499 | } |
| 10500 | main() { |
| 10501 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10502 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10503 | if (pthread_attr_init(&attr)) exit(-1); |
| 10504 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10505 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10506 | exit(0); |
| 10507 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10508 | _ACEOF |
| 10509 | rm -f conftest$ac_exeext |
| 10510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10511 | (eval $ac_link) 2>&5 |
| 10512 | ac_status=$? |
| 10513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10514 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10516 | (eval $ac_try) 2>&5 |
| 10517 | ac_status=$? |
| 10518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10519 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10520 | ac_cv_pthread_system_supported=yes |
| 10521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10522 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10523 | echo "$as_me: failed program was:" >&5 |
| 10524 | cat conftest.$ac_ext >&5 |
| 10525 | ( exit $ac_status ) |
| 10526 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10527 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10528 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10529 | fi |
| 10530 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10531 | fi |
| 10532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10533 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 10534 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10535 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10536 | |
| 10537 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10538 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10539 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10540 | |
| 10541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10542 | |
| 10543 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10544 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10545 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10546 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10547 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10548 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10551 | cat >conftest.$ac_ext <<_ACEOF |
| 10552 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10553 | #include "confdefs.h" |
| 10554 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10555 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10556 | #include <assert.h> |
| 10557 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10558 | #ifdef __cplusplus |
| 10559 | extern "C" |
| 10560 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10561 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10562 | builtin and then its argument prototype would still apply. */ |
| 10563 | char $ac_func (); |
| 10564 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10565 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10566 | #ifdef F77_DUMMY_MAIN |
| 10567 | # ifdef __cplusplus |
| 10568 | extern "C" |
| 10569 | # endif |
| 10570 | int F77_DUMMY_MAIN() { return 1; } |
| 10571 | #endif |
| 10572 | int |
| 10573 | main () |
| 10574 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10575 | /* The GNU C library defines this for functions which it implements |
| 10576 | to always fail with ENOSYS. Some functions are actually named |
| 10577 | something starting with __ and the normal name is an alias. */ |
| 10578 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10579 | choke me |
| 10580 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10581 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10582 | #endif |
| 10583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10584 | ; |
| 10585 | return 0; |
| 10586 | } |
| 10587 | _ACEOF |
| 10588 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10590 | (eval $ac_link) 2>&5 |
| 10591 | ac_status=$? |
| 10592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10593 | (exit $ac_status); } && |
| 10594 | { ac_try='test -s conftest$ac_exeext' |
| 10595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10596 | (eval $ac_try) 2>&5 |
| 10597 | ac_status=$? |
| 10598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10599 | (exit $ac_status); }; }; then |
| 10600 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10602 | echo "$as_me: failed program was:" >&5 |
| 10603 | cat conftest.$ac_ext >&5 |
| 10604 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10605 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10606 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10607 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10608 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10609 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10610 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10611 | cat >>confdefs.h <<_ACEOF |
| 10612 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10613 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10614 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10615 | fi |
| 10616 | done |
| 10617 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10618 | fi |
| 10619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10620 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 10621 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 10622 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 10623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10624 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10625 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10626 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10627 | cat >conftest.$ac_ext <<_ACEOF |
| 10628 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10629 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10630 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10631 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10632 | #ifdef __cplusplus |
| 10633 | extern "C" |
| 10634 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10635 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10636 | builtin and then its argument prototype would still apply. */ |
| 10637 | char usconfig (); |
| 10638 | #ifdef F77_DUMMY_MAIN |
| 10639 | # ifdef __cplusplus |
| 10640 | extern "C" |
| 10641 | # endif |
| 10642 | int F77_DUMMY_MAIN() { return 1; } |
| 10643 | #endif |
| 10644 | int |
| 10645 | main () |
| 10646 | { |
| 10647 | usconfig (); |
| 10648 | ; |
| 10649 | return 0; |
| 10650 | } |
| 10651 | _ACEOF |
| 10652 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10654 | (eval $ac_link) 2>&5 |
| 10655 | ac_status=$? |
| 10656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10657 | (exit $ac_status); } && |
| 10658 | { ac_try='test -s conftest$ac_exeext' |
| 10659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10660 | (eval $ac_try) 2>&5 |
| 10661 | ac_status=$? |
| 10662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10663 | (exit $ac_status); }; }; then |
| 10664 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10666 | echo "$as_me: failed program was:" >&5 |
| 10667 | cat conftest.$ac_ext >&5 |
| 10668 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10669 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10670 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10671 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10672 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10673 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 10674 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 10675 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 10676 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10677 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10678 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10679 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10680 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10681 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10682 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10683 | fi |
| 10684 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10686 | if test $posix_threads != "yes"; then |
| 10687 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 10688 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 10689 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 10690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10691 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10692 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10693 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10694 | cat >conftest.$ac_ext <<_ACEOF |
| 10695 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10696 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10697 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10698 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10699 | #ifdef __cplusplus |
| 10700 | extern "C" |
| 10701 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10702 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10703 | builtin and then its argument prototype would still apply. */ |
| 10704 | char thr_create (); |
| 10705 | #ifdef F77_DUMMY_MAIN |
| 10706 | # ifdef __cplusplus |
| 10707 | extern "C" |
| 10708 | # endif |
| 10709 | int F77_DUMMY_MAIN() { return 1; } |
| 10710 | #endif |
| 10711 | int |
| 10712 | main () |
| 10713 | { |
| 10714 | thr_create (); |
| 10715 | ; |
| 10716 | return 0; |
| 10717 | } |
| 10718 | _ACEOF |
| 10719 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10721 | (eval $ac_link) 2>&5 |
| 10722 | ac_status=$? |
| 10723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10724 | (exit $ac_status); } && |
| 10725 | { ac_try='test -s conftest$ac_exeext' |
| 10726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10727 | (eval $ac_try) 2>&5 |
| 10728 | ac_status=$? |
| 10729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10730 | (exit $ac_status); }; }; then |
| 10731 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10733 | echo "$as_me: failed program was:" >&5 |
| 10734 | cat conftest.$ac_ext >&5 |
| 10735 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10737 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10738 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10739 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10740 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 10741 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 10742 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 10743 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10744 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10745 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10746 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10747 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10748 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10749 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10750 | fi |
| 10751 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10752 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10753 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10754 | if test "$USE_THREAD_MODULE" != "#" |
| 10755 | then |
| 10756 | # If the above checks didn't disable threads, (at least) OSF1 |
| 10757 | # needs this '-threads' argument during linking. |
| 10758 | case $ac_sys_system in |
| 10759 | OSF1) LDLAST=-threads;; |
| 10760 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 10761 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10762 | fi |
| 10763 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10764 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10765 | |
| 10766 | |
| 10767 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 10768 | echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10769 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 10770 | if test "${enable_ipv6+set}" = set; then |
| 10771 | enableval="$enable_ipv6" |
| 10772 | case "$enableval" in |
| 10773 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10774 | echo "$as_me:$LINENO: result: no" >&5 |
| 10775 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10776 | ipv6=no |
| 10777 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10778 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 10779 | echo "${ECHO_T}yes" >&6 |
| 10780 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10781 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10782 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10783 | |
| 10784 | ipv6=yes |
| 10785 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10786 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10788 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10789 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10790 | echo "$as_me:$LINENO: result: no" >&5 |
| 10791 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10792 | ipv6=no |
| 10793 | |
| 10794 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10795 | cat >conftest.$ac_ext <<_ACEOF |
| 10796 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10797 | #include "confdefs.h" |
| 10798 | /* AF_INET6 available check */ |
| 10799 | #include <sys/types.h> |
| 10800 | #include <sys/socket.h> |
| 10801 | main() |
| 10802 | { |
| 10803 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 10804 | exit(1); |
| 10805 | else |
| 10806 | exit(0); |
| 10807 | } |
| 10808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10809 | _ACEOF |
| 10810 | rm -f conftest$ac_exeext |
| 10811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10812 | (eval $ac_link) 2>&5 |
| 10813 | ac_status=$? |
| 10814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10815 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10817 | (eval $ac_try) 2>&5 |
| 10818 | ac_status=$? |
| 10819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10820 | (exit $ac_status); }; }; then |
| 10821 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10822 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10823 | ipv6=yes |
| 10824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10825 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10826 | echo "$as_me: failed program was:" >&5 |
| 10827 | cat conftest.$ac_ext >&5 |
| 10828 | ( exit $ac_status ) |
| 10829 | echo "$as_me:$LINENO: result: no" >&5 |
| 10830 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10831 | ipv6=no |
| 10832 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10833 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10834 | fi |
| 10835 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10836 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10837 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 10838 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 10839 | cat >conftest.$ac_ext <<_ACEOF |
| 10840 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10841 | #include "confdefs.h" |
| 10842 | #include <sys/types.h> |
| 10843 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10844 | #ifdef F77_DUMMY_MAIN |
| 10845 | # ifdef __cplusplus |
| 10846 | extern "C" |
| 10847 | # endif |
| 10848 | int F77_DUMMY_MAIN() { return 1; } |
| 10849 | #endif |
| 10850 | int |
| 10851 | main () |
| 10852 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10853 | struct sockaddr_in6 x; |
| 10854 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10855 | ; |
| 10856 | return 0; |
| 10857 | } |
| 10858 | _ACEOF |
| 10859 | rm -f conftest.$ac_objext |
| 10860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10861 | (eval $ac_compile) 2>&5 |
| 10862 | ac_status=$? |
| 10863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10864 | (exit $ac_status); } && |
| 10865 | { ac_try='test -s conftest.$ac_objext' |
| 10866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10867 | (eval $ac_try) 2>&5 |
| 10868 | ac_status=$? |
| 10869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10870 | (exit $ac_status); }; }; then |
| 10871 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10872 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10873 | ipv6=yes |
| 10874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10875 | echo "$as_me: failed program was:" >&5 |
| 10876 | cat conftest.$ac_ext >&5 |
| 10877 | echo "$as_me:$LINENO: result: no" >&5 |
| 10878 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10879 | ipv6=no |
| 10880 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10881 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10882 | fi |
| 10883 | |
| 10884 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10885 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10886 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10887 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10888 | |
| 10889 | fi |
| 10890 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10892 | |
| 10893 | ipv6type=unknown |
| 10894 | ipv6lib=none |
| 10895 | ipv6trylibc=no |
| 10896 | |
| 10897 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10898 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 10899 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10900 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 10901 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10902 | case $i in |
| 10903 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10904 | cat >conftest.$ac_ext <<_ACEOF |
| 10905 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10906 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10907 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10908 | #include <netinet/in.h> |
| 10909 | #ifdef IPV6_INRIA_VERSION |
| 10910 | yes |
| 10911 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10912 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10913 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10914 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10915 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10916 | fi |
| 10917 | rm -f conftest* |
| 10918 | |
| 10919 | ;; |
| 10920 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10921 | cat >conftest.$ac_ext <<_ACEOF |
| 10922 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10923 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10924 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10925 | #include <netinet/in.h> |
| 10926 | #ifdef __KAME__ |
| 10927 | yes |
| 10928 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10929 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10930 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10931 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10932 | ipv6type=$i; |
| 10933 | ipv6lib=inet6 |
| 10934 | ipv6libdir=/usr/local/v6/lib |
| 10935 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10936 | fi |
| 10937 | rm -f conftest* |
| 10938 | |
| 10939 | ;; |
| 10940 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10941 | cat >conftest.$ac_ext <<_ACEOF |
| 10942 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10943 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10944 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10945 | #include <features.h> |
| 10946 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 10947 | yes |
| 10948 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10949 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10950 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10951 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10952 | ipv6type=$i; |
| 10953 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10954 | fi |
| 10955 | rm -f conftest* |
| 10956 | |
| 10957 | ;; |
| 10958 | linux-inet6) |
| 10959 | if test -d /usr/inet6; then |
| 10960 | ipv6type=$i |
| 10961 | ipv6lib=inet6 |
| 10962 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10963 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10964 | fi |
| 10965 | ;; |
| 10966 | solaris) |
| 10967 | if test -f /etc/netconfig; then |
| 10968 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 10969 | ipv6type=$i |
| 10970 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10971 | fi |
| 10972 | fi |
| 10973 | ;; |
| 10974 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10975 | cat >conftest.$ac_ext <<_ACEOF |
| 10976 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10977 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10978 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10979 | #include <sys/param.h> |
| 10980 | #ifdef _TOSHIBA_INET6 |
| 10981 | yes |
| 10982 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10983 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10985 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10986 | ipv6type=$i; |
| 10987 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10988 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10989 | fi |
| 10990 | rm -f conftest* |
| 10991 | |
| 10992 | ;; |
| 10993 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10994 | cat >conftest.$ac_ext <<_ACEOF |
| 10995 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10996 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10997 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10998 | #include </usr/local/v6/include/sys/v6config.h> |
| 10999 | #ifdef __V6D__ |
| 11000 | yes |
| 11001 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11002 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11003 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11004 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11005 | ipv6type=$i; |
| 11006 | ipv6lib=v6; |
| 11007 | ipv6libdir=/usr/local/v6/lib; |
| 11008 | OPT="-I/usr/local/v6/include $OPT" |
| 11009 | fi |
| 11010 | rm -f conftest* |
| 11011 | |
| 11012 | ;; |
| 11013 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11014 | cat >conftest.$ac_ext <<_ACEOF |
| 11015 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11016 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11017 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11018 | #include <sys/param.h> |
| 11019 | #ifdef _ZETA_MINAMI_INET6 |
| 11020 | yes |
| 11021 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11022 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11023 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11024 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11025 | ipv6type=$i; |
| 11026 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11027 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11028 | fi |
| 11029 | rm -f conftest* |
| 11030 | |
| 11031 | ;; |
| 11032 | esac |
| 11033 | if test "$ipv6type" != "unknown"; then |
| 11034 | break |
| 11035 | fi |
| 11036 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11037 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11038 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11039 | fi |
| 11040 | |
| 11041 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11042 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11043 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11044 | echo "using lib$ipv6lib" |
| 11045 | else |
| 11046 | if test $ipv6trylibc = "yes"; then |
| 11047 | echo "using libc" |
| 11048 | else |
| 11049 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11050 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11051 | echo 'ipv6 kit and compile beforehand.' |
| 11052 | exit 1 |
| 11053 | fi |
| 11054 | fi |
| 11055 | fi |
| 11056 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11057 | # Check for universal newline support |
| 11058 | echo "$as_me:$LINENO: checking for --with-universal-newline" >&5 |
| 11059 | echo $ECHO_N "checking for --with-universal-newline... $ECHO_C" >&6 |
| 11060 | |
| 11061 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11062 | if test "${with_universal_newlines+set}" = set; then |
| 11063 | withval="$with_universal_newlines" |
| 11064 | |
| 11065 | fi; |
| 11066 | |
| 11067 | if test -z "$with_universal_newlines" |
| 11068 | then with_universal_newlines="yes" |
| 11069 | fi |
| 11070 | if test "$with_universal_newlines" != "no" |
| 11071 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11072 | |
| 11073 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11074 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11075 | _ACEOF |
| 11076 | |
| 11077 | fi |
| 11078 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11079 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11080 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11081 | # Check for --with-doc-strings |
| 11082 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11083 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11084 | |
| 11085 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11086 | if test "${with_doc_strings+set}" = set; then |
| 11087 | withval="$with_doc_strings" |
| 11088 | |
| 11089 | fi; |
| 11090 | |
| 11091 | if test -z "$with_doc_strings" |
| 11092 | then with_doc_strings="yes" |
| 11093 | fi |
| 11094 | if test "$with_doc_strings" != "no" |
| 11095 | then |
| 11096 | |
| 11097 | cat >>confdefs.h <<\_ACEOF |
| 11098 | #define WITH_DOC_STRINGS 1 |
| 11099 | _ACEOF |
| 11100 | |
| 11101 | fi |
| 11102 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11103 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11104 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11105 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11106 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11107 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11108 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11109 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11110 | if test "${with_pymalloc+set}" = set; then |
| 11111 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11113 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11114 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11115 | if test -z "$with_pymalloc" |
| 11116 | then with_pymalloc="yes" |
| 11117 | fi |
| 11118 | if test "$with_pymalloc" != "no" |
| 11119 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11120 | |
| 11121 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11122 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11123 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11124 | |
| 11125 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11126 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11127 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11128 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11129 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11130 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11131 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11132 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11133 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11134 | if test "${with_wctype_functions+set}" = set; then |
| 11135 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11136 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11137 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11138 | then |
| 11139 | |
| 11140 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11141 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | _ACEOF |
| 11143 | |
| 11144 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11145 | echo "${ECHO_T}yes" >&6 |
| 11146 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11147 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11148 | fi |
| 11149 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11150 | echo "$as_me:$LINENO: result: no" >&5 |
| 11151 | echo "${ECHO_T}no" >&6 |
| 11152 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11153 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11154 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11155 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11156 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11158 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11159 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11160 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11161 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11162 | if test "${with_sgi_dl+set}" = set; then |
| 11163 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11164 | |
| 11165 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11166 | echo "${ECHO_T}$withval" >&6 |
| 11167 | |
| 11168 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11169 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11170 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11171 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11172 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11173 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11174 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11175 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11176 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11177 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11178 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11179 | fi |
| 11180 | DLINCLDIR=${dldir} |
| 11181 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11182 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11183 | echo "$as_me:$LINENO: result: no" >&5 |
| 11184 | echo "${ECHO_T}no" >&6 |
| 11185 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11188 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11189 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11190 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11191 | if test "${with_dl_dld+set}" = set; then |
| 11192 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11193 | |
| 11194 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11195 | echo "${ECHO_T}$withval" >&6 |
| 11196 | |
| 11197 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11198 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11199 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11200 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11201 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11202 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11203 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11204 | if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11205 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11206 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&5 |
| 11207 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&2;} |
| 11208 | { (exit DLD_DIRECTORY); exit DLD_DIRECTORY; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11209 | fi |
| 11210 | DLINCLDIR=${dldir} |
| 11211 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11212 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11213 | echo "$as_me:$LINENO: result: no" >&5 |
| 11214 | echo "${ECHO_T}no" >&6 |
| 11215 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11216 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11217 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11218 | # 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] | 11219 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11220 | for ac_func in dlopen |
| 11221 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11222 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11223 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11224 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11225 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11227 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11228 | cat >conftest.$ac_ext <<_ACEOF |
| 11229 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11230 | #include "confdefs.h" |
| 11231 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11232 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11233 | #include <assert.h> |
| 11234 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11235 | #ifdef __cplusplus |
| 11236 | extern "C" |
| 11237 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11238 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11239 | builtin and then its argument prototype would still apply. */ |
| 11240 | char $ac_func (); |
| 11241 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11242 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11243 | #ifdef F77_DUMMY_MAIN |
| 11244 | # ifdef __cplusplus |
| 11245 | extern "C" |
| 11246 | # endif |
| 11247 | int F77_DUMMY_MAIN() { return 1; } |
| 11248 | #endif |
| 11249 | int |
| 11250 | main () |
| 11251 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11252 | /* The GNU C library defines this for functions which it implements |
| 11253 | to always fail with ENOSYS. Some functions are actually named |
| 11254 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11255 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11256 | choke me |
| 11257 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11259 | #endif |
| 11260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11261 | ; |
| 11262 | return 0; |
| 11263 | } |
| 11264 | _ACEOF |
| 11265 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11267 | (eval $ac_link) 2>&5 |
| 11268 | ac_status=$? |
| 11269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11270 | (exit $ac_status); } && |
| 11271 | { ac_try='test -s conftest$ac_exeext' |
| 11272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11273 | (eval $ac_try) 2>&5 |
| 11274 | ac_status=$? |
| 11275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11276 | (exit $ac_status); }; }; then |
| 11277 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11278 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11279 | echo "$as_me: failed program was:" >&5 |
| 11280 | cat conftest.$ac_ext >&5 |
| 11281 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11282 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11283 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11284 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11285 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11286 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11287 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11288 | cat >>confdefs.h <<_ACEOF |
| 11289 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11290 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11291 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11292 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11293 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11294 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11295 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11296 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11297 | # loading of modules. |
| 11298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11299 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11300 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11301 | if test -z "$DYNLOADFILE" |
| 11302 | then |
| 11303 | case $ac_sys_system/$ac_sys_release in |
| 11304 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11305 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11306 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11307 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11308 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11309 | *) |
| 11310 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11311 | # out any dynamic loading |
| 11312 | if test "$ac_cv_func_dlopen" = yes |
| 11313 | then DYNLOADFILE="dynload_shlib.o" |
| 11314 | else DYNLOADFILE="dynload_stub.o" |
| 11315 | fi |
| 11316 | ;; |
| 11317 | esac |
| 11318 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11319 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11320 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11321 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11322 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11323 | |
| 11324 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11325 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11326 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11327 | |
| 11328 | fi |
| 11329 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11330 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11331 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11333 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11334 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11335 | if test -z "$MACHDEP_OBJS" |
| 11336 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11337 | MACHDEP_OBJS=$extra_machdep_objs |
| 11338 | else |
| 11339 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11340 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11341 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11342 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11343 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11344 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11345 | |
| 11346 | |
| 11347 | |
| 11348 | |
| 11349 | |
| 11350 | |
| 11351 | |
| 11352 | |
| 11353 | |
| 11354 | |
| 11355 | |
| 11356 | |
| 11357 | |
| 11358 | |
| 11359 | |
| 11360 | |
| 11361 | |
| 11362 | |
| 11363 | |
| 11364 | |
| 11365 | |
| 11366 | |
| 11367 | |
| 11368 | |
| 11369 | |
| 11370 | |
| 11371 | |
| 11372 | |
| 11373 | |
| 11374 | |
| 11375 | |
| 11376 | |
| 11377 | |
| 11378 | |
| 11379 | |
| 11380 | |
| 11381 | |
| 11382 | |
| 11383 | |
| 11384 | |
| 11385 | |
| 11386 | |
| 11387 | |
| 11388 | |
| 11389 | |
| 11390 | |
| 11391 | |
| 11392 | |
| 11393 | |
| 11394 | |
| 11395 | |
| 11396 | |
| 11397 | |
| 11398 | |
| 11399 | |
| 11400 | |
| 11401 | |
| 11402 | |
| 11403 | |
| 11404 | |
| 11405 | |
| 11406 | |
| 11407 | |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | |
| 11412 | |
| 11413 | |
| 11414 | |
| 11415 | |
| 11416 | |
| 11417 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11418 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11419 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 11420 | |
Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 11421 | for ac_func in alarm chown chroot clock confstr ctermid ctermid_r execv \ |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11422 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 606edc1 | 2002-06-13 21:09:11 +0000 | [diff] [blame] | 11423 | gai_strerror getgroups getlogin getpeername getpgid getpid getpwent getwd \ |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11424 | hstrerror inet_pton kill killpg link lstat mkfifo mknod mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 11425 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11426 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11427 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11428 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Michael W. Hudson | 065c1a2 | 2002-06-06 13:03:44 +0000 | [diff] [blame] | 11429 | sigaction siginterrupt sigrelse strftime strptime symlink \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11430 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Guido van Rossum | c524d95 | 2001-10-19 01:31:59 +0000 | [diff] [blame] | 11431 | truncate uname unsetenv waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11432 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11433 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11434 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11435 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11436 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11439 | cat >conftest.$ac_ext <<_ACEOF |
| 11440 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11441 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11442 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11443 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11444 | #include <assert.h> |
| 11445 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11446 | #ifdef __cplusplus |
| 11447 | extern "C" |
| 11448 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11449 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11450 | builtin and then its argument prototype would still apply. */ |
| 11451 | char $ac_func (); |
| 11452 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11454 | #ifdef F77_DUMMY_MAIN |
| 11455 | # ifdef __cplusplus |
| 11456 | extern "C" |
| 11457 | # endif |
| 11458 | int F77_DUMMY_MAIN() { return 1; } |
| 11459 | #endif |
| 11460 | int |
| 11461 | main () |
| 11462 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11463 | /* The GNU C library defines this for functions which it implements |
| 11464 | to always fail with ENOSYS. Some functions are actually named |
| 11465 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11466 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11467 | choke me |
| 11468 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11469 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11470 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11472 | ; |
| 11473 | return 0; |
| 11474 | } |
| 11475 | _ACEOF |
| 11476 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11478 | (eval $ac_link) 2>&5 |
| 11479 | ac_status=$? |
| 11480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11481 | (exit $ac_status); } && |
| 11482 | { ac_try='test -s conftest$ac_exeext' |
| 11483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11484 | (eval $ac_try) 2>&5 |
| 11485 | ac_status=$? |
| 11486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11487 | (exit $ac_status); }; }; then |
| 11488 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11489 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11490 | echo "$as_me: failed program was:" >&5 |
| 11491 | cat conftest.$ac_ext >&5 |
| 11492 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11493 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11494 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11495 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11496 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11497 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11498 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11499 | cat >>confdefs.h <<_ACEOF |
| 11500 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11501 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11502 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11503 | fi |
| 11504 | done |
| 11505 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11506 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11507 | # check for openpty and forkpty |
| 11508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11509 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11510 | for ac_func in openpty |
| 11511 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11512 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11513 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11514 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11515 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11517 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11518 | cat >conftest.$ac_ext <<_ACEOF |
| 11519 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11520 | #include "confdefs.h" |
| 11521 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11522 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11523 | #include <assert.h> |
| 11524 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | #ifdef __cplusplus |
| 11526 | extern "C" |
| 11527 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11528 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11529 | builtin and then its argument prototype would still apply. */ |
| 11530 | char $ac_func (); |
| 11531 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11533 | #ifdef F77_DUMMY_MAIN |
| 11534 | # ifdef __cplusplus |
| 11535 | extern "C" |
| 11536 | # endif |
| 11537 | int F77_DUMMY_MAIN() { return 1; } |
| 11538 | #endif |
| 11539 | int |
| 11540 | main () |
| 11541 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11542 | /* The GNU C library defines this for functions which it implements |
| 11543 | to always fail with ENOSYS. Some functions are actually named |
| 11544 | something starting with __ and the normal name is an alias. */ |
| 11545 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11546 | choke me |
| 11547 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11548 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11549 | #endif |
| 11550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11551 | ; |
| 11552 | return 0; |
| 11553 | } |
| 11554 | _ACEOF |
| 11555 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11557 | (eval $ac_link) 2>&5 |
| 11558 | ac_status=$? |
| 11559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11560 | (exit $ac_status); } && |
| 11561 | { ac_try='test -s conftest$ac_exeext' |
| 11562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11563 | (eval $ac_try) 2>&5 |
| 11564 | ac_status=$? |
| 11565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11566 | (exit $ac_status); }; }; then |
| 11567 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11569 | echo "$as_me: failed program was:" >&5 |
| 11570 | cat conftest.$ac_ext >&5 |
| 11571 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11572 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11573 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11574 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11576 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11577 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11578 | cat >>confdefs.h <<_ACEOF |
| 11579 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11580 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11581 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11583 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 11584 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 11585 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 11586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11587 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11588 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11589 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11590 | cat >conftest.$ac_ext <<_ACEOF |
| 11591 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11592 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11593 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11594 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11595 | #ifdef __cplusplus |
| 11596 | extern "C" |
| 11597 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11598 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11599 | builtin and then its argument prototype would still apply. */ |
| 11600 | char openpty (); |
| 11601 | #ifdef F77_DUMMY_MAIN |
| 11602 | # ifdef __cplusplus |
| 11603 | extern "C" |
| 11604 | # endif |
| 11605 | int F77_DUMMY_MAIN() { return 1; } |
| 11606 | #endif |
| 11607 | int |
| 11608 | main () |
| 11609 | { |
| 11610 | openpty (); |
| 11611 | ; |
| 11612 | return 0; |
| 11613 | } |
| 11614 | _ACEOF |
| 11615 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11617 | (eval $ac_link) 2>&5 |
| 11618 | ac_status=$? |
| 11619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11620 | (exit $ac_status); } && |
| 11621 | { ac_try='test -s conftest$ac_exeext' |
| 11622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11623 | (eval $ac_try) 2>&5 |
| 11624 | ac_status=$? |
| 11625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11626 | (exit $ac_status); }; }; then |
| 11627 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11629 | echo "$as_me: failed program was:" >&5 |
| 11630 | cat conftest.$ac_ext >&5 |
| 11631 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11632 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11633 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11634 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11635 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11636 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 11637 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 11638 | if test $ac_cv_lib_util_openpty = yes; then |
| 11639 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11640 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11641 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11642 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11643 | fi |
| 11644 | |
| 11645 | fi |
| 11646 | done |
| 11647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11649 | for ac_func in forkpty |
| 11650 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11652 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11653 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11654 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11657 | cat >conftest.$ac_ext <<_ACEOF |
| 11658 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11659 | #include "confdefs.h" |
| 11660 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11661 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11662 | #include <assert.h> |
| 11663 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11664 | #ifdef __cplusplus |
| 11665 | extern "C" |
| 11666 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11667 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | builtin and then its argument prototype would still apply. */ |
| 11669 | char $ac_func (); |
| 11670 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11672 | #ifdef F77_DUMMY_MAIN |
| 11673 | # ifdef __cplusplus |
| 11674 | extern "C" |
| 11675 | # endif |
| 11676 | int F77_DUMMY_MAIN() { return 1; } |
| 11677 | #endif |
| 11678 | int |
| 11679 | main () |
| 11680 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11681 | /* The GNU C library defines this for functions which it implements |
| 11682 | to always fail with ENOSYS. Some functions are actually named |
| 11683 | something starting with __ and the normal name is an alias. */ |
| 11684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11685 | choke me |
| 11686 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11687 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11688 | #endif |
| 11689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11690 | ; |
| 11691 | return 0; |
| 11692 | } |
| 11693 | _ACEOF |
| 11694 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11696 | (eval $ac_link) 2>&5 |
| 11697 | ac_status=$? |
| 11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11699 | (exit $ac_status); } && |
| 11700 | { ac_try='test -s conftest$ac_exeext' |
| 11701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11702 | (eval $ac_try) 2>&5 |
| 11703 | ac_status=$? |
| 11704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11705 | (exit $ac_status); }; }; then |
| 11706 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11708 | echo "$as_me: failed program was:" >&5 |
| 11709 | cat conftest.$ac_ext >&5 |
| 11710 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11711 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11712 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11713 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11714 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11715 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11716 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11717 | cat >>confdefs.h <<_ACEOF |
| 11718 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11719 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11720 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11722 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 11723 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 11724 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 11725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11727 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11728 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11729 | cat >conftest.$ac_ext <<_ACEOF |
| 11730 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11731 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11732 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11733 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11734 | #ifdef __cplusplus |
| 11735 | extern "C" |
| 11736 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11737 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11738 | builtin and then its argument prototype would still apply. */ |
| 11739 | char forkpty (); |
| 11740 | #ifdef F77_DUMMY_MAIN |
| 11741 | # ifdef __cplusplus |
| 11742 | extern "C" |
| 11743 | # endif |
| 11744 | int F77_DUMMY_MAIN() { return 1; } |
| 11745 | #endif |
| 11746 | int |
| 11747 | main () |
| 11748 | { |
| 11749 | forkpty (); |
| 11750 | ; |
| 11751 | return 0; |
| 11752 | } |
| 11753 | _ACEOF |
| 11754 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11756 | (eval $ac_link) 2>&5 |
| 11757 | ac_status=$? |
| 11758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11759 | (exit $ac_status); } && |
| 11760 | { ac_try='test -s conftest$ac_exeext' |
| 11761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11762 | (eval $ac_try) 2>&5 |
| 11763 | ac_status=$? |
| 11764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11765 | (exit $ac_status); }; }; then |
| 11766 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11768 | echo "$as_me: failed program was:" >&5 |
| 11769 | cat conftest.$ac_ext >&5 |
| 11770 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11771 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11772 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11773 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11774 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11775 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 11776 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 11777 | if test $ac_cv_lib_util_forkpty = yes; then |
| 11778 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11779 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11780 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11781 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11782 | fi |
| 11783 | |
| 11784 | fi |
| 11785 | done |
| 11786 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11787 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11788 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11789 | |
| 11790 | |
| 11791 | |
| 11792 | |
| 11793 | |
| 11794 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11795 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 11796 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11797 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11798 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11799 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11800 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11802 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11803 | cat >conftest.$ac_ext <<_ACEOF |
| 11804 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11805 | #include "confdefs.h" |
| 11806 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11807 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11808 | #include <assert.h> |
| 11809 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11810 | #ifdef __cplusplus |
| 11811 | extern "C" |
| 11812 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11813 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11814 | builtin and then its argument prototype would still apply. */ |
| 11815 | char $ac_func (); |
| 11816 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11818 | #ifdef F77_DUMMY_MAIN |
| 11819 | # ifdef __cplusplus |
| 11820 | extern "C" |
| 11821 | # endif |
| 11822 | int F77_DUMMY_MAIN() { return 1; } |
| 11823 | #endif |
| 11824 | int |
| 11825 | main () |
| 11826 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11827 | /* The GNU C library defines this for functions which it implements |
| 11828 | to always fail with ENOSYS. Some functions are actually named |
| 11829 | something starting with __ and the normal name is an alias. */ |
| 11830 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11831 | choke me |
| 11832 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11833 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11834 | #endif |
| 11835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11836 | ; |
| 11837 | return 0; |
| 11838 | } |
| 11839 | _ACEOF |
| 11840 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11842 | (eval $ac_link) 2>&5 |
| 11843 | ac_status=$? |
| 11844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11845 | (exit $ac_status); } && |
| 11846 | { ac_try='test -s conftest$ac_exeext' |
| 11847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11848 | (eval $ac_try) 2>&5 |
| 11849 | ac_status=$? |
| 11850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11851 | (exit $ac_status); }; }; then |
| 11852 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11854 | echo "$as_me: failed program was:" >&5 |
| 11855 | cat conftest.$ac_ext >&5 |
| 11856 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11857 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11859 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11860 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11861 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11862 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11863 | cat >>confdefs.h <<_ACEOF |
| 11864 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11865 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11866 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11867 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11868 | done |
| 11869 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11871 | |
| 11872 | |
| 11873 | |
| 11874 | |
| 11875 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11876 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11877 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11878 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11879 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11880 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11881 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11883 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11884 | cat >conftest.$ac_ext <<_ACEOF |
| 11885 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11886 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11887 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11888 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11889 | #include <assert.h> |
| 11890 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11891 | #ifdef __cplusplus |
| 11892 | extern "C" |
| 11893 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11894 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11895 | builtin and then its argument prototype would still apply. */ |
| 11896 | char $ac_func (); |
| 11897 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11898 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11899 | #ifdef F77_DUMMY_MAIN |
| 11900 | # ifdef __cplusplus |
| 11901 | extern "C" |
| 11902 | # endif |
| 11903 | int F77_DUMMY_MAIN() { return 1; } |
| 11904 | #endif |
| 11905 | int |
| 11906 | main () |
| 11907 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11908 | /* The GNU C library defines this for functions which it implements |
| 11909 | to always fail with ENOSYS. Some functions are actually named |
| 11910 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11911 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11912 | choke me |
| 11913 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11914 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11915 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11917 | ; |
| 11918 | return 0; |
| 11919 | } |
| 11920 | _ACEOF |
| 11921 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11923 | (eval $ac_link) 2>&5 |
| 11924 | ac_status=$? |
| 11925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11926 | (exit $ac_status); } && |
| 11927 | { ac_try='test -s conftest$ac_exeext' |
| 11928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11929 | (eval $ac_try) 2>&5 |
| 11930 | ac_status=$? |
| 11931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11932 | (exit $ac_status); }; }; then |
| 11933 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11934 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11935 | echo "$as_me: failed program was:" >&5 |
| 11936 | cat conftest.$ac_ext >&5 |
| 11937 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11938 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11939 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11940 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11942 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11943 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11944 | cat >>confdefs.h <<_ACEOF |
| 11945 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11946 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11947 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11949 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11950 | fi |
| 11951 | done |
| 11952 | |
| 11953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11954 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11955 | for ac_func in getpgrp |
| 11956 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11957 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11958 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11959 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11960 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11962 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11963 | cat >conftest.$ac_ext <<_ACEOF |
| 11964 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11965 | #include "confdefs.h" |
| 11966 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11967 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11968 | #include <assert.h> |
| 11969 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11970 | #ifdef __cplusplus |
| 11971 | extern "C" |
| 11972 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11973 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11974 | builtin and then its argument prototype would still apply. */ |
| 11975 | char $ac_func (); |
| 11976 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11978 | #ifdef F77_DUMMY_MAIN |
| 11979 | # ifdef __cplusplus |
| 11980 | extern "C" |
| 11981 | # endif |
| 11982 | int F77_DUMMY_MAIN() { return 1; } |
| 11983 | #endif |
| 11984 | int |
| 11985 | main () |
| 11986 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11987 | /* The GNU C library defines this for functions which it implements |
| 11988 | to always fail with ENOSYS. Some functions are actually named |
| 11989 | something starting with __ and the normal name is an alias. */ |
| 11990 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11991 | choke me |
| 11992 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11993 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11994 | #endif |
| 11995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11996 | ; |
| 11997 | return 0; |
| 11998 | } |
| 11999 | _ACEOF |
| 12000 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12002 | (eval $ac_link) 2>&5 |
| 12003 | ac_status=$? |
| 12004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12005 | (exit $ac_status); } && |
| 12006 | { ac_try='test -s conftest$ac_exeext' |
| 12007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12008 | (eval $ac_try) 2>&5 |
| 12009 | ac_status=$? |
| 12010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12011 | (exit $ac_status); }; }; then |
| 12012 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12014 | echo "$as_me: failed program was:" >&5 |
| 12015 | cat conftest.$ac_ext >&5 |
| 12016 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12017 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12018 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12019 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12020 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12021 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12022 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12023 | cat >>confdefs.h <<_ACEOF |
| 12024 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12025 | _ACEOF |
| 12026 | cat >conftest.$ac_ext <<_ACEOF |
| 12027 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12028 | #include "confdefs.h" |
| 12029 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12030 | #ifdef F77_DUMMY_MAIN |
| 12031 | # ifdef __cplusplus |
| 12032 | extern "C" |
| 12033 | # endif |
| 12034 | int F77_DUMMY_MAIN() { return 1; } |
| 12035 | #endif |
| 12036 | int |
| 12037 | main () |
| 12038 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12039 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | ; |
| 12041 | return 0; |
| 12042 | } |
| 12043 | _ACEOF |
| 12044 | rm -f conftest.$ac_objext |
| 12045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12046 | (eval $ac_compile) 2>&5 |
| 12047 | ac_status=$? |
| 12048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12049 | (exit $ac_status); } && |
| 12050 | { ac_try='test -s conftest.$ac_objext' |
| 12051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12052 | (eval $ac_try) 2>&5 |
| 12053 | ac_status=$? |
| 12054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12055 | (exit $ac_status); }; }; then |
| 12056 | |
| 12057 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12058 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12059 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12061 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12062 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12063 | echo "$as_me: failed program was:" >&5 |
| 12064 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12066 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12067 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12068 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12069 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12070 | |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 12071 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 12072 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 12073 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12075 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 12076 | if test "$cross_compiling" = yes; then |
| 12077 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 12078 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 12079 | { (exit 1); exit 1; }; } |
| 12080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12081 | cat >conftest.$ac_ext <<_ACEOF |
| 12082 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12083 | #include "confdefs.h" |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 12084 | #if HAVE_UNISTD_H |
| 12085 | # include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12086 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12088 | #ifdef F77_DUMMY_MAIN |
| 12089 | # ifdef __cplusplus |
| 12090 | extern "C" |
| 12091 | # endif |
| 12092 | int F77_DUMMY_MAIN() { return 1; } |
| 12093 | #endif |
| 12094 | int |
| 12095 | main () |
| 12096 | { |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 12097 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 12098 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 12099 | exit successfully. */ |
| 12100 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12101 | ; |
| 12102 | return 0; |
| 12103 | } |
| 12104 | _ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 12105 | rm -f conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12107 | (eval $ac_link) 2>&5 |
| 12108 | ac_status=$? |
| 12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 12110 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12112 | (eval $ac_try) 2>&5 |
| 12113 | ac_status=$? |
| 12114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12115 | (exit $ac_status); }; }; then |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 12116 | ac_cv_func_setpgrp_void=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12117 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 12118 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12119 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12120 | cat conftest.$ac_ext >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 12121 | ( exit $ac_status ) |
| 12122 | ac_cv_func_setpgrp_void=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12123 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 12124 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12125 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 12126 | fi |
| 12127 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 12128 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 12129 | if test $ac_cv_func_setpgrp_void = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12130 | |
| 12131 | cat >>confdefs.h <<\_ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame^] | 12132 | #define SETPGRP_VOID 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12133 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12134 | |
| 12135 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12137 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12138 | for ac_func in gettimeofday |
| 12139 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12140 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12141 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12142 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12143 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12146 | cat >conftest.$ac_ext <<_ACEOF |
| 12147 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12148 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12149 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12150 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12151 | #include <assert.h> |
| 12152 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12153 | #ifdef __cplusplus |
| 12154 | extern "C" |
| 12155 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12156 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12157 | builtin and then its argument prototype would still apply. */ |
| 12158 | char $ac_func (); |
| 12159 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 | #ifdef F77_DUMMY_MAIN |
| 12162 | # ifdef __cplusplus |
| 12163 | extern "C" |
| 12164 | # endif |
| 12165 | int F77_DUMMY_MAIN() { return 1; } |
| 12166 | #endif |
| 12167 | int |
| 12168 | main () |
| 12169 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12170 | /* The GNU C library defines this for functions which it implements |
| 12171 | to always fail with ENOSYS. Some functions are actually named |
| 12172 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12173 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12174 | choke me |
| 12175 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12176 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12177 | #endif |
| 12178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12179 | ; |
| 12180 | return 0; |
| 12181 | } |
| 12182 | _ACEOF |
| 12183 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12185 | (eval $ac_link) 2>&5 |
| 12186 | ac_status=$? |
| 12187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12188 | (exit $ac_status); } && |
| 12189 | { ac_try='test -s conftest$ac_exeext' |
| 12190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12191 | (eval $ac_try) 2>&5 |
| 12192 | ac_status=$? |
| 12193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12194 | (exit $ac_status); }; }; then |
| 12195 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12197 | echo "$as_me: failed program was:" >&5 |
| 12198 | cat conftest.$ac_ext >&5 |
| 12199 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12200 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12202 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12203 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12204 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12205 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12206 | cat >>confdefs.h <<_ACEOF |
| 12207 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12208 | _ACEOF |
| 12209 | cat >conftest.$ac_ext <<_ACEOF |
| 12210 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12211 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12212 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12213 | #ifdef F77_DUMMY_MAIN |
| 12214 | # ifdef __cplusplus |
| 12215 | extern "C" |
| 12216 | # endif |
| 12217 | int F77_DUMMY_MAIN() { return 1; } |
| 12218 | #endif |
| 12219 | int |
| 12220 | main () |
| 12221 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12222 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12223 | ; |
| 12224 | return 0; |
| 12225 | } |
| 12226 | _ACEOF |
| 12227 | rm -f conftest.$ac_objext |
| 12228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12229 | (eval $ac_compile) 2>&5 |
| 12230 | ac_status=$? |
| 12231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12232 | (exit $ac_status); } && |
| 12233 | { ac_try='test -s conftest.$ac_objext' |
| 12234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12235 | (eval $ac_try) 2>&5 |
| 12236 | ac_status=$? |
| 12237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12238 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12239 | : |
| 12240 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12241 | echo "$as_me: failed program was:" >&5 |
| 12242 | cat conftest.$ac_ext >&5 |
| 12243 | |
| 12244 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12245 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12246 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12247 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12248 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12249 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12250 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12251 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12252 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12253 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12254 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12255 | |
| 12256 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12257 | # 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] | 12258 | # for [no]getaddrinfo in netdb.h. |
| 12259 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 12260 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 12261 | cat >conftest.$ac_ext <<_ACEOF |
| 12262 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12263 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12264 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12265 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12266 | #include <sys/socket.h> |
| 12267 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12268 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12270 | #ifdef F77_DUMMY_MAIN |
| 12271 | # ifdef __cplusplus |
| 12272 | extern "C" |
| 12273 | # endif |
| 12274 | int F77_DUMMY_MAIN() { return 1; } |
| 12275 | #endif |
| 12276 | int |
| 12277 | main () |
| 12278 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12279 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12280 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12282 | ; |
| 12283 | return 0; |
| 12284 | } |
| 12285 | _ACEOF |
| 12286 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12288 | (eval $ac_link) 2>&5 |
| 12289 | ac_status=$? |
| 12290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12291 | (exit $ac_status); } && |
| 12292 | { ac_try='test -s conftest$ac_exeext' |
| 12293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12294 | (eval $ac_try) 2>&5 |
| 12295 | ac_status=$? |
| 12296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12297 | (exit $ac_status); }; }; then |
| 12298 | |
| 12299 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12300 | echo "${ECHO_T}yes" >&6 |
| 12301 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 12302 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12303 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12304 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12305 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12306 | buggygetaddrinfo=yes |
| 12307 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12308 | cat >conftest.$ac_ext <<_ACEOF |
| 12309 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12310 | #include "confdefs.h" |
| 12311 | |
| 12312 | #include <sys/types.h> |
| 12313 | #include <netdb.h> |
| 12314 | #include <string.h> |
| 12315 | #include <sys/socket.h> |
| 12316 | #include <netinet/in.h> |
| 12317 | |
| 12318 | main() |
| 12319 | { |
| 12320 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12321 | struct addrinfo hints, *ai, *aitop; |
| 12322 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12323 | |
| 12324 | for (passive = 0; passive <= 1; passive++) { |
| 12325 | memset(&hints, 0, sizeof(hints)); |
| 12326 | hints.ai_family = AF_UNSPEC; |
| 12327 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12328 | hints.ai_socktype = SOCK_STREAM; |
| 12329 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12330 | (void)gai_strerror(gaierr); |
| 12331 | goto bad; |
| 12332 | } |
| 12333 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12334 | if (ai->ai_addr == NULL || |
| 12335 | ai->ai_addrlen == 0 || |
| 12336 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12337 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12338 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12339 | goto bad; |
| 12340 | } |
| 12341 | switch (ai->ai_family) { |
| 12342 | case AF_INET: |
| 12343 | if (strcmp(strport, "54321") != 0) { |
| 12344 | goto bad; |
| 12345 | } |
| 12346 | if (passive) { |
| 12347 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12348 | goto bad; |
| 12349 | } |
| 12350 | } else { |
| 12351 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12352 | goto bad; |
| 12353 | } |
| 12354 | } |
| 12355 | inet4++; |
| 12356 | break; |
| 12357 | case AF_INET6: |
| 12358 | if (strcmp(strport, "54321") != 0) { |
| 12359 | goto bad; |
| 12360 | } |
| 12361 | if (passive) { |
| 12362 | if (strcmp(straddr, "::") != 0) { |
| 12363 | goto bad; |
| 12364 | } |
| 12365 | } else { |
| 12366 | if (strcmp(straddr, "::1") != 0) { |
| 12367 | goto bad; |
| 12368 | } |
| 12369 | } |
| 12370 | inet6++; |
| 12371 | break; |
| 12372 | case AF_UNSPEC: |
| 12373 | goto bad; |
| 12374 | break; |
| 12375 | default: |
| 12376 | /* another family support? */ |
| 12377 | break; |
| 12378 | } |
| 12379 | } |
| 12380 | } |
| 12381 | |
| 12382 | if (!(inet4 == 0 || inet4 == 2)) |
| 12383 | goto bad; |
| 12384 | if (!(inet6 == 0 || inet6 == 2)) |
| 12385 | goto bad; |
| 12386 | |
| 12387 | if (aitop) |
| 12388 | freeaddrinfo(aitop); |
| 12389 | exit(0); |
| 12390 | |
| 12391 | bad: |
| 12392 | if (aitop) |
| 12393 | freeaddrinfo(aitop); |
| 12394 | exit(1); |
| 12395 | } |
| 12396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12397 | _ACEOF |
| 12398 | rm -f conftest$ac_exeext |
| 12399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12400 | (eval $ac_link) 2>&5 |
| 12401 | ac_status=$? |
| 12402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12403 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12405 | (eval $ac_try) 2>&5 |
| 12406 | ac_status=$? |
| 12407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12408 | (exit $ac_status); }; }; then |
| 12409 | echo "$as_me:$LINENO: result: good" >&5 |
| 12410 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12411 | buggygetaddrinfo=no |
| 12412 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12413 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12414 | echo "$as_me: failed program was:" >&5 |
| 12415 | cat conftest.$ac_ext >&5 |
| 12416 | ( exit $ac_status ) |
| 12417 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12418 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12419 | buggygetaddrinfo=yes |
| 12420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12421 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12422 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12424 | echo "$as_me: failed program was:" >&5 |
| 12425 | cat conftest.$ac_ext >&5 |
| 12426 | |
| 12427 | echo "$as_me:$LINENO: result: no" >&5 |
| 12428 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12429 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12430 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12431 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12432 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12433 | |
| 12434 | if test "$buggygetaddrinfo" = "yes"; then |
| 12435 | if test "$ipv6" = "yes"; then |
| 12436 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 12437 | echo ' or you can specify "--disable-ipv6"'. |
| 12438 | exit 1 |
| 12439 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12440 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12441 | |
| 12442 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12443 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12444 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12445 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12446 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12447 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12448 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12449 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12450 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12451 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12452 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12453 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12455 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12456 | cat >conftest.$ac_ext <<_ACEOF |
| 12457 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12458 | #include "confdefs.h" |
| 12459 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12460 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12461 | #include <assert.h> |
| 12462 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12463 | #ifdef __cplusplus |
| 12464 | extern "C" |
| 12465 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12466 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12467 | builtin and then its argument prototype would still apply. */ |
| 12468 | char $ac_func (); |
| 12469 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12470 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12471 | #ifdef F77_DUMMY_MAIN |
| 12472 | # ifdef __cplusplus |
| 12473 | extern "C" |
| 12474 | # endif |
| 12475 | int F77_DUMMY_MAIN() { return 1; } |
| 12476 | #endif |
| 12477 | int |
| 12478 | main () |
| 12479 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12480 | /* The GNU C library defines this for functions which it implements |
| 12481 | to always fail with ENOSYS. Some functions are actually named |
| 12482 | something starting with __ and the normal name is an alias. */ |
| 12483 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12484 | choke me |
| 12485 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12486 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12487 | #endif |
| 12488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12489 | ; |
| 12490 | return 0; |
| 12491 | } |
| 12492 | _ACEOF |
| 12493 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12495 | (eval $ac_link) 2>&5 |
| 12496 | ac_status=$? |
| 12497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12498 | (exit $ac_status); } && |
| 12499 | { ac_try='test -s conftest$ac_exeext' |
| 12500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12501 | (eval $ac_try) 2>&5 |
| 12502 | ac_status=$? |
| 12503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12504 | (exit $ac_status); }; }; then |
| 12505 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12506 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12507 | echo "$as_me: failed program was:" >&5 |
| 12508 | cat conftest.$ac_ext >&5 |
| 12509 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12510 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12511 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12512 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12514 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12515 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12516 | cat >>confdefs.h <<_ACEOF |
| 12517 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12518 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12519 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12520 | fi |
| 12521 | done |
| 12522 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12523 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12524 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12525 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 12526 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12527 | if test "${ac_cv_header_time+set}" = set; then |
| 12528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12530 | cat >conftest.$ac_ext <<_ACEOF |
| 12531 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12532 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12533 | #include <sys/types.h> |
| 12534 | #include <sys/time.h> |
| 12535 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12536 | |
| 12537 | #ifdef F77_DUMMY_MAIN |
| 12538 | # ifdef __cplusplus |
| 12539 | extern "C" |
| 12540 | # endif |
| 12541 | int F77_DUMMY_MAIN() { return 1; } |
| 12542 | #endif |
| 12543 | int |
| 12544 | main () |
| 12545 | { |
| 12546 | if ((struct tm *) 0) |
| 12547 | return 0; |
| 12548 | ; |
| 12549 | return 0; |
| 12550 | } |
| 12551 | _ACEOF |
| 12552 | rm -f conftest.$ac_objext |
| 12553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12554 | (eval $ac_compile) 2>&5 |
| 12555 | ac_status=$? |
| 12556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12557 | (exit $ac_status); } && |
| 12558 | { ac_try='test -s conftest.$ac_objext' |
| 12559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12560 | (eval $ac_try) 2>&5 |
| 12561 | ac_status=$? |
| 12562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12563 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12564 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12566 | echo "$as_me: failed program was:" >&5 |
| 12567 | cat conftest.$ac_ext >&5 |
| 12568 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12569 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12570 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12571 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12572 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12573 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12574 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12575 | |
| 12576 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12577 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12578 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12579 | |
| 12580 | fi |
| 12581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12582 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 12583 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 12584 | if test "${ac_cv_struct_tm+set}" = set; then |
| 12585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12586 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12587 | cat >conftest.$ac_ext <<_ACEOF |
| 12588 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12589 | #include "confdefs.h" |
| 12590 | #include <sys/types.h> |
| 12591 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12592 | |
| 12593 | #ifdef F77_DUMMY_MAIN |
| 12594 | # ifdef __cplusplus |
| 12595 | extern "C" |
| 12596 | # endif |
| 12597 | int F77_DUMMY_MAIN() { return 1; } |
| 12598 | #endif |
| 12599 | int |
| 12600 | main () |
| 12601 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12602 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12603 | ; |
| 12604 | return 0; |
| 12605 | } |
| 12606 | _ACEOF |
| 12607 | rm -f conftest.$ac_objext |
| 12608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12609 | (eval $ac_compile) 2>&5 |
| 12610 | ac_status=$? |
| 12611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12612 | (exit $ac_status); } && |
| 12613 | { ac_try='test -s conftest.$ac_objext' |
| 12614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12615 | (eval $ac_try) 2>&5 |
| 12616 | ac_status=$? |
| 12617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12618 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12619 | ac_cv_struct_tm=time.h |
| 12620 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12621 | echo "$as_me: failed program was:" >&5 |
| 12622 | cat conftest.$ac_ext >&5 |
| 12623 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12624 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12625 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12626 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12627 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 12628 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12629 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12630 | |
| 12631 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12632 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12633 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12634 | |
| 12635 | fi |
| 12636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12637 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 12638 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 12639 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 12640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12641 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12642 | cat >conftest.$ac_ext <<_ACEOF |
| 12643 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12644 | #include "confdefs.h" |
| 12645 | #include <sys/types.h> |
| 12646 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12647 | |
| 12648 | |
| 12649 | #ifdef F77_DUMMY_MAIN |
| 12650 | # ifdef __cplusplus |
| 12651 | extern "C" |
| 12652 | # endif |
| 12653 | int F77_DUMMY_MAIN() { return 1; } |
| 12654 | #endif |
| 12655 | int |
| 12656 | main () |
| 12657 | { |
| 12658 | static struct tm ac_aggr; |
| 12659 | if (ac_aggr.tm_zone) |
| 12660 | return 0; |
| 12661 | ; |
| 12662 | return 0; |
| 12663 | } |
| 12664 | _ACEOF |
| 12665 | rm -f conftest.$ac_objext |
| 12666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12667 | (eval $ac_compile) 2>&5 |
| 12668 | ac_status=$? |
| 12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12670 | (exit $ac_status); } && |
| 12671 | { ac_try='test -s conftest.$ac_objext' |
| 12672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12673 | (eval $ac_try) 2>&5 |
| 12674 | ac_status=$? |
| 12675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12676 | (exit $ac_status); }; }; then |
| 12677 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12678 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12679 | echo "$as_me: failed program was:" >&5 |
| 12680 | cat conftest.$ac_ext >&5 |
| 12681 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12682 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12683 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12684 | fi |
| 12685 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 12686 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 12687 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 12688 | |
| 12689 | cat >>confdefs.h <<_ACEOF |
| 12690 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12691 | _ACEOF |
| 12692 | |
| 12693 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12694 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12696 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12697 | |
| 12698 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12699 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12700 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12701 | |
| 12702 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12703 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 12704 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 12705 | if test "${ac_cv_var_tzname+set}" = set; then |
| 12706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12708 | cat >conftest.$ac_ext <<_ACEOF |
| 12709 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12710 | #include "confdefs.h" |
| 12711 | #include <time.h> |
| 12712 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12713 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12714 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12715 | |
| 12716 | #ifdef F77_DUMMY_MAIN |
| 12717 | # ifdef __cplusplus |
| 12718 | extern "C" |
| 12719 | # endif |
| 12720 | int F77_DUMMY_MAIN() { return 1; } |
| 12721 | #endif |
| 12722 | int |
| 12723 | main () |
| 12724 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12725 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12726 | ; |
| 12727 | return 0; |
| 12728 | } |
| 12729 | _ACEOF |
| 12730 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12732 | (eval $ac_link) 2>&5 |
| 12733 | ac_status=$? |
| 12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12735 | (exit $ac_status); } && |
| 12736 | { ac_try='test -s conftest$ac_exeext' |
| 12737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12738 | (eval $ac_try) 2>&5 |
| 12739 | ac_status=$? |
| 12740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12741 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12742 | ac_cv_var_tzname=yes |
| 12743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12744 | echo "$as_me: failed program was:" >&5 |
| 12745 | cat conftest.$ac_ext >&5 |
| 12746 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12747 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12748 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12749 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12750 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 12751 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12752 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12753 | |
| 12754 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12755 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12756 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12757 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12758 | fi |
| 12759 | fi |
| 12760 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12762 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 12763 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 12764 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 12765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12766 | else |
| 12767 | cat >conftest.$ac_ext <<_ACEOF |
| 12768 | #line $LINENO "configure" |
| 12769 | #include "confdefs.h" |
| 12770 | $ac_includes_default |
| 12771 | #ifdef F77_DUMMY_MAIN |
| 12772 | # ifdef __cplusplus |
| 12773 | extern "C" |
| 12774 | # endif |
| 12775 | int F77_DUMMY_MAIN() { return 1; } |
| 12776 | #endif |
| 12777 | int |
| 12778 | main () |
| 12779 | { |
| 12780 | static struct stat ac_aggr; |
| 12781 | if (ac_aggr.st_rdev) |
| 12782 | return 0; |
| 12783 | ; |
| 12784 | return 0; |
| 12785 | } |
| 12786 | _ACEOF |
| 12787 | rm -f conftest.$ac_objext |
| 12788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12789 | (eval $ac_compile) 2>&5 |
| 12790 | ac_status=$? |
| 12791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12792 | (exit $ac_status); } && |
| 12793 | { ac_try='test -s conftest.$ac_objext' |
| 12794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12795 | (eval $ac_try) 2>&5 |
| 12796 | ac_status=$? |
| 12797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12798 | (exit $ac_status); }; }; then |
| 12799 | ac_cv_member_struct_stat_st_rdev=yes |
| 12800 | else |
| 12801 | echo "$as_me: failed program was:" >&5 |
| 12802 | cat conftest.$ac_ext >&5 |
| 12803 | ac_cv_member_struct_stat_st_rdev=no |
| 12804 | fi |
| 12805 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12806 | fi |
| 12807 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 12808 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 12809 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 12810 | |
| 12811 | cat >>confdefs.h <<_ACEOF |
| 12812 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 12813 | _ACEOF |
| 12814 | |
| 12815 | |
| 12816 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12817 | #define HAVE_ST_RDEV 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12818 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12819 | |
| 12820 | fi |
| 12821 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12822 | |
| 12823 | |
| 12824 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 12825 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 12826 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 12827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12829 | cat >conftest.$ac_ext <<_ACEOF |
| 12830 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12831 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12832 | $ac_includes_default |
| 12833 | #ifdef F77_DUMMY_MAIN |
| 12834 | # ifdef __cplusplus |
| 12835 | extern "C" |
| 12836 | # endif |
| 12837 | int F77_DUMMY_MAIN() { return 1; } |
| 12838 | #endif |
| 12839 | int |
| 12840 | main () |
| 12841 | { |
| 12842 | static struct stat ac_aggr; |
| 12843 | if (ac_aggr.st_blksize) |
| 12844 | return 0; |
| 12845 | ; |
| 12846 | return 0; |
| 12847 | } |
| 12848 | _ACEOF |
| 12849 | rm -f conftest.$ac_objext |
| 12850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12851 | (eval $ac_compile) 2>&5 |
| 12852 | ac_status=$? |
| 12853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12854 | (exit $ac_status); } && |
| 12855 | { ac_try='test -s conftest.$ac_objext' |
| 12856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12857 | (eval $ac_try) 2>&5 |
| 12858 | ac_status=$? |
| 12859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12860 | (exit $ac_status); }; }; then |
| 12861 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12862 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12863 | echo "$as_me: failed program was:" >&5 |
| 12864 | cat conftest.$ac_ext >&5 |
| 12865 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12866 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12867 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12868 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12869 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 12870 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 12871 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12873 | cat >>confdefs.h <<_ACEOF |
| 12874 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 12875 | _ACEOF |
| 12876 | |
| 12877 | |
| 12878 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12879 | #define HAVE_ST_BLKSIZE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12880 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12881 | |
| 12882 | fi |
| 12883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12884 | |
| 12885 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 12886 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 12887 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 12888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12889 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12890 | cat >conftest.$ac_ext <<_ACEOF |
| 12891 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12892 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12893 | $ac_includes_default |
| 12894 | #ifdef F77_DUMMY_MAIN |
| 12895 | # ifdef __cplusplus |
| 12896 | extern "C" |
| 12897 | # endif |
| 12898 | int F77_DUMMY_MAIN() { return 1; } |
| 12899 | #endif |
| 12900 | int |
| 12901 | main () |
| 12902 | { |
| 12903 | static struct stat ac_aggr; |
| 12904 | if (ac_aggr.st_blocks) |
| 12905 | return 0; |
| 12906 | ; |
| 12907 | return 0; |
| 12908 | } |
| 12909 | _ACEOF |
| 12910 | rm -f conftest.$ac_objext |
| 12911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12912 | (eval $ac_compile) 2>&5 |
| 12913 | ac_status=$? |
| 12914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12915 | (exit $ac_status); } && |
| 12916 | { ac_try='test -s conftest.$ac_objext' |
| 12917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12918 | (eval $ac_try) 2>&5 |
| 12919 | ac_status=$? |
| 12920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12921 | (exit $ac_status); }; }; then |
| 12922 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12923 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12924 | echo "$as_me: failed program was:" >&5 |
| 12925 | cat conftest.$ac_ext >&5 |
| 12926 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12927 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12928 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12929 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 12931 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 12932 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12934 | cat >>confdefs.h <<_ACEOF |
| 12935 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 12936 | _ACEOF |
| 12937 | |
| 12938 | |
| 12939 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12940 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12941 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12942 | |
| 12943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12945 | fi |
| 12946 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12948 | |
| 12949 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 12950 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 12951 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 12952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12954 | cat >conftest.$ac_ext <<_ACEOF |
| 12955 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12956 | #include "confdefs.h" |
| 12957 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12958 | #ifdef F77_DUMMY_MAIN |
| 12959 | # ifdef __cplusplus |
| 12960 | extern "C" |
| 12961 | # endif |
| 12962 | int F77_DUMMY_MAIN() { return 1; } |
| 12963 | #endif |
| 12964 | int |
| 12965 | main () |
| 12966 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12967 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12968 | ; |
| 12969 | return 0; |
| 12970 | } |
| 12971 | _ACEOF |
| 12972 | rm -f conftest.$ac_objext |
| 12973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12974 | (eval $ac_compile) 2>&5 |
| 12975 | ac_status=$? |
| 12976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12977 | (exit $ac_status); } && |
| 12978 | { ac_try='test -s conftest.$ac_objext' |
| 12979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12980 | (eval $ac_try) 2>&5 |
| 12981 | ac_status=$? |
| 12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12983 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12984 | ac_cv_header_time_altzone=yes |
| 12985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12986 | echo "$as_me: failed program was:" >&5 |
| 12987 | cat conftest.$ac_ext >&5 |
| 12988 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12989 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12990 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12991 | fi |
| 12992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12993 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 12994 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12995 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12996 | |
| 12997 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12998 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13000 | |
| 13001 | fi |
| 13002 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13003 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13004 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13005 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13006 | cat >conftest.$ac_ext <<_ACEOF |
| 13007 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13008 | #include "confdefs.h" |
| 13009 | |
| 13010 | #include <sys/types.h> |
| 13011 | #include <sys/select.h> |
| 13012 | #include <sys/time.h> |
| 13013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 | #ifdef F77_DUMMY_MAIN |
| 13015 | # ifdef __cplusplus |
| 13016 | extern "C" |
| 13017 | # endif |
| 13018 | int F77_DUMMY_MAIN() { return 1; } |
| 13019 | #endif |
| 13020 | int |
| 13021 | main () |
| 13022 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13023 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13024 | ; |
| 13025 | return 0; |
| 13026 | } |
| 13027 | _ACEOF |
| 13028 | rm -f conftest.$ac_objext |
| 13029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13030 | (eval $ac_compile) 2>&5 |
| 13031 | ac_status=$? |
| 13032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13033 | (exit $ac_status); } && |
| 13034 | { ac_try='test -s conftest.$ac_objext' |
| 13035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13036 | (eval $ac_try) 2>&5 |
| 13037 | ac_status=$? |
| 13038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13039 | (exit $ac_status); }; }; then |
| 13040 | |
| 13041 | |
| 13042 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13043 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13044 | _ACEOF |
| 13045 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13046 | was_it_defined=yes |
| 13047 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13049 | echo "$as_me: failed program was:" >&5 |
| 13050 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13051 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13052 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13053 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 13054 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13055 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13056 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 13057 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 13058 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 13059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13060 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13061 | cat >conftest.$ac_ext <<_ACEOF |
| 13062 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13063 | #include "confdefs.h" |
| 13064 | |
| 13065 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13066 | #ifdef F77_DUMMY_MAIN |
| 13067 | # ifdef __cplusplus |
| 13068 | extern "C" |
| 13069 | # endif |
| 13070 | int F77_DUMMY_MAIN() { return 1; } |
| 13071 | #endif |
| 13072 | int |
| 13073 | main () |
| 13074 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13075 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | ; |
| 13077 | return 0; |
| 13078 | } |
| 13079 | _ACEOF |
| 13080 | rm -f conftest.$ac_objext |
| 13081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13082 | (eval $ac_compile) 2>&5 |
| 13083 | ac_status=$? |
| 13084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13085 | (exit $ac_status); } && |
| 13086 | { ac_try='test -s conftest.$ac_objext' |
| 13087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13088 | (eval $ac_try) 2>&5 |
| 13089 | ac_status=$? |
| 13090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13091 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13092 | ac_cv_struct_addrinfo=yes |
| 13093 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13094 | echo "$as_me: failed program was:" >&5 |
| 13095 | cat conftest.$ac_ext >&5 |
| 13096 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13097 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13098 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13099 | fi |
| 13100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13101 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13102 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13103 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13104 | |
| 13105 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13106 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13107 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13108 | |
| 13109 | fi |
| 13110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13111 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13112 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13113 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13115 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13116 | cat >conftest.$ac_ext <<_ACEOF |
| 13117 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13118 | #include "confdefs.h" |
| 13119 | |
| 13120 | # include <sys/types.h> |
| 13121 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13122 | #ifdef F77_DUMMY_MAIN |
| 13123 | # ifdef __cplusplus |
| 13124 | extern "C" |
| 13125 | # endif |
| 13126 | int F77_DUMMY_MAIN() { return 1; } |
| 13127 | #endif |
| 13128 | int |
| 13129 | main () |
| 13130 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13131 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13132 | ; |
| 13133 | return 0; |
| 13134 | } |
| 13135 | _ACEOF |
| 13136 | rm -f conftest.$ac_objext |
| 13137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13138 | (eval $ac_compile) 2>&5 |
| 13139 | ac_status=$? |
| 13140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13141 | (exit $ac_status); } && |
| 13142 | { ac_try='test -s conftest.$ac_objext' |
| 13143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13144 | (eval $ac_try) 2>&5 |
| 13145 | ac_status=$? |
| 13146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13147 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13148 | ac_cv_struct_sockaddr_storage=yes |
| 13149 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13150 | echo "$as_me: failed program was:" >&5 |
| 13151 | cat conftest.$ac_ext >&5 |
| 13152 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13153 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13154 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13155 | fi |
| 13156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13157 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13158 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13159 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13160 | |
| 13161 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13162 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13163 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13164 | |
| 13165 | fi |
| 13166 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13167 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13168 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13170 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13171 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13172 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13174 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13175 | cat >conftest.$ac_ext <<_ACEOF |
| 13176 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13177 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13178 | $ac_includes_default |
| 13179 | #ifdef F77_DUMMY_MAIN |
| 13180 | # ifdef __cplusplus |
| 13181 | extern "C" |
| 13182 | # endif |
| 13183 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13184 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13185 | int |
| 13186 | main () |
| 13187 | { |
| 13188 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13189 | test_array [0] = 0 |
| 13190 | |
| 13191 | ; |
| 13192 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13193 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13194 | _ACEOF |
| 13195 | rm -f conftest.$ac_objext |
| 13196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13197 | (eval $ac_compile) 2>&5 |
| 13198 | ac_status=$? |
| 13199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13200 | (exit $ac_status); } && |
| 13201 | { ac_try='test -s conftest.$ac_objext' |
| 13202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13203 | (eval $ac_try) 2>&5 |
| 13204 | ac_status=$? |
| 13205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13206 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13207 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13208 | else |
| 13209 | echo "$as_me: failed program was:" >&5 |
| 13210 | cat conftest.$ac_ext >&5 |
| 13211 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13212 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13213 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13214 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13215 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13216 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13217 | 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] | 13218 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13219 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13220 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13221 | |
| 13222 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13224 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13225 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13226 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13228 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13229 | ac_cv_prog_cc_stdc=no |
| 13230 | ac_save_CC=$CC |
| 13231 | cat >conftest.$ac_ext <<_ACEOF |
| 13232 | #line $LINENO "configure" |
| 13233 | #include "confdefs.h" |
| 13234 | #include <stdarg.h> |
| 13235 | #include <stdio.h> |
| 13236 | #include <sys/types.h> |
| 13237 | #include <sys/stat.h> |
| 13238 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 13239 | struct buf { int x; }; |
| 13240 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 13241 | static char *e (p, i) |
| 13242 | char **p; |
| 13243 | int i; |
| 13244 | { |
| 13245 | return p[i]; |
| 13246 | } |
| 13247 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 13248 | { |
| 13249 | char *s; |
| 13250 | va_list v; |
| 13251 | va_start (v,p); |
| 13252 | s = g (p, va_arg (v,int)); |
| 13253 | va_end (v); |
| 13254 | return s; |
| 13255 | } |
| 13256 | int test (int i, double x); |
| 13257 | struct s1 {int (*f) (int a);}; |
| 13258 | struct s2 {int (*f) (double a);}; |
| 13259 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 13260 | int argc; |
| 13261 | char **argv; |
| 13262 | #ifdef F77_DUMMY_MAIN |
| 13263 | # ifdef __cplusplus |
| 13264 | extern "C" |
| 13265 | # endif |
| 13266 | int F77_DUMMY_MAIN() { return 1; } |
| 13267 | #endif |
| 13268 | int |
| 13269 | main () |
| 13270 | { |
| 13271 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 13272 | ; |
| 13273 | return 0; |
| 13274 | } |
| 13275 | _ACEOF |
| 13276 | # Don't try gcc -ansi; that turns off useful extensions and |
| 13277 | # breaks some systems' header files. |
| 13278 | # AIX -qlanglvl=ansi |
| 13279 | # Ultrix and OSF/1 -std1 |
| 13280 | # HP-UX 10.20 and later -Ae |
| 13281 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 13282 | # SVR4 -Xc -D__EXTENSIONS__ |
| 13283 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 13284 | do |
| 13285 | CC="$ac_save_CC $ac_arg" |
| 13286 | rm -f conftest.$ac_objext |
| 13287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13288 | (eval $ac_compile) 2>&5 |
| 13289 | ac_status=$? |
| 13290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13291 | (exit $ac_status); } && |
| 13292 | { ac_try='test -s conftest.$ac_objext' |
| 13293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13294 | (eval $ac_try) 2>&5 |
| 13295 | ac_status=$? |
| 13296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13297 | (exit $ac_status); }; }; then |
| 13298 | ac_cv_prog_cc_stdc=$ac_arg |
| 13299 | break |
| 13300 | else |
| 13301 | echo "$as_me: failed program was:" >&5 |
| 13302 | cat conftest.$ac_ext >&5 |
| 13303 | fi |
| 13304 | rm -f conftest.$ac_objext |
| 13305 | done |
| 13306 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 13307 | CC=$ac_save_CC |
| 13308 | |
| 13309 | fi |
| 13310 | |
| 13311 | case "x$ac_cv_prog_cc_stdc" in |
| 13312 | x|xno) |
| 13313 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 13314 | echo "${ECHO_T}none needed" >&6 ;; |
| 13315 | *) |
| 13316 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 13317 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 13318 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 13319 | esac |
| 13320 | |
| 13321 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 13322 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13323 | if test "${ac_cv_c_const+set}" = set; then |
| 13324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13325 | else |
| 13326 | cat >conftest.$ac_ext <<_ACEOF |
| 13327 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13328 | #include "confdefs.h" |
| 13329 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13330 | #ifdef F77_DUMMY_MAIN |
| 13331 | # ifdef __cplusplus |
| 13332 | extern "C" |
| 13333 | # endif |
| 13334 | int F77_DUMMY_MAIN() { return 1; } |
| 13335 | #endif |
| 13336 | int |
| 13337 | main () |
| 13338 | { |
| 13339 | /* FIXME: Include the comments suggested by Paul. */ |
| 13340 | #ifndef __cplusplus |
| 13341 | /* Ultrix mips cc rejects this. */ |
| 13342 | typedef int charset[2]; |
| 13343 | const charset x; |
| 13344 | /* SunOS 4.1.1 cc rejects this. */ |
| 13345 | char const *const *ccp; |
| 13346 | char **p; |
| 13347 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13348 | struct point {int x, y;}; |
| 13349 | static struct point const zero = {0,0}; |
| 13350 | /* AIX XL C 1.02.0.0 rejects this. |
| 13351 | It does not let you subtract one const X* pointer from another in |
| 13352 | an arm of an if-expression whose if-part is not a constant |
| 13353 | expression */ |
| 13354 | const char *g = "string"; |
| 13355 | ccp = &g + (g ? g-g : 0); |
| 13356 | /* HPUX 7.0 cc rejects these. */ |
| 13357 | ++ccp; |
| 13358 | p = (char**) ccp; |
| 13359 | ccp = (char const *const *) p; |
| 13360 | { /* SCO 3.2v4 cc rejects this. */ |
| 13361 | char *t; |
| 13362 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13364 | *t++ = 0; |
| 13365 | } |
| 13366 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13367 | int x[] = {25, 17}; |
| 13368 | const int *foo = &x[0]; |
| 13369 | ++foo; |
| 13370 | } |
| 13371 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13372 | typedef const int *iptr; |
| 13373 | iptr p = 0; |
| 13374 | ++p; |
| 13375 | } |
| 13376 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13377 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13378 | struct s { int j; const int *ap[3]; }; |
| 13379 | struct s *b; b->j = 5; |
| 13380 | } |
| 13381 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13382 | const int foo = 10; |
| 13383 | } |
| 13384 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13386 | ; |
| 13387 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13388 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13389 | _ACEOF |
| 13390 | rm -f conftest.$ac_objext |
| 13391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13392 | (eval $ac_compile) 2>&5 |
| 13393 | ac_status=$? |
| 13394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13395 | (exit $ac_status); } && |
| 13396 | { ac_try='test -s conftest.$ac_objext' |
| 13397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13398 | (eval $ac_try) 2>&5 |
| 13399 | ac_status=$? |
| 13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13401 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13402 | ac_cv_c_const=yes |
| 13403 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13404 | echo "$as_me: failed program was:" >&5 |
| 13405 | cat conftest.$ac_ext >&5 |
| 13406 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13407 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13408 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13409 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13410 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 13411 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13412 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13413 | |
| 13414 | cat >>confdefs.h <<\_ACEOF |
| 13415 | #define const |
| 13416 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13417 | |
| 13418 | fi |
| 13419 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13420 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13421 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13422 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 13423 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 13424 | cat >conftest.$ac_ext <<_ACEOF |
| 13425 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13426 | #include "confdefs.h" |
| 13427 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13428 | #ifdef F77_DUMMY_MAIN |
| 13429 | # ifdef __cplusplus |
| 13430 | extern "C" |
| 13431 | # endif |
| 13432 | int F77_DUMMY_MAIN() { return 1; } |
| 13433 | #endif |
| 13434 | int |
| 13435 | main () |
| 13436 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13437 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13438 | ; |
| 13439 | return 0; |
| 13440 | } |
| 13441 | _ACEOF |
| 13442 | rm -f conftest.$ac_objext |
| 13443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13444 | (eval $ac_compile) 2>&5 |
| 13445 | ac_status=$? |
| 13446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13447 | (exit $ac_status); } && |
| 13448 | { ac_try='test -s conftest.$ac_objext' |
| 13449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13450 | (eval $ac_try) 2>&5 |
| 13451 | ac_status=$? |
| 13452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13453 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13454 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13455 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13456 | echo "$as_me: failed program was:" >&5 |
| 13457 | cat conftest.$ac_ext >&5 |
| 13458 | |
| 13459 | cat >>confdefs.h <<\_ACEOF |
| 13460 | #define volatile |
| 13461 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13462 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13463 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13464 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13465 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13466 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13467 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13468 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13469 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13470 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 13471 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 13472 | cat >conftest.$ac_ext <<_ACEOF |
| 13473 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13474 | #include "confdefs.h" |
| 13475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13476 | #ifdef F77_DUMMY_MAIN |
| 13477 | # ifdef __cplusplus |
| 13478 | extern "C" |
| 13479 | # endif |
| 13480 | int F77_DUMMY_MAIN() { return 1; } |
| 13481 | #endif |
| 13482 | int |
| 13483 | main () |
| 13484 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13485 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13486 | ; |
| 13487 | return 0; |
| 13488 | } |
| 13489 | _ACEOF |
| 13490 | rm -f conftest.$ac_objext |
| 13491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13492 | (eval $ac_compile) 2>&5 |
| 13493 | ac_status=$? |
| 13494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13495 | (exit $ac_status); } && |
| 13496 | { ac_try='test -s conftest.$ac_objext' |
| 13497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13498 | (eval $ac_try) 2>&5 |
| 13499 | ac_status=$? |
| 13500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13501 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13502 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13503 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13504 | echo "$as_me: failed program was:" >&5 |
| 13505 | cat conftest.$ac_ext >&5 |
| 13506 | |
| 13507 | cat >>confdefs.h <<\_ACEOF |
| 13508 | #define signed |
| 13509 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13510 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13511 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13512 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13513 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13514 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13515 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13516 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13517 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13518 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 13519 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 13520 | cat >conftest.$ac_ext <<_ACEOF |
| 13521 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13522 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13523 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13524 | #ifdef F77_DUMMY_MAIN |
| 13525 | # ifdef __cplusplus |
| 13526 | extern "C" |
| 13527 | # endif |
| 13528 | int F77_DUMMY_MAIN() { return 1; } |
| 13529 | #endif |
| 13530 | int |
| 13531 | main () |
| 13532 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13533 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13534 | ; |
| 13535 | return 0; |
| 13536 | } |
| 13537 | _ACEOF |
| 13538 | rm -f conftest.$ac_objext |
| 13539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13540 | (eval $ac_compile) 2>&5 |
| 13541 | ac_status=$? |
| 13542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13543 | (exit $ac_status); } && |
| 13544 | { ac_try='test -s conftest.$ac_objext' |
| 13545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13546 | (eval $ac_try) 2>&5 |
| 13547 | ac_status=$? |
| 13548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13549 | (exit $ac_status); }; }; then |
| 13550 | |
| 13551 | |
| 13552 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13553 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13554 | _ACEOF |
| 13555 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13556 | have_prototypes=yes |
| 13557 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13558 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13559 | echo "$as_me: failed program was:" >&5 |
| 13560 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13561 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13562 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13563 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 13564 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13565 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13566 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13567 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 13568 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 13569 | cat >conftest.$ac_ext <<_ACEOF |
| 13570 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13571 | #include "confdefs.h" |
| 13572 | |
| 13573 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13574 | int foo(int x, ...) { |
| 13575 | va_list va; |
| 13576 | va_start(va, x); |
| 13577 | va_arg(va, int); |
| 13578 | va_arg(va, char *); |
| 13579 | va_arg(va, double); |
| 13580 | return 0; |
| 13581 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13583 | #ifdef F77_DUMMY_MAIN |
| 13584 | # ifdef __cplusplus |
| 13585 | extern "C" |
| 13586 | # endif |
| 13587 | int F77_DUMMY_MAIN() { return 1; } |
| 13588 | #endif |
| 13589 | int |
| 13590 | main () |
| 13591 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13592 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13593 | ; |
| 13594 | return 0; |
| 13595 | } |
| 13596 | _ACEOF |
| 13597 | rm -f conftest.$ac_objext |
| 13598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13599 | (eval $ac_compile) 2>&5 |
| 13600 | ac_status=$? |
| 13601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13602 | (exit $ac_status); } && |
| 13603 | { ac_try='test -s conftest.$ac_objext' |
| 13604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13605 | (eval $ac_try) 2>&5 |
| 13606 | ac_status=$? |
| 13607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13608 | (exit $ac_status); }; }; then |
| 13609 | |
| 13610 | |
| 13611 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13612 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13613 | _ACEOF |
| 13614 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13615 | works=yes |
| 13616 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13617 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13618 | echo "$as_me: failed program was:" >&5 |
| 13619 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13620 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13621 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13622 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13623 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13624 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13625 | if test "$have_prototypes" = yes; then |
| 13626 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13627 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 13628 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 13629 | cat >conftest.$ac_ext <<_ACEOF |
| 13630 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13631 | #include "confdefs.h" |
| 13632 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13633 | #ifdef F77_DUMMY_MAIN |
| 13634 | # ifdef __cplusplus |
| 13635 | extern "C" |
| 13636 | # endif |
| 13637 | int F77_DUMMY_MAIN() { return 1; } |
| 13638 | #endif |
| 13639 | int |
| 13640 | main () |
| 13641 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13642 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13643 | ; |
| 13644 | return 0; |
| 13645 | } |
| 13646 | _ACEOF |
| 13647 | rm -f conftest.$ac_objext |
| 13648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13649 | (eval $ac_compile) 2>&5 |
| 13650 | ac_status=$? |
| 13651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13652 | (exit $ac_status); } && |
| 13653 | { ac_try='test -s conftest.$ac_objext' |
| 13654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13655 | (eval $ac_try) 2>&5 |
| 13656 | ac_status=$? |
| 13657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13658 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13659 | : |
| 13660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13661 | echo "$as_me: failed program was:" >&5 |
| 13662 | cat conftest.$ac_ext >&5 |
| 13663 | |
| 13664 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13665 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13666 | _ACEOF |
| 13667 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13668 | bad_prototypes=yes |
| 13669 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13670 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13671 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13672 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 13673 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13674 | fi |
| 13675 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13676 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13677 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 13678 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 13679 | cat >conftest.$ac_ext <<_ACEOF |
| 13680 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13681 | #include "confdefs.h" |
| 13682 | #include <sys/types.h> |
| 13683 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13684 | #ifdef F77_DUMMY_MAIN |
| 13685 | # ifdef __cplusplus |
| 13686 | extern "C" |
| 13687 | # endif |
| 13688 | int F77_DUMMY_MAIN() { return 1; } |
| 13689 | #endif |
| 13690 | int |
| 13691 | main () |
| 13692 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13693 | struct sockaddr x; |
| 13694 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13695 | ; |
| 13696 | return 0; |
| 13697 | } |
| 13698 | _ACEOF |
| 13699 | rm -f conftest.$ac_objext |
| 13700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13701 | (eval $ac_compile) 2>&5 |
| 13702 | ac_status=$? |
| 13703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13704 | (exit $ac_status); } && |
| 13705 | { ac_try='test -s conftest.$ac_objext' |
| 13706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13707 | (eval $ac_try) 2>&5 |
| 13708 | ac_status=$? |
| 13709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13710 | (exit $ac_status); }; }; then |
| 13711 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13712 | echo "${ECHO_T}yes" >&6 |
| 13713 | |
| 13714 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13715 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13716 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13717 | |
| 13718 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13719 | echo "$as_me: failed program was:" >&5 |
| 13720 | cat conftest.$ac_ext >&5 |
| 13721 | echo "$as_me:$LINENO: result: no" >&5 |
| 13722 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13723 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13724 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13725 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13726 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13727 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 13728 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 13729 | cat >conftest.$ac_ext <<_ACEOF |
| 13730 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13731 | #include "confdefs.h" |
| 13732 | |
| 13733 | #ifdef HAVE_STDARG_PROTOTYPES |
| 13734 | #include <stdarg.h> |
| 13735 | #else |
| 13736 | #include <varargs.h> |
| 13737 | #endif |
| 13738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13739 | #ifdef F77_DUMMY_MAIN |
| 13740 | # ifdef __cplusplus |
| 13741 | extern "C" |
| 13742 | # endif |
| 13743 | int F77_DUMMY_MAIN() { return 1; } |
| 13744 | #endif |
| 13745 | int |
| 13746 | main () |
| 13747 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13748 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13749 | ; |
| 13750 | return 0; |
| 13751 | } |
| 13752 | _ACEOF |
| 13753 | rm -f conftest.$ac_objext |
| 13754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13755 | (eval $ac_compile) 2>&5 |
| 13756 | ac_status=$? |
| 13757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13758 | (exit $ac_status); } && |
| 13759 | { ac_try='test -s conftest.$ac_objext' |
| 13760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13761 | (eval $ac_try) 2>&5 |
| 13762 | ac_status=$? |
| 13763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13764 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13765 | : |
| 13766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13767 | echo "$as_me: failed program was:" >&5 |
| 13768 | cat conftest.$ac_ext >&5 |
| 13769 | |
| 13770 | |
| 13771 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13772 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13773 | _ACEOF |
| 13774 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13775 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13776 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13777 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13778 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13779 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 13780 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13781 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13782 | # 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] | 13783 | |
| 13784 | |
| 13785 | |
| 13786 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 13787 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 13788 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 13789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13790 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13791 | cat >conftest.$ac_ext <<_ACEOF |
| 13792 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13793 | #include "confdefs.h" |
| 13794 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13795 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13796 | #include <assert.h> |
| 13797 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13798 | #ifdef __cplusplus |
| 13799 | extern "C" |
| 13800 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13801 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13802 | builtin and then its argument prototype would still apply. */ |
| 13803 | char gethostbyname_r (); |
| 13804 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13806 | #ifdef F77_DUMMY_MAIN |
| 13807 | # ifdef __cplusplus |
| 13808 | extern "C" |
| 13809 | # endif |
| 13810 | int F77_DUMMY_MAIN() { return 1; } |
| 13811 | #endif |
| 13812 | int |
| 13813 | main () |
| 13814 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13815 | /* The GNU C library defines this for functions which it implements |
| 13816 | to always fail with ENOSYS. Some functions are actually named |
| 13817 | something starting with __ and the normal name is an alias. */ |
| 13818 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 13819 | choke me |
| 13820 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13821 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13822 | #endif |
| 13823 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13824 | ; |
| 13825 | return 0; |
| 13826 | } |
| 13827 | _ACEOF |
| 13828 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13830 | (eval $ac_link) 2>&5 |
| 13831 | ac_status=$? |
| 13832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13833 | (exit $ac_status); } && |
| 13834 | { ac_try='test -s conftest$ac_exeext' |
| 13835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13836 | (eval $ac_try) 2>&5 |
| 13837 | ac_status=$? |
| 13838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13839 | (exit $ac_status); }; }; then |
| 13840 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13841 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13842 | echo "$as_me: failed program was:" >&5 |
| 13843 | cat conftest.$ac_ext >&5 |
| 13844 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13845 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13846 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13847 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13848 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 13849 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 13850 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13851 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13852 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13853 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13854 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13856 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 13857 | echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13858 | OLD_CFLAGS=$CFLAGS |
| 13859 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13860 | cat >conftest.$ac_ext <<_ACEOF |
| 13861 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13862 | #include "confdefs.h" |
| 13863 | |
| 13864 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13865 | |
| 13866 | #ifdef F77_DUMMY_MAIN |
| 13867 | # ifdef __cplusplus |
| 13868 | extern "C" |
| 13869 | # endif |
| 13870 | int F77_DUMMY_MAIN() { return 1; } |
| 13871 | #endif |
| 13872 | int |
| 13873 | main () |
| 13874 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13875 | |
| 13876 | char *name; |
| 13877 | struct hostent *he, *res; |
| 13878 | char buffer[2048]; |
| 13879 | int buflen = 2048; |
| 13880 | int h_errnop; |
| 13881 | |
| 13882 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13883 | |
| 13884 | ; |
| 13885 | return 0; |
| 13886 | } |
| 13887 | _ACEOF |
| 13888 | rm -f conftest.$ac_objext |
| 13889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13890 | (eval $ac_compile) 2>&5 |
| 13891 | ac_status=$? |
| 13892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13893 | (exit $ac_status); } && |
| 13894 | { ac_try='test -s conftest.$ac_objext' |
| 13895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13896 | (eval $ac_try) 2>&5 |
| 13897 | ac_status=$? |
| 13898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13899 | (exit $ac_status); }; }; then |
| 13900 | |
| 13901 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13902 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13903 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13904 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13905 | |
| 13906 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13907 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13908 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13910 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13911 | echo "${ECHO_T}yes" >&6 |
| 13912 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13913 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13914 | echo "$as_me: failed program was:" >&5 |
| 13915 | cat conftest.$ac_ext >&5 |
| 13916 | |
| 13917 | echo "$as_me:$LINENO: result: no" >&5 |
| 13918 | echo "${ECHO_T}no" >&6 |
| 13919 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 13920 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 13921 | cat >conftest.$ac_ext <<_ACEOF |
| 13922 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13923 | #include "confdefs.h" |
| 13924 | |
| 13925 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13926 | |
| 13927 | #ifdef F77_DUMMY_MAIN |
| 13928 | # ifdef __cplusplus |
| 13929 | extern "C" |
| 13930 | # endif |
| 13931 | int F77_DUMMY_MAIN() { return 1; } |
| 13932 | #endif |
| 13933 | int |
| 13934 | main () |
| 13935 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13936 | |
| 13937 | char *name; |
| 13938 | struct hostent *he; |
| 13939 | char buffer[2048]; |
| 13940 | int buflen = 2048; |
| 13941 | int h_errnop; |
| 13942 | |
| 13943 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13944 | |
| 13945 | ; |
| 13946 | return 0; |
| 13947 | } |
| 13948 | _ACEOF |
| 13949 | rm -f conftest.$ac_objext |
| 13950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13951 | (eval $ac_compile) 2>&5 |
| 13952 | ac_status=$? |
| 13953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13954 | (exit $ac_status); } && |
| 13955 | { ac_try='test -s conftest.$ac_objext' |
| 13956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13957 | (eval $ac_try) 2>&5 |
| 13958 | ac_status=$? |
| 13959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13960 | (exit $ac_status); }; }; then |
| 13961 | |
| 13962 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13963 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13964 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13966 | |
| 13967 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13968 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13969 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13970 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13971 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13972 | echo "${ECHO_T}yes" >&6 |
| 13973 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13975 | echo "$as_me: failed program was:" >&5 |
| 13976 | cat conftest.$ac_ext >&5 |
| 13977 | |
| 13978 | echo "$as_me:$LINENO: result: no" >&5 |
| 13979 | echo "${ECHO_T}no" >&6 |
| 13980 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 13981 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 13982 | cat >conftest.$ac_ext <<_ACEOF |
| 13983 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13984 | #include "confdefs.h" |
| 13985 | |
| 13986 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13987 | |
| 13988 | #ifdef F77_DUMMY_MAIN |
| 13989 | # ifdef __cplusplus |
| 13990 | extern "C" |
| 13991 | # endif |
| 13992 | int F77_DUMMY_MAIN() { return 1; } |
| 13993 | #endif |
| 13994 | int |
| 13995 | main () |
| 13996 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13997 | |
| 13998 | char *name; |
| 13999 | struct hostent *he; |
| 14000 | struct hostent_data data; |
| 14001 | |
| 14002 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14003 | |
| 14004 | ; |
| 14005 | return 0; |
| 14006 | } |
| 14007 | _ACEOF |
| 14008 | rm -f conftest.$ac_objext |
| 14009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14010 | (eval $ac_compile) 2>&5 |
| 14011 | ac_status=$? |
| 14012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14013 | (exit $ac_status); } && |
| 14014 | { ac_try='test -s conftest.$ac_objext' |
| 14015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14016 | (eval $ac_try) 2>&5 |
| 14017 | ac_status=$? |
| 14018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14019 | (exit $ac_status); }; }; then |
| 14020 | |
| 14021 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14022 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14023 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14025 | |
| 14026 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14027 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14028 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14030 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14031 | echo "${ECHO_T}yes" >&6 |
| 14032 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14033 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14034 | echo "$as_me: failed program was:" >&5 |
| 14035 | cat conftest.$ac_ext >&5 |
| 14036 | |
| 14037 | echo "$as_me:$LINENO: result: no" >&5 |
| 14038 | echo "${ECHO_T}no" >&6 |
| 14039 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14040 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14041 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14042 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14043 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14044 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14045 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14046 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14047 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14048 | CFLAGS=$OLD_CFLAGS |
| 14049 | |
| 14050 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14052 | |
| 14053 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14054 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14055 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14056 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14057 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14058 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14060 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14061 | cat >conftest.$ac_ext <<_ACEOF |
| 14062 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14063 | #include "confdefs.h" |
| 14064 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14065 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14066 | #include <assert.h> |
| 14067 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14068 | #ifdef __cplusplus |
| 14069 | extern "C" |
| 14070 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14071 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14072 | builtin and then its argument prototype would still apply. */ |
| 14073 | char $ac_func (); |
| 14074 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14075 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14076 | #ifdef F77_DUMMY_MAIN |
| 14077 | # ifdef __cplusplus |
| 14078 | extern "C" |
| 14079 | # endif |
| 14080 | int F77_DUMMY_MAIN() { return 1; } |
| 14081 | #endif |
| 14082 | int |
| 14083 | main () |
| 14084 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14085 | /* The GNU C library defines this for functions which it implements |
| 14086 | to always fail with ENOSYS. Some functions are actually named |
| 14087 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14088 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14089 | choke me |
| 14090 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14091 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14092 | #endif |
| 14093 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14094 | ; |
| 14095 | return 0; |
| 14096 | } |
| 14097 | _ACEOF |
| 14098 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14100 | (eval $ac_link) 2>&5 |
| 14101 | ac_status=$? |
| 14102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14103 | (exit $ac_status); } && |
| 14104 | { ac_try='test -s conftest$ac_exeext' |
| 14105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14106 | (eval $ac_try) 2>&5 |
| 14107 | ac_status=$? |
| 14108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14109 | (exit $ac_status); }; }; then |
| 14110 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14112 | echo "$as_me: failed program was:" >&5 |
| 14113 | cat conftest.$ac_ext >&5 |
| 14114 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14115 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14116 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14117 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14119 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14120 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14121 | cat >>confdefs.h <<_ACEOF |
| 14122 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14123 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14124 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14125 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14126 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14127 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14128 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14129 | fi |
| 14130 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14131 | |
| 14132 | |
| 14133 | |
| 14134 | |
| 14135 | |
| 14136 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14137 | # checks for system services |
| 14138 | # (none yet) |
| 14139 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14140 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14141 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14142 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14143 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14146 | cat >conftest.$ac_ext <<_ACEOF |
| 14147 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14148 | #include "confdefs.h" |
| 14149 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14150 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14151 | #include <assert.h> |
| 14152 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14153 | #ifdef __cplusplus |
| 14154 | extern "C" |
| 14155 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14156 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14157 | builtin and then its argument prototype would still apply. */ |
| 14158 | char __fpu_control (); |
| 14159 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14161 | #ifdef F77_DUMMY_MAIN |
| 14162 | # ifdef __cplusplus |
| 14163 | extern "C" |
| 14164 | # endif |
| 14165 | int F77_DUMMY_MAIN() { return 1; } |
| 14166 | #endif |
| 14167 | int |
| 14168 | main () |
| 14169 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14170 | /* The GNU C library defines this for functions which it implements |
| 14171 | to always fail with ENOSYS. Some functions are actually named |
| 14172 | something starting with __ and the normal name is an alias. */ |
| 14173 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14174 | choke me |
| 14175 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14176 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14177 | #endif |
| 14178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14179 | ; |
| 14180 | return 0; |
| 14181 | } |
| 14182 | _ACEOF |
| 14183 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14185 | (eval $ac_link) 2>&5 |
| 14186 | ac_status=$? |
| 14187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14188 | (exit $ac_status); } && |
| 14189 | { ac_try='test -s conftest$ac_exeext' |
| 14190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14191 | (eval $ac_try) 2>&5 |
| 14192 | ac_status=$? |
| 14193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14194 | (exit $ac_status); }; }; then |
| 14195 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14197 | echo "$as_me: failed program was:" >&5 |
| 14198 | cat conftest.$ac_ext >&5 |
| 14199 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14200 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14202 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14203 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14204 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14205 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14206 | : |
| 14207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14208 | |
| 14209 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14210 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14211 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14214 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14215 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14216 | cat >conftest.$ac_ext <<_ACEOF |
| 14217 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14218 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14219 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14220 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14221 | #ifdef __cplusplus |
| 14222 | extern "C" |
| 14223 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14224 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14225 | builtin and then its argument prototype would still apply. */ |
| 14226 | char __fpu_control (); |
| 14227 | #ifdef F77_DUMMY_MAIN |
| 14228 | # ifdef __cplusplus |
| 14229 | extern "C" |
| 14230 | # endif |
| 14231 | int F77_DUMMY_MAIN() { return 1; } |
| 14232 | #endif |
| 14233 | int |
| 14234 | main () |
| 14235 | { |
| 14236 | __fpu_control (); |
| 14237 | ; |
| 14238 | return 0; |
| 14239 | } |
| 14240 | _ACEOF |
| 14241 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14243 | (eval $ac_link) 2>&5 |
| 14244 | ac_status=$? |
| 14245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14246 | (exit $ac_status); } && |
| 14247 | { ac_try='test -s conftest$ac_exeext' |
| 14248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14249 | (eval $ac_try) 2>&5 |
| 14250 | ac_status=$? |
| 14251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14252 | (exit $ac_status); }; }; then |
| 14253 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14255 | echo "$as_me: failed program was:" >&5 |
| 14256 | cat conftest.$ac_ext >&5 |
| 14257 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14258 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14259 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14260 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14261 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14262 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 14263 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 14264 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 14265 | cat >>confdefs.h <<_ACEOF |
| 14266 | #define HAVE_LIBIEEE 1 |
| 14267 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14268 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14269 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14270 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14271 | fi |
| 14272 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14273 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14274 | fi |
| 14275 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14276 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14277 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14278 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 14279 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 14280 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14281 | # Check whether --with-fpectl or --without-fpectl was given. |
| 14282 | if test "${with_fpectl+set}" = set; then |
| 14283 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14284 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14285 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14286 | then |
| 14287 | |
| 14288 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14289 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14290 | _ACEOF |
| 14291 | |
| 14292 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14293 | echo "${ECHO_T}yes" >&6 |
| 14294 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14295 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14296 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14298 | echo "$as_me:$LINENO: result: no" >&5 |
| 14299 | echo "${ECHO_T}no" >&6 |
| 14300 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14301 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14302 | # check for --with-libm=... |
| 14303 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14304 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14305 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14306 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14307 | *) LIBM=-lm |
| 14308 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14309 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 14310 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 14311 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14312 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14313 | if test "${with_libm+set}" = set; then |
| 14314 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14315 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14316 | if test "$withval" = no |
| 14317 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14318 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 14319 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14320 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14321 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14322 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 14323 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 14324 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 14325 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 14326 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14327 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14329 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 14330 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 14331 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14332 | |
| 14333 | # check for --with-libc=... |
| 14334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14335 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 14336 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 14337 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14338 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14339 | if test "${with_libc+set}" = set; then |
| 14340 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14341 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14342 | if test "$withval" = no |
| 14343 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14344 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 14345 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14346 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14347 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14348 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 14349 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 14350 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 14351 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 14352 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14353 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14355 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 14356 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 14357 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14358 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14359 | # check for hypot() in math library |
| 14360 | LIBS_SAVE=$LIBS |
| 14361 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14362 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14363 | for ac_func in hypot |
| 14364 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14365 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14366 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14367 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14368 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14370 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14371 | cat >conftest.$ac_ext <<_ACEOF |
| 14372 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14373 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14374 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14375 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14376 | #include <assert.h> |
| 14377 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14378 | #ifdef __cplusplus |
| 14379 | extern "C" |
| 14380 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14381 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14382 | builtin and then its argument prototype would still apply. */ |
| 14383 | char $ac_func (); |
| 14384 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14386 | #ifdef F77_DUMMY_MAIN |
| 14387 | # ifdef __cplusplus |
| 14388 | extern "C" |
| 14389 | # endif |
| 14390 | int F77_DUMMY_MAIN() { return 1; } |
| 14391 | #endif |
| 14392 | int |
| 14393 | main () |
| 14394 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14395 | /* The GNU C library defines this for functions which it implements |
| 14396 | to always fail with ENOSYS. Some functions are actually named |
| 14397 | something starting with __ and the normal name is an alias. */ |
| 14398 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14399 | choke me |
| 14400 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14401 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14402 | #endif |
| 14403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14404 | ; |
| 14405 | return 0; |
| 14406 | } |
| 14407 | _ACEOF |
| 14408 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14410 | (eval $ac_link) 2>&5 |
| 14411 | ac_status=$? |
| 14412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14413 | (exit $ac_status); } && |
| 14414 | { ac_try='test -s conftest$ac_exeext' |
| 14415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14416 | (eval $ac_try) 2>&5 |
| 14417 | ac_status=$? |
| 14418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14419 | (exit $ac_status); }; }; then |
| 14420 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14422 | echo "$as_me: failed program was:" >&5 |
| 14423 | cat conftest.$ac_ext >&5 |
| 14424 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14425 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14426 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14427 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14428 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14429 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14430 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14431 | cat >>confdefs.h <<_ACEOF |
| 14432 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14433 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14434 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14436 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14437 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14438 | done |
| 14439 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14440 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14441 | LIBS=$LIBS_SAVE |
| 14442 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14443 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14444 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 14445 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 14446 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 14447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14448 | else |
| 14449 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14450 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14451 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14452 | cat >conftest.$ac_ext <<_ACEOF |
| 14453 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14454 | #include "confdefs.h" |
| 14455 | #include <stdio.h> |
| 14456 | #ifdef HAVE_STDLIB |
| 14457 | #include <stdlib.h> |
| 14458 | #else |
| 14459 | char *malloc(), *realloc(); |
| 14460 | int *free(); |
| 14461 | #endif |
| 14462 | main() { |
| 14463 | char *p; |
| 14464 | p = malloc(0); |
| 14465 | if (p == NULL) exit(1); |
| 14466 | p = realloc(p, 0); |
| 14467 | if (p == NULL) exit(1); |
| 14468 | free(p); |
| 14469 | exit(0); |
| 14470 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14471 | _ACEOF |
| 14472 | rm -f conftest$ac_exeext |
| 14473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14474 | (eval $ac_link) 2>&5 |
| 14475 | ac_status=$? |
| 14476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14477 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14479 | (eval $ac_try) 2>&5 |
| 14480 | ac_status=$? |
| 14481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14482 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14483 | ac_cv_malloc_zero=nonnull |
| 14484 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14485 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14486 | echo "$as_me: failed program was:" >&5 |
| 14487 | cat conftest.$ac_ext >&5 |
| 14488 | ( exit $ac_status ) |
| 14489 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14490 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14491 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14492 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14493 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14494 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14495 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 14496 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14497 | if test "$ac_cv_malloc_zero" = null |
| 14498 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14499 | |
| 14500 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14501 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14503 | |
| 14504 | fi |
| 14505 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14506 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14507 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14508 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14509 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14510 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14512 | fi |
| 14513 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14514 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14515 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14516 | # Is the header compilable? |
| 14517 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 14518 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 14519 | cat >conftest.$ac_ext <<_ACEOF |
| 14520 | #line $LINENO "configure" |
| 14521 | #include "confdefs.h" |
| 14522 | $ac_includes_default |
| 14523 | #include <wchar.h> |
| 14524 | _ACEOF |
| 14525 | rm -f conftest.$ac_objext |
| 14526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14527 | (eval $ac_compile) 2>&5 |
| 14528 | ac_status=$? |
| 14529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14530 | (exit $ac_status); } && |
| 14531 | { ac_try='test -s conftest.$ac_objext' |
| 14532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14533 | (eval $ac_try) 2>&5 |
| 14534 | ac_status=$? |
| 14535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14536 | (exit $ac_status); }; }; then |
| 14537 | ac_header_compiler=yes |
| 14538 | else |
| 14539 | echo "$as_me: failed program was:" >&5 |
| 14540 | cat conftest.$ac_ext >&5 |
| 14541 | ac_header_compiler=no |
| 14542 | fi |
| 14543 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14544 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14545 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14546 | |
| 14547 | # Is the header present? |
| 14548 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 14549 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 14550 | cat >conftest.$ac_ext <<_ACEOF |
| 14551 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14552 | #include "confdefs.h" |
| 14553 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14554 | _ACEOF |
| 14555 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14556 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14557 | ac_status=$? |
| 14558 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 14559 | rm -f conftest.er1 |
| 14560 | cat conftest.err >&5 |
| 14561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14562 | (exit $ac_status); } >/dev/null; then |
| 14563 | if test -s conftest.err; then |
| 14564 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14565 | else |
| 14566 | ac_cpp_err= |
| 14567 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14569 | ac_cpp_err=yes |
| 14570 | fi |
| 14571 | if test -z "$ac_cpp_err"; then |
| 14572 | ac_header_preproc=yes |
| 14573 | else |
| 14574 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14575 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14576 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14577 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14578 | rm -f conftest.err conftest.$ac_ext |
| 14579 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14580 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14581 | |
| 14582 | # So? What about this header? |
| 14583 | case $ac_header_compiler:$ac_header_preproc in |
| 14584 | yes:no ) |
| 14585 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14586 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14587 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14588 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14589 | no:yes ) |
| 14590 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 14591 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 14592 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 14593 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 14594 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14595 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14596 | esac |
| 14597 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14598 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14599 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14601 | else |
| 14602 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14603 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14604 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14605 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 14606 | |
| 14607 | fi |
| 14608 | if test $ac_cv_header_wchar_h = yes; then |
| 14609 | |
| 14610 | |
| 14611 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14612 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14613 | _ACEOF |
| 14614 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14615 | wchar_h="yes" |
| 14616 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14617 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14618 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14619 | |
| 14620 | fi |
| 14621 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14624 | # determine wchar_t size |
| 14625 | if test "$wchar_h" = yes |
| 14626 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14627 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 14628 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 14629 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 14630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14631 | else |
| 14632 | cat >conftest.$ac_ext <<_ACEOF |
| 14633 | #line $LINENO "configure" |
| 14634 | #include "confdefs.h" |
| 14635 | #include <wchar.h> |
| 14636 | |
| 14637 | #ifdef F77_DUMMY_MAIN |
| 14638 | # ifdef __cplusplus |
| 14639 | extern "C" |
| 14640 | # endif |
| 14641 | int F77_DUMMY_MAIN() { return 1; } |
| 14642 | #endif |
| 14643 | int |
| 14644 | main () |
| 14645 | { |
| 14646 | if ((wchar_t *) 0) |
| 14647 | return 0; |
| 14648 | if (sizeof (wchar_t)) |
| 14649 | return 0; |
| 14650 | ; |
| 14651 | return 0; |
| 14652 | } |
| 14653 | _ACEOF |
| 14654 | rm -f conftest.$ac_objext |
| 14655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14656 | (eval $ac_compile) 2>&5 |
| 14657 | ac_status=$? |
| 14658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14659 | (exit $ac_status); } && |
| 14660 | { ac_try='test -s conftest.$ac_objext' |
| 14661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14662 | (eval $ac_try) 2>&5 |
| 14663 | ac_status=$? |
| 14664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14665 | (exit $ac_status); }; }; then |
| 14666 | ac_cv_type_wchar_t=yes |
| 14667 | else |
| 14668 | echo "$as_me: failed program was:" >&5 |
| 14669 | cat conftest.$ac_ext >&5 |
| 14670 | ac_cv_type_wchar_t=no |
| 14671 | fi |
| 14672 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14673 | fi |
| 14674 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 14675 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 14676 | |
| 14677 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 14678 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 14679 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 14680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14681 | else |
| 14682 | if test "$ac_cv_type_wchar_t" = yes; then |
| 14683 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14684 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14685 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14686 | # This bug is HP SR number 8606223364. |
| 14687 | if test "$cross_compiling" = yes; then |
| 14688 | # Depending upon the size, compute the lo and hi bounds. |
| 14689 | cat >conftest.$ac_ext <<_ACEOF |
| 14690 | #line $LINENO "configure" |
| 14691 | #include "confdefs.h" |
| 14692 | #include <wchar.h> |
| 14693 | |
| 14694 | #ifdef F77_DUMMY_MAIN |
| 14695 | # ifdef __cplusplus |
| 14696 | extern "C" |
| 14697 | # endif |
| 14698 | int F77_DUMMY_MAIN() { return 1; } |
| 14699 | #endif |
| 14700 | int |
| 14701 | main () |
| 14702 | { |
| 14703 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 14704 | test_array [0] = 0 |
| 14705 | |
| 14706 | ; |
| 14707 | return 0; |
| 14708 | } |
| 14709 | _ACEOF |
| 14710 | rm -f conftest.$ac_objext |
| 14711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14712 | (eval $ac_compile) 2>&5 |
| 14713 | ac_status=$? |
| 14714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14715 | (exit $ac_status); } && |
| 14716 | { ac_try='test -s conftest.$ac_objext' |
| 14717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14718 | (eval $ac_try) 2>&5 |
| 14719 | ac_status=$? |
| 14720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14721 | (exit $ac_status); }; }; then |
| 14722 | ac_lo=0 ac_mid=0 |
| 14723 | while :; do |
| 14724 | cat >conftest.$ac_ext <<_ACEOF |
| 14725 | #line $LINENO "configure" |
| 14726 | #include "confdefs.h" |
| 14727 | #include <wchar.h> |
| 14728 | |
| 14729 | #ifdef F77_DUMMY_MAIN |
| 14730 | # ifdef __cplusplus |
| 14731 | extern "C" |
| 14732 | # endif |
| 14733 | int F77_DUMMY_MAIN() { return 1; } |
| 14734 | #endif |
| 14735 | int |
| 14736 | main () |
| 14737 | { |
| 14738 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14739 | test_array [0] = 0 |
| 14740 | |
| 14741 | ; |
| 14742 | return 0; |
| 14743 | } |
| 14744 | _ACEOF |
| 14745 | rm -f conftest.$ac_objext |
| 14746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14747 | (eval $ac_compile) 2>&5 |
| 14748 | ac_status=$? |
| 14749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14750 | (exit $ac_status); } && |
| 14751 | { ac_try='test -s conftest.$ac_objext' |
| 14752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14753 | (eval $ac_try) 2>&5 |
| 14754 | ac_status=$? |
| 14755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14756 | (exit $ac_status); }; }; then |
| 14757 | ac_hi=$ac_mid; break |
| 14758 | else |
| 14759 | echo "$as_me: failed program was:" >&5 |
| 14760 | cat conftest.$ac_ext >&5 |
| 14761 | ac_lo=`expr $ac_mid + 1` |
| 14762 | if test $ac_lo -le $ac_mid; then |
| 14763 | ac_lo= ac_hi= |
| 14764 | break |
| 14765 | fi |
| 14766 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14767 | fi |
| 14768 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14769 | done |
| 14770 | else |
| 14771 | echo "$as_me: failed program was:" >&5 |
| 14772 | cat conftest.$ac_ext >&5 |
| 14773 | cat >conftest.$ac_ext <<_ACEOF |
| 14774 | #line $LINENO "configure" |
| 14775 | #include "confdefs.h" |
| 14776 | #include <wchar.h> |
| 14777 | |
| 14778 | #ifdef F77_DUMMY_MAIN |
| 14779 | # ifdef __cplusplus |
| 14780 | extern "C" |
| 14781 | # endif |
| 14782 | int F77_DUMMY_MAIN() { return 1; } |
| 14783 | #endif |
| 14784 | int |
| 14785 | main () |
| 14786 | { |
| 14787 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 14788 | test_array [0] = 0 |
| 14789 | |
| 14790 | ; |
| 14791 | return 0; |
| 14792 | } |
| 14793 | _ACEOF |
| 14794 | rm -f conftest.$ac_objext |
| 14795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14796 | (eval $ac_compile) 2>&5 |
| 14797 | ac_status=$? |
| 14798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14799 | (exit $ac_status); } && |
| 14800 | { ac_try='test -s conftest.$ac_objext' |
| 14801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14802 | (eval $ac_try) 2>&5 |
| 14803 | ac_status=$? |
| 14804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14805 | (exit $ac_status); }; }; then |
| 14806 | ac_hi=-1 ac_mid=-1 |
| 14807 | while :; do |
| 14808 | cat >conftest.$ac_ext <<_ACEOF |
| 14809 | #line $LINENO "configure" |
| 14810 | #include "confdefs.h" |
| 14811 | #include <wchar.h> |
| 14812 | |
| 14813 | #ifdef F77_DUMMY_MAIN |
| 14814 | # ifdef __cplusplus |
| 14815 | extern "C" |
| 14816 | # endif |
| 14817 | int F77_DUMMY_MAIN() { return 1; } |
| 14818 | #endif |
| 14819 | int |
| 14820 | main () |
| 14821 | { |
| 14822 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 14823 | test_array [0] = 0 |
| 14824 | |
| 14825 | ; |
| 14826 | return 0; |
| 14827 | } |
| 14828 | _ACEOF |
| 14829 | rm -f conftest.$ac_objext |
| 14830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14831 | (eval $ac_compile) 2>&5 |
| 14832 | ac_status=$? |
| 14833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14834 | (exit $ac_status); } && |
| 14835 | { ac_try='test -s conftest.$ac_objext' |
| 14836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14837 | (eval $ac_try) 2>&5 |
| 14838 | ac_status=$? |
| 14839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14840 | (exit $ac_status); }; }; then |
| 14841 | ac_lo=$ac_mid; break |
| 14842 | else |
| 14843 | echo "$as_me: failed program was:" >&5 |
| 14844 | cat conftest.$ac_ext >&5 |
| 14845 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14846 | if test $ac_mid -le $ac_hi; then |
| 14847 | ac_lo= ac_hi= |
| 14848 | break |
| 14849 | fi |
| 14850 | ac_mid=`expr 2 '*' $ac_mid` |
| 14851 | fi |
| 14852 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14853 | done |
| 14854 | else |
| 14855 | echo "$as_me: failed program was:" >&5 |
| 14856 | cat conftest.$ac_ext >&5 |
| 14857 | ac_lo= ac_hi= |
| 14858 | fi |
| 14859 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14860 | fi |
| 14861 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14862 | # Binary search between lo and hi bounds. |
| 14863 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14864 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14865 | cat >conftest.$ac_ext <<_ACEOF |
| 14866 | #line $LINENO "configure" |
| 14867 | #include "confdefs.h" |
| 14868 | #include <wchar.h> |
| 14869 | |
| 14870 | #ifdef F77_DUMMY_MAIN |
| 14871 | # ifdef __cplusplus |
| 14872 | extern "C" |
| 14873 | # endif |
| 14874 | int F77_DUMMY_MAIN() { return 1; } |
| 14875 | #endif |
| 14876 | int |
| 14877 | main () |
| 14878 | { |
| 14879 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14880 | test_array [0] = 0 |
| 14881 | |
| 14882 | ; |
| 14883 | return 0; |
| 14884 | } |
| 14885 | _ACEOF |
| 14886 | rm -f conftest.$ac_objext |
| 14887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14888 | (eval $ac_compile) 2>&5 |
| 14889 | ac_status=$? |
| 14890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14891 | (exit $ac_status); } && |
| 14892 | { ac_try='test -s conftest.$ac_objext' |
| 14893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14894 | (eval $ac_try) 2>&5 |
| 14895 | ac_status=$? |
| 14896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14897 | (exit $ac_status); }; }; then |
| 14898 | ac_hi=$ac_mid |
| 14899 | else |
| 14900 | echo "$as_me: failed program was:" >&5 |
| 14901 | cat conftest.$ac_ext >&5 |
| 14902 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14903 | fi |
| 14904 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14905 | done |
| 14906 | case $ac_lo in |
| 14907 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 14908 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 14909 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 14910 | { (exit 1); exit 1; }; } ;; |
| 14911 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14912 | else |
| 14913 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14914 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 14915 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 14916 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14917 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14918 | cat >conftest.$ac_ext <<_ACEOF |
| 14919 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14920 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14921 | #include <wchar.h> |
| 14922 | |
| 14923 | long longval () { return (long) (sizeof (wchar_t)); } |
| 14924 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14925 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14926 | #include <stdlib.h> |
| 14927 | #ifdef F77_DUMMY_MAIN |
| 14928 | # ifdef __cplusplus |
| 14929 | extern "C" |
| 14930 | # endif |
| 14931 | int F77_DUMMY_MAIN() { return 1; } |
| 14932 | #endif |
| 14933 | int |
| 14934 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14935 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14936 | |
| 14937 | FILE *f = fopen ("conftest.val", "w"); |
| 14938 | if (! f) |
| 14939 | exit (1); |
| 14940 | if (((long) (sizeof (wchar_t))) < 0) |
| 14941 | { |
| 14942 | long i = longval (); |
| 14943 | if (i != ((long) (sizeof (wchar_t)))) |
| 14944 | exit (1); |
| 14945 | fprintf (f, "%ld\n", i); |
| 14946 | } |
| 14947 | else |
| 14948 | { |
| 14949 | unsigned long i = ulongval (); |
| 14950 | if (i != ((long) (sizeof (wchar_t)))) |
| 14951 | exit (1); |
| 14952 | fprintf (f, "%lu\n", i); |
| 14953 | } |
| 14954 | exit (ferror (f) || fclose (f) != 0); |
| 14955 | |
| 14956 | ; |
| 14957 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14958 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14959 | _ACEOF |
| 14960 | rm -f conftest$ac_exeext |
| 14961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14962 | (eval $ac_link) 2>&5 |
| 14963 | ac_status=$? |
| 14964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14965 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14967 | (eval $ac_try) 2>&5 |
| 14968 | ac_status=$? |
| 14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14970 | (exit $ac_status); }; }; then |
| 14971 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14972 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14973 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14974 | echo "$as_me: failed program was:" >&5 |
| 14975 | cat conftest.$ac_ext >&5 |
| 14976 | ( exit $ac_status ) |
| 14977 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 14978 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 14979 | { (exit 1); exit 1; }; } |
| 14980 | fi |
| 14981 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14982 | fi |
| 14983 | fi |
| 14984 | rm -f conftest.val |
| 14985 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14986 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14987 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14988 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14989 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 14990 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 14991 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14992 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14993 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14994 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14995 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14996 | fi |
| 14997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14998 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 14999 | echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15000 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15001 | if test "${enable_unicode+set}" = set; then |
| 15002 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15003 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15004 | else |
| 15005 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15006 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15007 | |
| 15008 | if test $enable_unicode = yes |
| 15009 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15010 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15011 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15012 | fi |
| 15013 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15014 | |
| 15015 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15016 | case "$enable_unicode" in |
| 15017 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15018 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15019 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15021 | |
| 15022 | ;; |
| 15023 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15025 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15026 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15027 | |
| 15028 | ;; |
| 15029 | esac |
| 15030 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15032 | |
| 15033 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15034 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15035 | if test "$enable_unicode" = "no" |
| 15036 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15037 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15038 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15039 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15040 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15041 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15042 | |
| 15043 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15044 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15045 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15046 | |
| 15047 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15048 | then |
| 15049 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15051 | cat >>confdefs.h <<\_ACEOF |
| 15052 | #define HAVE_USABLE_WCHAR_T 1 |
| 15053 | _ACEOF |
| 15054 | |
| 15055 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15056 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15057 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15058 | |
| 15059 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15060 | then |
| 15061 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15062 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15063 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15064 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15065 | |
| 15066 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15067 | then |
| 15068 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15069 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15070 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15071 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15072 | |
| 15073 | else |
| 15074 | PY_UNICODE_TYPE="no type found" |
| 15075 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15076 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15077 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15078 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15079 | |
| 15080 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15081 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15082 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15083 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15086 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15087 | cat >conftest.$ac_ext <<_ACEOF |
| 15088 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15089 | #include "confdefs.h" |
| 15090 | #include <sys/types.h> |
| 15091 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15093 | #ifdef F77_DUMMY_MAIN |
| 15094 | # ifdef __cplusplus |
| 15095 | extern "C" |
| 15096 | # endif |
| 15097 | int F77_DUMMY_MAIN() { return 1; } |
| 15098 | #endif |
| 15099 | int |
| 15100 | main () |
| 15101 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15102 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15103 | bogus endian macros |
| 15104 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15105 | |
| 15106 | ; |
| 15107 | return 0; |
| 15108 | } |
| 15109 | _ACEOF |
| 15110 | rm -f conftest.$ac_objext |
| 15111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15112 | (eval $ac_compile) 2>&5 |
| 15113 | ac_status=$? |
| 15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15115 | (exit $ac_status); } && |
| 15116 | { ac_try='test -s conftest.$ac_objext' |
| 15117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15118 | (eval $ac_try) 2>&5 |
| 15119 | ac_status=$? |
| 15120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15121 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15122 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | cat >conftest.$ac_ext <<_ACEOF |
| 15124 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15125 | #include "confdefs.h" |
| 15126 | #include <sys/types.h> |
| 15127 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | #ifdef F77_DUMMY_MAIN |
| 15130 | # ifdef __cplusplus |
| 15131 | extern "C" |
| 15132 | # endif |
| 15133 | int F77_DUMMY_MAIN() { return 1; } |
| 15134 | #endif |
| 15135 | int |
| 15136 | main () |
| 15137 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15138 | #if BYTE_ORDER != BIG_ENDIAN |
| 15139 | not big endian |
| 15140 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15141 | |
| 15142 | ; |
| 15143 | return 0; |
| 15144 | } |
| 15145 | _ACEOF |
| 15146 | rm -f conftest.$ac_objext |
| 15147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15148 | (eval $ac_compile) 2>&5 |
| 15149 | ac_status=$? |
| 15150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15151 | (exit $ac_status); } && |
| 15152 | { ac_try='test -s conftest.$ac_objext' |
| 15153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15154 | (eval $ac_try) 2>&5 |
| 15155 | ac_status=$? |
| 15156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15157 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15158 | ac_cv_c_bigendian=yes |
| 15159 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15160 | echo "$as_me: failed program was:" >&5 |
| 15161 | cat conftest.$ac_ext >&5 |
| 15162 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15163 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15164 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15165 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15166 | echo "$as_me: failed program was:" >&5 |
| 15167 | cat conftest.$ac_ext >&5 |
| 15168 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15169 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15170 | # try to guess the endianess by grep'ing values into an object file |
| 15171 | ac_cv_c_bigendian=unknown |
| 15172 | cat >conftest.$ac_ext <<_ACEOF |
| 15173 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15174 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15175 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15176 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15177 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15178 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15179 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15180 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15181 | #ifdef F77_DUMMY_MAIN |
| 15182 | # ifdef __cplusplus |
| 15183 | extern "C" |
| 15184 | # endif |
| 15185 | int F77_DUMMY_MAIN() { return 1; } |
| 15186 | #endif |
| 15187 | int |
| 15188 | main () |
| 15189 | { |
| 15190 | _ascii (); _ebcdic (); |
| 15191 | ; |
| 15192 | return 0; |
| 15193 | } |
| 15194 | _ACEOF |
| 15195 | rm -f conftest.$ac_objext |
| 15196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15197 | (eval $ac_compile) 2>&5 |
| 15198 | ac_status=$? |
| 15199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15200 | (exit $ac_status); } && |
| 15201 | { ac_try='test -s conftest.$ac_objext' |
| 15202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15203 | (eval $ac_try) 2>&5 |
| 15204 | ac_status=$? |
| 15205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15206 | (exit $ac_status); }; }; then |
| 15207 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15208 | ac_cv_c_bigendian=yes |
| 15209 | fi |
| 15210 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15211 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15212 | ac_cv_c_bigendian=no |
| 15213 | else |
| 15214 | # finding both strings is unlikely to happen, but who knows? |
| 15215 | ac_cv_c_bigendian=unknown |
| 15216 | fi |
| 15217 | fi |
| 15218 | else |
| 15219 | echo "$as_me: failed program was:" >&5 |
| 15220 | cat conftest.$ac_ext >&5 |
| 15221 | fi |
| 15222 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15223 | else |
| 15224 | cat >conftest.$ac_ext <<_ACEOF |
| 15225 | #line $LINENO "configure" |
| 15226 | #include "confdefs.h" |
| 15227 | int |
| 15228 | main () |
| 15229 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15230 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15231 | union |
| 15232 | { |
| 15233 | long l; |
| 15234 | char c[sizeof (long)]; |
| 15235 | } u; |
| 15236 | u.l = 1; |
| 15237 | exit (u.c[sizeof (long) - 1] == 1); |
| 15238 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15239 | _ACEOF |
| 15240 | rm -f conftest$ac_exeext |
| 15241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15242 | (eval $ac_link) 2>&5 |
| 15243 | ac_status=$? |
| 15244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15245 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15247 | (eval $ac_try) 2>&5 |
| 15248 | ac_status=$? |
| 15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15250 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15251 | ac_cv_c_bigendian=no |
| 15252 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15253 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15254 | echo "$as_me: failed program was:" >&5 |
| 15255 | cat conftest.$ac_ext >&5 |
| 15256 | ( exit $ac_status ) |
| 15257 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15258 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15259 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15260 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15261 | fi |
| 15262 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15263 | fi |
| 15264 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15265 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 15266 | case $ac_cv_c_bigendian in |
| 15267 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15269 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15270 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15271 | _ACEOF |
| 15272 | ;; |
| 15273 | no) |
| 15274 | ;; |
| 15275 | *) |
| 15276 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 15277 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15278 | echo "$as_me: error: unknown endianess |
| 15279 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15280 | { (exit 1); exit 1; }; } ;; |
| 15281 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15282 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15283 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15284 | # Check whether right shifting a negative integer extends the sign bit |
| 15285 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15286 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 15287 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 15288 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 15289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15290 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15291 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15292 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15293 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15295 | cat >conftest.$ac_ext <<_ACEOF |
| 15296 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15297 | #include "confdefs.h" |
| 15298 | |
| 15299 | int main() |
| 15300 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15301 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15302 | } |
| 15303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15304 | _ACEOF |
| 15305 | rm -f conftest$ac_exeext |
| 15306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15307 | (eval $ac_link) 2>&5 |
| 15308 | ac_status=$? |
| 15309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15310 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15312 | (eval $ac_try) 2>&5 |
| 15313 | ac_status=$? |
| 15314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15315 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15316 | ac_cv_rshift_extends_sign=yes |
| 15317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15318 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15319 | echo "$as_me: failed program was:" >&5 |
| 15320 | cat conftest.$ac_ext >&5 |
| 15321 | ( exit $ac_status ) |
| 15322 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15323 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15324 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15325 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15326 | fi |
| 15327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15328 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 15329 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15330 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15331 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15332 | |
| 15333 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15334 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15335 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15336 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15337 | fi |
| 15338 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15339 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15340 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 15341 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 15342 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 15343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15345 | |
| 15346 | cat >conftest.$ac_ext <<_ACEOF |
| 15347 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15348 | #include "confdefs.h" |
| 15349 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15350 | #ifdef F77_DUMMY_MAIN |
| 15351 | # ifdef __cplusplus |
| 15352 | extern "C" |
| 15353 | # endif |
| 15354 | int F77_DUMMY_MAIN() { return 1; } |
| 15355 | #endif |
| 15356 | int |
| 15357 | main () |
| 15358 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15359 | |
| 15360 | FILE *f = fopen("/dev/null", "r"); |
| 15361 | flockfile(f); |
| 15362 | getc_unlocked(f); |
| 15363 | funlockfile(f); |
| 15364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15365 | ; |
| 15366 | return 0; |
| 15367 | } |
| 15368 | _ACEOF |
| 15369 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15371 | (eval $ac_link) 2>&5 |
| 15372 | ac_status=$? |
| 15373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15374 | (exit $ac_status); } && |
| 15375 | { ac_try='test -s conftest$ac_exeext' |
| 15376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15377 | (eval $ac_try) 2>&5 |
| 15378 | ac_status=$? |
| 15379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15380 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15381 | ac_cv_have_getc_unlocked=yes |
| 15382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | echo "$as_me: failed program was:" >&5 |
| 15384 | cat conftest.$ac_ext >&5 |
| 15385 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15386 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15387 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15388 | fi |
| 15389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15390 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 15391 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15392 | if test "$ac_cv_have_getc_unlocked" = yes |
| 15393 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15394 | |
| 15395 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15396 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15397 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15398 | |
| 15399 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15400 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15401 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15402 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 15403 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 15404 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 15405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15407 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15408 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15409 | cat >conftest.$ac_ext <<_ACEOF |
| 15410 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15411 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15412 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15413 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15414 | #ifdef __cplusplus |
| 15415 | extern "C" |
| 15416 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15417 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15418 | builtin and then its argument prototype would still apply. */ |
| 15419 | char rl_pre_input_hook (); |
| 15420 | #ifdef F77_DUMMY_MAIN |
| 15421 | # ifdef __cplusplus |
| 15422 | extern "C" |
| 15423 | # endif |
| 15424 | int F77_DUMMY_MAIN() { return 1; } |
| 15425 | #endif |
| 15426 | int |
| 15427 | main () |
| 15428 | { |
| 15429 | rl_pre_input_hook (); |
| 15430 | ; |
| 15431 | return 0; |
| 15432 | } |
| 15433 | _ACEOF |
| 15434 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15436 | (eval $ac_link) 2>&5 |
| 15437 | ac_status=$? |
| 15438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15439 | (exit $ac_status); } && |
| 15440 | { ac_try='test -s conftest$ac_exeext' |
| 15441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15442 | (eval $ac_try) 2>&5 |
| 15443 | ac_status=$? |
| 15444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15445 | (exit $ac_status); }; }; then |
| 15446 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15447 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15448 | echo "$as_me: failed program was:" >&5 |
| 15449 | cat conftest.$ac_ext >&5 |
| 15450 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15451 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15452 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15453 | LIBS=$ac_check_lib_save_LIBS |
| 15454 | fi |
| 15455 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 15456 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 15457 | if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15459 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15460 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15461 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15462 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15463 | fi |
| 15464 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15465 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15466 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15467 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 15468 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 15469 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 15470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15472 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15473 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15474 | cat >conftest.$ac_ext <<_ACEOF |
| 15475 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15476 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15477 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15478 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15479 | #ifdef __cplusplus |
| 15480 | extern "C" |
| 15481 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15482 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15483 | builtin and then its argument prototype would still apply. */ |
| 15484 | char rl_completion_matches (); |
| 15485 | #ifdef F77_DUMMY_MAIN |
| 15486 | # ifdef __cplusplus |
| 15487 | extern "C" |
| 15488 | # endif |
| 15489 | int F77_DUMMY_MAIN() { return 1; } |
| 15490 | #endif |
| 15491 | int |
| 15492 | main () |
| 15493 | { |
| 15494 | rl_completion_matches (); |
| 15495 | ; |
| 15496 | return 0; |
| 15497 | } |
| 15498 | _ACEOF |
| 15499 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15501 | (eval $ac_link) 2>&5 |
| 15502 | ac_status=$? |
| 15503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15504 | (exit $ac_status); } && |
| 15505 | { ac_try='test -s conftest$ac_exeext' |
| 15506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15507 | (eval $ac_try) 2>&5 |
| 15508 | ac_status=$? |
| 15509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15510 | (exit $ac_status); }; }; then |
| 15511 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15512 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15513 | echo "$as_me: failed program was:" >&5 |
| 15514 | cat conftest.$ac_ext >&5 |
| 15515 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15516 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15517 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15518 | LIBS=$ac_check_lib_save_LIBS |
| 15519 | fi |
| 15520 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 15521 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 15522 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15523 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15524 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15525 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15526 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15527 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15528 | fi |
| 15529 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15530 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15531 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 15532 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 15533 | if test "${ac_cv_broken_nice+set}" = set; then |
| 15534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15536 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15537 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15538 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15540 | cat >conftest.$ac_ext <<_ACEOF |
| 15541 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15542 | #include "confdefs.h" |
| 15543 | |
| 15544 | int main() |
| 15545 | { |
| 15546 | int val1 = nice(1); |
| 15547 | if (val1 != -1 && val1 == nice(2)) |
| 15548 | exit(0); |
| 15549 | exit(1); |
| 15550 | } |
| 15551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15552 | _ACEOF |
| 15553 | rm -f conftest$ac_exeext |
| 15554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15555 | (eval $ac_link) 2>&5 |
| 15556 | ac_status=$? |
| 15557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15558 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15560 | (eval $ac_try) 2>&5 |
| 15561 | ac_status=$? |
| 15562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15563 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15564 | ac_cv_broken_nice=yes |
| 15565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15566 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15567 | echo "$as_me: failed program was:" >&5 |
| 15568 | cat conftest.$ac_ext >&5 |
| 15569 | ( exit $ac_status ) |
| 15570 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15571 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15572 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15573 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15574 | fi |
| 15575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15576 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 15577 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15578 | if test "$ac_cv_broken_nice" = yes |
| 15579 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15580 | |
| 15581 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15582 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15583 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15584 | |
| 15585 | fi |
| 15586 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15587 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15588 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 15589 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 15590 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 15591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15593 | cat >conftest.$ac_ext <<_ACEOF |
| 15594 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15595 | #include "confdefs.h" |
| 15596 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15597 | #ifdef F77_DUMMY_MAIN |
| 15598 | # ifdef __cplusplus |
| 15599 | extern "C" |
| 15600 | # endif |
| 15601 | int F77_DUMMY_MAIN() { return 1; } |
| 15602 | #endif |
| 15603 | int |
| 15604 | main () |
| 15605 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15606 | |
| 15607 | int rtn; |
| 15608 | rtn = mvwdelch(0,0,0); |
| 15609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15610 | ; |
| 15611 | return 0; |
| 15612 | } |
| 15613 | _ACEOF |
| 15614 | rm -f conftest.$ac_objext |
| 15615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15616 | (eval $ac_compile) 2>&5 |
| 15617 | ac_status=$? |
| 15618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15619 | (exit $ac_status); } && |
| 15620 | { ac_try='test -s conftest.$ac_objext' |
| 15621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15622 | (eval $ac_try) 2>&5 |
| 15623 | ac_status=$? |
| 15624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15625 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15626 | ac_cv_mvwdelch_is_expression=yes |
| 15627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15628 | echo "$as_me: failed program was:" >&5 |
| 15629 | cat conftest.$ac_ext >&5 |
| 15630 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15631 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15632 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15633 | fi |
| 15634 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15635 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 15636 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15637 | |
| 15638 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 15639 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15640 | |
| 15641 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15642 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15643 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15644 | |
| 15645 | fi |
| 15646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15647 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 15648 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 15649 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 15650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15652 | cat >conftest.$ac_ext <<_ACEOF |
| 15653 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15654 | #include "confdefs.h" |
| 15655 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15656 | #ifdef F77_DUMMY_MAIN |
| 15657 | # ifdef __cplusplus |
| 15658 | extern "C" |
| 15659 | # endif |
| 15660 | int F77_DUMMY_MAIN() { return 1; } |
| 15661 | #endif |
| 15662 | int |
| 15663 | main () |
| 15664 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15665 | |
| 15666 | WINDOW *w; |
| 15667 | w->_flags = 0; |
| 15668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15669 | ; |
| 15670 | return 0; |
| 15671 | } |
| 15672 | _ACEOF |
| 15673 | rm -f conftest.$ac_objext |
| 15674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15675 | (eval $ac_compile) 2>&5 |
| 15676 | ac_status=$? |
| 15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15678 | (exit $ac_status); } && |
| 15679 | { ac_try='test -s conftest.$ac_objext' |
| 15680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15681 | (eval $ac_try) 2>&5 |
| 15682 | ac_status=$? |
| 15683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15684 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15685 | ac_cv_window_has_flags=yes |
| 15686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15687 | echo "$as_me: failed program was:" >&5 |
| 15688 | cat conftest.$ac_ext >&5 |
| 15689 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15690 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15691 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15692 | fi |
| 15693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15694 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 15695 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15696 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15697 | |
| 15698 | if test "$ac_cv_window_has_flags" = yes |
| 15699 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15700 | |
| 15701 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15702 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15703 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15704 | |
| 15705 | fi |
| 15706 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15707 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 15708 | # Add sys/socket.h to confdefs.h |
| 15709 | cat >> confdefs.h <<\EOF |
| 15710 | #ifdef HAVE_SYS_SOCKET_H |
| 15711 | #include <sys/socket.h> |
| 15712 | #endif |
| 15713 | EOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15714 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 15715 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 15716 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 15717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15718 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15719 | cat >conftest.$ac_ext <<_ACEOF |
| 15720 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15721 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15722 | $ac_includes_default |
| 15723 | #ifdef F77_DUMMY_MAIN |
| 15724 | # ifdef __cplusplus |
| 15725 | extern "C" |
| 15726 | # endif |
| 15727 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15728 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15729 | int |
| 15730 | main () |
| 15731 | { |
| 15732 | if ((socklen_t *) 0) |
| 15733 | return 0; |
| 15734 | if (sizeof (socklen_t)) |
| 15735 | return 0; |
| 15736 | ; |
| 15737 | return 0; |
| 15738 | } |
| 15739 | _ACEOF |
| 15740 | rm -f conftest.$ac_objext |
| 15741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15742 | (eval $ac_compile) 2>&5 |
| 15743 | ac_status=$? |
| 15744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15745 | (exit $ac_status); } && |
| 15746 | { ac_try='test -s conftest.$ac_objext' |
| 15747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15748 | (eval $ac_try) 2>&5 |
| 15749 | ac_status=$? |
| 15750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15751 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15752 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15754 | echo "$as_me: failed program was:" >&5 |
| 15755 | cat conftest.$ac_ext >&5 |
| 15756 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15757 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15758 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15759 | fi |
| 15760 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 15761 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 15762 | if test $ac_cv_type_socklen_t = yes; then |
| 15763 | : |
| 15764 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15766 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15767 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15768 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15769 | |
| 15770 | fi |
| 15771 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15772 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15773 | #AC_MSG_CHECKING(for Modules/Setup) |
| 15774 | #if test ! -f Modules/Setup ; then |
| 15775 | # if test ! -d Modules ; then |
| 15776 | # mkdir Modules |
| 15777 | # fi |
| 15778 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 15779 | # AC_MSG_RESULT(creating) |
| 15780 | #else |
| 15781 | # AC_MSG_RESULT(already exists) |
| 15782 | #fi |
| 15783 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15784 | |
| 15785 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 15786 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 15787 | do |
| 15788 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 15789 | done |
| 15790 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15791 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 15792 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15793 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 15794 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15795 | for dir in $SRCDIRS; do |
| 15796 | if test ! -d $dir; then |
| 15797 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 15798 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15799 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15800 | echo "$as_me:$LINENO: result: done" >&5 |
| 15801 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 15802 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15803 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15804 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
| 15805 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15806 | # This file is a shell script that caches the results of configure |
| 15807 | # 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] | 15808 | # scripts and configure runs, see configure's option --config-cache. |
| 15809 | # It is not useful on other systems. If it contains results you don't |
| 15810 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15811 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15812 | # config.status only pays attention to the cache file if you give it |
| 15813 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15814 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15815 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 15816 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15817 | # following values. |
| 15818 | |
| 15819 | _ACEOF |
| 15820 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15821 | # The following way of writing the cache mishandles newlines in values, |
| 15822 | # but we know of no workaround that is simple, portable, and efficient. |
| 15823 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15824 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15825 | # and sets the high bit in the cache file unless we assign to the vars. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15826 | { |
| 15827 | (set) 2>&1 | |
| 15828 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15829 | *ac_space=\ *) |
| 15830 | # `set' does not quote correctly, so add quotes (double-quote |
| 15831 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15832 | sed -n \ |
| 15833 | "s/'/'\\\\''/g; |
| 15834 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15835 | ;; |
| 15836 | *) |
| 15837 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15838 | sed -n \ |
| 15839 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15840 | ;; |
| 15841 | esac; |
| 15842 | } | |
| 15843 | sed ' |
| 15844 | t clear |
| 15845 | : clear |
| 15846 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15847 | t end |
| 15848 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15849 | : end' >>confcache |
| 15850 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15851 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15852 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15853 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15854 | else |
| 15855 | echo "not updating unwritable cache $cache_file" |
| 15856 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15857 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15858 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15859 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15860 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15861 | # Let make expand exec_prefix. |
| 15862 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15864 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15865 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15866 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15867 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15868 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15869 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15870 | s/:*\$(srcdir):*/:/; |
| 15871 | s/:*\${srcdir}:*/:/; |
| 15872 | s/:*@srcdir@:*/:/; |
| 15873 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15874 | s/:*$//; |
| 15875 | s/^[^=]*=[ ]*$//; |
| 15876 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15877 | fi |
| 15878 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15879 | DEFS=-DHAVE_CONFIG_H |
| 15880 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15881 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15882 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15883 | ac_clean_files_save=$ac_clean_files |
| 15884 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15885 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15886 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15887 | cat >$CONFIG_STATUS <<_ACEOF |
| 15888 | #! $SHELL |
| 15889 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15890 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15891 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15892 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15894 | debug=false |
| 15895 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15896 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15898 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15900 | ## --------------------- ## |
| 15901 | ## M4sh Initialization. ## |
| 15902 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15904 | # Be Bourne compatible |
| 15905 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15906 | emulate sh |
| 15907 | NULLCMD=: |
| 15908 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 15909 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15910 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15911 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15912 | # NLS nuisances. |
| 15913 | # Support unset when possible. |
| 15914 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 15915 | as_unset=unset |
| 15916 | else |
| 15917 | as_unset=false |
| 15918 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 15921 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 15922 | { LANG=C; export LANG; } |
| 15923 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 15924 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 15925 | { LC_ALL=C; export LC_ALL; } |
| 15926 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 15927 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 15928 | { LC_TIME=C; export LC_TIME; } |
| 15929 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 15930 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 15931 | { LC_CTYPE=C; export LC_CTYPE; } |
| 15932 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 15933 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 15934 | { LANGUAGE=C; export LANGUAGE; } |
| 15935 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 15936 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 15937 | { LC_COLLATE=C; export LC_COLLATE; } |
| 15938 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 15939 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 15940 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 15941 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 15942 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 15943 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 15944 | |
| 15945 | |
| 15946 | # Name of the executable. |
| 15947 | as_me=`(basename "$0") 2>/dev/null || |
| 15948 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15949 | X"$0" : 'X\(//\)$' \| \ |
| 15950 | X"$0" : 'X\(/\)$' \| \ |
| 15951 | . : '\(.\)' 2>/dev/null || |
| 15952 | echo X/"$0" | |
| 15953 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 15954 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 15955 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 15956 | s/.*/./; q'` |
| 15957 | |
| 15958 | # PATH needs CR, and LINENO needs CR and PATH. |
| 15959 | # Avoid depending upon Character Ranges. |
| 15960 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15961 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15962 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15963 | as_cr_digits='0123456789' |
| 15964 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15965 | |
| 15966 | # The user is always right. |
| 15967 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15968 | echo "#! /bin/sh" >conftest.sh |
| 15969 | echo "exit 0" >>conftest.sh |
| 15970 | chmod +x conftest.sh |
| 15971 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 15972 | PATH_SEPARATOR=';' |
| 15973 | else |
| 15974 | PATH_SEPARATOR=: |
| 15975 | fi |
| 15976 | rm -f conftest.sh |
| 15977 | fi |
| 15978 | |
| 15979 | |
| 15980 | as_lineno_1=$LINENO |
| 15981 | as_lineno_2=$LINENO |
| 15982 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15983 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15984 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 15985 | # Find who we are. Look in the path if we contain no path at all |
| 15986 | # relative or not. |
| 15987 | case $0 in |
| 15988 | *[\\/]* ) as_myself=$0 ;; |
| 15989 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15990 | for as_dir in $PATH |
| 15991 | do |
| 15992 | IFS=$as_save_IFS |
| 15993 | test -z "$as_dir" && as_dir=. |
| 15994 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15995 | done |
| 15996 | |
| 15997 | ;; |
| 15998 | esac |
| 15999 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16000 | # in which case we are not to be found in the path. |
| 16001 | if test "x$as_myself" = x; then |
| 16002 | as_myself=$0 |
| 16003 | fi |
| 16004 | if test ! -f "$as_myself"; then |
| 16005 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16006 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16007 | { (exit 1); exit 1; }; } |
| 16008 | fi |
| 16009 | case $CONFIG_SHELL in |
| 16010 | '') |
| 16011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16012 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16013 | do |
| 16014 | IFS=$as_save_IFS |
| 16015 | test -z "$as_dir" && as_dir=. |
| 16016 | for as_base in sh bash ksh sh5; do |
| 16017 | case $as_dir in |
| 16018 | /*) |
| 16019 | if ("$as_dir/$as_base" -c ' |
| 16020 | as_lineno_1=$LINENO |
| 16021 | as_lineno_2=$LINENO |
| 16022 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16023 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16024 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 16025 | CONFIG_SHELL=$as_dir/$as_base |
| 16026 | export CONFIG_SHELL |
| 16027 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16028 | fi;; |
| 16029 | esac |
| 16030 | done |
| 16031 | done |
| 16032 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16033 | esac |
| 16034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16035 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16036 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16037 | # line-number line before each line; the second 'sed' does the real |
| 16038 | # work. The second script uses 'N' to pair each line-number line |
| 16039 | # with the numbered line, and appends trailing '-' during |
| 16040 | # substitution so that $LINENO is not a special case at line end. |
| 16041 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16042 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16043 | sed '=' <$as_myself | |
| 16044 | sed ' |
| 16045 | N |
| 16046 | s,$,-, |
| 16047 | : loop |
| 16048 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16049 | t loop |
| 16050 | s,-$,, |
| 16051 | s,^['$as_cr_digits']*\n,, |
| 16052 | ' >$as_me.lineno && |
| 16053 | chmod +x $as_me.lineno || |
| 16054 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16055 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16056 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16058 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16059 | # (the dirname of $[0] is not the place where we might find the |
| 16060 | # original and so on. Autoconf is especially sensible to this). |
| 16061 | . ./$as_me.lineno |
| 16062 | # Exit status is that of the last command. |
| 16063 | exit |
| 16064 | } |
| 16065 | |
| 16066 | |
| 16067 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16068 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16069 | ' ECHO_T=' ' ;; |
| 16070 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16071 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16072 | esac |
| 16073 | |
| 16074 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16075 | as_expr=expr |
| 16076 | else |
| 16077 | as_expr=false |
| 16078 | fi |
| 16079 | |
| 16080 | rm -f conf$$ conf$$.exe conf$$.file |
| 16081 | echo >conf$$.file |
| 16082 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16083 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16084 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16085 | if test -f conf$$.exe; then |
| 16086 | # Don't use ln at all; we don't have any links |
| 16087 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16088 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16089 | as_ln_s='ln -s' |
| 16090 | fi |
| 16091 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16092 | as_ln_s=ln |
| 16093 | else |
| 16094 | as_ln_s='cp -p' |
| 16095 | fi |
| 16096 | rm -f conf$$ conf$$.exe conf$$.file |
| 16097 | |
| 16098 | as_executable_p="test -f" |
| 16099 | |
| 16100 | # Sed expression to map a string onto a valid CPP name. |
| 16101 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16102 | |
| 16103 | # Sed expression to map a string onto a valid variable name. |
| 16104 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16105 | |
| 16106 | |
| 16107 | # IFS |
| 16108 | # We need space, tab and new line, in precisely that order. |
| 16109 | as_nl=' |
| 16110 | ' |
| 16111 | IFS=" $as_nl" |
| 16112 | |
| 16113 | # CDPATH. |
| 16114 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16115 | |
| 16116 | exec 6>&1 |
| 16117 | |
| 16118 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16119 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16120 | # values after options handling. Logging --version etc. is OK. |
| 16121 | exec 5>>config.log |
| 16122 | { |
| 16123 | echo |
| 16124 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16125 | ## Running $as_me. ## |
| 16126 | _ASBOX |
| 16127 | } >&5 |
| 16128 | cat >&5 <<_CSEOF |
| 16129 | |
| 16130 | This file was extended by $as_me, which was |
| 16131 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16132 | |
| 16133 | CONFIG_FILES = $CONFIG_FILES |
| 16134 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16135 | CONFIG_LINKS = $CONFIG_LINKS |
| 16136 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16137 | $ $0 $@ |
| 16138 | |
| 16139 | _CSEOF |
| 16140 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16141 | echo >&5 |
| 16142 | _ACEOF |
| 16143 | |
| 16144 | # Files that config.status was made for. |
| 16145 | if test -n "$ac_config_files"; then |
| 16146 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16147 | fi |
| 16148 | |
| 16149 | if test -n "$ac_config_headers"; then |
| 16150 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16151 | fi |
| 16152 | |
| 16153 | if test -n "$ac_config_links"; then |
| 16154 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16155 | fi |
| 16156 | |
| 16157 | if test -n "$ac_config_commands"; then |
| 16158 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16159 | fi |
| 16160 | |
| 16161 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16162 | |
| 16163 | ac_cs_usage="\ |
| 16164 | \`$as_me' instantiates files from templates according to the |
| 16165 | current configuration. |
| 16166 | |
| 16167 | Usage: $0 [OPTIONS] [FILE]... |
| 16168 | |
| 16169 | -h, --help print this help, then exit |
| 16170 | -V, --version print version number, then exit |
| 16171 | -d, --debug don't remove temporary files |
| 16172 | --recheck update $as_me by reconfiguring in the same conditions |
| 16173 | --file=FILE[:TEMPLATE] |
| 16174 | instantiate the configuration file FILE |
| 16175 | --header=FILE[:TEMPLATE] |
| 16176 | instantiate the configuration header FILE |
| 16177 | |
| 16178 | Configuration files: |
| 16179 | $config_files |
| 16180 | |
| 16181 | Configuration headers: |
| 16182 | $config_headers |
| 16183 | |
| 16184 | Report bugs to <bug-autoconf@gnu.org>." |
| 16185 | _ACEOF |
| 16186 | |
| 16187 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16188 | ac_cs_version="\\ |
| 16189 | config.status |
| 16190 | configured by $0, generated by GNU Autoconf 2.53, |
| 16191 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 16192 | |
| 16193 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16194 | Free Software Foundation, Inc. |
| 16195 | This config.status script is free software; the Free Software Foundation |
| 16196 | gives unlimited permission to copy, distribute and modify it." |
| 16197 | srcdir=$srcdir |
| 16198 | INSTALL="$INSTALL" |
| 16199 | _ACEOF |
| 16200 | |
| 16201 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16202 | # If no file are specified by the user, then we need to provide default |
| 16203 | # value. By we need to know if files were specified by the user. |
| 16204 | ac_need_defaults=: |
| 16205 | while test $# != 0 |
| 16206 | do |
| 16207 | case $1 in |
| 16208 | --*=*) |
| 16209 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16210 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 16211 | shift |
| 16212 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 16213 | shift |
| 16214 | ;; |
| 16215 | -*);; |
| 16216 | *) # This is not an option, so the user has probably given explicit |
| 16217 | # arguments. |
| 16218 | ac_need_defaults=false;; |
| 16219 | esac |
| 16220 | |
| 16221 | case $1 in |
| 16222 | # Handling of the options. |
| 16223 | _ACEOF |
| 16224 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16225 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16226 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 16227 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 16228 | _ACEOF |
| 16229 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16230 | --version | --vers* | -V ) |
| 16231 | echo "$ac_cs_version"; exit 0 ;; |
| 16232 | --he | --h) |
| 16233 | # Conflict between --help and --header |
| 16234 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16235 | Try \`$0 --help' for more information." >&5 |
| 16236 | echo "$as_me: error: ambiguous option: $1 |
| 16237 | Try \`$0 --help' for more information." >&2;} |
| 16238 | { (exit 1); exit 1; }; };; |
| 16239 | --help | --hel | -h ) |
| 16240 | echo "$ac_cs_usage"; exit 0 ;; |
| 16241 | --debug | --d* | -d ) |
| 16242 | debug=: ;; |
| 16243 | --file | --fil | --fi | --f ) |
| 16244 | shift |
| 16245 | CONFIG_FILES="$CONFIG_FILES $1" |
| 16246 | ac_need_defaults=false;; |
| 16247 | --header | --heade | --head | --hea ) |
| 16248 | shift |
| 16249 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 16250 | ac_need_defaults=false;; |
| 16251 | |
| 16252 | # This is an error. |
| 16253 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16254 | Try \`$0 --help' for more information." >&5 |
| 16255 | echo "$as_me: error: unrecognized option: $1 |
| 16256 | Try \`$0 --help' for more information." >&2;} |
| 16257 | { (exit 1); exit 1; }; } ;; |
| 16258 | |
| 16259 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16260 | |
| 16261 | esac |
| 16262 | shift |
| 16263 | done |
| 16264 | |
| 16265 | _ACEOF |
| 16266 | |
| 16267 | |
| 16268 | |
| 16269 | |
| 16270 | |
| 16271 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16272 | for ac_config_target in $ac_config_targets |
| 16273 | do |
| 16274 | case "$ac_config_target" in |
| 16275 | # Handling of arguments. |
| 16276 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 16277 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 16278 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 16279 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16280 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16281 | { (exit 1); exit 1; }; };; |
| 16282 | esac |
| 16283 | done |
| 16284 | |
| 16285 | # If the user did not use the arguments to specify the items to instantiate, |
| 16286 | # then the envvar interface is used. Set only those that are not. |
| 16287 | # We use the long form for the default assignment because of an extremely |
| 16288 | # bizarre bug on SunOS 4.1.3. |
| 16289 | if $ac_need_defaults; then |
| 16290 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16291 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16292 | fi |
| 16293 | |
| 16294 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16295 | $debug || |
| 16296 | { |
| 16297 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16298 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16299 | } |
| 16300 | |
| 16301 | # Create a (secure) tmp directory for tmp files. |
| 16302 | : ${TMPDIR=/tmp} |
| 16303 | { |
| 16304 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 16305 | test -n "$tmp" && test -d "$tmp" |
| 16306 | } || |
| 16307 | { |
| 16308 | tmp=$TMPDIR/cs$$-$RANDOM |
| 16309 | (umask 077 && mkdir $tmp) |
| 16310 | } || |
| 16311 | { |
| 16312 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 16313 | { (exit 1); exit 1; } |
| 16314 | } |
| 16315 | |
| 16316 | _ACEOF |
| 16317 | |
| 16318 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16319 | |
| 16320 | # |
| 16321 | # CONFIG_FILES section. |
| 16322 | # |
| 16323 | |
| 16324 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16325 | # This happens for instance when ./config.status config.h |
| 16326 | if test -n "\$CONFIG_FILES"; then |
| 16327 | # Protect against being on the right side of a sed subst in config.status. |
| 16328 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16329 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16330 | s,@SHELL@,$SHELL,;t t |
| 16331 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16332 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16333 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16334 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16335 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16336 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16337 | s,@exec_prefix@,$exec_prefix,;t t |
| 16338 | s,@prefix@,$prefix,;t t |
| 16339 | s,@program_transform_name@,$program_transform_name,;t t |
| 16340 | s,@bindir@,$bindir,;t t |
| 16341 | s,@sbindir@,$sbindir,;t t |
| 16342 | s,@libexecdir@,$libexecdir,;t t |
| 16343 | s,@datadir@,$datadir,;t t |
| 16344 | s,@sysconfdir@,$sysconfdir,;t t |
| 16345 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16346 | s,@localstatedir@,$localstatedir,;t t |
| 16347 | s,@libdir@,$libdir,;t t |
| 16348 | s,@includedir@,$includedir,;t t |
| 16349 | s,@oldincludedir@,$oldincludedir,;t t |
| 16350 | s,@infodir@,$infodir,;t t |
| 16351 | s,@mandir@,$mandir,;t t |
| 16352 | s,@build_alias@,$build_alias,;t t |
| 16353 | s,@host_alias@,$host_alias,;t t |
| 16354 | s,@target_alias@,$target_alias,;t t |
| 16355 | s,@DEFS@,$DEFS,;t t |
| 16356 | s,@ECHO_C@,$ECHO_C,;t t |
| 16357 | s,@ECHO_N@,$ECHO_N,;t t |
| 16358 | s,@ECHO_T@,$ECHO_T,;t t |
| 16359 | s,@LIBS@,$LIBS,;t t |
| 16360 | s,@VERSION@,$VERSION,;t t |
| 16361 | s,@SOVERSION@,$SOVERSION,;t t |
| 16362 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 16363 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 16364 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 16365 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 16366 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 16367 | s,@MACHDEP@,$MACHDEP,;t t |
| 16368 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 16369 | s,@CXX@,$CXX,;t t |
| 16370 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 16371 | s,@EXEEXT@,$EXEEXT,;t t |
| 16372 | s,@CC@,$CC,;t t |
| 16373 | s,@CFLAGS@,$CFLAGS,;t t |
| 16374 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16375 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16376 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16377 | s,@OBJEXT@,$OBJEXT,;t t |
| 16378 | s,@CPP@,$CPP,;t t |
| 16379 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 16380 | s,@LIBRARY@,$LIBRARY,;t t |
| 16381 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 16382 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 16383 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 16384 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 16385 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 16386 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 16387 | s,@LINKCC@,$LINKCC,;t t |
| 16388 | s,@RANLIB@,$RANLIB,;t t |
| 16389 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 16390 | s,@AR@,$AR,;t t |
| 16391 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 16392 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 16393 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 16394 | s,@LN@,$LN,;t t |
| 16395 | s,@OPT@,$OPT,;t t |
| 16396 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 16397 | s,@SO@,$SO,;t t |
| 16398 | s,@LDSHARED@,$LDSHARED,;t t |
| 16399 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 16400 | s,@CCSHARED@,$CCSHARED,;t t |
| 16401 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 16402 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16403 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16404 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 16405 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 16406 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 16407 | s,@LDLAST@,$LDLAST,;t t |
| 16408 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 16409 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 16410 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 16411 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 16412 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16413 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 16414 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 16415 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 16416 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 16417 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 16418 | s,@LIBM@,$LIBM,;t t |
| 16419 | s,@LIBC@,$LIBC,;t t |
| 16420 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 16421 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 16422 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 16423 | CEOF |
| 16424 | |
| 16425 | _ACEOF |
| 16426 | |
| 16427 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16428 | # Split the substitutions into bite-sized pieces for seds with |
| 16429 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16430 | ac_max_sed_lines=48 |
| 16431 | ac_sed_frag=1 # Number of current file. |
| 16432 | ac_beg=1 # First line for current file. |
| 16433 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16434 | ac_more_lines=: |
| 16435 | ac_sed_cmds= |
| 16436 | while $ac_more_lines; do |
| 16437 | if test $ac_beg -gt 1; then |
| 16438 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16439 | else |
| 16440 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16441 | fi |
| 16442 | if test ! -s $tmp/subs.frag; then |
| 16443 | ac_more_lines=false |
| 16444 | else |
| 16445 | # The purpose of the label and of the branching condition is to |
| 16446 | # speed up the sed processing (if there are no `@' at all, there |
| 16447 | # is no need to browse any of the substitutions). |
| 16448 | # These are the two extra sed commands mentioned above. |
| 16449 | (echo ':t |
| 16450 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16451 | if test -z "$ac_sed_cmds"; then |
| 16452 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16453 | else |
| 16454 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16455 | fi |
| 16456 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16457 | ac_beg=$ac_end |
| 16458 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16459 | fi |
| 16460 | done |
| 16461 | if test -z "$ac_sed_cmds"; then |
| 16462 | ac_sed_cmds=cat |
| 16463 | fi |
| 16464 | fi # test -n "$CONFIG_FILES" |
| 16465 | |
| 16466 | _ACEOF |
| 16467 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16468 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16469 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16470 | case $ac_file in |
| 16471 | - | *:- | *:-:* ) # input from stdin |
| 16472 | cat >$tmp/stdin |
| 16473 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16474 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16475 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16476 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16477 | * ) ac_file_in=$ac_file.in ;; |
| 16478 | esac |
| 16479 | |
| 16480 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16481 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16482 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16483 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16484 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16485 | X"$ac_file" : 'X\(/\)' \| \ |
| 16486 | . : '\(.\)' 2>/dev/null || |
| 16487 | echo X"$ac_file" | |
| 16488 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16489 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16490 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16491 | /^X\(\/\).*/{ s//\1/; q; } |
| 16492 | s/.*/./; q'` |
| 16493 | { case "$ac_dir" in |
| 16494 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16495 | *) as_incr_dir=.;; |
| 16496 | esac |
| 16497 | as_dummy="$ac_dir" |
| 16498 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16499 | case $as_mkdir_dir in |
| 16500 | # Skip DOS drivespec |
| 16501 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16502 | *) |
| 16503 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16504 | test -d "$as_incr_dir" || |
| 16505 | mkdir "$as_incr_dir" || |
| 16506 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16507 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16508 | { (exit 1); exit 1; }; } |
| 16509 | ;; |
| 16510 | esac |
| 16511 | done; } |
| 16512 | |
| 16513 | ac_builddir=. |
| 16514 | |
| 16515 | if test "$ac_dir" != .; then |
| 16516 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16517 | # A "../" for each directory in $ac_dir_suffix. |
| 16518 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16519 | else |
| 16520 | ac_dir_suffix= ac_top_builddir= |
| 16521 | fi |
| 16522 | |
| 16523 | case $srcdir in |
| 16524 | .) # No --srcdir option. We are building in place. |
| 16525 | ac_srcdir=. |
| 16526 | if test -z "$ac_top_builddir"; then |
| 16527 | ac_top_srcdir=. |
| 16528 | else |
| 16529 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16530 | fi ;; |
| 16531 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16532 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16533 | ac_top_srcdir=$srcdir ;; |
| 16534 | *) # Relative path. |
| 16535 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16536 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16537 | esac |
| 16538 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 16539 | # absolute. |
| 16540 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 16541 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 16542 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 16543 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 16544 | |
| 16545 | |
| 16546 | case $INSTALL in |
| 16547 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 16548 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 16549 | esac |
| 16550 | |
| 16551 | if test x"$ac_file" != x-; then |
| 16552 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16553 | echo "$as_me: creating $ac_file" >&6;} |
| 16554 | rm -f "$ac_file" |
| 16555 | fi |
| 16556 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16557 | # use $as_me), people would be surprised to read: |
| 16558 | # /* config.h. Generated by config.status. */ |
| 16559 | if test x"$ac_file" = x-; then |
| 16560 | configure_input= |
| 16561 | else |
| 16562 | configure_input="$ac_file. " |
| 16563 | fi |
| 16564 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16565 | sed 's,.*/,,'` by configure." |
| 16566 | |
| 16567 | # First look for the input files in the build tree, otherwise in the |
| 16568 | # src tree. |
| 16569 | ac_file_inputs=`IFS=: |
| 16570 | for f in $ac_file_in; do |
| 16571 | case $f in |
| 16572 | -) echo $tmp/stdin ;; |
| 16573 | [\\/$]*) |
| 16574 | # Absolute (can't be DOS-style, as IFS=:) |
| 16575 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16576 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16577 | { (exit 1); exit 1; }; } |
| 16578 | echo $f;; |
| 16579 | *) # Relative |
| 16580 | if test -f "$f"; then |
| 16581 | # Build tree |
| 16582 | echo $f |
| 16583 | elif test -f "$srcdir/$f"; then |
| 16584 | # Source tree |
| 16585 | echo $srcdir/$f |
| 16586 | else |
| 16587 | # /dev/null tree |
| 16588 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16589 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16590 | { (exit 1); exit 1; }; } |
| 16591 | fi;; |
| 16592 | esac |
| 16593 | done` || { (exit 1); exit 1; } |
| 16594 | _ACEOF |
| 16595 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16596 | sed "$ac_vpsub |
| 16597 | $extrasub |
| 16598 | _ACEOF |
| 16599 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16600 | :t |
| 16601 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16602 | s,@configure_input@,$configure_input,;t t |
| 16603 | s,@srcdir@,$ac_srcdir,;t t |
| 16604 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16605 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16606 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16607 | s,@builddir@,$ac_builddir,;t t |
| 16608 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16609 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16610 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16611 | s,@INSTALL@,$ac_INSTALL,;t t |
| 16612 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16613 | rm -f $tmp/stdin |
| 16614 | if test x"$ac_file" != x-; then |
| 16615 | mv $tmp/out $ac_file |
| 16616 | else |
| 16617 | cat $tmp/out |
| 16618 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16619 | fi |
| 16620 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16621 | done |
| 16622 | _ACEOF |
| 16623 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16624 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16625 | # |
| 16626 | # CONFIG_HEADER section. |
| 16627 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16628 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16629 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16630 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16631 | # |
| 16632 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16633 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16634 | ac_dB='[ ].*$,\1#\2' |
| 16635 | ac_dC=' ' |
| 16636 | ac_dD=',;t' |
| 16637 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16638 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16639 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16640 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16641 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16643 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16644 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16645 | case $ac_file in |
| 16646 | - | *:- | *:-:* ) # input from stdin |
| 16647 | cat >$tmp/stdin |
| 16648 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16649 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16650 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16651 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16652 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16653 | esac |
| 16654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16655 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16656 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16658 | # First look for the input files in the build tree, otherwise in the |
| 16659 | # src tree. |
| 16660 | ac_file_inputs=`IFS=: |
| 16661 | for f in $ac_file_in; do |
| 16662 | case $f in |
| 16663 | -) echo $tmp/stdin ;; |
| 16664 | [\\/$]*) |
| 16665 | # Absolute (can't be DOS-style, as IFS=:) |
| 16666 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16667 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16668 | { (exit 1); exit 1; }; } |
| 16669 | echo $f;; |
| 16670 | *) # Relative |
| 16671 | if test -f "$f"; then |
| 16672 | # Build tree |
| 16673 | echo $f |
| 16674 | elif test -f "$srcdir/$f"; then |
| 16675 | # Source tree |
| 16676 | echo $srcdir/$f |
| 16677 | else |
| 16678 | # /dev/null tree |
| 16679 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16680 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16681 | { (exit 1); exit 1; }; } |
| 16682 | fi;; |
| 16683 | esac |
| 16684 | done` || { (exit 1); exit 1; } |
| 16685 | # Remove the trailing spaces. |
| 16686 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16688 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16690 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16691 | # `conftest.undefs', that substitutes the proper values into |
| 16692 | # config.h.in to produce config.h. The first handles `#define' |
| 16693 | # templates, and the second `#undef' templates. |
| 16694 | # And first: Protect against being on the right side of a sed subst in |
| 16695 | # config.status. Protect against being in an unquoted here document |
| 16696 | # in config.status. |
| 16697 | rm -f conftest.defines conftest.undefs |
| 16698 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16699 | # Putting comments in sed scripts is not portable. |
| 16700 | # |
| 16701 | # `end' is used to avoid that the second main sed command (meant for |
| 16702 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16703 | # See the Autoconf documentation for `clear'. |
| 16704 | cat >confdef2sed.sed <<\_ACEOF |
| 16705 | s/[\\&,]/\\&/g |
| 16706 | s,[\\$`],\\&,g |
| 16707 | t clear |
| 16708 | : clear |
| 16709 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16710 | t end |
| 16711 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16712 | : end |
| 16713 | _ACEOF |
| 16714 | # If some macros were called several times there might be several times |
| 16715 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16716 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16717 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16718 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16719 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16720 | |
| 16721 | # This sed command replaces #undef with comments. This is necessary, for |
| 16722 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16723 | # on some systems where configure will not decide to define it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16724 | cat >>conftest.undefs <<\_ACEOF |
| 16725 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16726 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16728 | # Break up conftest.defines because some shells have a limit on the size |
| 16729 | # of here documents, and old seds have small limits too (100 cmds). |
| 16730 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16731 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16732 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16733 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16734 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16735 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16736 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16737 | # Write a limited-size here document to $tmp/defines.sed. |
| 16738 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16739 | # Speed up: don't consider the non `#define' lines. |
| 16740 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16741 | # Work around the forget-to-reset-the-flag bug. |
| 16742 | echo 't clr' >>$CONFIG_STATUS |
| 16743 | echo ': clr' >>$CONFIG_STATUS |
| 16744 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16745 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16747 | rm -f $tmp/in |
| 16748 | mv $tmp/out $tmp/in |
| 16749 | ' >>$CONFIG_STATUS |
| 16750 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16751 | rm -f conftest.defines |
| 16752 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16753 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16754 | rm -f conftest.defines |
| 16755 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 16756 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16757 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16758 | # Break up conftest.undefs because some shells have a limit on the size |
| 16759 | # of here documents, and old seds have small limits too (100 cmds). |
| 16760 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16761 | rm -f conftest.tail |
| 16762 | while grep . conftest.undefs >/dev/null |
| 16763 | do |
| 16764 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16765 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16766 | # Speed up: don't consider the non `#undef' |
| 16767 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16768 | # Work around the forget-to-reset-the-flag bug. |
| 16769 | echo 't clr' >>$CONFIG_STATUS |
| 16770 | echo ': clr' >>$CONFIG_STATUS |
| 16771 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16772 | echo 'CEOF |
| 16773 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16774 | rm -f $tmp/in |
| 16775 | mv $tmp/out $tmp/in |
| 16776 | ' >>$CONFIG_STATUS |
| 16777 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16778 | rm -f conftest.undefs |
| 16779 | mv conftest.tail conftest.undefs |
| 16780 | done |
| 16781 | rm -f conftest.undefs |
| 16782 | |
| 16783 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16784 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16785 | # use $as_me), people would be surprised to read: |
| 16786 | # /* config.h. Generated by config.status. */ |
| 16787 | if test x"$ac_file" = x-; then |
| 16788 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16790 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16791 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16792 | cat $tmp/in >>$tmp/config.h |
| 16793 | rm -f $tmp/in |
| 16794 | if test x"$ac_file" != x-; then |
| 16795 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 16796 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16797 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16798 | else |
| 16799 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16800 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16801 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16802 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16803 | X"$ac_file" : 'X\(/\)' \| \ |
| 16804 | . : '\(.\)' 2>/dev/null || |
| 16805 | echo X"$ac_file" | |
| 16806 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16807 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16808 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16809 | /^X\(\/\).*/{ s//\1/; q; } |
| 16810 | s/.*/./; q'` |
| 16811 | { case "$ac_dir" in |
| 16812 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16813 | *) as_incr_dir=.;; |
| 16814 | esac |
| 16815 | as_dummy="$ac_dir" |
| 16816 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16817 | case $as_mkdir_dir in |
| 16818 | # Skip DOS drivespec |
| 16819 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16820 | *) |
| 16821 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16822 | test -d "$as_incr_dir" || |
| 16823 | mkdir "$as_incr_dir" || |
| 16824 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16825 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16826 | { (exit 1); exit 1; }; } |
| 16827 | ;; |
| 16828 | esac |
| 16829 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16831 | rm -f $ac_file |
| 16832 | mv $tmp/config.h $ac_file |
| 16833 | fi |
| 16834 | else |
| 16835 | cat $tmp/config.h |
| 16836 | rm -f $tmp/config.h |
| 16837 | fi |
| 16838 | done |
| 16839 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16841 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16843 | { (exit 0); exit 0; } |
| 16844 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16845 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16846 | ac_clean_files=$ac_clean_files_save |
| 16847 | |
| 16848 | |
| 16849 | # configure is writing to config.log, and then calls config.status. |
| 16850 | # config.status does its own redirection, appending to config.log. |
| 16851 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16852 | # by configure, so config.status won't be able to write to it; its |
| 16853 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16854 | # effectively closing config.log, so it can be properly (re)opened and |
| 16855 | # appended to by config.status. When coming back to configure, we |
| 16856 | # need to make the FD available again. |
| 16857 | if test "$no_create" != yes; then |
| 16858 | ac_cs_success=: |
| 16859 | exec 5>/dev/null |
| 16860 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 16861 | exec 5>>config.log |
| 16862 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16863 | # would make configure fail if this is the last instruction. |
| 16864 | $ac_cs_success || { (exit 1); exit 1; } |
| 16865 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16866 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16867 | |
| 16868 | echo "creating Setup" |
| 16869 | if test ! -f Modules/Setup |
| 16870 | then |
| 16871 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 16872 | fi |
| 16873 | |
| 16874 | echo "creating Setup.local" |
| 16875 | if test ! -f Modules/Setup.local |
| 16876 | then |
| 16877 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 16878 | fi |
| 16879 | |
| 16880 | echo "creating Makefile" |
| 16881 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 16882 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 16883 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 16884 | mv config.c Modules |