Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | 0cec0ff | 2002-07-28 16:33:45 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.335 . |
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 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1228 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1229 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1230 | |
| 1231 | cat >>confdefs.h <<\_ACEOF |
| 1232 | #define _GNU_SOURCE 1 |
| 1233 | _ACEOF |
| 1234 | |
| 1235 | |
| 1236 | # The definition of _GNU_SOURCE potentially causes a change of the value |
| 1237 | # of _XOPEN_SOURCE. So define it only conditionally. |
| 1238 | |
| 1239 | |
| 1240 | cat >>confdefs.h <<\_ACEOF |
| 1241 | #define _XOPEN_SOURCE 500 |
| 1242 | _ACEOF |
| 1243 | |
| 1244 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1245 | # Arguments passed to configure. |
| 1246 | |
| 1247 | CONFIG_ARGS="$ac_configure_args" |
| 1248 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1249 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1250 | # Check whether --enable-framework or --disable-framework was given. |
| 1251 | if test "${enable_framework+set}" = set; then |
| 1252 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1253 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1254 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1255 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1256 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1257 | esac |
| 1258 | case $enableval in |
| 1259 | no) |
| 1260 | PYTHONFRAMEWORK= |
| 1261 | PYTHONFRAMEWORKDIR=no-framework |
| 1262 | PYTHONFRAMEWORKPREFIX= |
| 1263 | PYTHONFRAMEWORKINSTALLDIR= |
| 1264 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1265 | ;; |
| 1266 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1267 | PYTHONFRAMEWORK=Python |
| 1268 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1269 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1270 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1271 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1272 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1273 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1274 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1276 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1277 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1278 | PYTHONFRAMEWORKPREFIX= |
| 1279 | PYTHONFRAMEWORKINSTALLDIR= |
| 1280 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1282 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1287 | |
| 1288 | ##AC_ARG_WITH(dyld, |
| 1289 | ##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,) |
| 1290 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1291 | # Set name for machine-dependent library files |
| 1292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1293 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1294 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1295 | if test -z "$MACHDEP" |
| 1296 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1297 | ac_sys_system=`uname -s` |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1298 | 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] | 1299 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1300 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1301 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1302 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1303 | ac_md_system=`echo $ac_sys_system | |
| 1304 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1305 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1306 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1307 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1308 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1309 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1310 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1311 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1312 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1313 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1314 | esac |
| 1315 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1316 | |
| 1317 | # |
| 1318 | # SGI compilers allow the specification of the both the ABI and the |
| 1319 | # ISA on the command line. Depending on the values of these switches, |
| 1320 | # different and often incompatable code will be generated. |
| 1321 | # |
| 1322 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1323 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1324 | # variable is also adjusted. |
| 1325 | # |
| 1326 | |
| 1327 | if test ! -z "$SGI_ABI" |
| 1328 | then |
| 1329 | CC="cc $SGI_ABI" |
| 1330 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1331 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1332 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1333 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1334 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1335 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1336 | # checks for alternative programs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1337 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1338 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1339 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1340 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1341 | if test "${with_gcc+set}" = set; then |
| 1342 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1343 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1344 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1345 | no) CC=cc |
| 1346 | without_gcc=yes;; |
| 1347 | yes) CC=gcc |
| 1348 | without_gcc=no;; |
| 1349 | *) CC=$withval |
| 1350 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1351 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1353 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1354 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1355 | AIX*) CC=cc_r |
| 1356 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1357 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1358 | case $BE_HOST_CPU in |
| 1359 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1360 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1361 | without_gcc=yes |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 1362 | OPT="-O -export pragma" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1363 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1364 | ;; |
| 1365 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1366 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1367 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1368 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1369 | ;; |
| 1370 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1371 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1372 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1373 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1374 | ;; |
| 1375 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1376 | AR="\$(srcdir)/Modules/ar_beos" |
| 1377 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1378 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1379 | Monterey*) |
| 1380 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1381 | without_gcc=;; |
| 1382 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1383 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1384 | fi; |
| 1385 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1386 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1387 | |
| 1388 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1389 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1390 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1391 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1392 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1393 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1394 | # Check whether --with-cxx or --without-cxx was given. |
| 1395 | if test "${with_cxx+set}" = set; then |
| 1396 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1397 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1398 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1399 | case $withval in |
| 1400 | no) CXX= |
| 1401 | with_cxx=no;; |
| 1402 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1403 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1404 | with_cxx=$withval;; |
| 1405 | esac |
| 1406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1407 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1408 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1409 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1411 | fi; |
| 1412 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1413 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1414 | |
| 1415 | if test "$with_cxx" = "yes" |
| 1416 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1417 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1418 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1419 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1420 | fi |
| 1421 | |
| 1422 | |
| 1423 | |
| 1424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1425 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1426 | then |
| 1427 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1428 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1429 | # 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] | 1430 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1431 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1433 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1435 | else |
| 1436 | if test -n "$CXX"; then |
| 1437 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1440 | for as_dir in $PATH |
| 1441 | do |
| 1442 | IFS=$as_save_IFS |
| 1443 | test -z "$as_dir" && as_dir=. |
| 1444 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1445 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1446 | ac_cv_prog_CXX="$ac_prog" |
| 1447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1448 | break 2 |
| 1449 | fi |
| 1450 | done |
| 1451 | done |
| 1452 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1453 | fi |
| 1454 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1456 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1457 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1458 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1460 | echo "$as_me:$LINENO: result: no" >&5 |
| 1461 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1462 | fi |
| 1463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1464 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1465 | done |
| 1466 | test -n "$CXX" || CXX="notfound" |
| 1467 | |
| 1468 | if test "$CXX" = "notfound" |
| 1469 | then |
| 1470 | CXX= |
| 1471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1472 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1473 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1474 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1475 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1476 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1477 | cat >conftest.$ac_ext <<_ACEOF |
| 1478 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1479 | #include "confdefs.h" |
| 1480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1481 | #ifdef F77_DUMMY_MAIN |
| 1482 | # ifdef __cplusplus |
| 1483 | extern "C" |
| 1484 | # endif |
| 1485 | int F77_DUMMY_MAIN() { return 1; } |
| 1486 | #endif |
| 1487 | int |
| 1488 | main () |
| 1489 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1491 | ; |
| 1492 | return 0; |
| 1493 | } |
| 1494 | _ACEOF |
| 1495 | ac_clean_files_save=$ac_clean_files |
| 1496 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1497 | # Try to create an executable without -o first, disregard a.out. |
| 1498 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1499 | # of exeext. |
| 1500 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1501 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1502 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1503 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1504 | (eval $ac_link_default) 2>&5 |
| 1505 | ac_status=$? |
| 1506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1507 | (exit $ac_status); }; then |
| 1508 | # Find the output, starting from the most likely. This scheme is |
| 1509 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1510 | # resort. |
| 1511 | |
| 1512 | # Be careful to initialize this variable, since it used to be cached. |
| 1513 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1514 | ac_cv_exeext= |
| 1515 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1516 | ls a.out conftest 2>/dev/null; |
| 1517 | ls a.* conftest.* 2>/dev/null`; do |
| 1518 | case $ac_file in |
| 1519 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1520 | a.out ) # We found the default executable, but exeext='' is most |
| 1521 | # certainly right. |
| 1522 | break;; |
| 1523 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1524 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1525 | export ac_cv_exeext |
| 1526 | break;; |
| 1527 | * ) break;; |
| 1528 | esac |
| 1529 | done |
| 1530 | else |
| 1531 | echo "$as_me: failed program was:" >&5 |
| 1532 | cat conftest.$ac_ext >&5 |
| 1533 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1534 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
| 1535 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1536 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1537 | |
| 1538 | ac_exeext=$ac_cv_exeext |
| 1539 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1540 | echo "${ECHO_T}$ac_file" >&6 |
| 1541 | |
| 1542 | # Check the compiler produces executables we can run. If not, either |
| 1543 | # the compiler is broken, or we cross compile. |
| 1544 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1545 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1546 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1547 | # If not cross compiling, check that we can run a simple program. |
| 1548 | if test "$cross_compiling" != yes; then |
| 1549 | if { ac_try='./$ac_file' |
| 1550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1551 | (eval $ac_try) 2>&5 |
| 1552 | ac_status=$? |
| 1553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1554 | (exit $ac_status); }; }; then |
| 1555 | cross_compiling=no |
| 1556 | else |
| 1557 | if test "$cross_compiling" = maybe; then |
| 1558 | cross_compiling=yes |
| 1559 | else |
| 1560 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1561 | If you meant to cross compile, use \`--host'." >&5 |
| 1562 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1563 | If you meant to cross compile, use \`--host'." >&2;} |
| 1564 | { (exit 1); exit 1; }; } |
| 1565 | fi |
| 1566 | fi |
| 1567 | fi |
| 1568 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1569 | echo "${ECHO_T}yes" >&6 |
| 1570 | |
| 1571 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1572 | ac_clean_files=$ac_clean_files_save |
| 1573 | # Check the compiler produces executables we can run. If not, either |
| 1574 | # the compiler is broken, or we cross compile. |
| 1575 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1576 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1577 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1578 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1579 | |
| 1580 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1581 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1583 | (eval $ac_link) 2>&5 |
| 1584 | ac_status=$? |
| 1585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1586 | (exit $ac_status); }; then |
| 1587 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1588 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1589 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1590 | # `rm'. |
| 1591 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1592 | case $ac_file in |
| 1593 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1594 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1595 | export ac_cv_exeext |
| 1596 | break;; |
| 1597 | * ) break;; |
| 1598 | esac |
| 1599 | done |
| 1600 | else |
| 1601 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1602 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1603 | { (exit 1); exit 1; }; } |
| 1604 | fi |
| 1605 | |
| 1606 | rm -f conftest$ac_cv_exeext |
| 1607 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1608 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1609 | |
| 1610 | rm -f conftest.$ac_ext |
| 1611 | EXEEXT=$ac_cv_exeext |
| 1612 | ac_exeext=$EXEEXT |
| 1613 | |
| 1614 | ac_ext=c |
| 1615 | ac_cpp='$CPP $CPPFLAGS' |
| 1616 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1617 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1618 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1619 | |
| 1620 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1621 | |
| 1622 | fi |
| 1623 | fi |
| 1624 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1625 | # If the user switches compilers, we can't believe the cache |
| 1626 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1627 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1628 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1629 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1630 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1631 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1632 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1633 | fi |
| 1634 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1635 | ac_ext=c |
| 1636 | ac_cpp='$CPP $CPPFLAGS' |
| 1637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1640 | if test -n "$ac_tool_prefix"; then |
| 1641 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1642 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1643 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1645 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1647 | else |
| 1648 | if test -n "$CC"; then |
| 1649 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1652 | for as_dir in $PATH |
| 1653 | do |
| 1654 | IFS=$as_save_IFS |
| 1655 | test -z "$as_dir" && as_dir=. |
| 1656 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1657 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1658 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1659 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1660 | break 2 |
| 1661 | fi |
| 1662 | done |
| 1663 | done |
| 1664 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1665 | fi |
| 1666 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1667 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1668 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1669 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1670 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1671 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1672 | echo "$as_me:$LINENO: result: no" >&5 |
| 1673 | echo "${ECHO_T}no" >&6 |
| 1674 | fi |
| 1675 | |
| 1676 | fi |
| 1677 | if test -z "$ac_cv_prog_CC"; then |
| 1678 | ac_ct_CC=$CC |
| 1679 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1680 | set dummy gcc; ac_word=$2 |
| 1681 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1682 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1683 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1685 | else |
| 1686 | if test -n "$ac_ct_CC"; then |
| 1687 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1688 | else |
| 1689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1690 | for as_dir in $PATH |
| 1691 | do |
| 1692 | IFS=$as_save_IFS |
| 1693 | test -z "$as_dir" && as_dir=. |
| 1694 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1695 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1696 | ac_cv_prog_ac_ct_CC="gcc" |
| 1697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1698 | break 2 |
| 1699 | fi |
| 1700 | done |
| 1701 | done |
| 1702 | |
| 1703 | fi |
| 1704 | fi |
| 1705 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1706 | if test -n "$ac_ct_CC"; then |
| 1707 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1708 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1709 | else |
| 1710 | echo "$as_me:$LINENO: result: no" >&5 |
| 1711 | echo "${ECHO_T}no" >&6 |
| 1712 | fi |
| 1713 | |
| 1714 | CC=$ac_ct_CC |
| 1715 | else |
| 1716 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1717 | fi |
| 1718 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1719 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | if test -n "$ac_tool_prefix"; then |
| 1721 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1722 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1723 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1724 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1725 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1727 | else |
| 1728 | if test -n "$CC"; then |
| 1729 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1732 | for as_dir in $PATH |
| 1733 | do |
| 1734 | IFS=$as_save_IFS |
| 1735 | test -z "$as_dir" && as_dir=. |
| 1736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1737 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1738 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1739 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1740 | break 2 |
| 1741 | fi |
| 1742 | done |
| 1743 | done |
| 1744 | |
| 1745 | fi |
| 1746 | fi |
| 1747 | CC=$ac_cv_prog_CC |
| 1748 | if test -n "$CC"; then |
| 1749 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1750 | echo "${ECHO_T}$CC" >&6 |
| 1751 | else |
| 1752 | echo "$as_me:$LINENO: result: no" >&5 |
| 1753 | echo "${ECHO_T}no" >&6 |
| 1754 | fi |
| 1755 | |
| 1756 | fi |
| 1757 | if test -z "$ac_cv_prog_CC"; then |
| 1758 | ac_ct_CC=$CC |
| 1759 | # Extract the first word of "cc", so it can be a program name with args. |
| 1760 | set dummy cc; ac_word=$2 |
| 1761 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1763 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1765 | else |
| 1766 | if test -n "$ac_ct_CC"; then |
| 1767 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1768 | else |
| 1769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1770 | for as_dir in $PATH |
| 1771 | do |
| 1772 | IFS=$as_save_IFS |
| 1773 | test -z "$as_dir" && as_dir=. |
| 1774 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1775 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1776 | ac_cv_prog_ac_ct_CC="cc" |
| 1777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1778 | break 2 |
| 1779 | fi |
| 1780 | done |
| 1781 | done |
| 1782 | |
| 1783 | fi |
| 1784 | fi |
| 1785 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1786 | if test -n "$ac_ct_CC"; then |
| 1787 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1788 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1789 | else |
| 1790 | echo "$as_me:$LINENO: result: no" >&5 |
| 1791 | echo "${ECHO_T}no" >&6 |
| 1792 | fi |
| 1793 | |
| 1794 | CC=$ac_ct_CC |
| 1795 | else |
| 1796 | CC="$ac_cv_prog_CC" |
| 1797 | fi |
| 1798 | |
| 1799 | fi |
| 1800 | if test -z "$CC"; then |
| 1801 | # Extract the first word of "cc", so it can be a program name with args. |
| 1802 | set dummy cc; ac_word=$2 |
| 1803 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1804 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1805 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1807 | else |
| 1808 | if test -n "$CC"; then |
| 1809 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1810 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1811 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1813 | for as_dir in $PATH |
| 1814 | do |
| 1815 | IFS=$as_save_IFS |
| 1816 | test -z "$as_dir" && as_dir=. |
| 1817 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1818 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1819 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1820 | ac_prog_rejected=yes |
| 1821 | continue |
| 1822 | fi |
| 1823 | ac_cv_prog_CC="cc" |
| 1824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1825 | break 2 |
| 1826 | fi |
| 1827 | done |
| 1828 | done |
| 1829 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1830 | if test $ac_prog_rejected = yes; then |
| 1831 | # We found a bogon in the path, so make sure we never use it. |
| 1832 | set dummy $ac_cv_prog_CC |
| 1833 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1834 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1835 | # We chose a different compiler from the bogus one. |
| 1836 | # However, it has the same basename, so the bogon will be chosen |
| 1837 | # first if we set CC to just the basename; use the full file name. |
| 1838 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1839 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1840 | shift |
| 1841 | ac_cv_prog_CC="$@" |
| 1842 | fi |
| 1843 | fi |
| 1844 | fi |
| 1845 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1846 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1847 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1848 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1849 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1851 | echo "$as_me:$LINENO: result: no" >&5 |
| 1852 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1853 | fi |
| 1854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1855 | fi |
| 1856 | if test -z "$CC"; then |
| 1857 | if test -n "$ac_tool_prefix"; then |
| 1858 | for ac_prog in cl |
| 1859 | do |
| 1860 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1861 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1864 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1866 | else |
| 1867 | if test -n "$CC"; then |
| 1868 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1871 | for as_dir in $PATH |
| 1872 | do |
| 1873 | IFS=$as_save_IFS |
| 1874 | test -z "$as_dir" && as_dir=. |
| 1875 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1877 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1879 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1880 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1881 | done |
| 1882 | done |
| 1883 | |
| 1884 | fi |
| 1885 | fi |
| 1886 | CC=$ac_cv_prog_CC |
| 1887 | if test -n "$CC"; then |
| 1888 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1889 | echo "${ECHO_T}$CC" >&6 |
| 1890 | else |
| 1891 | echo "$as_me:$LINENO: result: no" >&5 |
| 1892 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1893 | fi |
| 1894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1895 | test -n "$CC" && break |
| 1896 | done |
| 1897 | fi |
| 1898 | if test -z "$CC"; then |
| 1899 | ac_ct_CC=$CC |
| 1900 | for ac_prog in cl |
| 1901 | do |
| 1902 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1903 | set dummy $ac_prog; ac_word=$2 |
| 1904 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1905 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1906 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1908 | else |
| 1909 | if test -n "$ac_ct_CC"; then |
| 1910 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1911 | else |
| 1912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1913 | for as_dir in $PATH |
| 1914 | do |
| 1915 | IFS=$as_save_IFS |
| 1916 | test -z "$as_dir" && as_dir=. |
| 1917 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1918 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1919 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1921 | break 2 |
| 1922 | fi |
| 1923 | done |
| 1924 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1925 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1926 | fi |
| 1927 | fi |
| 1928 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1929 | if test -n "$ac_ct_CC"; then |
| 1930 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1931 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1932 | else |
| 1933 | echo "$as_me:$LINENO: result: no" >&5 |
| 1934 | echo "${ECHO_T}no" >&6 |
| 1935 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1937 | test -n "$ac_ct_CC" && break |
| 1938 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1940 | CC=$ac_ct_CC |
| 1941 | fi |
| 1942 | |
| 1943 | fi |
| 1944 | |
| 1945 | |
| 1946 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1947 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 1948 | { (exit 1); exit 1; }; } |
| 1949 | |
| 1950 | # Provide some information about the compiler. |
| 1951 | echo "$as_me:$LINENO:" \ |
| 1952 | "checking for C compiler version" >&5 |
| 1953 | ac_compiler=`set X $ac_compile; echo $2` |
| 1954 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1955 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1956 | ac_status=$? |
| 1957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1958 | (exit $ac_status); } |
| 1959 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1960 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1961 | ac_status=$? |
| 1962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1963 | (exit $ac_status); } |
| 1964 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1965 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1966 | ac_status=$? |
| 1967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1968 | (exit $ac_status); } |
| 1969 | |
| 1970 | cat >conftest.$ac_ext <<_ACEOF |
| 1971 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1972 | #include "confdefs.h" |
| 1973 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1974 | #ifdef F77_DUMMY_MAIN |
| 1975 | # ifdef __cplusplus |
| 1976 | extern "C" |
| 1977 | # endif |
| 1978 | int F77_DUMMY_MAIN() { return 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1979 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1980 | int |
| 1981 | main () |
| 1982 | { |
| 1983 | |
| 1984 | ; |
| 1985 | return 0; |
| 1986 | } |
| 1987 | _ACEOF |
| 1988 | ac_clean_files_save=$ac_clean_files |
| 1989 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1990 | # Try to create an executable without -o first, disregard a.out. |
| 1991 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1992 | # of exeext. |
| 1993 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 1994 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1995 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1996 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1997 | (eval $ac_link_default) 2>&5 |
| 1998 | ac_status=$? |
| 1999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2000 | (exit $ac_status); }; then |
| 2001 | # Find the output, starting from the most likely. This scheme is |
| 2002 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2003 | # resort. |
| 2004 | |
| 2005 | # Be careful to initialize this variable, since it used to be cached. |
| 2006 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2007 | ac_cv_exeext= |
| 2008 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2009 | ls a.out conftest 2>/dev/null; |
| 2010 | ls a.* conftest.* 2>/dev/null`; do |
| 2011 | case $ac_file in |
| 2012 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 2013 | a.out ) # We found the default executable, but exeext='' is most |
| 2014 | # certainly right. |
| 2015 | break;; |
| 2016 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2017 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2018 | export ac_cv_exeext |
| 2019 | break;; |
| 2020 | * ) break;; |
| 2021 | esac |
| 2022 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2024 | echo "$as_me: failed program was:" >&5 |
| 2025 | cat conftest.$ac_ext >&5 |
| 2026 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2027 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2028 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2029 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2031 | ac_exeext=$ac_cv_exeext |
| 2032 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2033 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2035 | # Check the compiler produces executables we can run. If not, either |
| 2036 | # the compiler is broken, or we cross compile. |
| 2037 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2038 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2039 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2040 | # If not cross compiling, check that we can run a simple program. |
| 2041 | if test "$cross_compiling" != yes; then |
| 2042 | if { ac_try='./$ac_file' |
| 2043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2044 | (eval $ac_try) 2>&5 |
| 2045 | ac_status=$? |
| 2046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2047 | (exit $ac_status); }; }; then |
| 2048 | cross_compiling=no |
| 2049 | else |
| 2050 | if test "$cross_compiling" = maybe; then |
| 2051 | cross_compiling=yes |
| 2052 | else |
| 2053 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2054 | If you meant to cross compile, use \`--host'." >&5 |
| 2055 | echo "$as_me: error: cannot run C compiled programs. |
| 2056 | If you meant to cross compile, use \`--host'." >&2;} |
| 2057 | { (exit 1); exit 1; }; } |
| 2058 | fi |
| 2059 | fi |
| 2060 | fi |
| 2061 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2062 | echo "${ECHO_T}yes" >&6 |
| 2063 | |
| 2064 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2065 | ac_clean_files=$ac_clean_files_save |
| 2066 | # Check the compiler produces executables we can run. If not, either |
| 2067 | # the compiler is broken, or we cross compile. |
| 2068 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2069 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2070 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2071 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2072 | |
| 2073 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2074 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2076 | (eval $ac_link) 2>&5 |
| 2077 | ac_status=$? |
| 2078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2079 | (exit $ac_status); }; then |
| 2080 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2081 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2082 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2083 | # `rm'. |
| 2084 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2085 | case $ac_file in |
| 2086 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2087 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2088 | export ac_cv_exeext |
| 2089 | break;; |
| 2090 | * ) break;; |
| 2091 | esac |
| 2092 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2093 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2094 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2095 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2096 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2097 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2099 | rm -f conftest$ac_cv_exeext |
| 2100 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2101 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2102 | |
| 2103 | rm -f conftest.$ac_ext |
| 2104 | EXEEXT=$ac_cv_exeext |
| 2105 | ac_exeext=$EXEEXT |
| 2106 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2107 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2108 | if test "${ac_cv_objext+set}" = set; then |
| 2109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2110 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2111 | cat >conftest.$ac_ext <<_ACEOF |
| 2112 | #line $LINENO "configure" |
| 2113 | #include "confdefs.h" |
| 2114 | |
| 2115 | #ifdef F77_DUMMY_MAIN |
| 2116 | # ifdef __cplusplus |
| 2117 | extern "C" |
| 2118 | # endif |
| 2119 | int F77_DUMMY_MAIN() { return 1; } |
| 2120 | #endif |
| 2121 | int |
| 2122 | main () |
| 2123 | { |
| 2124 | |
| 2125 | ; |
| 2126 | return 0; |
| 2127 | } |
| 2128 | _ACEOF |
| 2129 | rm -f conftest.o conftest.obj |
| 2130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2131 | (eval $ac_compile) 2>&5 |
| 2132 | ac_status=$? |
| 2133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2134 | (exit $ac_status); }; then |
| 2135 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2136 | case $ac_file in |
| 2137 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2138 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2139 | break;; |
| 2140 | esac |
| 2141 | done |
| 2142 | else |
| 2143 | echo "$as_me: failed program was:" >&5 |
| 2144 | cat conftest.$ac_ext >&5 |
| 2145 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2146 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2147 | { (exit 1); exit 1; }; } |
| 2148 | fi |
| 2149 | |
| 2150 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2151 | fi |
| 2152 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2153 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2154 | OBJEXT=$ac_cv_objext |
| 2155 | ac_objext=$OBJEXT |
| 2156 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2157 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2158 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2160 | else |
| 2161 | cat >conftest.$ac_ext <<_ACEOF |
| 2162 | #line $LINENO "configure" |
| 2163 | #include "confdefs.h" |
| 2164 | |
| 2165 | #ifdef F77_DUMMY_MAIN |
| 2166 | # ifdef __cplusplus |
| 2167 | extern "C" |
| 2168 | # endif |
| 2169 | int F77_DUMMY_MAIN() { return 1; } |
| 2170 | #endif |
| 2171 | int |
| 2172 | main () |
| 2173 | { |
| 2174 | #ifndef __GNUC__ |
| 2175 | choke me |
| 2176 | #endif |
| 2177 | |
| 2178 | ; |
| 2179 | return 0; |
| 2180 | } |
| 2181 | _ACEOF |
| 2182 | rm -f conftest.$ac_objext |
| 2183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2184 | (eval $ac_compile) 2>&5 |
| 2185 | ac_status=$? |
| 2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2187 | (exit $ac_status); } && |
| 2188 | { ac_try='test -s conftest.$ac_objext' |
| 2189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2190 | (eval $ac_try) 2>&5 |
| 2191 | ac_status=$? |
| 2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2193 | (exit $ac_status); }; }; then |
| 2194 | ac_compiler_gnu=yes |
| 2195 | else |
| 2196 | echo "$as_me: failed program was:" >&5 |
| 2197 | cat conftest.$ac_ext >&5 |
| 2198 | ac_compiler_gnu=no |
| 2199 | fi |
| 2200 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2201 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2202 | |
| 2203 | fi |
| 2204 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2205 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2206 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2207 | ac_test_CFLAGS=${CFLAGS+set} |
| 2208 | ac_save_CFLAGS=$CFLAGS |
| 2209 | CFLAGS="-g" |
| 2210 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2211 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2212 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2214 | else |
| 2215 | cat >conftest.$ac_ext <<_ACEOF |
| 2216 | #line $LINENO "configure" |
| 2217 | #include "confdefs.h" |
| 2218 | |
| 2219 | #ifdef F77_DUMMY_MAIN |
| 2220 | # ifdef __cplusplus |
| 2221 | extern "C" |
| 2222 | # endif |
| 2223 | int F77_DUMMY_MAIN() { return 1; } |
| 2224 | #endif |
| 2225 | int |
| 2226 | main () |
| 2227 | { |
| 2228 | |
| 2229 | ; |
| 2230 | return 0; |
| 2231 | } |
| 2232 | _ACEOF |
| 2233 | rm -f conftest.$ac_objext |
| 2234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2235 | (eval $ac_compile) 2>&5 |
| 2236 | ac_status=$? |
| 2237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2238 | (exit $ac_status); } && |
| 2239 | { ac_try='test -s conftest.$ac_objext' |
| 2240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2241 | (eval $ac_try) 2>&5 |
| 2242 | ac_status=$? |
| 2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2244 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2245 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2246 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2247 | echo "$as_me: failed program was:" >&5 |
| 2248 | cat conftest.$ac_ext >&5 |
| 2249 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2250 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2251 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2252 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2253 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2254 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2255 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2256 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2257 | elif test $ac_cv_prog_cc_g = yes; then |
| 2258 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2259 | CFLAGS="-g -O2" |
| 2260 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2261 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2262 | fi |
| 2263 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2264 | if test "$GCC" = yes; then |
| 2265 | CFLAGS="-O2" |
| 2266 | else |
| 2267 | CFLAGS= |
| 2268 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2269 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2270 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2271 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2272 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2273 | # the declaration of exit, since it's the most demanding environment. |
| 2274 | cat >conftest.$ac_ext <<_ACEOF |
| 2275 | #ifndef __cplusplus |
| 2276 | choke me |
| 2277 | #endif |
| 2278 | _ACEOF |
| 2279 | rm -f conftest.$ac_objext |
| 2280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2281 | (eval $ac_compile) 2>&5 |
| 2282 | ac_status=$? |
| 2283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2284 | (exit $ac_status); } && |
| 2285 | { ac_try='test -s conftest.$ac_objext' |
| 2286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2287 | (eval $ac_try) 2>&5 |
| 2288 | ac_status=$? |
| 2289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2290 | (exit $ac_status); }; }; then |
| 2291 | for ac_declaration in \ |
| 2292 | ''\ |
| 2293 | '#include <stdlib.h>' \ |
| 2294 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2295 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2296 | 'extern "C" void exit (int) throw ();' \ |
| 2297 | 'extern "C" void exit (int);' \ |
| 2298 | 'void exit (int);' |
| 2299 | do |
| 2300 | cat >conftest.$ac_ext <<_ACEOF |
| 2301 | #line $LINENO "configure" |
| 2302 | #include "confdefs.h" |
| 2303 | #include <stdlib.h> |
| 2304 | $ac_declaration |
| 2305 | #ifdef F77_DUMMY_MAIN |
| 2306 | # ifdef __cplusplus |
| 2307 | extern "C" |
| 2308 | # endif |
| 2309 | int F77_DUMMY_MAIN() { return 1; } |
| 2310 | #endif |
| 2311 | int |
| 2312 | main () |
| 2313 | { |
| 2314 | exit (42); |
| 2315 | ; |
| 2316 | return 0; |
| 2317 | } |
| 2318 | _ACEOF |
| 2319 | rm -f conftest.$ac_objext |
| 2320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2321 | (eval $ac_compile) 2>&5 |
| 2322 | ac_status=$? |
| 2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2324 | (exit $ac_status); } && |
| 2325 | { ac_try='test -s conftest.$ac_objext' |
| 2326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2327 | (eval $ac_try) 2>&5 |
| 2328 | ac_status=$? |
| 2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2330 | (exit $ac_status); }; }; then |
| 2331 | : |
| 2332 | else |
| 2333 | echo "$as_me: failed program was:" >&5 |
| 2334 | cat conftest.$ac_ext >&5 |
| 2335 | continue |
| 2336 | fi |
| 2337 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2338 | cat >conftest.$ac_ext <<_ACEOF |
| 2339 | #line $LINENO "configure" |
| 2340 | #include "confdefs.h" |
| 2341 | $ac_declaration |
| 2342 | #ifdef F77_DUMMY_MAIN |
| 2343 | # ifdef __cplusplus |
| 2344 | extern "C" |
| 2345 | # endif |
| 2346 | int F77_DUMMY_MAIN() { return 1; } |
| 2347 | #endif |
| 2348 | int |
| 2349 | main () |
| 2350 | { |
| 2351 | exit (42); |
| 2352 | ; |
| 2353 | return 0; |
| 2354 | } |
| 2355 | _ACEOF |
| 2356 | rm -f conftest.$ac_objext |
| 2357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2358 | (eval $ac_compile) 2>&5 |
| 2359 | ac_status=$? |
| 2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2361 | (exit $ac_status); } && |
| 2362 | { ac_try='test -s conftest.$ac_objext' |
| 2363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2364 | (eval $ac_try) 2>&5 |
| 2365 | ac_status=$? |
| 2366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2367 | (exit $ac_status); }; }; then |
| 2368 | break |
| 2369 | else |
| 2370 | echo "$as_me: failed program was:" >&5 |
| 2371 | cat conftest.$ac_ext >&5 |
| 2372 | fi |
| 2373 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2374 | done |
| 2375 | rm -f conftest* |
| 2376 | if test -n "$ac_declaration"; then |
| 2377 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2378 | echo $ac_declaration >>confdefs.h |
| 2379 | echo '#endif' >>confdefs.h |
| 2380 | fi |
| 2381 | |
| 2382 | else |
| 2383 | echo "$as_me: failed program was:" >&5 |
| 2384 | cat conftest.$ac_ext >&5 |
| 2385 | fi |
| 2386 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2387 | ac_ext=c |
| 2388 | ac_cpp='$CPP $CPPFLAGS' |
| 2389 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2390 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2391 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2392 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2393 | |
| 2394 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2395 | |
| 2396 | ac_ext=c |
| 2397 | ac_cpp='$CPP $CPPFLAGS' |
| 2398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2401 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2402 | 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] | 2403 | # On Suns, sometimes $CPP names a directory. |
| 2404 | if test -n "$CPP" && test -d "$CPP"; then |
| 2405 | CPP= |
| 2406 | fi |
| 2407 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2408 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2411 | # Double quotes because CPP needs to be expanded |
| 2412 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2413 | do |
| 2414 | ac_preproc_ok=false |
| 2415 | for ac_c_preproc_warn_flag in '' yes |
| 2416 | do |
| 2417 | # Use a header file that comes with gcc, so configuring glibc |
| 2418 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2419 | # 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] | 2420 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2421 | cat >conftest.$ac_ext <<_ACEOF |
| 2422 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2423 | #include "confdefs.h" |
| 2424 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2425 | Syntax error |
| 2426 | _ACEOF |
| 2427 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2428 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2429 | ac_status=$? |
| 2430 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2431 | rm -f conftest.er1 |
| 2432 | cat conftest.err >&5 |
| 2433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2434 | (exit $ac_status); } >/dev/null; then |
| 2435 | if test -s conftest.err; then |
| 2436 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2437 | else |
| 2438 | ac_cpp_err= |
| 2439 | fi |
| 2440 | else |
| 2441 | ac_cpp_err=yes |
| 2442 | fi |
| 2443 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2444 | : |
| 2445 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2446 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2447 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2448 | # Broken: fails on valid input. |
| 2449 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2450 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2451 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2452 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2453 | # OK, works on sane cases. Now check whether non-existent headers |
| 2454 | # can be detected and how. |
| 2455 | cat >conftest.$ac_ext <<_ACEOF |
| 2456 | #line $LINENO "configure" |
| 2457 | #include "confdefs.h" |
| 2458 | #include <ac_nonexistent.h> |
| 2459 | _ACEOF |
| 2460 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2461 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2462 | ac_status=$? |
| 2463 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2464 | rm -f conftest.er1 |
| 2465 | cat conftest.err >&5 |
| 2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2467 | (exit $ac_status); } >/dev/null; then |
| 2468 | if test -s conftest.err; then |
| 2469 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2470 | else |
| 2471 | ac_cpp_err= |
| 2472 | fi |
| 2473 | else |
| 2474 | ac_cpp_err=yes |
| 2475 | fi |
| 2476 | if test -z "$ac_cpp_err"; then |
| 2477 | # Broken: success on invalid input. |
| 2478 | continue |
| 2479 | else |
| 2480 | echo "$as_me: failed program was:" >&5 |
| 2481 | cat conftest.$ac_ext >&5 |
| 2482 | # Passes both tests. |
| 2483 | ac_preproc_ok=: |
| 2484 | break |
| 2485 | fi |
| 2486 | rm -f conftest.err conftest.$ac_ext |
| 2487 | |
| 2488 | done |
| 2489 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2490 | rm -f conftest.err conftest.$ac_ext |
| 2491 | if $ac_preproc_ok; then |
| 2492 | break |
| 2493 | fi |
| 2494 | |
| 2495 | done |
| 2496 | ac_cv_prog_CPP=$CPP |
| 2497 | |
| 2498 | fi |
| 2499 | CPP=$ac_cv_prog_CPP |
| 2500 | else |
| 2501 | ac_cv_prog_CPP=$CPP |
| 2502 | fi |
| 2503 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2504 | echo "${ECHO_T}$CPP" >&6 |
| 2505 | ac_preproc_ok=false |
| 2506 | for ac_c_preproc_warn_flag in '' yes |
| 2507 | do |
| 2508 | # Use a header file that comes with gcc, so configuring glibc |
| 2509 | # with a fresh cross-compiler works. |
| 2510 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2511 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2512 | cat >conftest.$ac_ext <<_ACEOF |
| 2513 | #line $LINENO "configure" |
| 2514 | #include "confdefs.h" |
| 2515 | #include <assert.h> |
| 2516 | Syntax error |
| 2517 | _ACEOF |
| 2518 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2519 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2520 | ac_status=$? |
| 2521 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2522 | rm -f conftest.er1 |
| 2523 | cat conftest.err >&5 |
| 2524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2525 | (exit $ac_status); } >/dev/null; then |
| 2526 | if test -s conftest.err; then |
| 2527 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2528 | else |
| 2529 | ac_cpp_err= |
| 2530 | fi |
| 2531 | else |
| 2532 | ac_cpp_err=yes |
| 2533 | fi |
| 2534 | if test -z "$ac_cpp_err"; then |
| 2535 | : |
| 2536 | else |
| 2537 | echo "$as_me: failed program was:" >&5 |
| 2538 | cat conftest.$ac_ext >&5 |
| 2539 | # Broken: fails on valid input. |
| 2540 | continue |
| 2541 | fi |
| 2542 | rm -f conftest.err conftest.$ac_ext |
| 2543 | |
| 2544 | # OK, works on sane cases. Now check whether non-existent headers |
| 2545 | # can be detected and how. |
| 2546 | cat >conftest.$ac_ext <<_ACEOF |
| 2547 | #line $LINENO "configure" |
| 2548 | #include "confdefs.h" |
| 2549 | #include <ac_nonexistent.h> |
| 2550 | _ACEOF |
| 2551 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2552 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2553 | ac_status=$? |
| 2554 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2555 | rm -f conftest.er1 |
| 2556 | cat conftest.err >&5 |
| 2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2558 | (exit $ac_status); } >/dev/null; then |
| 2559 | if test -s conftest.err; then |
| 2560 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2561 | else |
| 2562 | ac_cpp_err= |
| 2563 | fi |
| 2564 | else |
| 2565 | ac_cpp_err=yes |
| 2566 | fi |
| 2567 | if test -z "$ac_cpp_err"; then |
| 2568 | # Broken: success on invalid input. |
| 2569 | continue |
| 2570 | else |
| 2571 | echo "$as_me: failed program was:" >&5 |
| 2572 | cat conftest.$ac_ext >&5 |
| 2573 | # Passes both tests. |
| 2574 | ac_preproc_ok=: |
| 2575 | break |
| 2576 | fi |
| 2577 | rm -f conftest.err conftest.$ac_ext |
| 2578 | |
| 2579 | done |
| 2580 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2581 | rm -f conftest.err conftest.$ac_ext |
| 2582 | if $ac_preproc_ok; then |
| 2583 | : |
| 2584 | else |
| 2585 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2586 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2587 | { (exit 1); exit 1; }; } |
| 2588 | fi |
| 2589 | |
| 2590 | ac_ext=c |
| 2591 | ac_cpp='$CPP $CPPFLAGS' |
| 2592 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2593 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2594 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2595 | |
| 2596 | |
| 2597 | |
| 2598 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2599 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2600 | cat >conftest.$ac_ext <<_ACEOF |
| 2601 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2602 | #include "confdefs.h" |
| 2603 | #ifdef _AIX |
| 2604 | yes |
| 2605 | #endif |
| 2606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2607 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2608 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2609 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2611 | echo "${ECHO_T}yes" >&6 |
| 2612 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2613 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2615 | |
| 2616 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2617 | echo "$as_me:$LINENO: result: no" >&5 |
| 2618 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2619 | fi |
| 2620 | rm -f conftest* |
| 2621 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2623 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2624 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2625 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2628 | cat >conftest.$ac_ext <<_ACEOF |
| 2629 | #line $LINENO "configure" |
| 2630 | #include "confdefs.h" |
| 2631 | #include <stdlib.h> |
| 2632 | #include <stdarg.h> |
| 2633 | #include <string.h> |
| 2634 | #include <float.h> |
| 2635 | |
| 2636 | _ACEOF |
| 2637 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2638 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2639 | ac_status=$? |
| 2640 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2641 | rm -f conftest.er1 |
| 2642 | cat conftest.err >&5 |
| 2643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2644 | (exit $ac_status); } >/dev/null; then |
| 2645 | if test -s conftest.err; then |
| 2646 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2647 | else |
| 2648 | ac_cpp_err= |
| 2649 | fi |
| 2650 | else |
| 2651 | ac_cpp_err=yes |
| 2652 | fi |
| 2653 | if test -z "$ac_cpp_err"; then |
| 2654 | ac_cv_header_stdc=yes |
| 2655 | else |
| 2656 | echo "$as_me: failed program was:" >&5 |
| 2657 | cat conftest.$ac_ext >&5 |
| 2658 | ac_cv_header_stdc=no |
| 2659 | fi |
| 2660 | rm -f conftest.err conftest.$ac_ext |
| 2661 | |
| 2662 | if test $ac_cv_header_stdc = yes; then |
| 2663 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2664 | cat >conftest.$ac_ext <<_ACEOF |
| 2665 | #line $LINENO "configure" |
| 2666 | #include "confdefs.h" |
| 2667 | #include <string.h> |
| 2668 | |
| 2669 | _ACEOF |
| 2670 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2671 | egrep "memchr" >/dev/null 2>&1; then |
| 2672 | : |
| 2673 | else |
| 2674 | ac_cv_header_stdc=no |
| 2675 | fi |
| 2676 | rm -f conftest* |
| 2677 | |
| 2678 | fi |
| 2679 | |
| 2680 | if test $ac_cv_header_stdc = yes; then |
| 2681 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2682 | cat >conftest.$ac_ext <<_ACEOF |
| 2683 | #line $LINENO "configure" |
| 2684 | #include "confdefs.h" |
| 2685 | #include <stdlib.h> |
| 2686 | |
| 2687 | _ACEOF |
| 2688 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2689 | egrep "free" >/dev/null 2>&1; then |
| 2690 | : |
| 2691 | else |
| 2692 | ac_cv_header_stdc=no |
| 2693 | fi |
| 2694 | rm -f conftest* |
| 2695 | |
| 2696 | fi |
| 2697 | |
| 2698 | if test $ac_cv_header_stdc = yes; then |
| 2699 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2700 | if test "$cross_compiling" = yes; then |
| 2701 | : |
| 2702 | else |
| 2703 | cat >conftest.$ac_ext <<_ACEOF |
| 2704 | #line $LINENO "configure" |
| 2705 | #include "confdefs.h" |
| 2706 | #include <ctype.h> |
| 2707 | #if ((' ' & 0x0FF) == 0x020) |
| 2708 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2709 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2710 | #else |
| 2711 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2712 | || ('j' <= (c) && (c) <= 'r') \ |
| 2713 | || ('s' <= (c) && (c) <= 'z')) |
| 2714 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2715 | #endif |
| 2716 | |
| 2717 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2718 | int |
| 2719 | main () |
| 2720 | { |
| 2721 | int i; |
| 2722 | for (i = 0; i < 256; i++) |
| 2723 | if (XOR (islower (i), ISLOWER (i)) |
| 2724 | || toupper (i) != TOUPPER (i)) |
| 2725 | exit(2); |
| 2726 | exit (0); |
| 2727 | } |
| 2728 | _ACEOF |
| 2729 | rm -f conftest$ac_exeext |
| 2730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2731 | (eval $ac_link) 2>&5 |
| 2732 | ac_status=$? |
| 2733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2734 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2736 | (eval $ac_try) 2>&5 |
| 2737 | ac_status=$? |
| 2738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2739 | (exit $ac_status); }; }; then |
| 2740 | : |
| 2741 | else |
| 2742 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2743 | echo "$as_me: failed program was:" >&5 |
| 2744 | cat conftest.$ac_ext >&5 |
| 2745 | ( exit $ac_status ) |
| 2746 | ac_cv_header_stdc=no |
| 2747 | fi |
| 2748 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2749 | fi |
| 2750 | fi |
| 2751 | fi |
| 2752 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2753 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2754 | if test $ac_cv_header_stdc = yes; then |
| 2755 | |
| 2756 | cat >>confdefs.h <<\_ACEOF |
| 2757 | #define STDC_HEADERS 1 |
| 2758 | _ACEOF |
| 2759 | |
| 2760 | fi |
| 2761 | |
| 2762 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2763 | |
| 2764 | |
| 2765 | |
| 2766 | |
| 2767 | |
| 2768 | |
| 2769 | |
| 2770 | |
| 2771 | |
| 2772 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2773 | inttypes.h stdint.h unistd.h |
| 2774 | do |
| 2775 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2776 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2780 | else |
| 2781 | cat >conftest.$ac_ext <<_ACEOF |
| 2782 | #line $LINENO "configure" |
| 2783 | #include "confdefs.h" |
| 2784 | $ac_includes_default |
| 2785 | |
| 2786 | #include <$ac_header> |
| 2787 | _ACEOF |
| 2788 | rm -f conftest.$ac_objext |
| 2789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2790 | (eval $ac_compile) 2>&5 |
| 2791 | ac_status=$? |
| 2792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2793 | (exit $ac_status); } && |
| 2794 | { ac_try='test -s conftest.$ac_objext' |
| 2795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2796 | (eval $ac_try) 2>&5 |
| 2797 | ac_status=$? |
| 2798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2799 | (exit $ac_status); }; }; then |
| 2800 | eval "$as_ac_Header=yes" |
| 2801 | else |
| 2802 | echo "$as_me: failed program was:" >&5 |
| 2803 | cat conftest.$ac_ext >&5 |
| 2804 | eval "$as_ac_Header=no" |
| 2805 | fi |
| 2806 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2807 | fi |
| 2808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2809 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2810 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2811 | cat >>confdefs.h <<_ACEOF |
| 2812 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2813 | _ACEOF |
| 2814 | |
| 2815 | fi |
| 2816 | |
| 2817 | done |
| 2818 | |
| 2819 | |
| 2820 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2821 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2822 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2823 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2825 | fi |
| 2826 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2827 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2828 | else |
| 2829 | # Is the header compilable? |
| 2830 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2831 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2832 | cat >conftest.$ac_ext <<_ACEOF |
| 2833 | #line $LINENO "configure" |
| 2834 | #include "confdefs.h" |
| 2835 | $ac_includes_default |
| 2836 | #include <minix/config.h> |
| 2837 | _ACEOF |
| 2838 | rm -f conftest.$ac_objext |
| 2839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2840 | (eval $ac_compile) 2>&5 |
| 2841 | ac_status=$? |
| 2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2843 | (exit $ac_status); } && |
| 2844 | { ac_try='test -s conftest.$ac_objext' |
| 2845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2846 | (eval $ac_try) 2>&5 |
| 2847 | ac_status=$? |
| 2848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2849 | (exit $ac_status); }; }; then |
| 2850 | ac_header_compiler=yes |
| 2851 | else |
| 2852 | echo "$as_me: failed program was:" >&5 |
| 2853 | cat conftest.$ac_ext >&5 |
| 2854 | ac_header_compiler=no |
| 2855 | fi |
| 2856 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2857 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2858 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2859 | |
| 2860 | # Is the header present? |
| 2861 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2862 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2863 | cat >conftest.$ac_ext <<_ACEOF |
| 2864 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2865 | #include "confdefs.h" |
| 2866 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2867 | _ACEOF |
| 2868 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2869 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2870 | ac_status=$? |
| 2871 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2872 | rm -f conftest.er1 |
| 2873 | cat conftest.err >&5 |
| 2874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2875 | (exit $ac_status); } >/dev/null; then |
| 2876 | if test -s conftest.err; then |
| 2877 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2878 | else |
| 2879 | ac_cpp_err= |
| 2880 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2882 | ac_cpp_err=yes |
| 2883 | fi |
| 2884 | if test -z "$ac_cpp_err"; then |
| 2885 | ac_header_preproc=yes |
| 2886 | else |
| 2887 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2888 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2889 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2890 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2891 | rm -f conftest.err conftest.$ac_ext |
| 2892 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2893 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2894 | |
| 2895 | # So? What about this header? |
| 2896 | case $ac_header_compiler:$ac_header_preproc in |
| 2897 | yes:no ) |
| 2898 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2899 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2900 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2901 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2902 | no:yes ) |
| 2903 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2904 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2905 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2906 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2907 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2908 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2909 | esac |
| 2910 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2911 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2912 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2914 | else |
| 2915 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2916 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2917 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2918 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2919 | |
| 2920 | fi |
| 2921 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2922 | MINIX=yes |
| 2923 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2924 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2925 | fi |
| 2926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2927 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2928 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2929 | |
| 2930 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2931 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2932 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2934 | |
| 2935 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2936 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2939 | |
| 2940 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2941 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2942 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2943 | |
| 2944 | fi |
| 2945 | |
| 2946 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2948 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 2949 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2950 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2951 | # Check whether --with-suffix or --without-suffix was given. |
| 2952 | if test "${with_suffix+set}" = set; then |
| 2953 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2954 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2955 | case $withval in |
| 2956 | no) EXEEXT=;; |
| 2957 | yes) EXEEXT=.exe;; |
| 2958 | *) EXEEXT=$withval;; |
| 2959 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2960 | fi; |
| 2961 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 2962 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2963 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2964 | # Test whether we're running on a non-case-sensitive system, in which |
| 2965 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2967 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 2968 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 2969 | if test -d "${srcdir}/python" |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2970 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2971 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2972 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2973 | BUILDEXEEXT=.exe |
| 2974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2975 | echo "$as_me:$LINENO: result: no" >&5 |
| 2976 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2977 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2978 | fi |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 2979 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 2980 | case $MACHDEP in |
| 2981 | bsdos*) |
| 2982 | case $CC in |
| 2983 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 2984 | esac;; |
| 2985 | esac |
| 2986 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2987 | case $ac_sys_system in |
| 2988 | hp*|HP*) |
| 2989 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 2990 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2991 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2992 | Monterey*) |
| 2993 | case $CC in |
| 2994 | cc) CC="$CC -Wl,-Bexport";; |
| 2995 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 2996 | SunOS*) |
| 2997 | # 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] | 2998 | |
| 2999 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3000 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3001 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3002 | |
| 3003 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3004 | esac |
| 3005 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3006 | |
| 3007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3008 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3009 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3010 | if test -z "$LIBRARY" |
| 3011 | then |
| 3012 | LIBRARY='libpython$(VERSION).a' |
| 3013 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3014 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3015 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3016 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3017 | # 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] | 3018 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3019 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3020 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3021 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3022 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3023 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3024 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3025 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3026 | # RUNSHARED is used to run shared python without installed libraries |
| 3027 | # |
| 3028 | # INSTSONAME is the name of the shared library that will be use to install |
| 3029 | # on the system - some systems like version suffix, others don't |
| 3030 | |
| 3031 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3032 | |
| 3033 | |
| 3034 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3035 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3036 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3037 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3038 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3039 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3040 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3041 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3042 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3043 | # 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] | 3044 | # If CXX is set, and if it is needed to link a main function that was |
| 3045 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3046 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3047 | # 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] | 3048 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3049 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3050 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3051 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3052 | if test -z "$LINKCC" |
| 3053 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3054 | if test -z "$CXX"; then |
| 3055 | LINKCC="\$(PURIFY) \$(CC)" |
| 3056 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3057 | 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] | 3058 | $CXX -c conftest.$ac_ext 2>&5 |
| 3059 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3060 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3061 | then |
| 3062 | LINKCC="\$(PURIFY) \$(CC)" |
| 3063 | else |
| 3064 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3065 | fi |
| 3066 | rm -fr conftest* |
| 3067 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3068 | case $ac_sys_system in |
| 3069 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3070 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3071 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3072 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3073 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3074 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3075 | esac |
| 3076 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3077 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3078 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3080 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3081 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3082 | # Check whether --enable-shared or --disable-shared was given. |
| 3083 | if test "${enable_shared+set}" = set; then |
| 3084 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3086 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3087 | |
| 3088 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3089 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3090 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3091 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3092 | enable_shared="yes";; |
| 3093 | *) |
| 3094 | enable_shared="no";; |
| 3095 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3096 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3097 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3098 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3099 | |
| 3100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3101 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3102 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3103 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3104 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3105 | # library that we build, but we do not want to link against it (we |
| 3106 | # will find it with a -framework option). For this reason there is an |
| 3107 | # extra variable BLDLIBRARY against which Python and the extension |
| 3108 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3109 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3110 | if test "$enable_framework" |
| 3111 | then |
| 3112 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3113 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3114 | BLDLIBRARY='' |
| 3115 | else |
| 3116 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3117 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3118 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3119 | # Other platforms follow |
| 3120 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3121 | |
| 3122 | cat >>confdefs.h <<\_ACEOF |
| 3123 | #define Py_ENABLE_SHARED 1 |
| 3124 | _ACEOF |
| 3125 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3126 | case $ac_sys_system in |
| 3127 | BeOS*) |
| 3128 | LDLIBRARY='libpython$(VERSION).so' |
| 3129 | ;; |
| 3130 | CYGWIN*) |
| 3131 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3132 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3133 | ;; |
| 3134 | SunOS*) |
| 3135 | LDLIBRARY='libpython$(VERSION).so' |
| 3136 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3137 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3138 | ;; |
| 3139 | Linux*) |
| 3140 | LDLIBRARY='libpython$(VERSION).so' |
| 3141 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3142 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3143 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3144 | ;; |
| 3145 | hp*|HP*) |
| 3146 | LDLIBRARY='libpython$(VERSION).sl' |
| 3147 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3148 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3149 | ;; |
| 3150 | OSF*) |
| 3151 | LDLIBRARY='libpython$(VERSION).so' |
| 3152 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3153 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3154 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3155 | atheos*) |
| 3156 | LDLIBRARY='libpython$(VERSION).so' |
| 3157 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3158 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3159 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3160 | esac |
| 3161 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3162 | case $MACHDEP in |
| 3163 | dguxR4) |
| 3164 | LDLIBRARY='libpython$(VERSION).so' |
| 3165 | OPT="$OPT -pic" |
| 3166 | ;; |
| 3167 | esac |
| 3168 | fi |
| 3169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3170 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3171 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3173 | if test -n "$ac_tool_prefix"; then |
| 3174 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3175 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3176 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3178 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3180 | else |
| 3181 | if test -n "$RANLIB"; then |
| 3182 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3185 | for as_dir in $PATH |
| 3186 | do |
| 3187 | IFS=$as_save_IFS |
| 3188 | test -z "$as_dir" && as_dir=. |
| 3189 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3190 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3191 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3193 | break 2 |
| 3194 | fi |
| 3195 | done |
| 3196 | done |
| 3197 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3198 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3199 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3200 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3201 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3202 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3203 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3204 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3205 | echo "$as_me:$LINENO: result: no" >&5 |
| 3206 | echo "${ECHO_T}no" >&6 |
| 3207 | fi |
| 3208 | |
| 3209 | fi |
| 3210 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3211 | ac_ct_RANLIB=$RANLIB |
| 3212 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3213 | set dummy ranlib; ac_word=$2 |
| 3214 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3215 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3216 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3218 | else |
| 3219 | if test -n "$ac_ct_RANLIB"; then |
| 3220 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3221 | else |
| 3222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3223 | for as_dir in $PATH |
| 3224 | do |
| 3225 | IFS=$as_save_IFS |
| 3226 | test -z "$as_dir" && as_dir=. |
| 3227 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3228 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3229 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3230 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3231 | break 2 |
| 3232 | fi |
| 3233 | done |
| 3234 | done |
| 3235 | |
| 3236 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3237 | fi |
| 3238 | fi |
| 3239 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3240 | if test -n "$ac_ct_RANLIB"; then |
| 3241 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3242 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3243 | else |
| 3244 | echo "$as_me:$LINENO: result: no" >&5 |
| 3245 | echo "${ECHO_T}no" >&6 |
| 3246 | fi |
| 3247 | |
| 3248 | RANLIB=$ac_ct_RANLIB |
| 3249 | else |
| 3250 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3251 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3252 | |
| 3253 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3254 | for ac_prog in ar aal |
| 3255 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3256 | # 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] | 3257 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3258 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3259 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3260 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3262 | else |
| 3263 | if test -n "$AR"; then |
| 3264 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3267 | for as_dir in $PATH |
| 3268 | do |
| 3269 | IFS=$as_save_IFS |
| 3270 | test -z "$as_dir" && as_dir=. |
| 3271 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3272 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3273 | ac_cv_prog_AR="$ac_prog" |
| 3274 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3275 | break 2 |
| 3276 | fi |
| 3277 | done |
| 3278 | done |
| 3279 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3280 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3281 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3282 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3283 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3284 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3285 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3287 | echo "$as_me:$LINENO: result: no" >&5 |
| 3288 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3289 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3291 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3292 | done |
| 3293 | test -n "$AR" || AR="ar" |
| 3294 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3295 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3296 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3297 | bsdos*|hp*|HP*) |
| 3298 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3299 | if test -z "$INSTALL" |
| 3300 | then |
| 3301 | INSTALL="${srcdir}/install-sh -c" |
| 3302 | fi |
| 3303 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3304 | ac_aux_dir= |
| 3305 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3306 | if test -f $ac_dir/install-sh; then |
| 3307 | ac_aux_dir=$ac_dir |
| 3308 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3309 | break |
| 3310 | elif test -f $ac_dir/install.sh; then |
| 3311 | ac_aux_dir=$ac_dir |
| 3312 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3313 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3314 | elif test -f $ac_dir/shtool; then |
| 3315 | ac_aux_dir=$ac_dir |
| 3316 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3317 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3318 | fi |
| 3319 | done |
| 3320 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3321 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3322 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3323 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3324 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3325 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3326 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3327 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3328 | |
| 3329 | # Find a good install program. We prefer a C program (faster), |
| 3330 | # so one script is as good as another. But avoid the broken or |
| 3331 | # incompatible versions: |
| 3332 | # SysV /etc/install, /usr/sbin/install |
| 3333 | # SunOS /usr/etc/install |
| 3334 | # IRIX /sbin/install |
| 3335 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3336 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3337 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3338 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3339 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3340 | # ./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] | 3341 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3342 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3343 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3344 | if test "${ac_cv_path_install+set}" = set; then |
| 3345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3348 | for as_dir in $PATH |
| 3349 | do |
| 3350 | IFS=$as_save_IFS |
| 3351 | test -z "$as_dir" && as_dir=. |
| 3352 | # Account for people who put trailing slashes in PATH elements. |
| 3353 | case $as_dir/ in |
| 3354 | ./ | .// | /cC/* | \ |
| 3355 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3356 | /usr/ucb/* ) ;; |
| 3357 | *) |
| 3358 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3359 | # Don't use installbsd from OSF since it installs stuff as root |
| 3360 | # by default. |
| 3361 | for ac_prog in ginstall scoinst install; do |
| 3362 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3363 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3364 | if test $ac_prog = install && |
| 3365 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3366 | # AIX install. It has an incompatible calling convention. |
| 3367 | : |
| 3368 | elif test $ac_prog = install && |
| 3369 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3370 | # program-specific install script used by HP pwplus--don't use. |
| 3371 | : |
| 3372 | else |
| 3373 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3374 | break 3 |
| 3375 | fi |
| 3376 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3377 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3378 | done |
| 3379 | ;; |
| 3380 | esac |
| 3381 | done |
| 3382 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3383 | |
| 3384 | fi |
| 3385 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3386 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3387 | else |
| 3388 | # As a last resort, use the slow shell script. We don't cache a |
| 3389 | # path for INSTALL within a source directory, because that will |
| 3390 | # break other packages using the cache if that directory is |
| 3391 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3392 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3393 | fi |
| 3394 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3395 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3396 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3397 | |
| 3398 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3399 | # It thinks the first close brace ends the variable substitution. |
| 3400 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3402 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3403 | |
| 3404 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3405 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3406 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3407 | # Not every filesystem supports hard links |
| 3408 | |
| 3409 | if test -z "$LN" ; then |
| 3410 | case $ac_sys_system in |
| 3411 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3412 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3413 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3414 | *) LN=ln;; |
| 3415 | esac |
| 3416 | fi |
| 3417 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3418 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3419 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3420 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3421 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3422 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3423 | if test "${with_pydebug+set}" = set; then |
| 3424 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3425 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3426 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3427 | then |
| 3428 | |
| 3429 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3430 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3431 | _ACEOF |
| 3432 | |
| 3433 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3434 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3435 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3436 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3437 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3438 | fi |
| 3439 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3440 | echo "$as_me:$LINENO: result: no" >&5 |
| 3441 | echo "${ECHO_T}no" >&6 |
| 3442 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3443 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3444 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3445 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3446 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3447 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3448 | case $GCC in |
| 3449 | yes) |
| 3450 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3451 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3452 | if test "$Py_DEBUG" = 'true' ; then |
| 3453 | # Optimization messes up debuggers, so turn it off for |
| 3454 | # debug builds. |
| 3455 | OPT="-g -Wall -Wstrict-prototypes" |
| 3456 | else |
| 3457 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3458 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3459 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3460 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3461 | esac |
| 3462 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3463 | *) |
| 3464 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3465 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3466 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
| 3467 | *) |
| 3468 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3469 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3470 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3471 | case $ac_sys_system in |
| 3472 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3473 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3474 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3475 | fi |
| 3476 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3477 | if test "$Py_DEBUG" = 'true'; then |
| 3478 | : |
| 3479 | else |
| 3480 | OPT="-DNDEBUG $OPT" |
| 3481 | fi |
| 3482 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3483 | # The current (beta) Monterey compiler dies with optimizations |
| 3484 | case $ac_sys_system in |
| 3485 | Monterey*) OPT="";; |
| 3486 | esac |
| 3487 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3488 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3489 | then |
| 3490 | OPT="$OPT $ac_arch_flags" |
| 3491 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3493 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3494 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3495 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3497 | else |
| 3498 | ac_save_cc="$CC" |
| 3499 | CC="$CC -OPT:Olimit=0" |
| 3500 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3501 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3502 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3503 | cat >conftest.$ac_ext <<_ACEOF |
| 3504 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3505 | #include "confdefs.h" |
| 3506 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3507 | _ACEOF |
| 3508 | rm -f conftest$ac_exeext |
| 3509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3510 | (eval $ac_link) 2>&5 |
| 3511 | ac_status=$? |
| 3512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3513 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3515 | (eval $ac_try) 2>&5 |
| 3516 | ac_status=$? |
| 3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3518 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3519 | ac_cv_opt_olimit_ok=yes |
| 3520 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3521 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3522 | echo "$as_me: failed program was:" >&5 |
| 3523 | cat conftest.$ac_ext >&5 |
| 3524 | ( exit $ac_status ) |
| 3525 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3526 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3527 | 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] | 3528 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3529 | CC="$ac_save_cc" |
| 3530 | fi |
| 3531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3532 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3533 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3534 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3535 | case $ac_sys_system in |
| 3536 | Darwin*) OPT="$OPT" ;; |
| 3537 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3538 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3541 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3542 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3544 | else |
| 3545 | ac_save_cc="$CC" |
| 3546 | CC="$CC -Olimit 1500" |
| 3547 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3548 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3549 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3550 | cat >conftest.$ac_ext <<_ACEOF |
| 3551 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3552 | #include "confdefs.h" |
| 3553 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3554 | _ACEOF |
| 3555 | rm -f conftest$ac_exeext |
| 3556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3557 | (eval $ac_link) 2>&5 |
| 3558 | ac_status=$? |
| 3559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3560 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3562 | (eval $ac_try) 2>&5 |
| 3563 | ac_status=$? |
| 3564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3565 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3566 | ac_cv_olimit_ok=yes |
| 3567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3568 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3569 | echo "$as_me: failed program was:" >&5 |
| 3570 | cat conftest.$ac_ext >&5 |
| 3571 | ( exit $ac_status ) |
| 3572 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3573 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3574 | 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] | 3575 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3576 | CC="$ac_save_cc" |
| 3577 | fi |
| 3578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3579 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3580 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3581 | if test $ac_cv_olimit_ok = yes; then |
| 3582 | OPT="$OPT -Olimit 1500" |
| 3583 | fi |
| 3584 | fi |
| 3585 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3586 | # On some compilers, pthreads are available without further options |
| 3587 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3588 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3589 | # So we have to see first whether pthreads are available without |
| 3590 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3591 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3592 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3593 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3595 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3596 | if test "$cross_compiling" = yes; then |
| 3597 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3598 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3599 | cat >conftest.$ac_ext <<_ACEOF |
| 3600 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3601 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3602 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3603 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3604 | |
| 3605 | void* routine(void* p){return NULL;} |
| 3606 | |
| 3607 | int main(){ |
| 3608 | pthread_t p; |
| 3609 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3610 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3611 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3612 | return 0; |
| 3613 | } |
| 3614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3615 | _ACEOF |
| 3616 | rm -f conftest$ac_exeext |
| 3617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3618 | (eval $ac_link) 2>&5 |
| 3619 | ac_status=$? |
| 3620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3621 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3623 | (eval $ac_try) 2>&5 |
| 3624 | ac_status=$? |
| 3625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3626 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3627 | ac_cv_pthread_is_default=yes |
| 3628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3629 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3630 | echo "$as_me: failed program was:" >&5 |
| 3631 | cat conftest.$ac_ext >&5 |
| 3632 | ( exit $ac_status ) |
| 3633 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3634 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3635 | 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] | 3636 | fi |
| 3637 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3638 | fi |
| 3639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3640 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3641 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3642 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3644 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3645 | then |
| 3646 | ac_cv_kpthread=no |
| 3647 | else |
| 3648 | # -Kpthread, if available, provides the right #defines |
| 3649 | # and linker options to make pthread_create available |
| 3650 | # Some compilers won't report that they do not support -Kpthread, |
| 3651 | # so we need to run a program to see whether it really made the |
| 3652 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3654 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3655 | if test "${ac_cv_kpthread+set}" = set; then |
| 3656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3657 | else |
| 3658 | ac_save_cc="$CC" |
| 3659 | CC="$CC -Kpthread" |
| 3660 | if test "$cross_compiling" = yes; then |
| 3661 | ac_cv_kpthread=no |
| 3662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3663 | cat >conftest.$ac_ext <<_ACEOF |
| 3664 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3665 | #include "confdefs.h" |
| 3666 | |
| 3667 | #include <pthread.h> |
| 3668 | |
| 3669 | void* routine(void* p){return NULL;} |
| 3670 | |
| 3671 | int main(){ |
| 3672 | pthread_t p; |
| 3673 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3674 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3675 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3676 | return 0; |
| 3677 | } |
| 3678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3679 | _ACEOF |
| 3680 | rm -f conftest$ac_exeext |
| 3681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3682 | (eval $ac_link) 2>&5 |
| 3683 | ac_status=$? |
| 3684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3685 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3687 | (eval $ac_try) 2>&5 |
| 3688 | ac_status=$? |
| 3689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3690 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3691 | ac_cv_kpthread=yes |
| 3692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3693 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3694 | echo "$as_me: failed program was:" >&5 |
| 3695 | cat conftest.$ac_ext >&5 |
| 3696 | ( exit $ac_status ) |
| 3697 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3698 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3699 | 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] | 3700 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3701 | CC="$ac_save_cc" |
| 3702 | fi |
| 3703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3704 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3705 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3706 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3707 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3708 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3709 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3710 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3711 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3712 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3715 | cat >conftest.$ac_ext <<_ACEOF |
| 3716 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3717 | #include "confdefs.h" |
| 3718 | #include <stdlib.h> |
| 3719 | #include <stdarg.h> |
| 3720 | #include <string.h> |
| 3721 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 | |
| 3723 | _ACEOF |
| 3724 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3725 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3726 | ac_status=$? |
| 3727 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3728 | rm -f conftest.er1 |
| 3729 | cat conftest.err >&5 |
| 3730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3731 | (exit $ac_status); } >/dev/null; then |
| 3732 | if test -s conftest.err; then |
| 3733 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3734 | else |
| 3735 | ac_cpp_err= |
| 3736 | fi |
| 3737 | else |
| 3738 | ac_cpp_err=yes |
| 3739 | fi |
| 3740 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3741 | ac_cv_header_stdc=yes |
| 3742 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3743 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3744 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3745 | ac_cv_header_stdc=no |
| 3746 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3747 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3748 | |
| 3749 | if test $ac_cv_header_stdc = yes; then |
| 3750 | # 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] | 3751 | cat >conftest.$ac_ext <<_ACEOF |
| 3752 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3753 | #include "confdefs.h" |
| 3754 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3755 | |
| 3756 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3758 | egrep "memchr" >/dev/null 2>&1; then |
| 3759 | : |
| 3760 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3761 | ac_cv_header_stdc=no |
| 3762 | fi |
| 3763 | rm -f conftest* |
| 3764 | |
| 3765 | fi |
| 3766 | |
| 3767 | if test $ac_cv_header_stdc = yes; then |
| 3768 | # 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] | 3769 | cat >conftest.$ac_ext <<_ACEOF |
| 3770 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3771 | #include "confdefs.h" |
| 3772 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | |
| 3774 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3775 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3776 | egrep "free" >/dev/null 2>&1; then |
| 3777 | : |
| 3778 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3779 | ac_cv_header_stdc=no |
| 3780 | fi |
| 3781 | rm -f conftest* |
| 3782 | |
| 3783 | fi |
| 3784 | |
| 3785 | if test $ac_cv_header_stdc = yes; then |
| 3786 | # /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] | 3787 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3788 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3790 | cat >conftest.$ac_ext <<_ACEOF |
| 3791 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3792 | #include "confdefs.h" |
| 3793 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3794 | #if ((' ' & 0x0FF) == 0x020) |
| 3795 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3796 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3797 | #else |
| 3798 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3799 | || ('j' <= (c) && (c) <= 'r') \ |
| 3800 | || ('s' <= (c) && (c) <= 'z')) |
| 3801 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3802 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3804 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3805 | int |
| 3806 | main () |
| 3807 | { |
| 3808 | int i; |
| 3809 | for (i = 0; i < 256; i++) |
| 3810 | if (XOR (islower (i), ISLOWER (i)) |
| 3811 | || toupper (i) != TOUPPER (i)) |
| 3812 | exit(2); |
| 3813 | exit (0); |
| 3814 | } |
| 3815 | _ACEOF |
| 3816 | rm -f conftest$ac_exeext |
| 3817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3818 | (eval $ac_link) 2>&5 |
| 3819 | ac_status=$? |
| 3820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3821 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3823 | (eval $ac_try) 2>&5 |
| 3824 | ac_status=$? |
| 3825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3826 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3827 | : |
| 3828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3829 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3830 | echo "$as_me: failed program was:" >&5 |
| 3831 | cat conftest.$ac_ext >&5 |
| 3832 | ( exit $ac_status ) |
| 3833 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3834 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3835 | 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] | 3836 | fi |
| 3837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3838 | fi |
| 3839 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3840 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3841 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3842 | |
| 3843 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3844 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3845 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3846 | |
| 3847 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3849 | |
| 3850 | |
| 3851 | |
| 3852 | |
| 3853 | |
| 3854 | |
| 3855 | |
| 3856 | |
| 3857 | |
| 3858 | |
| 3859 | |
| 3860 | |
| 3861 | |
| 3862 | |
| 3863 | |
| 3864 | |
| 3865 | |
| 3866 | |
| 3867 | |
| 3868 | |
| 3869 | |
| 3870 | |
| 3871 | |
| 3872 | |
| 3873 | |
| 3874 | |
| 3875 | |
| 3876 | |
| 3877 | |
| 3878 | |
| 3879 | |
| 3880 | |
| 3881 | |
| 3882 | |
| 3883 | |
| 3884 | |
| 3885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3886 | 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] | 3887 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3888 | 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] | 3889 | 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] | 3890 | 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] | 3891 | 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] | 3892 | sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3893 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3894 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3895 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3896 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3897 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3900 | fi |
| 3901 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3902 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3903 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3904 | # Is the header compilable? |
| 3905 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3906 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3907 | cat >conftest.$ac_ext <<_ACEOF |
| 3908 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3909 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3910 | $ac_includes_default |
| 3911 | #include <$ac_header> |
| 3912 | _ACEOF |
| 3913 | rm -f conftest.$ac_objext |
| 3914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3915 | (eval $ac_compile) 2>&5 |
| 3916 | ac_status=$? |
| 3917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3918 | (exit $ac_status); } && |
| 3919 | { ac_try='test -s conftest.$ac_objext' |
| 3920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3921 | (eval $ac_try) 2>&5 |
| 3922 | ac_status=$? |
| 3923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3924 | (exit $ac_status); }; }; then |
| 3925 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3927 | echo "$as_me: failed program was:" >&5 |
| 3928 | cat conftest.$ac_ext >&5 |
| 3929 | ac_header_compiler=no |
| 3930 | fi |
| 3931 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3932 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3933 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3934 | |
| 3935 | # Is the header present? |
| 3936 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3937 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3938 | cat >conftest.$ac_ext <<_ACEOF |
| 3939 | #line $LINENO "configure" |
| 3940 | #include "confdefs.h" |
| 3941 | #include <$ac_header> |
| 3942 | _ACEOF |
| 3943 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3944 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3945 | ac_status=$? |
| 3946 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3947 | rm -f conftest.er1 |
| 3948 | cat conftest.err >&5 |
| 3949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3950 | (exit $ac_status); } >/dev/null; then |
| 3951 | if test -s conftest.err; then |
| 3952 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3953 | else |
| 3954 | ac_cpp_err= |
| 3955 | fi |
| 3956 | else |
| 3957 | ac_cpp_err=yes |
| 3958 | fi |
| 3959 | if test -z "$ac_cpp_err"; then |
| 3960 | ac_header_preproc=yes |
| 3961 | else |
| 3962 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3963 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3964 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3965 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3966 | rm -f conftest.err conftest.$ac_ext |
| 3967 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3968 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3969 | |
| 3970 | # So? What about this header? |
| 3971 | case $ac_header_compiler:$ac_header_preproc in |
| 3972 | yes:no ) |
| 3973 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3974 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3975 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3976 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3977 | no:yes ) |
| 3978 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3979 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3980 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3981 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3982 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3983 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3984 | esac |
| 3985 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3986 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3987 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3990 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3991 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3992 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3993 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3994 | |
| 3995 | fi |
| 3996 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3997 | cat >>confdefs.h <<_ACEOF |
| 3998 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3999 | _ACEOF |
| 4000 | |
| 4001 | fi |
| 4002 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4003 | done |
| 4004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4005 | |
| 4006 | |
| 4007 | |
| 4008 | |
| 4009 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4010 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4011 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4012 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4013 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4014 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4015 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4017 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4018 | cat >conftest.$ac_ext <<_ACEOF |
| 4019 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4020 | #include "confdefs.h" |
| 4021 | #include <sys/types.h> |
| 4022 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4023 | |
| 4024 | #ifdef F77_DUMMY_MAIN |
| 4025 | # ifdef __cplusplus |
| 4026 | extern "C" |
| 4027 | # endif |
| 4028 | int F77_DUMMY_MAIN() { return 1; } |
| 4029 | #endif |
| 4030 | int |
| 4031 | main () |
| 4032 | { |
| 4033 | if ((DIR *) 0) |
| 4034 | return 0; |
| 4035 | ; |
| 4036 | return 0; |
| 4037 | } |
| 4038 | _ACEOF |
| 4039 | rm -f conftest.$ac_objext |
| 4040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4041 | (eval $ac_compile) 2>&5 |
| 4042 | ac_status=$? |
| 4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4044 | (exit $ac_status); } && |
| 4045 | { ac_try='test -s conftest.$ac_objext' |
| 4046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4047 | (eval $ac_try) 2>&5 |
| 4048 | ac_status=$? |
| 4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4050 | (exit $ac_status); }; }; then |
| 4051 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4052 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4053 | echo "$as_me: failed program was:" >&5 |
| 4054 | cat conftest.$ac_ext >&5 |
| 4055 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4056 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4057 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4058 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4059 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4060 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4061 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4062 | cat >>confdefs.h <<_ACEOF |
| 4063 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4064 | _ACEOF |
| 4065 | |
| 4066 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4067 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4068 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4069 | done |
| 4070 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4071 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4072 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4073 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4074 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4077 | ac_func_search_save_LIBS=$LIBS |
| 4078 | ac_cv_search_opendir=no |
| 4079 | cat >conftest.$ac_ext <<_ACEOF |
| 4080 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4081 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4082 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4083 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4084 | #ifdef __cplusplus |
| 4085 | extern "C" |
| 4086 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4087 | /* 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] | 4088 | builtin and then its argument prototype would still apply. */ |
| 4089 | char opendir (); |
| 4090 | #ifdef F77_DUMMY_MAIN |
| 4091 | # ifdef __cplusplus |
| 4092 | extern "C" |
| 4093 | # endif |
| 4094 | int F77_DUMMY_MAIN() { return 1; } |
| 4095 | #endif |
| 4096 | int |
| 4097 | main () |
| 4098 | { |
| 4099 | opendir (); |
| 4100 | ; |
| 4101 | return 0; |
| 4102 | } |
| 4103 | _ACEOF |
| 4104 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4106 | (eval $ac_link) 2>&5 |
| 4107 | ac_status=$? |
| 4108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4109 | (exit $ac_status); } && |
| 4110 | { ac_try='test -s conftest$ac_exeext' |
| 4111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4112 | (eval $ac_try) 2>&5 |
| 4113 | ac_status=$? |
| 4114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4115 | (exit $ac_status); }; }; then |
| 4116 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4118 | echo "$as_me: failed program was:" >&5 |
| 4119 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4120 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4121 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4122 | if test "$ac_cv_search_opendir" = no; then |
| 4123 | for ac_lib in dir; do |
| 4124 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4125 | cat >conftest.$ac_ext <<_ACEOF |
| 4126 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4127 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4128 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4129 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4130 | #ifdef __cplusplus |
| 4131 | extern "C" |
| 4132 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4133 | /* 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] | 4134 | builtin and then its argument prototype would still apply. */ |
| 4135 | char opendir (); |
| 4136 | #ifdef F77_DUMMY_MAIN |
| 4137 | # ifdef __cplusplus |
| 4138 | extern "C" |
| 4139 | # endif |
| 4140 | int F77_DUMMY_MAIN() { return 1; } |
| 4141 | #endif |
| 4142 | int |
| 4143 | main () |
| 4144 | { |
| 4145 | opendir (); |
| 4146 | ; |
| 4147 | return 0; |
| 4148 | } |
| 4149 | _ACEOF |
| 4150 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4152 | (eval $ac_link) 2>&5 |
| 4153 | ac_status=$? |
| 4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4155 | (exit $ac_status); } && |
| 4156 | { ac_try='test -s conftest$ac_exeext' |
| 4157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4158 | (eval $ac_try) 2>&5 |
| 4159 | ac_status=$? |
| 4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4161 | (exit $ac_status); }; }; then |
| 4162 | ac_cv_search_opendir="-l$ac_lib" |
| 4163 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4164 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4165 | echo "$as_me: failed program was:" >&5 |
| 4166 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4167 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4168 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4169 | done |
| 4170 | fi |
| 4171 | LIBS=$ac_func_search_save_LIBS |
| 4172 | fi |
| 4173 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4174 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4175 | if test "$ac_cv_search_opendir" != no; then |
| 4176 | 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] | 4177 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4178 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4179 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4181 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4182 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4183 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4185 | else |
| 4186 | ac_func_search_save_LIBS=$LIBS |
| 4187 | ac_cv_search_opendir=no |
| 4188 | cat >conftest.$ac_ext <<_ACEOF |
| 4189 | #line $LINENO "configure" |
| 4190 | #include "confdefs.h" |
| 4191 | |
| 4192 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4193 | #ifdef __cplusplus |
| 4194 | extern "C" |
| 4195 | #endif |
| 4196 | /* We use char because int might match the return type of a gcc2 |
| 4197 | builtin and then its argument prototype would still apply. */ |
| 4198 | char opendir (); |
| 4199 | #ifdef F77_DUMMY_MAIN |
| 4200 | # ifdef __cplusplus |
| 4201 | extern "C" |
| 4202 | # endif |
| 4203 | int F77_DUMMY_MAIN() { return 1; } |
| 4204 | #endif |
| 4205 | int |
| 4206 | main () |
| 4207 | { |
| 4208 | opendir (); |
| 4209 | ; |
| 4210 | return 0; |
| 4211 | } |
| 4212 | _ACEOF |
| 4213 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4215 | (eval $ac_link) 2>&5 |
| 4216 | ac_status=$? |
| 4217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4218 | (exit $ac_status); } && |
| 4219 | { ac_try='test -s conftest$ac_exeext' |
| 4220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4221 | (eval $ac_try) 2>&5 |
| 4222 | ac_status=$? |
| 4223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4224 | (exit $ac_status); }; }; then |
| 4225 | ac_cv_search_opendir="none required" |
| 4226 | else |
| 4227 | echo "$as_me: failed program was:" >&5 |
| 4228 | cat conftest.$ac_ext >&5 |
| 4229 | fi |
| 4230 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4231 | if test "$ac_cv_search_opendir" = no; then |
| 4232 | for ac_lib in x; do |
| 4233 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4234 | cat >conftest.$ac_ext <<_ACEOF |
| 4235 | #line $LINENO "configure" |
| 4236 | #include "confdefs.h" |
| 4237 | |
| 4238 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4239 | #ifdef __cplusplus |
| 4240 | extern "C" |
| 4241 | #endif |
| 4242 | /* We use char because int might match the return type of a gcc2 |
| 4243 | builtin and then its argument prototype would still apply. */ |
| 4244 | char opendir (); |
| 4245 | #ifdef F77_DUMMY_MAIN |
| 4246 | # ifdef __cplusplus |
| 4247 | extern "C" |
| 4248 | # endif |
| 4249 | int F77_DUMMY_MAIN() { return 1; } |
| 4250 | #endif |
| 4251 | int |
| 4252 | main () |
| 4253 | { |
| 4254 | opendir (); |
| 4255 | ; |
| 4256 | return 0; |
| 4257 | } |
| 4258 | _ACEOF |
| 4259 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4261 | (eval $ac_link) 2>&5 |
| 4262 | ac_status=$? |
| 4263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4264 | (exit $ac_status); } && |
| 4265 | { ac_try='test -s conftest$ac_exeext' |
| 4266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4267 | (eval $ac_try) 2>&5 |
| 4268 | ac_status=$? |
| 4269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4270 | (exit $ac_status); }; }; then |
| 4271 | ac_cv_search_opendir="-l$ac_lib" |
| 4272 | break |
| 4273 | else |
| 4274 | echo "$as_me: failed program was:" >&5 |
| 4275 | cat conftest.$ac_ext >&5 |
| 4276 | fi |
| 4277 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4278 | done |
| 4279 | fi |
| 4280 | LIBS=$ac_func_search_save_LIBS |
| 4281 | fi |
| 4282 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4283 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4284 | if test "$ac_cv_search_opendir" != no; then |
| 4285 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4286 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4287 | fi |
| 4288 | |
| 4289 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4290 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4291 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4292 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4293 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4294 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4295 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4296 | cat >conftest.$ac_ext <<_ACEOF |
| 4297 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4298 | #include "confdefs.h" |
| 4299 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4300 | |
| 4301 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4302 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4303 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4304 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4306 | |
| 4307 | |
| 4308 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4309 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4310 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4311 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4312 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4313 | fi |
| 4314 | rm -f conftest* |
| 4315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4316 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4317 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4318 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame^] | 4319 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4320 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4321 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4322 | cat >conftest.$ac_ext <<_ACEOF |
| 4323 | #line $LINENO "configure" |
| 4324 | #include "confdefs.h" |
| 4325 | #include <sys/types.h> |
| 4326 | #ifdef F77_DUMMY_MAIN |
| 4327 | # ifdef __cplusplus |
| 4328 | extern "C" |
| 4329 | # endif |
| 4330 | int F77_DUMMY_MAIN() { return 1; } |
| 4331 | #endif |
| 4332 | int |
| 4333 | main () |
| 4334 | { |
| 4335 | makedev(0, 0) |
| 4336 | ; |
| 4337 | return 0; |
| 4338 | } |
| 4339 | _ACEOF |
| 4340 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4342 | (eval $ac_link) 2>&5 |
| 4343 | ac_status=$? |
| 4344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4345 | (exit $ac_status); } && |
| 4346 | { ac_try='test -s conftest$ac_exeext' |
| 4347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4348 | (eval $ac_try) 2>&5 |
| 4349 | ac_status=$? |
| 4350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4351 | (exit $ac_status); }; }; then |
| 4352 | ac_cv_has_makedev=yes |
| 4353 | else |
| 4354 | echo "$as_me: failed program was:" >&5 |
| 4355 | cat conftest.$ac_ext >&5 |
| 4356 | ac_cv_has_makedev=no |
| 4357 | fi |
| 4358 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4359 | if test "$ac_cv_has_makedev" = "no"; then |
| 4360 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4361 | cat >conftest.$ac_ext <<_ACEOF |
| 4362 | #line $LINENO "configure" |
| 4363 | #include "confdefs.h" |
| 4364 | |
| 4365 | #define _OSF_SOURCE 1 |
| 4366 | #include <sys/types.h> |
| 4367 | |
| 4368 | #ifdef F77_DUMMY_MAIN |
| 4369 | # ifdef __cplusplus |
| 4370 | extern "C" |
| 4371 | # endif |
| 4372 | int F77_DUMMY_MAIN() { return 1; } |
| 4373 | #endif |
| 4374 | int |
| 4375 | main () |
| 4376 | { |
| 4377 | makedev(0, 0) |
| 4378 | ; |
| 4379 | return 0; |
| 4380 | } |
| 4381 | _ACEOF |
| 4382 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4384 | (eval $ac_link) 2>&5 |
| 4385 | ac_status=$? |
| 4386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4387 | (exit $ac_status); } && |
| 4388 | { ac_try='test -s conftest$ac_exeext' |
| 4389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4390 | (eval $ac_try) 2>&5 |
| 4391 | ac_status=$? |
| 4392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4393 | (exit $ac_status); }; }; then |
| 4394 | ac_cv_has_makedev=yes |
| 4395 | else |
| 4396 | echo "$as_me: failed program was:" >&5 |
| 4397 | cat conftest.$ac_ext >&5 |
| 4398 | ac_cv_has_makedev=no |
| 4399 | fi |
| 4400 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4401 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4402 | |
| 4403 | cat >>confdefs.h <<\_ACEOF |
| 4404 | #define _OSF_SOURCE 1 |
| 4405 | _ACEOF |
| 4406 | |
| 4407 | fi |
| 4408 | fi |
| 4409 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4410 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4411 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4412 | |
| 4413 | cat >>confdefs.h <<\_ACEOF |
| 4414 | #define HAVE_MAKEDEV 1 |
| 4415 | _ACEOF |
| 4416 | |
| 4417 | fi |
| 4418 | |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4419 | # Two defines needed to enable largefile support on various platforms |
| 4420 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4421 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4422 | cat >>confdefs.h <<\_ACEOF |
| 4423 | #define _LARGEFILE_SOURCE 1 |
| 4424 | _ACEOF |
| 4425 | |
| 4426 | |
| 4427 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4428 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4429 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4430 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4431 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4432 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4433 | cat >> confdefs.h <<\EOF |
| 4434 | #if defined(SCO_DS) |
| 4435 | #undef _OFF_T |
| 4436 | #endif |
| 4437 | EOF |
| 4438 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4439 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4440 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4441 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4442 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4444 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4445 | cat >conftest.$ac_ext <<_ACEOF |
| 4446 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4447 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4448 | $ac_includes_default |
| 4449 | #ifdef F77_DUMMY_MAIN |
| 4450 | # ifdef __cplusplus |
| 4451 | extern "C" |
| 4452 | # endif |
| 4453 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4454 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4455 | int |
| 4456 | main () |
| 4457 | { |
| 4458 | if ((mode_t *) 0) |
| 4459 | return 0; |
| 4460 | if (sizeof (mode_t)) |
| 4461 | return 0; |
| 4462 | ; |
| 4463 | return 0; |
| 4464 | } |
| 4465 | _ACEOF |
| 4466 | rm -f conftest.$ac_objext |
| 4467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4468 | (eval $ac_compile) 2>&5 |
| 4469 | ac_status=$? |
| 4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4471 | (exit $ac_status); } && |
| 4472 | { ac_try='test -s conftest.$ac_objext' |
| 4473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4474 | (eval $ac_try) 2>&5 |
| 4475 | ac_status=$? |
| 4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4477 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4478 | ac_cv_type_mode_t=yes |
| 4479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4480 | echo "$as_me: failed program was:" >&5 |
| 4481 | cat conftest.$ac_ext >&5 |
| 4482 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4484 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4485 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4486 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4487 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4488 | if test $ac_cv_type_mode_t = yes; then |
| 4489 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4490 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4491 | |
| 4492 | cat >>confdefs.h <<_ACEOF |
| 4493 | #define mode_t int |
| 4494 | _ACEOF |
| 4495 | |
| 4496 | fi |
| 4497 | |
| 4498 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4499 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4500 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4502 | else |
| 4503 | cat >conftest.$ac_ext <<_ACEOF |
| 4504 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4505 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4506 | $ac_includes_default |
| 4507 | #ifdef F77_DUMMY_MAIN |
| 4508 | # ifdef __cplusplus |
| 4509 | extern "C" |
| 4510 | # endif |
| 4511 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4512 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4513 | int |
| 4514 | main () |
| 4515 | { |
| 4516 | if ((off_t *) 0) |
| 4517 | return 0; |
| 4518 | if (sizeof (off_t)) |
| 4519 | return 0; |
| 4520 | ; |
| 4521 | return 0; |
| 4522 | } |
| 4523 | _ACEOF |
| 4524 | rm -f conftest.$ac_objext |
| 4525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4526 | (eval $ac_compile) 2>&5 |
| 4527 | ac_status=$? |
| 4528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4529 | (exit $ac_status); } && |
| 4530 | { ac_try='test -s conftest.$ac_objext' |
| 4531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4532 | (eval $ac_try) 2>&5 |
| 4533 | ac_status=$? |
| 4534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4535 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4536 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4538 | echo "$as_me: failed program was:" >&5 |
| 4539 | cat conftest.$ac_ext >&5 |
| 4540 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4542 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4543 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4544 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4545 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4546 | if test $ac_cv_type_off_t = yes; then |
| 4547 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4549 | |
| 4550 | cat >>confdefs.h <<_ACEOF |
| 4551 | #define off_t long |
| 4552 | _ACEOF |
| 4553 | |
| 4554 | fi |
| 4555 | |
| 4556 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4557 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4558 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4560 | else |
| 4561 | cat >conftest.$ac_ext <<_ACEOF |
| 4562 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4563 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4564 | $ac_includes_default |
| 4565 | #ifdef F77_DUMMY_MAIN |
| 4566 | # ifdef __cplusplus |
| 4567 | extern "C" |
| 4568 | # endif |
| 4569 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4570 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4571 | int |
| 4572 | main () |
| 4573 | { |
| 4574 | if ((pid_t *) 0) |
| 4575 | return 0; |
| 4576 | if (sizeof (pid_t)) |
| 4577 | return 0; |
| 4578 | ; |
| 4579 | return 0; |
| 4580 | } |
| 4581 | _ACEOF |
| 4582 | rm -f conftest.$ac_objext |
| 4583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4584 | (eval $ac_compile) 2>&5 |
| 4585 | ac_status=$? |
| 4586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4587 | (exit $ac_status); } && |
| 4588 | { ac_try='test -s conftest.$ac_objext' |
| 4589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4590 | (eval $ac_try) 2>&5 |
| 4591 | ac_status=$? |
| 4592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4593 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4594 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4595 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4596 | echo "$as_me: failed program was:" >&5 |
| 4597 | cat conftest.$ac_ext >&5 |
| 4598 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4599 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4600 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4601 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4602 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 4603 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 4604 | if test $ac_cv_type_pid_t = yes; then |
| 4605 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4606 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4607 | |
| 4608 | cat >>confdefs.h <<_ACEOF |
| 4609 | #define pid_t int |
| 4610 | _ACEOF |
| 4611 | |
| 4612 | fi |
| 4613 | |
| 4614 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 4615 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 4616 | if test "${ac_cv_type_signal+set}" = set; then |
| 4617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4618 | else |
| 4619 | cat >conftest.$ac_ext <<_ACEOF |
| 4620 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4621 | #include "confdefs.h" |
| 4622 | #include <sys/types.h> |
| 4623 | #include <signal.h> |
| 4624 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4625 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4626 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4627 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4628 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 4629 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4630 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4631 | #endif |
| 4632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4633 | #ifdef F77_DUMMY_MAIN |
| 4634 | # ifdef __cplusplus |
| 4635 | extern "C" |
| 4636 | # endif |
| 4637 | int F77_DUMMY_MAIN() { return 1; } |
| 4638 | #endif |
| 4639 | int |
| 4640 | main () |
| 4641 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4642 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4643 | ; |
| 4644 | return 0; |
| 4645 | } |
| 4646 | _ACEOF |
| 4647 | rm -f conftest.$ac_objext |
| 4648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4649 | (eval $ac_compile) 2>&5 |
| 4650 | ac_status=$? |
| 4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4652 | (exit $ac_status); } && |
| 4653 | { ac_try='test -s conftest.$ac_objext' |
| 4654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4655 | (eval $ac_try) 2>&5 |
| 4656 | ac_status=$? |
| 4657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4658 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4659 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4661 | echo "$as_me: failed program was:" >&5 |
| 4662 | cat conftest.$ac_ext >&5 |
| 4663 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4664 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4665 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4666 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4667 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 4668 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4670 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4671 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4672 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4673 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4674 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4675 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 4676 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 4677 | if test "${ac_cv_type_size_t+set}" = set; then |
| 4678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4680 | cat >conftest.$ac_ext <<_ACEOF |
| 4681 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4682 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4683 | $ac_includes_default |
| 4684 | #ifdef F77_DUMMY_MAIN |
| 4685 | # ifdef __cplusplus |
| 4686 | extern "C" |
| 4687 | # endif |
| 4688 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4689 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4690 | int |
| 4691 | main () |
| 4692 | { |
| 4693 | if ((size_t *) 0) |
| 4694 | return 0; |
| 4695 | if (sizeof (size_t)) |
| 4696 | return 0; |
| 4697 | ; |
| 4698 | return 0; |
| 4699 | } |
| 4700 | _ACEOF |
| 4701 | rm -f conftest.$ac_objext |
| 4702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4703 | (eval $ac_compile) 2>&5 |
| 4704 | ac_status=$? |
| 4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4706 | (exit $ac_status); } && |
| 4707 | { ac_try='test -s conftest.$ac_objext' |
| 4708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4709 | (eval $ac_try) 2>&5 |
| 4710 | ac_status=$? |
| 4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4712 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4713 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4715 | echo "$as_me: failed program was:" >&5 |
| 4716 | cat conftest.$ac_ext >&5 |
| 4717 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4718 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4719 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4720 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4721 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 4722 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 4723 | if test $ac_cv_type_size_t = yes; then |
| 4724 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4726 | |
| 4727 | cat >>confdefs.h <<_ACEOF |
| 4728 | #define size_t unsigned |
| 4729 | _ACEOF |
| 4730 | |
| 4731 | fi |
| 4732 | |
| 4733 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 4734 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 4735 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 4736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4737 | else |
| 4738 | cat >conftest.$ac_ext <<_ACEOF |
| 4739 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4740 | #include "confdefs.h" |
| 4741 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4742 | |
| 4743 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4744 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4745 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4746 | ac_cv_type_uid_t=yes |
| 4747 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4748 | ac_cv_type_uid_t=no |
| 4749 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4750 | rm -f conftest* |
| 4751 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4752 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4753 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 4754 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4755 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4757 | cat >>confdefs.h <<\_ACEOF |
| 4758 | #define uid_t int |
| 4759 | _ACEOF |
| 4760 | |
| 4761 | |
| 4762 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4763 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4764 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4765 | |
| 4766 | fi |
| 4767 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4768 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4769 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4770 | echo "$as_me:$LINENO: checking for int" >&5 |
| 4771 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 4772 | if test "${ac_cv_type_int+set}" = set; then |
| 4773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4774 | else |
| 4775 | cat >conftest.$ac_ext <<_ACEOF |
| 4776 | #line $LINENO "configure" |
| 4777 | #include "confdefs.h" |
| 4778 | $ac_includes_default |
| 4779 | #ifdef F77_DUMMY_MAIN |
| 4780 | # ifdef __cplusplus |
| 4781 | extern "C" |
| 4782 | # endif |
| 4783 | int F77_DUMMY_MAIN() { return 1; } |
| 4784 | #endif |
| 4785 | int |
| 4786 | main () |
| 4787 | { |
| 4788 | if ((int *) 0) |
| 4789 | return 0; |
| 4790 | if (sizeof (int)) |
| 4791 | return 0; |
| 4792 | ; |
| 4793 | return 0; |
| 4794 | } |
| 4795 | _ACEOF |
| 4796 | rm -f conftest.$ac_objext |
| 4797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4798 | (eval $ac_compile) 2>&5 |
| 4799 | ac_status=$? |
| 4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4801 | (exit $ac_status); } && |
| 4802 | { ac_try='test -s conftest.$ac_objext' |
| 4803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4804 | (eval $ac_try) 2>&5 |
| 4805 | ac_status=$? |
| 4806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4807 | (exit $ac_status); }; }; then |
| 4808 | ac_cv_type_int=yes |
| 4809 | else |
| 4810 | echo "$as_me: failed program was:" >&5 |
| 4811 | cat conftest.$ac_ext >&5 |
| 4812 | ac_cv_type_int=no |
| 4813 | fi |
| 4814 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4815 | fi |
| 4816 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 4817 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 4818 | |
| 4819 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 4820 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 4821 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 4822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4823 | else |
| 4824 | if test "$ac_cv_type_int" = yes; then |
| 4825 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 4826 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4827 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4828 | # This bug is HP SR number 8606223364. |
| 4829 | if test "$cross_compiling" = yes; then |
| 4830 | # Depending upon the size, compute the lo and hi bounds. |
| 4831 | cat >conftest.$ac_ext <<_ACEOF |
| 4832 | #line $LINENO "configure" |
| 4833 | #include "confdefs.h" |
| 4834 | $ac_includes_default |
| 4835 | #ifdef F77_DUMMY_MAIN |
| 4836 | # ifdef __cplusplus |
| 4837 | extern "C" |
| 4838 | # endif |
| 4839 | int F77_DUMMY_MAIN() { return 1; } |
| 4840 | #endif |
| 4841 | int |
| 4842 | main () |
| 4843 | { |
| 4844 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 4845 | test_array [0] = 0 |
| 4846 | |
| 4847 | ; |
| 4848 | return 0; |
| 4849 | } |
| 4850 | _ACEOF |
| 4851 | rm -f conftest.$ac_objext |
| 4852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4853 | (eval $ac_compile) 2>&5 |
| 4854 | ac_status=$? |
| 4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4856 | (exit $ac_status); } && |
| 4857 | { ac_try='test -s conftest.$ac_objext' |
| 4858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4859 | (eval $ac_try) 2>&5 |
| 4860 | ac_status=$? |
| 4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4862 | (exit $ac_status); }; }; then |
| 4863 | ac_lo=0 ac_mid=0 |
| 4864 | while :; do |
| 4865 | cat >conftest.$ac_ext <<_ACEOF |
| 4866 | #line $LINENO "configure" |
| 4867 | #include "confdefs.h" |
| 4868 | $ac_includes_default |
| 4869 | #ifdef F77_DUMMY_MAIN |
| 4870 | # ifdef __cplusplus |
| 4871 | extern "C" |
| 4872 | # endif |
| 4873 | int F77_DUMMY_MAIN() { return 1; } |
| 4874 | #endif |
| 4875 | int |
| 4876 | main () |
| 4877 | { |
| 4878 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4879 | test_array [0] = 0 |
| 4880 | |
| 4881 | ; |
| 4882 | return 0; |
| 4883 | } |
| 4884 | _ACEOF |
| 4885 | rm -f conftest.$ac_objext |
| 4886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4887 | (eval $ac_compile) 2>&5 |
| 4888 | ac_status=$? |
| 4889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4890 | (exit $ac_status); } && |
| 4891 | { ac_try='test -s conftest.$ac_objext' |
| 4892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4893 | (eval $ac_try) 2>&5 |
| 4894 | ac_status=$? |
| 4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4896 | (exit $ac_status); }; }; then |
| 4897 | ac_hi=$ac_mid; break |
| 4898 | else |
| 4899 | echo "$as_me: failed program was:" >&5 |
| 4900 | cat conftest.$ac_ext >&5 |
| 4901 | ac_lo=`expr $ac_mid + 1` |
| 4902 | if test $ac_lo -le $ac_mid; then |
| 4903 | ac_lo= ac_hi= |
| 4904 | break |
| 4905 | fi |
| 4906 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 4907 | fi |
| 4908 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4909 | done |
| 4910 | else |
| 4911 | echo "$as_me: failed program was:" >&5 |
| 4912 | cat conftest.$ac_ext >&5 |
| 4913 | cat >conftest.$ac_ext <<_ACEOF |
| 4914 | #line $LINENO "configure" |
| 4915 | #include "confdefs.h" |
| 4916 | $ac_includes_default |
| 4917 | #ifdef F77_DUMMY_MAIN |
| 4918 | # ifdef __cplusplus |
| 4919 | extern "C" |
| 4920 | # endif |
| 4921 | int F77_DUMMY_MAIN() { return 1; } |
| 4922 | #endif |
| 4923 | int |
| 4924 | main () |
| 4925 | { |
| 4926 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 4927 | test_array [0] = 0 |
| 4928 | |
| 4929 | ; |
| 4930 | return 0; |
| 4931 | } |
| 4932 | _ACEOF |
| 4933 | rm -f conftest.$ac_objext |
| 4934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4935 | (eval $ac_compile) 2>&5 |
| 4936 | ac_status=$? |
| 4937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4938 | (exit $ac_status); } && |
| 4939 | { ac_try='test -s conftest.$ac_objext' |
| 4940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4941 | (eval $ac_try) 2>&5 |
| 4942 | ac_status=$? |
| 4943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4944 | (exit $ac_status); }; }; then |
| 4945 | ac_hi=-1 ac_mid=-1 |
| 4946 | while :; do |
| 4947 | cat >conftest.$ac_ext <<_ACEOF |
| 4948 | #line $LINENO "configure" |
| 4949 | #include "confdefs.h" |
| 4950 | $ac_includes_default |
| 4951 | #ifdef F77_DUMMY_MAIN |
| 4952 | # ifdef __cplusplus |
| 4953 | extern "C" |
| 4954 | # endif |
| 4955 | int F77_DUMMY_MAIN() { return 1; } |
| 4956 | #endif |
| 4957 | int |
| 4958 | main () |
| 4959 | { |
| 4960 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 4961 | test_array [0] = 0 |
| 4962 | |
| 4963 | ; |
| 4964 | return 0; |
| 4965 | } |
| 4966 | _ACEOF |
| 4967 | rm -f conftest.$ac_objext |
| 4968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4969 | (eval $ac_compile) 2>&5 |
| 4970 | ac_status=$? |
| 4971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4972 | (exit $ac_status); } && |
| 4973 | { ac_try='test -s conftest.$ac_objext' |
| 4974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4975 | (eval $ac_try) 2>&5 |
| 4976 | ac_status=$? |
| 4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4978 | (exit $ac_status); }; }; then |
| 4979 | ac_lo=$ac_mid; break |
| 4980 | else |
| 4981 | echo "$as_me: failed program was:" >&5 |
| 4982 | cat conftest.$ac_ext >&5 |
| 4983 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 4984 | if test $ac_mid -le $ac_hi; then |
| 4985 | ac_lo= ac_hi= |
| 4986 | break |
| 4987 | fi |
| 4988 | ac_mid=`expr 2 '*' $ac_mid` |
| 4989 | fi |
| 4990 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4991 | done |
| 4992 | else |
| 4993 | echo "$as_me: failed program was:" >&5 |
| 4994 | cat conftest.$ac_ext >&5 |
| 4995 | ac_lo= ac_hi= |
| 4996 | fi |
| 4997 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4998 | fi |
| 4999 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5000 | # Binary search between lo and hi bounds. |
| 5001 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5002 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5003 | cat >conftest.$ac_ext <<_ACEOF |
| 5004 | #line $LINENO "configure" |
| 5005 | #include "confdefs.h" |
| 5006 | $ac_includes_default |
| 5007 | #ifdef F77_DUMMY_MAIN |
| 5008 | # ifdef __cplusplus |
| 5009 | extern "C" |
| 5010 | # endif |
| 5011 | int F77_DUMMY_MAIN() { return 1; } |
| 5012 | #endif |
| 5013 | int |
| 5014 | main () |
| 5015 | { |
| 5016 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5017 | test_array [0] = 0 |
| 5018 | |
| 5019 | ; |
| 5020 | return 0; |
| 5021 | } |
| 5022 | _ACEOF |
| 5023 | rm -f conftest.$ac_objext |
| 5024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5025 | (eval $ac_compile) 2>&5 |
| 5026 | ac_status=$? |
| 5027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5028 | (exit $ac_status); } && |
| 5029 | { ac_try='test -s conftest.$ac_objext' |
| 5030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5031 | (eval $ac_try) 2>&5 |
| 5032 | ac_status=$? |
| 5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5034 | (exit $ac_status); }; }; then |
| 5035 | ac_hi=$ac_mid |
| 5036 | else |
| 5037 | echo "$as_me: failed program was:" >&5 |
| 5038 | cat conftest.$ac_ext >&5 |
| 5039 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5040 | fi |
| 5041 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5042 | done |
| 5043 | case $ac_lo in |
| 5044 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5045 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5046 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5047 | { (exit 1); exit 1; }; } ;; |
| 5048 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5049 | else |
| 5050 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5051 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5052 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5053 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5055 | cat >conftest.$ac_ext <<_ACEOF |
| 5056 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5057 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5058 | $ac_includes_default |
| 5059 | long longval () { return (long) (sizeof (int)); } |
| 5060 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5061 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5062 | #include <stdlib.h> |
| 5063 | #ifdef F77_DUMMY_MAIN |
| 5064 | # ifdef __cplusplus |
| 5065 | extern "C" |
| 5066 | # endif |
| 5067 | int F77_DUMMY_MAIN() { return 1; } |
| 5068 | #endif |
| 5069 | int |
| 5070 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5071 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5072 | |
| 5073 | FILE *f = fopen ("conftest.val", "w"); |
| 5074 | if (! f) |
| 5075 | exit (1); |
| 5076 | if (((long) (sizeof (int))) < 0) |
| 5077 | { |
| 5078 | long i = longval (); |
| 5079 | if (i != ((long) (sizeof (int)))) |
| 5080 | exit (1); |
| 5081 | fprintf (f, "%ld\n", i); |
| 5082 | } |
| 5083 | else |
| 5084 | { |
| 5085 | unsigned long i = ulongval (); |
| 5086 | if (i != ((long) (sizeof (int)))) |
| 5087 | exit (1); |
| 5088 | fprintf (f, "%lu\n", i); |
| 5089 | } |
| 5090 | exit (ferror (f) || fclose (f) != 0); |
| 5091 | |
| 5092 | ; |
| 5093 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5094 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5095 | _ACEOF |
| 5096 | rm -f conftest$ac_exeext |
| 5097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5098 | (eval $ac_link) 2>&5 |
| 5099 | ac_status=$? |
| 5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5101 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5103 | (eval $ac_try) 2>&5 |
| 5104 | ac_status=$? |
| 5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5106 | (exit $ac_status); }; }; then |
| 5107 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5109 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5110 | echo "$as_me: failed program was:" >&5 |
| 5111 | cat conftest.$ac_ext >&5 |
| 5112 | ( exit $ac_status ) |
| 5113 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5114 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5115 | { (exit 1); exit 1; }; } |
| 5116 | fi |
| 5117 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5118 | fi |
| 5119 | fi |
| 5120 | rm -f conftest.val |
| 5121 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5122 | ac_cv_sizeof_int=0 |
| 5123 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5124 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5125 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5126 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5127 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5128 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5129 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5130 | |
| 5131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5132 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5133 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5134 | if test "${ac_cv_type_long+set}" = set; then |
| 5135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5136 | else |
| 5137 | cat >conftest.$ac_ext <<_ACEOF |
| 5138 | #line $LINENO "configure" |
| 5139 | #include "confdefs.h" |
| 5140 | $ac_includes_default |
| 5141 | #ifdef F77_DUMMY_MAIN |
| 5142 | # ifdef __cplusplus |
| 5143 | extern "C" |
| 5144 | # endif |
| 5145 | int F77_DUMMY_MAIN() { return 1; } |
| 5146 | #endif |
| 5147 | int |
| 5148 | main () |
| 5149 | { |
| 5150 | if ((long *) 0) |
| 5151 | return 0; |
| 5152 | if (sizeof (long)) |
| 5153 | return 0; |
| 5154 | ; |
| 5155 | return 0; |
| 5156 | } |
| 5157 | _ACEOF |
| 5158 | rm -f conftest.$ac_objext |
| 5159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5160 | (eval $ac_compile) 2>&5 |
| 5161 | ac_status=$? |
| 5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5163 | (exit $ac_status); } && |
| 5164 | { ac_try='test -s conftest.$ac_objext' |
| 5165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5166 | (eval $ac_try) 2>&5 |
| 5167 | ac_status=$? |
| 5168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5169 | (exit $ac_status); }; }; then |
| 5170 | ac_cv_type_long=yes |
| 5171 | else |
| 5172 | echo "$as_me: failed program was:" >&5 |
| 5173 | cat conftest.$ac_ext >&5 |
| 5174 | ac_cv_type_long=no |
| 5175 | fi |
| 5176 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5177 | fi |
| 5178 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5179 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5180 | |
| 5181 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5182 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5183 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5185 | else |
| 5186 | if test "$ac_cv_type_long" = yes; then |
| 5187 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5188 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5189 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5190 | # This bug is HP SR number 8606223364. |
| 5191 | if test "$cross_compiling" = yes; then |
| 5192 | # Depending upon the size, compute the lo and hi bounds. |
| 5193 | cat >conftest.$ac_ext <<_ACEOF |
| 5194 | #line $LINENO "configure" |
| 5195 | #include "confdefs.h" |
| 5196 | $ac_includes_default |
| 5197 | #ifdef F77_DUMMY_MAIN |
| 5198 | # ifdef __cplusplus |
| 5199 | extern "C" |
| 5200 | # endif |
| 5201 | int F77_DUMMY_MAIN() { return 1; } |
| 5202 | #endif |
| 5203 | int |
| 5204 | main () |
| 5205 | { |
| 5206 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5207 | test_array [0] = 0 |
| 5208 | |
| 5209 | ; |
| 5210 | return 0; |
| 5211 | } |
| 5212 | _ACEOF |
| 5213 | rm -f conftest.$ac_objext |
| 5214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5215 | (eval $ac_compile) 2>&5 |
| 5216 | ac_status=$? |
| 5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5218 | (exit $ac_status); } && |
| 5219 | { ac_try='test -s conftest.$ac_objext' |
| 5220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5221 | (eval $ac_try) 2>&5 |
| 5222 | ac_status=$? |
| 5223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5224 | (exit $ac_status); }; }; then |
| 5225 | ac_lo=0 ac_mid=0 |
| 5226 | while :; do |
| 5227 | cat >conftest.$ac_ext <<_ACEOF |
| 5228 | #line $LINENO "configure" |
| 5229 | #include "confdefs.h" |
| 5230 | $ac_includes_default |
| 5231 | #ifdef F77_DUMMY_MAIN |
| 5232 | # ifdef __cplusplus |
| 5233 | extern "C" |
| 5234 | # endif |
| 5235 | int F77_DUMMY_MAIN() { return 1; } |
| 5236 | #endif |
| 5237 | int |
| 5238 | main () |
| 5239 | { |
| 5240 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5241 | test_array [0] = 0 |
| 5242 | |
| 5243 | ; |
| 5244 | return 0; |
| 5245 | } |
| 5246 | _ACEOF |
| 5247 | rm -f conftest.$ac_objext |
| 5248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5249 | (eval $ac_compile) 2>&5 |
| 5250 | ac_status=$? |
| 5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5252 | (exit $ac_status); } && |
| 5253 | { ac_try='test -s conftest.$ac_objext' |
| 5254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5255 | (eval $ac_try) 2>&5 |
| 5256 | ac_status=$? |
| 5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5258 | (exit $ac_status); }; }; then |
| 5259 | ac_hi=$ac_mid; break |
| 5260 | else |
| 5261 | echo "$as_me: failed program was:" >&5 |
| 5262 | cat conftest.$ac_ext >&5 |
| 5263 | ac_lo=`expr $ac_mid + 1` |
| 5264 | if test $ac_lo -le $ac_mid; then |
| 5265 | ac_lo= ac_hi= |
| 5266 | break |
| 5267 | fi |
| 5268 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5269 | fi |
| 5270 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5271 | done |
| 5272 | else |
| 5273 | echo "$as_me: failed program was:" >&5 |
| 5274 | cat conftest.$ac_ext >&5 |
| 5275 | cat >conftest.$ac_ext <<_ACEOF |
| 5276 | #line $LINENO "configure" |
| 5277 | #include "confdefs.h" |
| 5278 | $ac_includes_default |
| 5279 | #ifdef F77_DUMMY_MAIN |
| 5280 | # ifdef __cplusplus |
| 5281 | extern "C" |
| 5282 | # endif |
| 5283 | int F77_DUMMY_MAIN() { return 1; } |
| 5284 | #endif |
| 5285 | int |
| 5286 | main () |
| 5287 | { |
| 5288 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5289 | test_array [0] = 0 |
| 5290 | |
| 5291 | ; |
| 5292 | return 0; |
| 5293 | } |
| 5294 | _ACEOF |
| 5295 | rm -f conftest.$ac_objext |
| 5296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5297 | (eval $ac_compile) 2>&5 |
| 5298 | ac_status=$? |
| 5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5300 | (exit $ac_status); } && |
| 5301 | { ac_try='test -s conftest.$ac_objext' |
| 5302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5303 | (eval $ac_try) 2>&5 |
| 5304 | ac_status=$? |
| 5305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5306 | (exit $ac_status); }; }; then |
| 5307 | ac_hi=-1 ac_mid=-1 |
| 5308 | while :; do |
| 5309 | cat >conftest.$ac_ext <<_ACEOF |
| 5310 | #line $LINENO "configure" |
| 5311 | #include "confdefs.h" |
| 5312 | $ac_includes_default |
| 5313 | #ifdef F77_DUMMY_MAIN |
| 5314 | # ifdef __cplusplus |
| 5315 | extern "C" |
| 5316 | # endif |
| 5317 | int F77_DUMMY_MAIN() { return 1; } |
| 5318 | #endif |
| 5319 | int |
| 5320 | main () |
| 5321 | { |
| 5322 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5323 | test_array [0] = 0 |
| 5324 | |
| 5325 | ; |
| 5326 | return 0; |
| 5327 | } |
| 5328 | _ACEOF |
| 5329 | rm -f conftest.$ac_objext |
| 5330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5331 | (eval $ac_compile) 2>&5 |
| 5332 | ac_status=$? |
| 5333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5334 | (exit $ac_status); } && |
| 5335 | { ac_try='test -s conftest.$ac_objext' |
| 5336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5337 | (eval $ac_try) 2>&5 |
| 5338 | ac_status=$? |
| 5339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5340 | (exit $ac_status); }; }; then |
| 5341 | ac_lo=$ac_mid; break |
| 5342 | else |
| 5343 | echo "$as_me: failed program was:" >&5 |
| 5344 | cat conftest.$ac_ext >&5 |
| 5345 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5346 | if test $ac_mid -le $ac_hi; then |
| 5347 | ac_lo= ac_hi= |
| 5348 | break |
| 5349 | fi |
| 5350 | ac_mid=`expr 2 '*' $ac_mid` |
| 5351 | fi |
| 5352 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5353 | done |
| 5354 | else |
| 5355 | echo "$as_me: failed program was:" >&5 |
| 5356 | cat conftest.$ac_ext >&5 |
| 5357 | ac_lo= ac_hi= |
| 5358 | fi |
| 5359 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5360 | fi |
| 5361 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5362 | # Binary search between lo and hi bounds. |
| 5363 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5364 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5365 | cat >conftest.$ac_ext <<_ACEOF |
| 5366 | #line $LINENO "configure" |
| 5367 | #include "confdefs.h" |
| 5368 | $ac_includes_default |
| 5369 | #ifdef F77_DUMMY_MAIN |
| 5370 | # ifdef __cplusplus |
| 5371 | extern "C" |
| 5372 | # endif |
| 5373 | int F77_DUMMY_MAIN() { return 1; } |
| 5374 | #endif |
| 5375 | int |
| 5376 | main () |
| 5377 | { |
| 5378 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5379 | test_array [0] = 0 |
| 5380 | |
| 5381 | ; |
| 5382 | return 0; |
| 5383 | } |
| 5384 | _ACEOF |
| 5385 | rm -f conftest.$ac_objext |
| 5386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5387 | (eval $ac_compile) 2>&5 |
| 5388 | ac_status=$? |
| 5389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5390 | (exit $ac_status); } && |
| 5391 | { ac_try='test -s conftest.$ac_objext' |
| 5392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5393 | (eval $ac_try) 2>&5 |
| 5394 | ac_status=$? |
| 5395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5396 | (exit $ac_status); }; }; then |
| 5397 | ac_hi=$ac_mid |
| 5398 | else |
| 5399 | echo "$as_me: failed program was:" >&5 |
| 5400 | cat conftest.$ac_ext >&5 |
| 5401 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5402 | fi |
| 5403 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5404 | done |
| 5405 | case $ac_lo in |
| 5406 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5407 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5408 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5409 | { (exit 1); exit 1; }; } ;; |
| 5410 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5411 | else |
| 5412 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5413 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5414 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5415 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5416 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5417 | cat >conftest.$ac_ext <<_ACEOF |
| 5418 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5419 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5420 | $ac_includes_default |
| 5421 | long longval () { return (long) (sizeof (long)); } |
| 5422 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5423 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5424 | #include <stdlib.h> |
| 5425 | #ifdef F77_DUMMY_MAIN |
| 5426 | # ifdef __cplusplus |
| 5427 | extern "C" |
| 5428 | # endif |
| 5429 | int F77_DUMMY_MAIN() { return 1; } |
| 5430 | #endif |
| 5431 | int |
| 5432 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5433 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5434 | |
| 5435 | FILE *f = fopen ("conftest.val", "w"); |
| 5436 | if (! f) |
| 5437 | exit (1); |
| 5438 | if (((long) (sizeof (long))) < 0) |
| 5439 | { |
| 5440 | long i = longval (); |
| 5441 | if (i != ((long) (sizeof (long)))) |
| 5442 | exit (1); |
| 5443 | fprintf (f, "%ld\n", i); |
| 5444 | } |
| 5445 | else |
| 5446 | { |
| 5447 | unsigned long i = ulongval (); |
| 5448 | if (i != ((long) (sizeof (long)))) |
| 5449 | exit (1); |
| 5450 | fprintf (f, "%lu\n", i); |
| 5451 | } |
| 5452 | exit (ferror (f) || fclose (f) != 0); |
| 5453 | |
| 5454 | ; |
| 5455 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5456 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5457 | _ACEOF |
| 5458 | rm -f conftest$ac_exeext |
| 5459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5460 | (eval $ac_link) 2>&5 |
| 5461 | ac_status=$? |
| 5462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5463 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5465 | (eval $ac_try) 2>&5 |
| 5466 | ac_status=$? |
| 5467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5468 | (exit $ac_status); }; }; then |
| 5469 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5471 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5472 | echo "$as_me: failed program was:" >&5 |
| 5473 | cat conftest.$ac_ext >&5 |
| 5474 | ( exit $ac_status ) |
| 5475 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5476 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5477 | { (exit 1); exit 1; }; } |
| 5478 | fi |
| 5479 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5480 | fi |
| 5481 | fi |
| 5482 | rm -f conftest.val |
| 5483 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5484 | ac_cv_sizeof_long=0 |
| 5485 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5486 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5487 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5488 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5489 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5490 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5491 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5492 | |
| 5493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5494 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5495 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5496 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5498 | else |
| 5499 | cat >conftest.$ac_ext <<_ACEOF |
| 5500 | #line $LINENO "configure" |
| 5501 | #include "confdefs.h" |
| 5502 | $ac_includes_default |
| 5503 | #ifdef F77_DUMMY_MAIN |
| 5504 | # ifdef __cplusplus |
| 5505 | extern "C" |
| 5506 | # endif |
| 5507 | int F77_DUMMY_MAIN() { return 1; } |
| 5508 | #endif |
| 5509 | int |
| 5510 | main () |
| 5511 | { |
| 5512 | if ((void * *) 0) |
| 5513 | return 0; |
| 5514 | if (sizeof (void *)) |
| 5515 | return 0; |
| 5516 | ; |
| 5517 | return 0; |
| 5518 | } |
| 5519 | _ACEOF |
| 5520 | rm -f conftest.$ac_objext |
| 5521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5522 | (eval $ac_compile) 2>&5 |
| 5523 | ac_status=$? |
| 5524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5525 | (exit $ac_status); } && |
| 5526 | { ac_try='test -s conftest.$ac_objext' |
| 5527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5528 | (eval $ac_try) 2>&5 |
| 5529 | ac_status=$? |
| 5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5531 | (exit $ac_status); }; }; then |
| 5532 | ac_cv_type_void_p=yes |
| 5533 | else |
| 5534 | echo "$as_me: failed program was:" >&5 |
| 5535 | cat conftest.$ac_ext >&5 |
| 5536 | ac_cv_type_void_p=no |
| 5537 | fi |
| 5538 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5539 | fi |
| 5540 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5541 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5542 | |
| 5543 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5544 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5545 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5547 | else |
| 5548 | if test "$ac_cv_type_void_p" = yes; then |
| 5549 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5550 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5551 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5552 | # This bug is HP SR number 8606223364. |
| 5553 | if test "$cross_compiling" = yes; then |
| 5554 | # Depending upon the size, compute the lo and hi bounds. |
| 5555 | cat >conftest.$ac_ext <<_ACEOF |
| 5556 | #line $LINENO "configure" |
| 5557 | #include "confdefs.h" |
| 5558 | $ac_includes_default |
| 5559 | #ifdef F77_DUMMY_MAIN |
| 5560 | # ifdef __cplusplus |
| 5561 | extern "C" |
| 5562 | # endif |
| 5563 | int F77_DUMMY_MAIN() { return 1; } |
| 5564 | #endif |
| 5565 | int |
| 5566 | main () |
| 5567 | { |
| 5568 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5569 | test_array [0] = 0 |
| 5570 | |
| 5571 | ; |
| 5572 | return 0; |
| 5573 | } |
| 5574 | _ACEOF |
| 5575 | rm -f conftest.$ac_objext |
| 5576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5577 | (eval $ac_compile) 2>&5 |
| 5578 | ac_status=$? |
| 5579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5580 | (exit $ac_status); } && |
| 5581 | { ac_try='test -s conftest.$ac_objext' |
| 5582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5583 | (eval $ac_try) 2>&5 |
| 5584 | ac_status=$? |
| 5585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5586 | (exit $ac_status); }; }; then |
| 5587 | ac_lo=0 ac_mid=0 |
| 5588 | while :; do |
| 5589 | cat >conftest.$ac_ext <<_ACEOF |
| 5590 | #line $LINENO "configure" |
| 5591 | #include "confdefs.h" |
| 5592 | $ac_includes_default |
| 5593 | #ifdef F77_DUMMY_MAIN |
| 5594 | # ifdef __cplusplus |
| 5595 | extern "C" |
| 5596 | # endif |
| 5597 | int F77_DUMMY_MAIN() { return 1; } |
| 5598 | #endif |
| 5599 | int |
| 5600 | main () |
| 5601 | { |
| 5602 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5603 | test_array [0] = 0 |
| 5604 | |
| 5605 | ; |
| 5606 | return 0; |
| 5607 | } |
| 5608 | _ACEOF |
| 5609 | rm -f conftest.$ac_objext |
| 5610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5611 | (eval $ac_compile) 2>&5 |
| 5612 | ac_status=$? |
| 5613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5614 | (exit $ac_status); } && |
| 5615 | { ac_try='test -s conftest.$ac_objext' |
| 5616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5617 | (eval $ac_try) 2>&5 |
| 5618 | ac_status=$? |
| 5619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5620 | (exit $ac_status); }; }; then |
| 5621 | ac_hi=$ac_mid; break |
| 5622 | else |
| 5623 | echo "$as_me: failed program was:" >&5 |
| 5624 | cat conftest.$ac_ext >&5 |
| 5625 | ac_lo=`expr $ac_mid + 1` |
| 5626 | if test $ac_lo -le $ac_mid; then |
| 5627 | ac_lo= ac_hi= |
| 5628 | break |
| 5629 | fi |
| 5630 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5631 | fi |
| 5632 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5633 | done |
| 5634 | else |
| 5635 | echo "$as_me: failed program was:" >&5 |
| 5636 | cat conftest.$ac_ext >&5 |
| 5637 | cat >conftest.$ac_ext <<_ACEOF |
| 5638 | #line $LINENO "configure" |
| 5639 | #include "confdefs.h" |
| 5640 | $ac_includes_default |
| 5641 | #ifdef F77_DUMMY_MAIN |
| 5642 | # ifdef __cplusplus |
| 5643 | extern "C" |
| 5644 | # endif |
| 5645 | int F77_DUMMY_MAIN() { return 1; } |
| 5646 | #endif |
| 5647 | int |
| 5648 | main () |
| 5649 | { |
| 5650 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 5651 | test_array [0] = 0 |
| 5652 | |
| 5653 | ; |
| 5654 | return 0; |
| 5655 | } |
| 5656 | _ACEOF |
| 5657 | rm -f conftest.$ac_objext |
| 5658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5659 | (eval $ac_compile) 2>&5 |
| 5660 | ac_status=$? |
| 5661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5662 | (exit $ac_status); } && |
| 5663 | { ac_try='test -s conftest.$ac_objext' |
| 5664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5665 | (eval $ac_try) 2>&5 |
| 5666 | ac_status=$? |
| 5667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5668 | (exit $ac_status); }; }; then |
| 5669 | ac_hi=-1 ac_mid=-1 |
| 5670 | while :; do |
| 5671 | cat >conftest.$ac_ext <<_ACEOF |
| 5672 | #line $LINENO "configure" |
| 5673 | #include "confdefs.h" |
| 5674 | $ac_includes_default |
| 5675 | #ifdef F77_DUMMY_MAIN |
| 5676 | # ifdef __cplusplus |
| 5677 | extern "C" |
| 5678 | # endif |
| 5679 | int F77_DUMMY_MAIN() { return 1; } |
| 5680 | #endif |
| 5681 | int |
| 5682 | main () |
| 5683 | { |
| 5684 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 5685 | test_array [0] = 0 |
| 5686 | |
| 5687 | ; |
| 5688 | return 0; |
| 5689 | } |
| 5690 | _ACEOF |
| 5691 | rm -f conftest.$ac_objext |
| 5692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5693 | (eval $ac_compile) 2>&5 |
| 5694 | ac_status=$? |
| 5695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5696 | (exit $ac_status); } && |
| 5697 | { ac_try='test -s conftest.$ac_objext' |
| 5698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5699 | (eval $ac_try) 2>&5 |
| 5700 | ac_status=$? |
| 5701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5702 | (exit $ac_status); }; }; then |
| 5703 | ac_lo=$ac_mid; break |
| 5704 | else |
| 5705 | echo "$as_me: failed program was:" >&5 |
| 5706 | cat conftest.$ac_ext >&5 |
| 5707 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5708 | if test $ac_mid -le $ac_hi; then |
| 5709 | ac_lo= ac_hi= |
| 5710 | break |
| 5711 | fi |
| 5712 | ac_mid=`expr 2 '*' $ac_mid` |
| 5713 | fi |
| 5714 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5715 | done |
| 5716 | else |
| 5717 | echo "$as_me: failed program was:" >&5 |
| 5718 | cat conftest.$ac_ext >&5 |
| 5719 | ac_lo= ac_hi= |
| 5720 | fi |
| 5721 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5722 | fi |
| 5723 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5724 | # Binary search between lo and hi bounds. |
| 5725 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5726 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5727 | cat >conftest.$ac_ext <<_ACEOF |
| 5728 | #line $LINENO "configure" |
| 5729 | #include "confdefs.h" |
| 5730 | $ac_includes_default |
| 5731 | #ifdef F77_DUMMY_MAIN |
| 5732 | # ifdef __cplusplus |
| 5733 | extern "C" |
| 5734 | # endif |
| 5735 | int F77_DUMMY_MAIN() { return 1; } |
| 5736 | #endif |
| 5737 | int |
| 5738 | main () |
| 5739 | { |
| 5740 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5741 | test_array [0] = 0 |
| 5742 | |
| 5743 | ; |
| 5744 | return 0; |
| 5745 | } |
| 5746 | _ACEOF |
| 5747 | rm -f conftest.$ac_objext |
| 5748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5749 | (eval $ac_compile) 2>&5 |
| 5750 | ac_status=$? |
| 5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5752 | (exit $ac_status); } && |
| 5753 | { ac_try='test -s conftest.$ac_objext' |
| 5754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5755 | (eval $ac_try) 2>&5 |
| 5756 | ac_status=$? |
| 5757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5758 | (exit $ac_status); }; }; then |
| 5759 | ac_hi=$ac_mid |
| 5760 | else |
| 5761 | echo "$as_me: failed program was:" >&5 |
| 5762 | cat conftest.$ac_ext >&5 |
| 5763 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5764 | fi |
| 5765 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5766 | done |
| 5767 | case $ac_lo in |
| 5768 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 5769 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5770 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5771 | { (exit 1); exit 1; }; } ;; |
| 5772 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5773 | else |
| 5774 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5775 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5776 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5777 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5778 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5779 | cat >conftest.$ac_ext <<_ACEOF |
| 5780 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5781 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5782 | $ac_includes_default |
| 5783 | long longval () { return (long) (sizeof (void *)); } |
| 5784 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5785 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5786 | #include <stdlib.h> |
| 5787 | #ifdef F77_DUMMY_MAIN |
| 5788 | # ifdef __cplusplus |
| 5789 | extern "C" |
| 5790 | # endif |
| 5791 | int F77_DUMMY_MAIN() { return 1; } |
| 5792 | #endif |
| 5793 | int |
| 5794 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5795 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5796 | |
| 5797 | FILE *f = fopen ("conftest.val", "w"); |
| 5798 | if (! f) |
| 5799 | exit (1); |
| 5800 | if (((long) (sizeof (void *))) < 0) |
| 5801 | { |
| 5802 | long i = longval (); |
| 5803 | if (i != ((long) (sizeof (void *)))) |
| 5804 | exit (1); |
| 5805 | fprintf (f, "%ld\n", i); |
| 5806 | } |
| 5807 | else |
| 5808 | { |
| 5809 | unsigned long i = ulongval (); |
| 5810 | if (i != ((long) (sizeof (void *)))) |
| 5811 | exit (1); |
| 5812 | fprintf (f, "%lu\n", i); |
| 5813 | } |
| 5814 | exit (ferror (f) || fclose (f) != 0); |
| 5815 | |
| 5816 | ; |
| 5817 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5818 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5819 | _ACEOF |
| 5820 | rm -f conftest$ac_exeext |
| 5821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5822 | (eval $ac_link) 2>&5 |
| 5823 | ac_status=$? |
| 5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5825 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5827 | (eval $ac_try) 2>&5 |
| 5828 | ac_status=$? |
| 5829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5830 | (exit $ac_status); }; }; then |
| 5831 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5832 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5833 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5834 | echo "$as_me: failed program was:" >&5 |
| 5835 | cat conftest.$ac_ext >&5 |
| 5836 | ( exit $ac_status ) |
| 5837 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5838 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5839 | { (exit 1); exit 1; }; } |
| 5840 | fi |
| 5841 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5842 | fi |
| 5843 | fi |
| 5844 | rm -f conftest.val |
| 5845 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5846 | ac_cv_sizeof_void_p=0 |
| 5847 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5848 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5849 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 5850 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 5851 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5852 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5853 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5854 | |
| 5855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5856 | echo "$as_me:$LINENO: checking for char" >&5 |
| 5857 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 5858 | if test "${ac_cv_type_char+set}" = set; then |
| 5859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5860 | else |
| 5861 | cat >conftest.$ac_ext <<_ACEOF |
| 5862 | #line $LINENO "configure" |
| 5863 | #include "confdefs.h" |
| 5864 | $ac_includes_default |
| 5865 | #ifdef F77_DUMMY_MAIN |
| 5866 | # ifdef __cplusplus |
| 5867 | extern "C" |
| 5868 | # endif |
| 5869 | int F77_DUMMY_MAIN() { return 1; } |
| 5870 | #endif |
| 5871 | int |
| 5872 | main () |
| 5873 | { |
| 5874 | if ((char *) 0) |
| 5875 | return 0; |
| 5876 | if (sizeof (char)) |
| 5877 | return 0; |
| 5878 | ; |
| 5879 | return 0; |
| 5880 | } |
| 5881 | _ACEOF |
| 5882 | rm -f conftest.$ac_objext |
| 5883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5884 | (eval $ac_compile) 2>&5 |
| 5885 | ac_status=$? |
| 5886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5887 | (exit $ac_status); } && |
| 5888 | { ac_try='test -s conftest.$ac_objext' |
| 5889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5890 | (eval $ac_try) 2>&5 |
| 5891 | ac_status=$? |
| 5892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5893 | (exit $ac_status); }; }; then |
| 5894 | ac_cv_type_char=yes |
| 5895 | else |
| 5896 | echo "$as_me: failed program was:" >&5 |
| 5897 | cat conftest.$ac_ext >&5 |
| 5898 | ac_cv_type_char=no |
| 5899 | fi |
| 5900 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5901 | fi |
| 5902 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 5903 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 5904 | |
| 5905 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 5906 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 5907 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 5908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5909 | else |
| 5910 | if test "$ac_cv_type_char" = yes; then |
| 5911 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5912 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5913 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5914 | # This bug is HP SR number 8606223364. |
| 5915 | if test "$cross_compiling" = yes; then |
| 5916 | # Depending upon the size, compute the lo and hi bounds. |
| 5917 | cat >conftest.$ac_ext <<_ACEOF |
| 5918 | #line $LINENO "configure" |
| 5919 | #include "confdefs.h" |
| 5920 | $ac_includes_default |
| 5921 | #ifdef F77_DUMMY_MAIN |
| 5922 | # ifdef __cplusplus |
| 5923 | extern "C" |
| 5924 | # endif |
| 5925 | int F77_DUMMY_MAIN() { return 1; } |
| 5926 | #endif |
| 5927 | int |
| 5928 | main () |
| 5929 | { |
| 5930 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 5931 | test_array [0] = 0 |
| 5932 | |
| 5933 | ; |
| 5934 | return 0; |
| 5935 | } |
| 5936 | _ACEOF |
| 5937 | rm -f conftest.$ac_objext |
| 5938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5939 | (eval $ac_compile) 2>&5 |
| 5940 | ac_status=$? |
| 5941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5942 | (exit $ac_status); } && |
| 5943 | { ac_try='test -s conftest.$ac_objext' |
| 5944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5945 | (eval $ac_try) 2>&5 |
| 5946 | ac_status=$? |
| 5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5948 | (exit $ac_status); }; }; then |
| 5949 | ac_lo=0 ac_mid=0 |
| 5950 | while :; do |
| 5951 | cat >conftest.$ac_ext <<_ACEOF |
| 5952 | #line $LINENO "configure" |
| 5953 | #include "confdefs.h" |
| 5954 | $ac_includes_default |
| 5955 | #ifdef F77_DUMMY_MAIN |
| 5956 | # ifdef __cplusplus |
| 5957 | extern "C" |
| 5958 | # endif |
| 5959 | int F77_DUMMY_MAIN() { return 1; } |
| 5960 | #endif |
| 5961 | int |
| 5962 | main () |
| 5963 | { |
| 5964 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5965 | test_array [0] = 0 |
| 5966 | |
| 5967 | ; |
| 5968 | return 0; |
| 5969 | } |
| 5970 | _ACEOF |
| 5971 | rm -f conftest.$ac_objext |
| 5972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5973 | (eval $ac_compile) 2>&5 |
| 5974 | ac_status=$? |
| 5975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5976 | (exit $ac_status); } && |
| 5977 | { ac_try='test -s conftest.$ac_objext' |
| 5978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5979 | (eval $ac_try) 2>&5 |
| 5980 | ac_status=$? |
| 5981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5982 | (exit $ac_status); }; }; then |
| 5983 | ac_hi=$ac_mid; break |
| 5984 | else |
| 5985 | echo "$as_me: failed program was:" >&5 |
| 5986 | cat conftest.$ac_ext >&5 |
| 5987 | ac_lo=`expr $ac_mid + 1` |
| 5988 | if test $ac_lo -le $ac_mid; then |
| 5989 | ac_lo= ac_hi= |
| 5990 | break |
| 5991 | fi |
| 5992 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5993 | fi |
| 5994 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5995 | done |
| 5996 | else |
| 5997 | echo "$as_me: failed program was:" >&5 |
| 5998 | cat conftest.$ac_ext >&5 |
| 5999 | cat >conftest.$ac_ext <<_ACEOF |
| 6000 | #line $LINENO "configure" |
| 6001 | #include "confdefs.h" |
| 6002 | $ac_includes_default |
| 6003 | #ifdef F77_DUMMY_MAIN |
| 6004 | # ifdef __cplusplus |
| 6005 | extern "C" |
| 6006 | # endif |
| 6007 | int F77_DUMMY_MAIN() { return 1; } |
| 6008 | #endif |
| 6009 | int |
| 6010 | main () |
| 6011 | { |
| 6012 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6013 | test_array [0] = 0 |
| 6014 | |
| 6015 | ; |
| 6016 | return 0; |
| 6017 | } |
| 6018 | _ACEOF |
| 6019 | rm -f conftest.$ac_objext |
| 6020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6021 | (eval $ac_compile) 2>&5 |
| 6022 | ac_status=$? |
| 6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6024 | (exit $ac_status); } && |
| 6025 | { ac_try='test -s conftest.$ac_objext' |
| 6026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6027 | (eval $ac_try) 2>&5 |
| 6028 | ac_status=$? |
| 6029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6030 | (exit $ac_status); }; }; then |
| 6031 | ac_hi=-1 ac_mid=-1 |
| 6032 | while :; do |
| 6033 | cat >conftest.$ac_ext <<_ACEOF |
| 6034 | #line $LINENO "configure" |
| 6035 | #include "confdefs.h" |
| 6036 | $ac_includes_default |
| 6037 | #ifdef F77_DUMMY_MAIN |
| 6038 | # ifdef __cplusplus |
| 6039 | extern "C" |
| 6040 | # endif |
| 6041 | int F77_DUMMY_MAIN() { return 1; } |
| 6042 | #endif |
| 6043 | int |
| 6044 | main () |
| 6045 | { |
| 6046 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6047 | test_array [0] = 0 |
| 6048 | |
| 6049 | ; |
| 6050 | return 0; |
| 6051 | } |
| 6052 | _ACEOF |
| 6053 | rm -f conftest.$ac_objext |
| 6054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6055 | (eval $ac_compile) 2>&5 |
| 6056 | ac_status=$? |
| 6057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6058 | (exit $ac_status); } && |
| 6059 | { ac_try='test -s conftest.$ac_objext' |
| 6060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6061 | (eval $ac_try) 2>&5 |
| 6062 | ac_status=$? |
| 6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6064 | (exit $ac_status); }; }; then |
| 6065 | ac_lo=$ac_mid; break |
| 6066 | else |
| 6067 | echo "$as_me: failed program was:" >&5 |
| 6068 | cat conftest.$ac_ext >&5 |
| 6069 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6070 | if test $ac_mid -le $ac_hi; then |
| 6071 | ac_lo= ac_hi= |
| 6072 | break |
| 6073 | fi |
| 6074 | ac_mid=`expr 2 '*' $ac_mid` |
| 6075 | fi |
| 6076 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6077 | done |
| 6078 | else |
| 6079 | echo "$as_me: failed program was:" >&5 |
| 6080 | cat conftest.$ac_ext >&5 |
| 6081 | ac_lo= ac_hi= |
| 6082 | fi |
| 6083 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6084 | fi |
| 6085 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6086 | # Binary search between lo and hi bounds. |
| 6087 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6088 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6089 | cat >conftest.$ac_ext <<_ACEOF |
| 6090 | #line $LINENO "configure" |
| 6091 | #include "confdefs.h" |
| 6092 | $ac_includes_default |
| 6093 | #ifdef F77_DUMMY_MAIN |
| 6094 | # ifdef __cplusplus |
| 6095 | extern "C" |
| 6096 | # endif |
| 6097 | int F77_DUMMY_MAIN() { return 1; } |
| 6098 | #endif |
| 6099 | int |
| 6100 | main () |
| 6101 | { |
| 6102 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6103 | test_array [0] = 0 |
| 6104 | |
| 6105 | ; |
| 6106 | return 0; |
| 6107 | } |
| 6108 | _ACEOF |
| 6109 | rm -f conftest.$ac_objext |
| 6110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6111 | (eval $ac_compile) 2>&5 |
| 6112 | ac_status=$? |
| 6113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6114 | (exit $ac_status); } && |
| 6115 | { ac_try='test -s conftest.$ac_objext' |
| 6116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6117 | (eval $ac_try) 2>&5 |
| 6118 | ac_status=$? |
| 6119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6120 | (exit $ac_status); }; }; then |
| 6121 | ac_hi=$ac_mid |
| 6122 | else |
| 6123 | echo "$as_me: failed program was:" >&5 |
| 6124 | cat conftest.$ac_ext >&5 |
| 6125 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6126 | fi |
| 6127 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6128 | done |
| 6129 | case $ac_lo in |
| 6130 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6131 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6132 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6133 | { (exit 1); exit 1; }; } ;; |
| 6134 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6135 | else |
| 6136 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6137 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6138 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6139 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6141 | cat >conftest.$ac_ext <<_ACEOF |
| 6142 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6143 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6144 | $ac_includes_default |
| 6145 | long longval () { return (long) (sizeof (char)); } |
| 6146 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6147 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6148 | #include <stdlib.h> |
| 6149 | #ifdef F77_DUMMY_MAIN |
| 6150 | # ifdef __cplusplus |
| 6151 | extern "C" |
| 6152 | # endif |
| 6153 | int F77_DUMMY_MAIN() { return 1; } |
| 6154 | #endif |
| 6155 | int |
| 6156 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6157 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6158 | |
| 6159 | FILE *f = fopen ("conftest.val", "w"); |
| 6160 | if (! f) |
| 6161 | exit (1); |
| 6162 | if (((long) (sizeof (char))) < 0) |
| 6163 | { |
| 6164 | long i = longval (); |
| 6165 | if (i != ((long) (sizeof (char)))) |
| 6166 | exit (1); |
| 6167 | fprintf (f, "%ld\n", i); |
| 6168 | } |
| 6169 | else |
| 6170 | { |
| 6171 | unsigned long i = ulongval (); |
| 6172 | if (i != ((long) (sizeof (char)))) |
| 6173 | exit (1); |
| 6174 | fprintf (f, "%lu\n", i); |
| 6175 | } |
| 6176 | exit (ferror (f) || fclose (f) != 0); |
| 6177 | |
| 6178 | ; |
| 6179 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6180 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6181 | _ACEOF |
| 6182 | rm -f conftest$ac_exeext |
| 6183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6184 | (eval $ac_link) 2>&5 |
| 6185 | ac_status=$? |
| 6186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6187 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6189 | (eval $ac_try) 2>&5 |
| 6190 | ac_status=$? |
| 6191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6192 | (exit $ac_status); }; }; then |
| 6193 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6194 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6195 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6196 | echo "$as_me: failed program was:" >&5 |
| 6197 | cat conftest.$ac_ext >&5 |
| 6198 | ( exit $ac_status ) |
| 6199 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6200 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6201 | { (exit 1); exit 1; }; } |
| 6202 | fi |
| 6203 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6204 | fi |
| 6205 | fi |
| 6206 | rm -f conftest.val |
| 6207 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6208 | ac_cv_sizeof_char=0 |
| 6209 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6210 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6211 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6212 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6213 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6214 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6215 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6216 | |
| 6217 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6218 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6219 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6220 | if test "${ac_cv_type_short+set}" = set; then |
| 6221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6222 | else |
| 6223 | cat >conftest.$ac_ext <<_ACEOF |
| 6224 | #line $LINENO "configure" |
| 6225 | #include "confdefs.h" |
| 6226 | $ac_includes_default |
| 6227 | #ifdef F77_DUMMY_MAIN |
| 6228 | # ifdef __cplusplus |
| 6229 | extern "C" |
| 6230 | # endif |
| 6231 | int F77_DUMMY_MAIN() { return 1; } |
| 6232 | #endif |
| 6233 | int |
| 6234 | main () |
| 6235 | { |
| 6236 | if ((short *) 0) |
| 6237 | return 0; |
| 6238 | if (sizeof (short)) |
| 6239 | return 0; |
| 6240 | ; |
| 6241 | return 0; |
| 6242 | } |
| 6243 | _ACEOF |
| 6244 | rm -f conftest.$ac_objext |
| 6245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6246 | (eval $ac_compile) 2>&5 |
| 6247 | ac_status=$? |
| 6248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6249 | (exit $ac_status); } && |
| 6250 | { ac_try='test -s conftest.$ac_objext' |
| 6251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6252 | (eval $ac_try) 2>&5 |
| 6253 | ac_status=$? |
| 6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6255 | (exit $ac_status); }; }; then |
| 6256 | ac_cv_type_short=yes |
| 6257 | else |
| 6258 | echo "$as_me: failed program was:" >&5 |
| 6259 | cat conftest.$ac_ext >&5 |
| 6260 | ac_cv_type_short=no |
| 6261 | fi |
| 6262 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6263 | fi |
| 6264 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6265 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6266 | |
| 6267 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6268 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6269 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6271 | else |
| 6272 | if test "$ac_cv_type_short" = yes; then |
| 6273 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6274 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6275 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6276 | # This bug is HP SR number 8606223364. |
| 6277 | if test "$cross_compiling" = yes; then |
| 6278 | # Depending upon the size, compute the lo and hi bounds. |
| 6279 | cat >conftest.$ac_ext <<_ACEOF |
| 6280 | #line $LINENO "configure" |
| 6281 | #include "confdefs.h" |
| 6282 | $ac_includes_default |
| 6283 | #ifdef F77_DUMMY_MAIN |
| 6284 | # ifdef __cplusplus |
| 6285 | extern "C" |
| 6286 | # endif |
| 6287 | int F77_DUMMY_MAIN() { return 1; } |
| 6288 | #endif |
| 6289 | int |
| 6290 | main () |
| 6291 | { |
| 6292 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6293 | test_array [0] = 0 |
| 6294 | |
| 6295 | ; |
| 6296 | return 0; |
| 6297 | } |
| 6298 | _ACEOF |
| 6299 | rm -f conftest.$ac_objext |
| 6300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6301 | (eval $ac_compile) 2>&5 |
| 6302 | ac_status=$? |
| 6303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6304 | (exit $ac_status); } && |
| 6305 | { ac_try='test -s conftest.$ac_objext' |
| 6306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6307 | (eval $ac_try) 2>&5 |
| 6308 | ac_status=$? |
| 6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6310 | (exit $ac_status); }; }; then |
| 6311 | ac_lo=0 ac_mid=0 |
| 6312 | while :; do |
| 6313 | cat >conftest.$ac_ext <<_ACEOF |
| 6314 | #line $LINENO "configure" |
| 6315 | #include "confdefs.h" |
| 6316 | $ac_includes_default |
| 6317 | #ifdef F77_DUMMY_MAIN |
| 6318 | # ifdef __cplusplus |
| 6319 | extern "C" |
| 6320 | # endif |
| 6321 | int F77_DUMMY_MAIN() { return 1; } |
| 6322 | #endif |
| 6323 | int |
| 6324 | main () |
| 6325 | { |
| 6326 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6327 | test_array [0] = 0 |
| 6328 | |
| 6329 | ; |
| 6330 | return 0; |
| 6331 | } |
| 6332 | _ACEOF |
| 6333 | rm -f conftest.$ac_objext |
| 6334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6335 | (eval $ac_compile) 2>&5 |
| 6336 | ac_status=$? |
| 6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6338 | (exit $ac_status); } && |
| 6339 | { ac_try='test -s conftest.$ac_objext' |
| 6340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6341 | (eval $ac_try) 2>&5 |
| 6342 | ac_status=$? |
| 6343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6344 | (exit $ac_status); }; }; then |
| 6345 | ac_hi=$ac_mid; break |
| 6346 | else |
| 6347 | echo "$as_me: failed program was:" >&5 |
| 6348 | cat conftest.$ac_ext >&5 |
| 6349 | ac_lo=`expr $ac_mid + 1` |
| 6350 | if test $ac_lo -le $ac_mid; then |
| 6351 | ac_lo= ac_hi= |
| 6352 | break |
| 6353 | fi |
| 6354 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6355 | fi |
| 6356 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6357 | done |
| 6358 | else |
| 6359 | echo "$as_me: failed program was:" >&5 |
| 6360 | cat conftest.$ac_ext >&5 |
| 6361 | cat >conftest.$ac_ext <<_ACEOF |
| 6362 | #line $LINENO "configure" |
| 6363 | #include "confdefs.h" |
| 6364 | $ac_includes_default |
| 6365 | #ifdef F77_DUMMY_MAIN |
| 6366 | # ifdef __cplusplus |
| 6367 | extern "C" |
| 6368 | # endif |
| 6369 | int F77_DUMMY_MAIN() { return 1; } |
| 6370 | #endif |
| 6371 | int |
| 6372 | main () |
| 6373 | { |
| 6374 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6375 | test_array [0] = 0 |
| 6376 | |
| 6377 | ; |
| 6378 | return 0; |
| 6379 | } |
| 6380 | _ACEOF |
| 6381 | rm -f conftest.$ac_objext |
| 6382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6383 | (eval $ac_compile) 2>&5 |
| 6384 | ac_status=$? |
| 6385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6386 | (exit $ac_status); } && |
| 6387 | { ac_try='test -s conftest.$ac_objext' |
| 6388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6389 | (eval $ac_try) 2>&5 |
| 6390 | ac_status=$? |
| 6391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6392 | (exit $ac_status); }; }; then |
| 6393 | ac_hi=-1 ac_mid=-1 |
| 6394 | while :; do |
| 6395 | cat >conftest.$ac_ext <<_ACEOF |
| 6396 | #line $LINENO "configure" |
| 6397 | #include "confdefs.h" |
| 6398 | $ac_includes_default |
| 6399 | #ifdef F77_DUMMY_MAIN |
| 6400 | # ifdef __cplusplus |
| 6401 | extern "C" |
| 6402 | # endif |
| 6403 | int F77_DUMMY_MAIN() { return 1; } |
| 6404 | #endif |
| 6405 | int |
| 6406 | main () |
| 6407 | { |
| 6408 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6409 | test_array [0] = 0 |
| 6410 | |
| 6411 | ; |
| 6412 | return 0; |
| 6413 | } |
| 6414 | _ACEOF |
| 6415 | rm -f conftest.$ac_objext |
| 6416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6417 | (eval $ac_compile) 2>&5 |
| 6418 | ac_status=$? |
| 6419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6420 | (exit $ac_status); } && |
| 6421 | { ac_try='test -s conftest.$ac_objext' |
| 6422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6423 | (eval $ac_try) 2>&5 |
| 6424 | ac_status=$? |
| 6425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6426 | (exit $ac_status); }; }; then |
| 6427 | ac_lo=$ac_mid; break |
| 6428 | else |
| 6429 | echo "$as_me: failed program was:" >&5 |
| 6430 | cat conftest.$ac_ext >&5 |
| 6431 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6432 | if test $ac_mid -le $ac_hi; then |
| 6433 | ac_lo= ac_hi= |
| 6434 | break |
| 6435 | fi |
| 6436 | ac_mid=`expr 2 '*' $ac_mid` |
| 6437 | fi |
| 6438 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6439 | done |
| 6440 | else |
| 6441 | echo "$as_me: failed program was:" >&5 |
| 6442 | cat conftest.$ac_ext >&5 |
| 6443 | ac_lo= ac_hi= |
| 6444 | fi |
| 6445 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6446 | fi |
| 6447 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6448 | # Binary search between lo and hi bounds. |
| 6449 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6450 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6451 | cat >conftest.$ac_ext <<_ACEOF |
| 6452 | #line $LINENO "configure" |
| 6453 | #include "confdefs.h" |
| 6454 | $ac_includes_default |
| 6455 | #ifdef F77_DUMMY_MAIN |
| 6456 | # ifdef __cplusplus |
| 6457 | extern "C" |
| 6458 | # endif |
| 6459 | int F77_DUMMY_MAIN() { return 1; } |
| 6460 | #endif |
| 6461 | int |
| 6462 | main () |
| 6463 | { |
| 6464 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6465 | test_array [0] = 0 |
| 6466 | |
| 6467 | ; |
| 6468 | return 0; |
| 6469 | } |
| 6470 | _ACEOF |
| 6471 | rm -f conftest.$ac_objext |
| 6472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6473 | (eval $ac_compile) 2>&5 |
| 6474 | ac_status=$? |
| 6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6476 | (exit $ac_status); } && |
| 6477 | { ac_try='test -s conftest.$ac_objext' |
| 6478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6479 | (eval $ac_try) 2>&5 |
| 6480 | ac_status=$? |
| 6481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6482 | (exit $ac_status); }; }; then |
| 6483 | ac_hi=$ac_mid |
| 6484 | else |
| 6485 | echo "$as_me: failed program was:" >&5 |
| 6486 | cat conftest.$ac_ext >&5 |
| 6487 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6488 | fi |
| 6489 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6490 | done |
| 6491 | case $ac_lo in |
| 6492 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6493 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6494 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6495 | { (exit 1); exit 1; }; } ;; |
| 6496 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6497 | else |
| 6498 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6499 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6500 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6501 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6502 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6503 | cat >conftest.$ac_ext <<_ACEOF |
| 6504 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6505 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6506 | $ac_includes_default |
| 6507 | long longval () { return (long) (sizeof (short)); } |
| 6508 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6509 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6510 | #include <stdlib.h> |
| 6511 | #ifdef F77_DUMMY_MAIN |
| 6512 | # ifdef __cplusplus |
| 6513 | extern "C" |
| 6514 | # endif |
| 6515 | int F77_DUMMY_MAIN() { return 1; } |
| 6516 | #endif |
| 6517 | int |
| 6518 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6519 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6520 | |
| 6521 | FILE *f = fopen ("conftest.val", "w"); |
| 6522 | if (! f) |
| 6523 | exit (1); |
| 6524 | if (((long) (sizeof (short))) < 0) |
| 6525 | { |
| 6526 | long i = longval (); |
| 6527 | if (i != ((long) (sizeof (short)))) |
| 6528 | exit (1); |
| 6529 | fprintf (f, "%ld\n", i); |
| 6530 | } |
| 6531 | else |
| 6532 | { |
| 6533 | unsigned long i = ulongval (); |
| 6534 | if (i != ((long) (sizeof (short)))) |
| 6535 | exit (1); |
| 6536 | fprintf (f, "%lu\n", i); |
| 6537 | } |
| 6538 | exit (ferror (f) || fclose (f) != 0); |
| 6539 | |
| 6540 | ; |
| 6541 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6542 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6543 | _ACEOF |
| 6544 | rm -f conftest$ac_exeext |
| 6545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6546 | (eval $ac_link) 2>&5 |
| 6547 | ac_status=$? |
| 6548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6549 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6551 | (eval $ac_try) 2>&5 |
| 6552 | ac_status=$? |
| 6553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6554 | (exit $ac_status); }; }; then |
| 6555 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6557 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6558 | echo "$as_me: failed program was:" >&5 |
| 6559 | cat conftest.$ac_ext >&5 |
| 6560 | ( exit $ac_status ) |
| 6561 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6562 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6563 | { (exit 1); exit 1; }; } |
| 6564 | fi |
| 6565 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6566 | fi |
| 6567 | fi |
| 6568 | rm -f conftest.val |
| 6569 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6570 | ac_cv_sizeof_short=0 |
| 6571 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6572 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6573 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6574 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6575 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6576 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6577 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6578 | |
| 6579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6580 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6581 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6582 | if test "${ac_cv_type_float+set}" = set; then |
| 6583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6584 | else |
| 6585 | cat >conftest.$ac_ext <<_ACEOF |
| 6586 | #line $LINENO "configure" |
| 6587 | #include "confdefs.h" |
| 6588 | $ac_includes_default |
| 6589 | #ifdef F77_DUMMY_MAIN |
| 6590 | # ifdef __cplusplus |
| 6591 | extern "C" |
| 6592 | # endif |
| 6593 | int F77_DUMMY_MAIN() { return 1; } |
| 6594 | #endif |
| 6595 | int |
| 6596 | main () |
| 6597 | { |
| 6598 | if ((float *) 0) |
| 6599 | return 0; |
| 6600 | if (sizeof (float)) |
| 6601 | return 0; |
| 6602 | ; |
| 6603 | return 0; |
| 6604 | } |
| 6605 | _ACEOF |
| 6606 | rm -f conftest.$ac_objext |
| 6607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6608 | (eval $ac_compile) 2>&5 |
| 6609 | ac_status=$? |
| 6610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6611 | (exit $ac_status); } && |
| 6612 | { ac_try='test -s conftest.$ac_objext' |
| 6613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6614 | (eval $ac_try) 2>&5 |
| 6615 | ac_status=$? |
| 6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6617 | (exit $ac_status); }; }; then |
| 6618 | ac_cv_type_float=yes |
| 6619 | else |
| 6620 | echo "$as_me: failed program was:" >&5 |
| 6621 | cat conftest.$ac_ext >&5 |
| 6622 | ac_cv_type_float=no |
| 6623 | fi |
| 6624 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6625 | fi |
| 6626 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 6627 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 6628 | |
| 6629 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 6630 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 6631 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 6632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6633 | else |
| 6634 | if test "$ac_cv_type_float" = yes; then |
| 6635 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6636 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6637 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6638 | # This bug is HP SR number 8606223364. |
| 6639 | if test "$cross_compiling" = yes; then |
| 6640 | # Depending upon the size, compute the lo and hi bounds. |
| 6641 | cat >conftest.$ac_ext <<_ACEOF |
| 6642 | #line $LINENO "configure" |
| 6643 | #include "confdefs.h" |
| 6644 | $ac_includes_default |
| 6645 | #ifdef F77_DUMMY_MAIN |
| 6646 | # ifdef __cplusplus |
| 6647 | extern "C" |
| 6648 | # endif |
| 6649 | int F77_DUMMY_MAIN() { return 1; } |
| 6650 | #endif |
| 6651 | int |
| 6652 | main () |
| 6653 | { |
| 6654 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 6655 | test_array [0] = 0 |
| 6656 | |
| 6657 | ; |
| 6658 | return 0; |
| 6659 | } |
| 6660 | _ACEOF |
| 6661 | rm -f conftest.$ac_objext |
| 6662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6663 | (eval $ac_compile) 2>&5 |
| 6664 | ac_status=$? |
| 6665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6666 | (exit $ac_status); } && |
| 6667 | { ac_try='test -s conftest.$ac_objext' |
| 6668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6669 | (eval $ac_try) 2>&5 |
| 6670 | ac_status=$? |
| 6671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6672 | (exit $ac_status); }; }; then |
| 6673 | ac_lo=0 ac_mid=0 |
| 6674 | while :; do |
| 6675 | cat >conftest.$ac_ext <<_ACEOF |
| 6676 | #line $LINENO "configure" |
| 6677 | #include "confdefs.h" |
| 6678 | $ac_includes_default |
| 6679 | #ifdef F77_DUMMY_MAIN |
| 6680 | # ifdef __cplusplus |
| 6681 | extern "C" |
| 6682 | # endif |
| 6683 | int F77_DUMMY_MAIN() { return 1; } |
| 6684 | #endif |
| 6685 | int |
| 6686 | main () |
| 6687 | { |
| 6688 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6689 | test_array [0] = 0 |
| 6690 | |
| 6691 | ; |
| 6692 | return 0; |
| 6693 | } |
| 6694 | _ACEOF |
| 6695 | rm -f conftest.$ac_objext |
| 6696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6697 | (eval $ac_compile) 2>&5 |
| 6698 | ac_status=$? |
| 6699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6700 | (exit $ac_status); } && |
| 6701 | { ac_try='test -s conftest.$ac_objext' |
| 6702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6703 | (eval $ac_try) 2>&5 |
| 6704 | ac_status=$? |
| 6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6706 | (exit $ac_status); }; }; then |
| 6707 | ac_hi=$ac_mid; break |
| 6708 | else |
| 6709 | echo "$as_me: failed program was:" >&5 |
| 6710 | cat conftest.$ac_ext >&5 |
| 6711 | ac_lo=`expr $ac_mid + 1` |
| 6712 | if test $ac_lo -le $ac_mid; then |
| 6713 | ac_lo= ac_hi= |
| 6714 | break |
| 6715 | fi |
| 6716 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6717 | fi |
| 6718 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6719 | done |
| 6720 | else |
| 6721 | echo "$as_me: failed program was:" >&5 |
| 6722 | cat conftest.$ac_ext >&5 |
| 6723 | cat >conftest.$ac_ext <<_ACEOF |
| 6724 | #line $LINENO "configure" |
| 6725 | #include "confdefs.h" |
| 6726 | $ac_includes_default |
| 6727 | #ifdef F77_DUMMY_MAIN |
| 6728 | # ifdef __cplusplus |
| 6729 | extern "C" |
| 6730 | # endif |
| 6731 | int F77_DUMMY_MAIN() { return 1; } |
| 6732 | #endif |
| 6733 | int |
| 6734 | main () |
| 6735 | { |
| 6736 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 6737 | test_array [0] = 0 |
| 6738 | |
| 6739 | ; |
| 6740 | return 0; |
| 6741 | } |
| 6742 | _ACEOF |
| 6743 | rm -f conftest.$ac_objext |
| 6744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6745 | (eval $ac_compile) 2>&5 |
| 6746 | ac_status=$? |
| 6747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6748 | (exit $ac_status); } && |
| 6749 | { ac_try='test -s conftest.$ac_objext' |
| 6750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6751 | (eval $ac_try) 2>&5 |
| 6752 | ac_status=$? |
| 6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6754 | (exit $ac_status); }; }; then |
| 6755 | ac_hi=-1 ac_mid=-1 |
| 6756 | while :; do |
| 6757 | cat >conftest.$ac_ext <<_ACEOF |
| 6758 | #line $LINENO "configure" |
| 6759 | #include "confdefs.h" |
| 6760 | $ac_includes_default |
| 6761 | #ifdef F77_DUMMY_MAIN |
| 6762 | # ifdef __cplusplus |
| 6763 | extern "C" |
| 6764 | # endif |
| 6765 | int F77_DUMMY_MAIN() { return 1; } |
| 6766 | #endif |
| 6767 | int |
| 6768 | main () |
| 6769 | { |
| 6770 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 6771 | test_array [0] = 0 |
| 6772 | |
| 6773 | ; |
| 6774 | return 0; |
| 6775 | } |
| 6776 | _ACEOF |
| 6777 | rm -f conftest.$ac_objext |
| 6778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6779 | (eval $ac_compile) 2>&5 |
| 6780 | ac_status=$? |
| 6781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6782 | (exit $ac_status); } && |
| 6783 | { ac_try='test -s conftest.$ac_objext' |
| 6784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6785 | (eval $ac_try) 2>&5 |
| 6786 | ac_status=$? |
| 6787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6788 | (exit $ac_status); }; }; then |
| 6789 | ac_lo=$ac_mid; break |
| 6790 | else |
| 6791 | echo "$as_me: failed program was:" >&5 |
| 6792 | cat conftest.$ac_ext >&5 |
| 6793 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6794 | if test $ac_mid -le $ac_hi; then |
| 6795 | ac_lo= ac_hi= |
| 6796 | break |
| 6797 | fi |
| 6798 | ac_mid=`expr 2 '*' $ac_mid` |
| 6799 | fi |
| 6800 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6801 | done |
| 6802 | else |
| 6803 | echo "$as_me: failed program was:" >&5 |
| 6804 | cat conftest.$ac_ext >&5 |
| 6805 | ac_lo= ac_hi= |
| 6806 | fi |
| 6807 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6808 | fi |
| 6809 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6810 | # Binary search between lo and hi bounds. |
| 6811 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6812 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6813 | cat >conftest.$ac_ext <<_ACEOF |
| 6814 | #line $LINENO "configure" |
| 6815 | #include "confdefs.h" |
| 6816 | $ac_includes_default |
| 6817 | #ifdef F77_DUMMY_MAIN |
| 6818 | # ifdef __cplusplus |
| 6819 | extern "C" |
| 6820 | # endif |
| 6821 | int F77_DUMMY_MAIN() { return 1; } |
| 6822 | #endif |
| 6823 | int |
| 6824 | main () |
| 6825 | { |
| 6826 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6827 | test_array [0] = 0 |
| 6828 | |
| 6829 | ; |
| 6830 | return 0; |
| 6831 | } |
| 6832 | _ACEOF |
| 6833 | rm -f conftest.$ac_objext |
| 6834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6835 | (eval $ac_compile) 2>&5 |
| 6836 | ac_status=$? |
| 6837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6838 | (exit $ac_status); } && |
| 6839 | { ac_try='test -s conftest.$ac_objext' |
| 6840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6841 | (eval $ac_try) 2>&5 |
| 6842 | ac_status=$? |
| 6843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6844 | (exit $ac_status); }; }; then |
| 6845 | ac_hi=$ac_mid |
| 6846 | else |
| 6847 | echo "$as_me: failed program was:" >&5 |
| 6848 | cat conftest.$ac_ext >&5 |
| 6849 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6850 | fi |
| 6851 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6852 | done |
| 6853 | case $ac_lo in |
| 6854 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 6855 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6856 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6857 | { (exit 1); exit 1; }; } ;; |
| 6858 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6859 | else |
| 6860 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6861 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6862 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6863 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6864 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6865 | cat >conftest.$ac_ext <<_ACEOF |
| 6866 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6867 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6868 | $ac_includes_default |
| 6869 | long longval () { return (long) (sizeof (float)); } |
| 6870 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6871 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6872 | #include <stdlib.h> |
| 6873 | #ifdef F77_DUMMY_MAIN |
| 6874 | # ifdef __cplusplus |
| 6875 | extern "C" |
| 6876 | # endif |
| 6877 | int F77_DUMMY_MAIN() { return 1; } |
| 6878 | #endif |
| 6879 | int |
| 6880 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6881 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6882 | |
| 6883 | FILE *f = fopen ("conftest.val", "w"); |
| 6884 | if (! f) |
| 6885 | exit (1); |
| 6886 | if (((long) (sizeof (float))) < 0) |
| 6887 | { |
| 6888 | long i = longval (); |
| 6889 | if (i != ((long) (sizeof (float)))) |
| 6890 | exit (1); |
| 6891 | fprintf (f, "%ld\n", i); |
| 6892 | } |
| 6893 | else |
| 6894 | { |
| 6895 | unsigned long i = ulongval (); |
| 6896 | if (i != ((long) (sizeof (float)))) |
| 6897 | exit (1); |
| 6898 | fprintf (f, "%lu\n", i); |
| 6899 | } |
| 6900 | exit (ferror (f) || fclose (f) != 0); |
| 6901 | |
| 6902 | ; |
| 6903 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6904 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6905 | _ACEOF |
| 6906 | rm -f conftest$ac_exeext |
| 6907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6908 | (eval $ac_link) 2>&5 |
| 6909 | ac_status=$? |
| 6910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6911 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6913 | (eval $ac_try) 2>&5 |
| 6914 | ac_status=$? |
| 6915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6916 | (exit $ac_status); }; }; then |
| 6917 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6919 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6920 | echo "$as_me: failed program was:" >&5 |
| 6921 | cat conftest.$ac_ext >&5 |
| 6922 | ( exit $ac_status ) |
| 6923 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6924 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6925 | { (exit 1); exit 1; }; } |
| 6926 | fi |
| 6927 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6928 | fi |
| 6929 | fi |
| 6930 | rm -f conftest.val |
| 6931 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6932 | ac_cv_sizeof_float=0 |
| 6933 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6934 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6935 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 6936 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 6937 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6938 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6939 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6940 | |
| 6941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6942 | echo "$as_me:$LINENO: checking for double" >&5 |
| 6943 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 6944 | if test "${ac_cv_type_double+set}" = set; then |
| 6945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6946 | else |
| 6947 | cat >conftest.$ac_ext <<_ACEOF |
| 6948 | #line $LINENO "configure" |
| 6949 | #include "confdefs.h" |
| 6950 | $ac_includes_default |
| 6951 | #ifdef F77_DUMMY_MAIN |
| 6952 | # ifdef __cplusplus |
| 6953 | extern "C" |
| 6954 | # endif |
| 6955 | int F77_DUMMY_MAIN() { return 1; } |
| 6956 | #endif |
| 6957 | int |
| 6958 | main () |
| 6959 | { |
| 6960 | if ((double *) 0) |
| 6961 | return 0; |
| 6962 | if (sizeof (double)) |
| 6963 | return 0; |
| 6964 | ; |
| 6965 | return 0; |
| 6966 | } |
| 6967 | _ACEOF |
| 6968 | rm -f conftest.$ac_objext |
| 6969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6970 | (eval $ac_compile) 2>&5 |
| 6971 | ac_status=$? |
| 6972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6973 | (exit $ac_status); } && |
| 6974 | { ac_try='test -s conftest.$ac_objext' |
| 6975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6976 | (eval $ac_try) 2>&5 |
| 6977 | ac_status=$? |
| 6978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6979 | (exit $ac_status); }; }; then |
| 6980 | ac_cv_type_double=yes |
| 6981 | else |
| 6982 | echo "$as_me: failed program was:" >&5 |
| 6983 | cat conftest.$ac_ext >&5 |
| 6984 | ac_cv_type_double=no |
| 6985 | fi |
| 6986 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6987 | fi |
| 6988 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 6989 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 6990 | |
| 6991 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 6992 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 6993 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 6994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6995 | else |
| 6996 | if test "$ac_cv_type_double" = yes; then |
| 6997 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6998 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6999 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7000 | # This bug is HP SR number 8606223364. |
| 7001 | if test "$cross_compiling" = yes; then |
| 7002 | # Depending upon the size, compute the lo and hi bounds. |
| 7003 | cat >conftest.$ac_ext <<_ACEOF |
| 7004 | #line $LINENO "configure" |
| 7005 | #include "confdefs.h" |
| 7006 | $ac_includes_default |
| 7007 | #ifdef F77_DUMMY_MAIN |
| 7008 | # ifdef __cplusplus |
| 7009 | extern "C" |
| 7010 | # endif |
| 7011 | int F77_DUMMY_MAIN() { return 1; } |
| 7012 | #endif |
| 7013 | int |
| 7014 | main () |
| 7015 | { |
| 7016 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7017 | test_array [0] = 0 |
| 7018 | |
| 7019 | ; |
| 7020 | return 0; |
| 7021 | } |
| 7022 | _ACEOF |
| 7023 | rm -f conftest.$ac_objext |
| 7024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7025 | (eval $ac_compile) 2>&5 |
| 7026 | ac_status=$? |
| 7027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7028 | (exit $ac_status); } && |
| 7029 | { ac_try='test -s conftest.$ac_objext' |
| 7030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7031 | (eval $ac_try) 2>&5 |
| 7032 | ac_status=$? |
| 7033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7034 | (exit $ac_status); }; }; then |
| 7035 | ac_lo=0 ac_mid=0 |
| 7036 | while :; do |
| 7037 | cat >conftest.$ac_ext <<_ACEOF |
| 7038 | #line $LINENO "configure" |
| 7039 | #include "confdefs.h" |
| 7040 | $ac_includes_default |
| 7041 | #ifdef F77_DUMMY_MAIN |
| 7042 | # ifdef __cplusplus |
| 7043 | extern "C" |
| 7044 | # endif |
| 7045 | int F77_DUMMY_MAIN() { return 1; } |
| 7046 | #endif |
| 7047 | int |
| 7048 | main () |
| 7049 | { |
| 7050 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7051 | test_array [0] = 0 |
| 7052 | |
| 7053 | ; |
| 7054 | return 0; |
| 7055 | } |
| 7056 | _ACEOF |
| 7057 | rm -f conftest.$ac_objext |
| 7058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7059 | (eval $ac_compile) 2>&5 |
| 7060 | ac_status=$? |
| 7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7062 | (exit $ac_status); } && |
| 7063 | { ac_try='test -s conftest.$ac_objext' |
| 7064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7065 | (eval $ac_try) 2>&5 |
| 7066 | ac_status=$? |
| 7067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7068 | (exit $ac_status); }; }; then |
| 7069 | ac_hi=$ac_mid; break |
| 7070 | else |
| 7071 | echo "$as_me: failed program was:" >&5 |
| 7072 | cat conftest.$ac_ext >&5 |
| 7073 | ac_lo=`expr $ac_mid + 1` |
| 7074 | if test $ac_lo -le $ac_mid; then |
| 7075 | ac_lo= ac_hi= |
| 7076 | break |
| 7077 | fi |
| 7078 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7079 | fi |
| 7080 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7081 | done |
| 7082 | else |
| 7083 | echo "$as_me: failed program was:" >&5 |
| 7084 | cat conftest.$ac_ext >&5 |
| 7085 | cat >conftest.$ac_ext <<_ACEOF |
| 7086 | #line $LINENO "configure" |
| 7087 | #include "confdefs.h" |
| 7088 | $ac_includes_default |
| 7089 | #ifdef F77_DUMMY_MAIN |
| 7090 | # ifdef __cplusplus |
| 7091 | extern "C" |
| 7092 | # endif |
| 7093 | int F77_DUMMY_MAIN() { return 1; } |
| 7094 | #endif |
| 7095 | int |
| 7096 | main () |
| 7097 | { |
| 7098 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7099 | test_array [0] = 0 |
| 7100 | |
| 7101 | ; |
| 7102 | return 0; |
| 7103 | } |
| 7104 | _ACEOF |
| 7105 | rm -f conftest.$ac_objext |
| 7106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7107 | (eval $ac_compile) 2>&5 |
| 7108 | ac_status=$? |
| 7109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7110 | (exit $ac_status); } && |
| 7111 | { ac_try='test -s conftest.$ac_objext' |
| 7112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7113 | (eval $ac_try) 2>&5 |
| 7114 | ac_status=$? |
| 7115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7116 | (exit $ac_status); }; }; then |
| 7117 | ac_hi=-1 ac_mid=-1 |
| 7118 | while :; do |
| 7119 | cat >conftest.$ac_ext <<_ACEOF |
| 7120 | #line $LINENO "configure" |
| 7121 | #include "confdefs.h" |
| 7122 | $ac_includes_default |
| 7123 | #ifdef F77_DUMMY_MAIN |
| 7124 | # ifdef __cplusplus |
| 7125 | extern "C" |
| 7126 | # endif |
| 7127 | int F77_DUMMY_MAIN() { return 1; } |
| 7128 | #endif |
| 7129 | int |
| 7130 | main () |
| 7131 | { |
| 7132 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7133 | test_array [0] = 0 |
| 7134 | |
| 7135 | ; |
| 7136 | return 0; |
| 7137 | } |
| 7138 | _ACEOF |
| 7139 | rm -f conftest.$ac_objext |
| 7140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7141 | (eval $ac_compile) 2>&5 |
| 7142 | ac_status=$? |
| 7143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7144 | (exit $ac_status); } && |
| 7145 | { ac_try='test -s conftest.$ac_objext' |
| 7146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7147 | (eval $ac_try) 2>&5 |
| 7148 | ac_status=$? |
| 7149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7150 | (exit $ac_status); }; }; then |
| 7151 | ac_lo=$ac_mid; break |
| 7152 | else |
| 7153 | echo "$as_me: failed program was:" >&5 |
| 7154 | cat conftest.$ac_ext >&5 |
| 7155 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7156 | if test $ac_mid -le $ac_hi; then |
| 7157 | ac_lo= ac_hi= |
| 7158 | break |
| 7159 | fi |
| 7160 | ac_mid=`expr 2 '*' $ac_mid` |
| 7161 | fi |
| 7162 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7163 | done |
| 7164 | else |
| 7165 | echo "$as_me: failed program was:" >&5 |
| 7166 | cat conftest.$ac_ext >&5 |
| 7167 | ac_lo= ac_hi= |
| 7168 | fi |
| 7169 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7170 | fi |
| 7171 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7172 | # Binary search between lo and hi bounds. |
| 7173 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7174 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7175 | cat >conftest.$ac_ext <<_ACEOF |
| 7176 | #line $LINENO "configure" |
| 7177 | #include "confdefs.h" |
| 7178 | $ac_includes_default |
| 7179 | #ifdef F77_DUMMY_MAIN |
| 7180 | # ifdef __cplusplus |
| 7181 | extern "C" |
| 7182 | # endif |
| 7183 | int F77_DUMMY_MAIN() { return 1; } |
| 7184 | #endif |
| 7185 | int |
| 7186 | main () |
| 7187 | { |
| 7188 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7189 | test_array [0] = 0 |
| 7190 | |
| 7191 | ; |
| 7192 | return 0; |
| 7193 | } |
| 7194 | _ACEOF |
| 7195 | rm -f conftest.$ac_objext |
| 7196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7197 | (eval $ac_compile) 2>&5 |
| 7198 | ac_status=$? |
| 7199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7200 | (exit $ac_status); } && |
| 7201 | { ac_try='test -s conftest.$ac_objext' |
| 7202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7203 | (eval $ac_try) 2>&5 |
| 7204 | ac_status=$? |
| 7205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7206 | (exit $ac_status); }; }; then |
| 7207 | ac_hi=$ac_mid |
| 7208 | else |
| 7209 | echo "$as_me: failed program was:" >&5 |
| 7210 | cat conftest.$ac_ext >&5 |
| 7211 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7212 | fi |
| 7213 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7214 | done |
| 7215 | case $ac_lo in |
| 7216 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7217 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7218 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7219 | { (exit 1); exit 1; }; } ;; |
| 7220 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7221 | else |
| 7222 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7223 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7224 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7225 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7227 | cat >conftest.$ac_ext <<_ACEOF |
| 7228 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7229 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7230 | $ac_includes_default |
| 7231 | long longval () { return (long) (sizeof (double)); } |
| 7232 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7233 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7234 | #include <stdlib.h> |
| 7235 | #ifdef F77_DUMMY_MAIN |
| 7236 | # ifdef __cplusplus |
| 7237 | extern "C" |
| 7238 | # endif |
| 7239 | int F77_DUMMY_MAIN() { return 1; } |
| 7240 | #endif |
| 7241 | int |
| 7242 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7243 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7244 | |
| 7245 | FILE *f = fopen ("conftest.val", "w"); |
| 7246 | if (! f) |
| 7247 | exit (1); |
| 7248 | if (((long) (sizeof (double))) < 0) |
| 7249 | { |
| 7250 | long i = longval (); |
| 7251 | if (i != ((long) (sizeof (double)))) |
| 7252 | exit (1); |
| 7253 | fprintf (f, "%ld\n", i); |
| 7254 | } |
| 7255 | else |
| 7256 | { |
| 7257 | unsigned long i = ulongval (); |
| 7258 | if (i != ((long) (sizeof (double)))) |
| 7259 | exit (1); |
| 7260 | fprintf (f, "%lu\n", i); |
| 7261 | } |
| 7262 | exit (ferror (f) || fclose (f) != 0); |
| 7263 | |
| 7264 | ; |
| 7265 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7266 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7267 | _ACEOF |
| 7268 | rm -f conftest$ac_exeext |
| 7269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7270 | (eval $ac_link) 2>&5 |
| 7271 | ac_status=$? |
| 7272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7273 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7275 | (eval $ac_try) 2>&5 |
| 7276 | ac_status=$? |
| 7277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7278 | (exit $ac_status); }; }; then |
| 7279 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7280 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7281 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7282 | echo "$as_me: failed program was:" >&5 |
| 7283 | cat conftest.$ac_ext >&5 |
| 7284 | ( exit $ac_status ) |
| 7285 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7286 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7287 | { (exit 1); exit 1; }; } |
| 7288 | fi |
| 7289 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7290 | fi |
| 7291 | fi |
| 7292 | rm -f conftest.val |
| 7293 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7294 | ac_cv_sizeof_double=0 |
| 7295 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7296 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7297 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7298 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7299 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7300 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7301 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7302 | |
| 7303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7304 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7305 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7306 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7308 | else |
| 7309 | cat >conftest.$ac_ext <<_ACEOF |
| 7310 | #line $LINENO "configure" |
| 7311 | #include "confdefs.h" |
| 7312 | $ac_includes_default |
| 7313 | #ifdef F77_DUMMY_MAIN |
| 7314 | # ifdef __cplusplus |
| 7315 | extern "C" |
| 7316 | # endif |
| 7317 | int F77_DUMMY_MAIN() { return 1; } |
| 7318 | #endif |
| 7319 | int |
| 7320 | main () |
| 7321 | { |
| 7322 | if ((fpos_t *) 0) |
| 7323 | return 0; |
| 7324 | if (sizeof (fpos_t)) |
| 7325 | return 0; |
| 7326 | ; |
| 7327 | return 0; |
| 7328 | } |
| 7329 | _ACEOF |
| 7330 | rm -f conftest.$ac_objext |
| 7331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7332 | (eval $ac_compile) 2>&5 |
| 7333 | ac_status=$? |
| 7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7335 | (exit $ac_status); } && |
| 7336 | { ac_try='test -s conftest.$ac_objext' |
| 7337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7338 | (eval $ac_try) 2>&5 |
| 7339 | ac_status=$? |
| 7340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7341 | (exit $ac_status); }; }; then |
| 7342 | ac_cv_type_fpos_t=yes |
| 7343 | else |
| 7344 | echo "$as_me: failed program was:" >&5 |
| 7345 | cat conftest.$ac_ext >&5 |
| 7346 | ac_cv_type_fpos_t=no |
| 7347 | fi |
| 7348 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7349 | fi |
| 7350 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7351 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7352 | |
| 7353 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7354 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7355 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7357 | else |
| 7358 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7359 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7360 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7361 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7362 | # This bug is HP SR number 8606223364. |
| 7363 | if test "$cross_compiling" = yes; then |
| 7364 | # Depending upon the size, compute the lo and hi bounds. |
| 7365 | cat >conftest.$ac_ext <<_ACEOF |
| 7366 | #line $LINENO "configure" |
| 7367 | #include "confdefs.h" |
| 7368 | $ac_includes_default |
| 7369 | #ifdef F77_DUMMY_MAIN |
| 7370 | # ifdef __cplusplus |
| 7371 | extern "C" |
| 7372 | # endif |
| 7373 | int F77_DUMMY_MAIN() { return 1; } |
| 7374 | #endif |
| 7375 | int |
| 7376 | main () |
| 7377 | { |
| 7378 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7379 | test_array [0] = 0 |
| 7380 | |
| 7381 | ; |
| 7382 | return 0; |
| 7383 | } |
| 7384 | _ACEOF |
| 7385 | rm -f conftest.$ac_objext |
| 7386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7387 | (eval $ac_compile) 2>&5 |
| 7388 | ac_status=$? |
| 7389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7390 | (exit $ac_status); } && |
| 7391 | { ac_try='test -s conftest.$ac_objext' |
| 7392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7393 | (eval $ac_try) 2>&5 |
| 7394 | ac_status=$? |
| 7395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7396 | (exit $ac_status); }; }; then |
| 7397 | ac_lo=0 ac_mid=0 |
| 7398 | while :; do |
| 7399 | cat >conftest.$ac_ext <<_ACEOF |
| 7400 | #line $LINENO "configure" |
| 7401 | #include "confdefs.h" |
| 7402 | $ac_includes_default |
| 7403 | #ifdef F77_DUMMY_MAIN |
| 7404 | # ifdef __cplusplus |
| 7405 | extern "C" |
| 7406 | # endif |
| 7407 | int F77_DUMMY_MAIN() { return 1; } |
| 7408 | #endif |
| 7409 | int |
| 7410 | main () |
| 7411 | { |
| 7412 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7413 | test_array [0] = 0 |
| 7414 | |
| 7415 | ; |
| 7416 | return 0; |
| 7417 | } |
| 7418 | _ACEOF |
| 7419 | rm -f conftest.$ac_objext |
| 7420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7421 | (eval $ac_compile) 2>&5 |
| 7422 | ac_status=$? |
| 7423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7424 | (exit $ac_status); } && |
| 7425 | { ac_try='test -s conftest.$ac_objext' |
| 7426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7427 | (eval $ac_try) 2>&5 |
| 7428 | ac_status=$? |
| 7429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7430 | (exit $ac_status); }; }; then |
| 7431 | ac_hi=$ac_mid; break |
| 7432 | else |
| 7433 | echo "$as_me: failed program was:" >&5 |
| 7434 | cat conftest.$ac_ext >&5 |
| 7435 | ac_lo=`expr $ac_mid + 1` |
| 7436 | if test $ac_lo -le $ac_mid; then |
| 7437 | ac_lo= ac_hi= |
| 7438 | break |
| 7439 | fi |
| 7440 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7441 | fi |
| 7442 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7443 | done |
| 7444 | else |
| 7445 | echo "$as_me: failed program was:" >&5 |
| 7446 | cat conftest.$ac_ext >&5 |
| 7447 | cat >conftest.$ac_ext <<_ACEOF |
| 7448 | #line $LINENO "configure" |
| 7449 | #include "confdefs.h" |
| 7450 | $ac_includes_default |
| 7451 | #ifdef F77_DUMMY_MAIN |
| 7452 | # ifdef __cplusplus |
| 7453 | extern "C" |
| 7454 | # endif |
| 7455 | int F77_DUMMY_MAIN() { return 1; } |
| 7456 | #endif |
| 7457 | int |
| 7458 | main () |
| 7459 | { |
| 7460 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7461 | test_array [0] = 0 |
| 7462 | |
| 7463 | ; |
| 7464 | return 0; |
| 7465 | } |
| 7466 | _ACEOF |
| 7467 | rm -f conftest.$ac_objext |
| 7468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7469 | (eval $ac_compile) 2>&5 |
| 7470 | ac_status=$? |
| 7471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7472 | (exit $ac_status); } && |
| 7473 | { ac_try='test -s conftest.$ac_objext' |
| 7474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7475 | (eval $ac_try) 2>&5 |
| 7476 | ac_status=$? |
| 7477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7478 | (exit $ac_status); }; }; then |
| 7479 | ac_hi=-1 ac_mid=-1 |
| 7480 | while :; do |
| 7481 | cat >conftest.$ac_ext <<_ACEOF |
| 7482 | #line $LINENO "configure" |
| 7483 | #include "confdefs.h" |
| 7484 | $ac_includes_default |
| 7485 | #ifdef F77_DUMMY_MAIN |
| 7486 | # ifdef __cplusplus |
| 7487 | extern "C" |
| 7488 | # endif |
| 7489 | int F77_DUMMY_MAIN() { return 1; } |
| 7490 | #endif |
| 7491 | int |
| 7492 | main () |
| 7493 | { |
| 7494 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7495 | test_array [0] = 0 |
| 7496 | |
| 7497 | ; |
| 7498 | return 0; |
| 7499 | } |
| 7500 | _ACEOF |
| 7501 | rm -f conftest.$ac_objext |
| 7502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7503 | (eval $ac_compile) 2>&5 |
| 7504 | ac_status=$? |
| 7505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7506 | (exit $ac_status); } && |
| 7507 | { ac_try='test -s conftest.$ac_objext' |
| 7508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7509 | (eval $ac_try) 2>&5 |
| 7510 | ac_status=$? |
| 7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7512 | (exit $ac_status); }; }; then |
| 7513 | ac_lo=$ac_mid; break |
| 7514 | else |
| 7515 | echo "$as_me: failed program was:" >&5 |
| 7516 | cat conftest.$ac_ext >&5 |
| 7517 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7518 | if test $ac_mid -le $ac_hi; then |
| 7519 | ac_lo= ac_hi= |
| 7520 | break |
| 7521 | fi |
| 7522 | ac_mid=`expr 2 '*' $ac_mid` |
| 7523 | fi |
| 7524 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7525 | done |
| 7526 | else |
| 7527 | echo "$as_me: failed program was:" >&5 |
| 7528 | cat conftest.$ac_ext >&5 |
| 7529 | ac_lo= ac_hi= |
| 7530 | fi |
| 7531 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7532 | fi |
| 7533 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7534 | # Binary search between lo and hi bounds. |
| 7535 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7536 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7537 | cat >conftest.$ac_ext <<_ACEOF |
| 7538 | #line $LINENO "configure" |
| 7539 | #include "confdefs.h" |
| 7540 | $ac_includes_default |
| 7541 | #ifdef F77_DUMMY_MAIN |
| 7542 | # ifdef __cplusplus |
| 7543 | extern "C" |
| 7544 | # endif |
| 7545 | int F77_DUMMY_MAIN() { return 1; } |
| 7546 | #endif |
| 7547 | int |
| 7548 | main () |
| 7549 | { |
| 7550 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7551 | test_array [0] = 0 |
| 7552 | |
| 7553 | ; |
| 7554 | return 0; |
| 7555 | } |
| 7556 | _ACEOF |
| 7557 | rm -f conftest.$ac_objext |
| 7558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7559 | (eval $ac_compile) 2>&5 |
| 7560 | ac_status=$? |
| 7561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7562 | (exit $ac_status); } && |
| 7563 | { ac_try='test -s conftest.$ac_objext' |
| 7564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7565 | (eval $ac_try) 2>&5 |
| 7566 | ac_status=$? |
| 7567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7568 | (exit $ac_status); }; }; then |
| 7569 | ac_hi=$ac_mid |
| 7570 | else |
| 7571 | echo "$as_me: failed program was:" >&5 |
| 7572 | cat conftest.$ac_ext >&5 |
| 7573 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7574 | fi |
| 7575 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7576 | done |
| 7577 | case $ac_lo in |
| 7578 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7579 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7580 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7581 | { (exit 1); exit 1; }; } ;; |
| 7582 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7583 | else |
| 7584 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7585 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7586 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7587 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7588 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7589 | cat >conftest.$ac_ext <<_ACEOF |
| 7590 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7591 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7592 | $ac_includes_default |
| 7593 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7594 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7595 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7596 | #include <stdlib.h> |
| 7597 | #ifdef F77_DUMMY_MAIN |
| 7598 | # ifdef __cplusplus |
| 7599 | extern "C" |
| 7600 | # endif |
| 7601 | int F77_DUMMY_MAIN() { return 1; } |
| 7602 | #endif |
| 7603 | int |
| 7604 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7605 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7606 | |
| 7607 | FILE *f = fopen ("conftest.val", "w"); |
| 7608 | if (! f) |
| 7609 | exit (1); |
| 7610 | if (((long) (sizeof (fpos_t))) < 0) |
| 7611 | { |
| 7612 | long i = longval (); |
| 7613 | if (i != ((long) (sizeof (fpos_t)))) |
| 7614 | exit (1); |
| 7615 | fprintf (f, "%ld\n", i); |
| 7616 | } |
| 7617 | else |
| 7618 | { |
| 7619 | unsigned long i = ulongval (); |
| 7620 | if (i != ((long) (sizeof (fpos_t)))) |
| 7621 | exit (1); |
| 7622 | fprintf (f, "%lu\n", i); |
| 7623 | } |
| 7624 | exit (ferror (f) || fclose (f) != 0); |
| 7625 | |
| 7626 | ; |
| 7627 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7628 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7629 | _ACEOF |
| 7630 | rm -f conftest$ac_exeext |
| 7631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7632 | (eval $ac_link) 2>&5 |
| 7633 | ac_status=$? |
| 7634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7635 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7637 | (eval $ac_try) 2>&5 |
| 7638 | ac_status=$? |
| 7639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7640 | (exit $ac_status); }; }; then |
| 7641 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7643 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7644 | echo "$as_me: failed program was:" >&5 |
| 7645 | cat conftest.$ac_ext >&5 |
| 7646 | ( exit $ac_status ) |
| 7647 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7648 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7649 | { (exit 1); exit 1; }; } |
| 7650 | fi |
| 7651 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7652 | fi |
| 7653 | fi |
| 7654 | rm -f conftest.val |
| 7655 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7656 | ac_cv_sizeof_fpos_t=0 |
| 7657 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7658 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7659 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 7660 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 7661 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7662 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7663 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7664 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7665 | |
| 7666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7667 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 7668 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7669 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7670 | cat >conftest.$ac_ext <<_ACEOF |
| 7671 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7672 | #include "confdefs.h" |
| 7673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7674 | #ifdef F77_DUMMY_MAIN |
| 7675 | # ifdef __cplusplus |
| 7676 | extern "C" |
| 7677 | # endif |
| 7678 | int F77_DUMMY_MAIN() { return 1; } |
| 7679 | #endif |
| 7680 | int |
| 7681 | main () |
| 7682 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7683 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7684 | ; |
| 7685 | return 0; |
| 7686 | } |
| 7687 | _ACEOF |
| 7688 | rm -f conftest.$ac_objext |
| 7689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7690 | (eval $ac_compile) 2>&5 |
| 7691 | ac_status=$? |
| 7692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7693 | (exit $ac_status); } && |
| 7694 | { ac_try='test -s conftest.$ac_objext' |
| 7695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7696 | (eval $ac_try) 2>&5 |
| 7697 | ac_status=$? |
| 7698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7699 | (exit $ac_status); }; }; then |
| 7700 | |
| 7701 | |
| 7702 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7703 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7704 | _ACEOF |
| 7705 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7706 | have_long_long=yes |
| 7707 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7709 | echo "$as_me: failed program was:" >&5 |
| 7710 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7711 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7712 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7713 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 7714 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7715 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7716 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 7717 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 7718 | if test "${ac_cv_type_long_long+set}" = set; then |
| 7719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7720 | else |
| 7721 | cat >conftest.$ac_ext <<_ACEOF |
| 7722 | #line $LINENO "configure" |
| 7723 | #include "confdefs.h" |
| 7724 | $ac_includes_default |
| 7725 | #ifdef F77_DUMMY_MAIN |
| 7726 | # ifdef __cplusplus |
| 7727 | extern "C" |
| 7728 | # endif |
| 7729 | int F77_DUMMY_MAIN() { return 1; } |
| 7730 | #endif |
| 7731 | int |
| 7732 | main () |
| 7733 | { |
| 7734 | if ((long long *) 0) |
| 7735 | return 0; |
| 7736 | if (sizeof (long long)) |
| 7737 | return 0; |
| 7738 | ; |
| 7739 | return 0; |
| 7740 | } |
| 7741 | _ACEOF |
| 7742 | rm -f conftest.$ac_objext |
| 7743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7744 | (eval $ac_compile) 2>&5 |
| 7745 | ac_status=$? |
| 7746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7747 | (exit $ac_status); } && |
| 7748 | { ac_try='test -s conftest.$ac_objext' |
| 7749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7750 | (eval $ac_try) 2>&5 |
| 7751 | ac_status=$? |
| 7752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7753 | (exit $ac_status); }; }; then |
| 7754 | ac_cv_type_long_long=yes |
| 7755 | else |
| 7756 | echo "$as_me: failed program was:" >&5 |
| 7757 | cat conftest.$ac_ext >&5 |
| 7758 | ac_cv_type_long_long=no |
| 7759 | fi |
| 7760 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7761 | fi |
| 7762 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 7763 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 7764 | |
| 7765 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 7766 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 7767 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 7768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7769 | else |
| 7770 | if test "$ac_cv_type_long_long" = yes; then |
| 7771 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7772 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7773 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7774 | # This bug is HP SR number 8606223364. |
| 7775 | if test "$cross_compiling" = yes; then |
| 7776 | # Depending upon the size, compute the lo and hi bounds. |
| 7777 | cat >conftest.$ac_ext <<_ACEOF |
| 7778 | #line $LINENO "configure" |
| 7779 | #include "confdefs.h" |
| 7780 | $ac_includes_default |
| 7781 | #ifdef F77_DUMMY_MAIN |
| 7782 | # ifdef __cplusplus |
| 7783 | extern "C" |
| 7784 | # endif |
| 7785 | int F77_DUMMY_MAIN() { return 1; } |
| 7786 | #endif |
| 7787 | int |
| 7788 | main () |
| 7789 | { |
| 7790 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 7791 | test_array [0] = 0 |
| 7792 | |
| 7793 | ; |
| 7794 | return 0; |
| 7795 | } |
| 7796 | _ACEOF |
| 7797 | rm -f conftest.$ac_objext |
| 7798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7799 | (eval $ac_compile) 2>&5 |
| 7800 | ac_status=$? |
| 7801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7802 | (exit $ac_status); } && |
| 7803 | { ac_try='test -s conftest.$ac_objext' |
| 7804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7805 | (eval $ac_try) 2>&5 |
| 7806 | ac_status=$? |
| 7807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7808 | (exit $ac_status); }; }; then |
| 7809 | ac_lo=0 ac_mid=0 |
| 7810 | while :; do |
| 7811 | cat >conftest.$ac_ext <<_ACEOF |
| 7812 | #line $LINENO "configure" |
| 7813 | #include "confdefs.h" |
| 7814 | $ac_includes_default |
| 7815 | #ifdef F77_DUMMY_MAIN |
| 7816 | # ifdef __cplusplus |
| 7817 | extern "C" |
| 7818 | # endif |
| 7819 | int F77_DUMMY_MAIN() { return 1; } |
| 7820 | #endif |
| 7821 | int |
| 7822 | main () |
| 7823 | { |
| 7824 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7825 | test_array [0] = 0 |
| 7826 | |
| 7827 | ; |
| 7828 | return 0; |
| 7829 | } |
| 7830 | _ACEOF |
| 7831 | rm -f conftest.$ac_objext |
| 7832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7833 | (eval $ac_compile) 2>&5 |
| 7834 | ac_status=$? |
| 7835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7836 | (exit $ac_status); } && |
| 7837 | { ac_try='test -s conftest.$ac_objext' |
| 7838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7839 | (eval $ac_try) 2>&5 |
| 7840 | ac_status=$? |
| 7841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7842 | (exit $ac_status); }; }; then |
| 7843 | ac_hi=$ac_mid; break |
| 7844 | else |
| 7845 | echo "$as_me: failed program was:" >&5 |
| 7846 | cat conftest.$ac_ext >&5 |
| 7847 | ac_lo=`expr $ac_mid + 1` |
| 7848 | if test $ac_lo -le $ac_mid; then |
| 7849 | ac_lo= ac_hi= |
| 7850 | break |
| 7851 | fi |
| 7852 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7853 | fi |
| 7854 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7855 | done |
| 7856 | else |
| 7857 | echo "$as_me: failed program was:" >&5 |
| 7858 | cat conftest.$ac_ext >&5 |
| 7859 | cat >conftest.$ac_ext <<_ACEOF |
| 7860 | #line $LINENO "configure" |
| 7861 | #include "confdefs.h" |
| 7862 | $ac_includes_default |
| 7863 | #ifdef F77_DUMMY_MAIN |
| 7864 | # ifdef __cplusplus |
| 7865 | extern "C" |
| 7866 | # endif |
| 7867 | int F77_DUMMY_MAIN() { return 1; } |
| 7868 | #endif |
| 7869 | int |
| 7870 | main () |
| 7871 | { |
| 7872 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 7873 | test_array [0] = 0 |
| 7874 | |
| 7875 | ; |
| 7876 | return 0; |
| 7877 | } |
| 7878 | _ACEOF |
| 7879 | rm -f conftest.$ac_objext |
| 7880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7881 | (eval $ac_compile) 2>&5 |
| 7882 | ac_status=$? |
| 7883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7884 | (exit $ac_status); } && |
| 7885 | { ac_try='test -s conftest.$ac_objext' |
| 7886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7887 | (eval $ac_try) 2>&5 |
| 7888 | ac_status=$? |
| 7889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7890 | (exit $ac_status); }; }; then |
| 7891 | ac_hi=-1 ac_mid=-1 |
| 7892 | while :; do |
| 7893 | cat >conftest.$ac_ext <<_ACEOF |
| 7894 | #line $LINENO "configure" |
| 7895 | #include "confdefs.h" |
| 7896 | $ac_includes_default |
| 7897 | #ifdef F77_DUMMY_MAIN |
| 7898 | # ifdef __cplusplus |
| 7899 | extern "C" |
| 7900 | # endif |
| 7901 | int F77_DUMMY_MAIN() { return 1; } |
| 7902 | #endif |
| 7903 | int |
| 7904 | main () |
| 7905 | { |
| 7906 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 7907 | test_array [0] = 0 |
| 7908 | |
| 7909 | ; |
| 7910 | return 0; |
| 7911 | } |
| 7912 | _ACEOF |
| 7913 | rm -f conftest.$ac_objext |
| 7914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7915 | (eval $ac_compile) 2>&5 |
| 7916 | ac_status=$? |
| 7917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7918 | (exit $ac_status); } && |
| 7919 | { ac_try='test -s conftest.$ac_objext' |
| 7920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7921 | (eval $ac_try) 2>&5 |
| 7922 | ac_status=$? |
| 7923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7924 | (exit $ac_status); }; }; then |
| 7925 | ac_lo=$ac_mid; break |
| 7926 | else |
| 7927 | echo "$as_me: failed program was:" >&5 |
| 7928 | cat conftest.$ac_ext >&5 |
| 7929 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7930 | if test $ac_mid -le $ac_hi; then |
| 7931 | ac_lo= ac_hi= |
| 7932 | break |
| 7933 | fi |
| 7934 | ac_mid=`expr 2 '*' $ac_mid` |
| 7935 | fi |
| 7936 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7937 | done |
| 7938 | else |
| 7939 | echo "$as_me: failed program was:" >&5 |
| 7940 | cat conftest.$ac_ext >&5 |
| 7941 | ac_lo= ac_hi= |
| 7942 | fi |
| 7943 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7944 | fi |
| 7945 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7946 | # Binary search between lo and hi bounds. |
| 7947 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7948 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7949 | cat >conftest.$ac_ext <<_ACEOF |
| 7950 | #line $LINENO "configure" |
| 7951 | #include "confdefs.h" |
| 7952 | $ac_includes_default |
| 7953 | #ifdef F77_DUMMY_MAIN |
| 7954 | # ifdef __cplusplus |
| 7955 | extern "C" |
| 7956 | # endif |
| 7957 | int F77_DUMMY_MAIN() { return 1; } |
| 7958 | #endif |
| 7959 | int |
| 7960 | main () |
| 7961 | { |
| 7962 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7963 | test_array [0] = 0 |
| 7964 | |
| 7965 | ; |
| 7966 | return 0; |
| 7967 | } |
| 7968 | _ACEOF |
| 7969 | rm -f conftest.$ac_objext |
| 7970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7971 | (eval $ac_compile) 2>&5 |
| 7972 | ac_status=$? |
| 7973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7974 | (exit $ac_status); } && |
| 7975 | { ac_try='test -s conftest.$ac_objext' |
| 7976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7977 | (eval $ac_try) 2>&5 |
| 7978 | ac_status=$? |
| 7979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7980 | (exit $ac_status); }; }; then |
| 7981 | ac_hi=$ac_mid |
| 7982 | else |
| 7983 | echo "$as_me: failed program was:" >&5 |
| 7984 | cat conftest.$ac_ext >&5 |
| 7985 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7986 | fi |
| 7987 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7988 | done |
| 7989 | case $ac_lo in |
| 7990 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 7991 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 7992 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7993 | { (exit 1); exit 1; }; } ;; |
| 7994 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7995 | else |
| 7996 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7997 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7998 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7999 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8000 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8001 | cat >conftest.$ac_ext <<_ACEOF |
| 8002 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8003 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8004 | $ac_includes_default |
| 8005 | long longval () { return (long) (sizeof (long long)); } |
| 8006 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8007 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8008 | #include <stdlib.h> |
| 8009 | #ifdef F77_DUMMY_MAIN |
| 8010 | # ifdef __cplusplus |
| 8011 | extern "C" |
| 8012 | # endif |
| 8013 | int F77_DUMMY_MAIN() { return 1; } |
| 8014 | #endif |
| 8015 | int |
| 8016 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8017 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8018 | |
| 8019 | FILE *f = fopen ("conftest.val", "w"); |
| 8020 | if (! f) |
| 8021 | exit (1); |
| 8022 | if (((long) (sizeof (long long))) < 0) |
| 8023 | { |
| 8024 | long i = longval (); |
| 8025 | if (i != ((long) (sizeof (long long)))) |
| 8026 | exit (1); |
| 8027 | fprintf (f, "%ld\n", i); |
| 8028 | } |
| 8029 | else |
| 8030 | { |
| 8031 | unsigned long i = ulongval (); |
| 8032 | if (i != ((long) (sizeof (long long)))) |
| 8033 | exit (1); |
| 8034 | fprintf (f, "%lu\n", i); |
| 8035 | } |
| 8036 | exit (ferror (f) || fclose (f) != 0); |
| 8037 | |
| 8038 | ; |
| 8039 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8040 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8041 | _ACEOF |
| 8042 | rm -f conftest$ac_exeext |
| 8043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8044 | (eval $ac_link) 2>&5 |
| 8045 | ac_status=$? |
| 8046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8047 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8049 | (eval $ac_try) 2>&5 |
| 8050 | ac_status=$? |
| 8051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8052 | (exit $ac_status); }; }; then |
| 8053 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8055 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8056 | echo "$as_me: failed program was:" >&5 |
| 8057 | cat conftest.$ac_ext >&5 |
| 8058 | ( exit $ac_status ) |
| 8059 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8060 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8061 | { (exit 1); exit 1; }; } |
| 8062 | fi |
| 8063 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8064 | fi |
| 8065 | fi |
| 8066 | rm -f conftest.val |
| 8067 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8068 | ac_cv_sizeof_long_long=0 |
| 8069 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8070 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8071 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8072 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8073 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8074 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8075 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8076 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8077 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8078 | fi |
| 8079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8080 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8081 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8082 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8083 | cat >conftest.$ac_ext <<_ACEOF |
| 8084 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8085 | #include "confdefs.h" |
| 8086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8087 | #ifdef F77_DUMMY_MAIN |
| 8088 | # ifdef __cplusplus |
| 8089 | extern "C" |
| 8090 | # endif |
| 8091 | int F77_DUMMY_MAIN() { return 1; } |
| 8092 | #endif |
| 8093 | int |
| 8094 | main () |
| 8095 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8096 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8097 | ; |
| 8098 | return 0; |
| 8099 | } |
| 8100 | _ACEOF |
| 8101 | rm -f conftest.$ac_objext |
| 8102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8103 | (eval $ac_compile) 2>&5 |
| 8104 | ac_status=$? |
| 8105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8106 | (exit $ac_status); } && |
| 8107 | { ac_try='test -s conftest.$ac_objext' |
| 8108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8109 | (eval $ac_try) 2>&5 |
| 8110 | ac_status=$? |
| 8111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8112 | (exit $ac_status); }; }; then |
| 8113 | |
| 8114 | |
| 8115 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8116 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8117 | _ACEOF |
| 8118 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8119 | have_uintptr_t=yes |
| 8120 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8121 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8122 | echo "$as_me: failed program was:" >&5 |
| 8123 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8124 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8125 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8126 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8127 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8128 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8130 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8131 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8133 | else |
| 8134 | cat >conftest.$ac_ext <<_ACEOF |
| 8135 | #line $LINENO "configure" |
| 8136 | #include "confdefs.h" |
| 8137 | $ac_includes_default |
| 8138 | #ifdef F77_DUMMY_MAIN |
| 8139 | # ifdef __cplusplus |
| 8140 | extern "C" |
| 8141 | # endif |
| 8142 | int F77_DUMMY_MAIN() { return 1; } |
| 8143 | #endif |
| 8144 | int |
| 8145 | main () |
| 8146 | { |
| 8147 | if ((uintptr_t *) 0) |
| 8148 | return 0; |
| 8149 | if (sizeof (uintptr_t)) |
| 8150 | return 0; |
| 8151 | ; |
| 8152 | return 0; |
| 8153 | } |
| 8154 | _ACEOF |
| 8155 | rm -f conftest.$ac_objext |
| 8156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8157 | (eval $ac_compile) 2>&5 |
| 8158 | ac_status=$? |
| 8159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8160 | (exit $ac_status); } && |
| 8161 | { ac_try='test -s conftest.$ac_objext' |
| 8162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8163 | (eval $ac_try) 2>&5 |
| 8164 | ac_status=$? |
| 8165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8166 | (exit $ac_status); }; }; then |
| 8167 | ac_cv_type_uintptr_t=yes |
| 8168 | else |
| 8169 | echo "$as_me: failed program was:" >&5 |
| 8170 | cat conftest.$ac_ext >&5 |
| 8171 | ac_cv_type_uintptr_t=no |
| 8172 | fi |
| 8173 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8174 | fi |
| 8175 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8176 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8177 | |
| 8178 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8179 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8180 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8182 | else |
| 8183 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8184 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8185 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8186 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8187 | # This bug is HP SR number 8606223364. |
| 8188 | if test "$cross_compiling" = yes; then |
| 8189 | # Depending upon the size, compute the lo and hi bounds. |
| 8190 | cat >conftest.$ac_ext <<_ACEOF |
| 8191 | #line $LINENO "configure" |
| 8192 | #include "confdefs.h" |
| 8193 | $ac_includes_default |
| 8194 | #ifdef F77_DUMMY_MAIN |
| 8195 | # ifdef __cplusplus |
| 8196 | extern "C" |
| 8197 | # endif |
| 8198 | int F77_DUMMY_MAIN() { return 1; } |
| 8199 | #endif |
| 8200 | int |
| 8201 | main () |
| 8202 | { |
| 8203 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8204 | test_array [0] = 0 |
| 8205 | |
| 8206 | ; |
| 8207 | return 0; |
| 8208 | } |
| 8209 | _ACEOF |
| 8210 | rm -f conftest.$ac_objext |
| 8211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8212 | (eval $ac_compile) 2>&5 |
| 8213 | ac_status=$? |
| 8214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8215 | (exit $ac_status); } && |
| 8216 | { ac_try='test -s conftest.$ac_objext' |
| 8217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8218 | (eval $ac_try) 2>&5 |
| 8219 | ac_status=$? |
| 8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8221 | (exit $ac_status); }; }; then |
| 8222 | ac_lo=0 ac_mid=0 |
| 8223 | while :; do |
| 8224 | cat >conftest.$ac_ext <<_ACEOF |
| 8225 | #line $LINENO "configure" |
| 8226 | #include "confdefs.h" |
| 8227 | $ac_includes_default |
| 8228 | #ifdef F77_DUMMY_MAIN |
| 8229 | # ifdef __cplusplus |
| 8230 | extern "C" |
| 8231 | # endif |
| 8232 | int F77_DUMMY_MAIN() { return 1; } |
| 8233 | #endif |
| 8234 | int |
| 8235 | main () |
| 8236 | { |
| 8237 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8238 | test_array [0] = 0 |
| 8239 | |
| 8240 | ; |
| 8241 | return 0; |
| 8242 | } |
| 8243 | _ACEOF |
| 8244 | rm -f conftest.$ac_objext |
| 8245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8246 | (eval $ac_compile) 2>&5 |
| 8247 | ac_status=$? |
| 8248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8249 | (exit $ac_status); } && |
| 8250 | { ac_try='test -s conftest.$ac_objext' |
| 8251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8252 | (eval $ac_try) 2>&5 |
| 8253 | ac_status=$? |
| 8254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8255 | (exit $ac_status); }; }; then |
| 8256 | ac_hi=$ac_mid; break |
| 8257 | else |
| 8258 | echo "$as_me: failed program was:" >&5 |
| 8259 | cat conftest.$ac_ext >&5 |
| 8260 | ac_lo=`expr $ac_mid + 1` |
| 8261 | if test $ac_lo -le $ac_mid; then |
| 8262 | ac_lo= ac_hi= |
| 8263 | break |
| 8264 | fi |
| 8265 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8266 | fi |
| 8267 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8268 | done |
| 8269 | else |
| 8270 | echo "$as_me: failed program was:" >&5 |
| 8271 | cat conftest.$ac_ext >&5 |
| 8272 | cat >conftest.$ac_ext <<_ACEOF |
| 8273 | #line $LINENO "configure" |
| 8274 | #include "confdefs.h" |
| 8275 | $ac_includes_default |
| 8276 | #ifdef F77_DUMMY_MAIN |
| 8277 | # ifdef __cplusplus |
| 8278 | extern "C" |
| 8279 | # endif |
| 8280 | int F77_DUMMY_MAIN() { return 1; } |
| 8281 | #endif |
| 8282 | int |
| 8283 | main () |
| 8284 | { |
| 8285 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8286 | test_array [0] = 0 |
| 8287 | |
| 8288 | ; |
| 8289 | return 0; |
| 8290 | } |
| 8291 | _ACEOF |
| 8292 | rm -f conftest.$ac_objext |
| 8293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8294 | (eval $ac_compile) 2>&5 |
| 8295 | ac_status=$? |
| 8296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8297 | (exit $ac_status); } && |
| 8298 | { ac_try='test -s conftest.$ac_objext' |
| 8299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8300 | (eval $ac_try) 2>&5 |
| 8301 | ac_status=$? |
| 8302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8303 | (exit $ac_status); }; }; then |
| 8304 | ac_hi=-1 ac_mid=-1 |
| 8305 | while :; do |
| 8306 | cat >conftest.$ac_ext <<_ACEOF |
| 8307 | #line $LINENO "configure" |
| 8308 | #include "confdefs.h" |
| 8309 | $ac_includes_default |
| 8310 | #ifdef F77_DUMMY_MAIN |
| 8311 | # ifdef __cplusplus |
| 8312 | extern "C" |
| 8313 | # endif |
| 8314 | int F77_DUMMY_MAIN() { return 1; } |
| 8315 | #endif |
| 8316 | int |
| 8317 | main () |
| 8318 | { |
| 8319 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8320 | test_array [0] = 0 |
| 8321 | |
| 8322 | ; |
| 8323 | return 0; |
| 8324 | } |
| 8325 | _ACEOF |
| 8326 | rm -f conftest.$ac_objext |
| 8327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8328 | (eval $ac_compile) 2>&5 |
| 8329 | ac_status=$? |
| 8330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8331 | (exit $ac_status); } && |
| 8332 | { ac_try='test -s conftest.$ac_objext' |
| 8333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8334 | (eval $ac_try) 2>&5 |
| 8335 | ac_status=$? |
| 8336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8337 | (exit $ac_status); }; }; then |
| 8338 | ac_lo=$ac_mid; break |
| 8339 | else |
| 8340 | echo "$as_me: failed program was:" >&5 |
| 8341 | cat conftest.$ac_ext >&5 |
| 8342 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8343 | if test $ac_mid -le $ac_hi; then |
| 8344 | ac_lo= ac_hi= |
| 8345 | break |
| 8346 | fi |
| 8347 | ac_mid=`expr 2 '*' $ac_mid` |
| 8348 | fi |
| 8349 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8350 | done |
| 8351 | else |
| 8352 | echo "$as_me: failed program was:" >&5 |
| 8353 | cat conftest.$ac_ext >&5 |
| 8354 | ac_lo= ac_hi= |
| 8355 | fi |
| 8356 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8357 | fi |
| 8358 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8359 | # Binary search between lo and hi bounds. |
| 8360 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8361 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8362 | cat >conftest.$ac_ext <<_ACEOF |
| 8363 | #line $LINENO "configure" |
| 8364 | #include "confdefs.h" |
| 8365 | $ac_includes_default |
| 8366 | #ifdef F77_DUMMY_MAIN |
| 8367 | # ifdef __cplusplus |
| 8368 | extern "C" |
| 8369 | # endif |
| 8370 | int F77_DUMMY_MAIN() { return 1; } |
| 8371 | #endif |
| 8372 | int |
| 8373 | main () |
| 8374 | { |
| 8375 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8376 | test_array [0] = 0 |
| 8377 | |
| 8378 | ; |
| 8379 | return 0; |
| 8380 | } |
| 8381 | _ACEOF |
| 8382 | rm -f conftest.$ac_objext |
| 8383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8384 | (eval $ac_compile) 2>&5 |
| 8385 | ac_status=$? |
| 8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8387 | (exit $ac_status); } && |
| 8388 | { ac_try='test -s conftest.$ac_objext' |
| 8389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8390 | (eval $ac_try) 2>&5 |
| 8391 | ac_status=$? |
| 8392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8393 | (exit $ac_status); }; }; then |
| 8394 | ac_hi=$ac_mid |
| 8395 | else |
| 8396 | echo "$as_me: failed program was:" >&5 |
| 8397 | cat conftest.$ac_ext >&5 |
| 8398 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8399 | fi |
| 8400 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8401 | done |
| 8402 | case $ac_lo in |
| 8403 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8404 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8405 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8406 | { (exit 1); exit 1; }; } ;; |
| 8407 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8408 | else |
| 8409 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8410 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8411 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8412 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8414 | cat >conftest.$ac_ext <<_ACEOF |
| 8415 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8416 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8417 | $ac_includes_default |
| 8418 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8419 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8420 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8421 | #include <stdlib.h> |
| 8422 | #ifdef F77_DUMMY_MAIN |
| 8423 | # ifdef __cplusplus |
| 8424 | extern "C" |
| 8425 | # endif |
| 8426 | int F77_DUMMY_MAIN() { return 1; } |
| 8427 | #endif |
| 8428 | int |
| 8429 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8430 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8431 | |
| 8432 | FILE *f = fopen ("conftest.val", "w"); |
| 8433 | if (! f) |
| 8434 | exit (1); |
| 8435 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8436 | { |
| 8437 | long i = longval (); |
| 8438 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8439 | exit (1); |
| 8440 | fprintf (f, "%ld\n", i); |
| 8441 | } |
| 8442 | else |
| 8443 | { |
| 8444 | unsigned long i = ulongval (); |
| 8445 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8446 | exit (1); |
| 8447 | fprintf (f, "%lu\n", i); |
| 8448 | } |
| 8449 | exit (ferror (f) || fclose (f) != 0); |
| 8450 | |
| 8451 | ; |
| 8452 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8453 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8454 | _ACEOF |
| 8455 | rm -f conftest$ac_exeext |
| 8456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8457 | (eval $ac_link) 2>&5 |
| 8458 | ac_status=$? |
| 8459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8460 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8462 | (eval $ac_try) 2>&5 |
| 8463 | ac_status=$? |
| 8464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8465 | (exit $ac_status); }; }; then |
| 8466 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8468 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8469 | echo "$as_me: failed program was:" >&5 |
| 8470 | cat conftest.$ac_ext >&5 |
| 8471 | ( exit $ac_status ) |
| 8472 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8473 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8474 | { (exit 1); exit 1; }; } |
| 8475 | fi |
| 8476 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8477 | fi |
| 8478 | fi |
| 8479 | rm -f conftest.val |
| 8480 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8481 | ac_cv_sizeof_uintptr_t=0 |
| 8482 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8485 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8486 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8487 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8488 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8489 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8490 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8491 | fi |
| 8492 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8493 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8494 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8495 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8496 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8498 | else |
| 8499 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8500 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8501 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8502 | cat >conftest.$ac_ext <<_ACEOF |
| 8503 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8504 | #include "confdefs.h" |
| 8505 | #include <stdio.h> |
| 8506 | #include <sys/types.h> |
| 8507 | main() |
| 8508 | { |
| 8509 | FILE *f=fopen("conftestval", "w"); |
| 8510 | if (!f) exit(1); |
| 8511 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8512 | exit(0); |
| 8513 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | _ACEOF |
| 8515 | rm -f conftest$ac_exeext |
| 8516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8517 | (eval $ac_link) 2>&5 |
| 8518 | ac_status=$? |
| 8519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8522 | (eval $ac_try) 2>&5 |
| 8523 | ac_status=$? |
| 8524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8525 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8526 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8527 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8528 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8529 | echo "$as_me: failed program was:" >&5 |
| 8530 | cat conftest.$ac_ext >&5 |
| 8531 | ( exit $ac_status ) |
| 8532 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8533 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | 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] | 8535 | fi |
| 8536 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8537 | fi |
| 8538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8539 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8540 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8541 | |
| 8542 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8543 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8544 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8545 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8547 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8548 | 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] | 8549 | if test "$have_long_long" = yes -a \ |
| 8550 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8551 | "$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] | 8552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8553 | cat >>confdefs.h <<\_ACEOF |
| 8554 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8555 | _ACEOF |
| 8556 | |
| 8557 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8558 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8560 | echo "$as_me:$LINENO: result: no" >&5 |
| 8561 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8562 | fi |
| 8563 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8564 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8565 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8566 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8567 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8569 | else |
| 8570 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8571 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | cat >conftest.$ac_ext <<_ACEOF |
| 8574 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8575 | #include "confdefs.h" |
| 8576 | #include <stdio.h> |
| 8577 | #include <time.h> |
| 8578 | main() |
| 8579 | { |
| 8580 | FILE *f=fopen("conftestval", "w"); |
| 8581 | if (!f) exit(1); |
| 8582 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8583 | exit(0); |
| 8584 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | _ACEOF |
| 8586 | rm -f conftest$ac_exeext |
| 8587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8588 | (eval $ac_link) 2>&5 |
| 8589 | ac_status=$? |
| 8590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8591 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8593 | (eval $ac_try) 2>&5 |
| 8594 | ac_status=$? |
| 8595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8596 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8597 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8598 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8599 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8600 | echo "$as_me: failed program was:" >&5 |
| 8601 | cat conftest.$ac_ext >&5 |
| 8602 | ( exit $ac_status ) |
| 8603 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8604 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | 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] | 8606 | fi |
| 8607 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8608 | fi |
| 8609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8610 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 8611 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 8612 | |
| 8613 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8614 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8615 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8616 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8617 | |
| 8618 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8619 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8620 | ac_save_cc="$CC" |
| 8621 | if test "$ac_cv_kpthread" = "yes" |
| 8622 | then CC="$CC -Kpthread" |
| 8623 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8624 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 8625 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8626 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8627 | cat >conftest.$ac_ext <<_ACEOF |
| 8628 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8629 | #include "confdefs.h" |
| 8630 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8631 | #ifdef F77_DUMMY_MAIN |
| 8632 | # ifdef __cplusplus |
| 8633 | extern "C" |
| 8634 | # endif |
| 8635 | int F77_DUMMY_MAIN() { return 1; } |
| 8636 | #endif |
| 8637 | int |
| 8638 | main () |
| 8639 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8640 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8641 | ; |
| 8642 | return 0; |
| 8643 | } |
| 8644 | _ACEOF |
| 8645 | rm -f conftest.$ac_objext |
| 8646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8647 | (eval $ac_compile) 2>&5 |
| 8648 | ac_status=$? |
| 8649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8650 | (exit $ac_status); } && |
| 8651 | { ac_try='test -s conftest.$ac_objext' |
| 8652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8653 | (eval $ac_try) 2>&5 |
| 8654 | ac_status=$? |
| 8655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8656 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8657 | have_pthread_t=yes |
| 8658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8659 | echo "$as_me: failed program was:" >&5 |
| 8660 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8661 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8662 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8663 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 8664 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8665 | if test "$have_pthread_t" = yes ; then |
| 8666 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 8668 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 8669 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 8670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8671 | else |
| 8672 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8673 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8674 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8675 | cat >conftest.$ac_ext <<_ACEOF |
| 8676 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8677 | #include "confdefs.h" |
| 8678 | #include <stdio.h> |
| 8679 | #include <pthread.h> |
| 8680 | main() |
| 8681 | { |
| 8682 | FILE *f=fopen("conftestval", "w"); |
| 8683 | if (!f) exit(1); |
| 8684 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 8685 | exit(0); |
| 8686 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8687 | _ACEOF |
| 8688 | rm -f conftest$ac_exeext |
| 8689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8690 | (eval $ac_link) 2>&5 |
| 8691 | ac_status=$? |
| 8692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8693 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8695 | (eval $ac_try) 2>&5 |
| 8696 | ac_status=$? |
| 8697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8698 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8699 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 8700 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8701 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8702 | echo "$as_me: failed program was:" >&5 |
| 8703 | cat conftest.$ac_ext >&5 |
| 8704 | ( exit $ac_status ) |
| 8705 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8706 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8707 | 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] | 8708 | fi |
| 8709 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8710 | fi |
| 8711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8712 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 8713 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 8714 | |
| 8715 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8716 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8717 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8718 | |
| 8719 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8720 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8722 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 8723 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8724 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 8725 | if test "${enable_toolbox_glue+set}" = set; then |
| 8726 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8729 | |
| 8730 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8731 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8732 | case $ac_sys_system/$ac_sys_release in |
| 8733 | Darwin/*) |
| 8734 | enable_toolbox_glue="yes";; |
| 8735 | *) |
| 8736 | enable_toolbox_glue="no";; |
| 8737 | esac |
| 8738 | fi |
| 8739 | case "$enable_toolbox_glue" in |
| 8740 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 8741 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8742 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8743 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8744 | |
| 8745 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8746 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8747 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8748 | |
| 8749 | ;; |
| 8750 | *) |
| 8751 | extra_frameworks="" |
| 8752 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8753 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8754 | ;; |
| 8755 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8756 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 8757 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8758 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8759 | |
| 8760 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8761 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8762 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8763 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" |
| 8764 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8765 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8766 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8767 | Darwin/*) |
| 8768 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8769 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -flat_namespace -U $ns_undef_sym" |
| 8770 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8771 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8772 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8773 | esac |
| 8774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8775 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 8776 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8777 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8778 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 8779 | OPT="$OPT -fno-common -dynamic" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8780 | # -U __environ is needed since bundles don't have access |
| 8781 | # 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] | 8782 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8783 | # in the build location. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8784 | |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8785 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8786 | Darwin/1.3*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-U,$ns_undef_sym";; |
| 8787 | Darwin/*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-flat_namespace,-U,$ns_undef_sym";; |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8788 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8790 | cat >>confdefs.h <<\_ACEOF |
| 8791 | #define WITH_NEXT_FRAMEWORK 1 |
| 8792 | _ACEOF |
| 8793 | |
| 8794 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8795 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8796 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8797 | echo "$as_me:$LINENO: result: no" >&5 |
| 8798 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8799 | fi |
| 8800 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8801 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 8802 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8803 | case $ac_sys_system/$ac_sys_release in |
| 8804 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8806 | cat >>confdefs.h <<\_ACEOF |
| 8807 | #define WITH_DYLD 1 |
| 8808 | _ACEOF |
| 8809 | |
| 8810 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 8811 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8812 | ;; |
| 8813 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | echo "$as_me:$LINENO: result: no" >&5 |
| 8815 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8816 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8817 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8818 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8819 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8820 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8821 | |
| 8822 | |
| 8823 | |
| 8824 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8825 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8826 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8827 | echo "$as_me:$LINENO: checking SO" >&5 |
| 8828 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8829 | if test -z "$SO" |
| 8830 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8831 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8832 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8833 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8834 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8835 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8836 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8837 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 8838 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8839 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8840 | # -- "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] | 8841 | # (Shared libraries in this instance are shared modules to be loaded into |
| 8842 | # 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] | 8843 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 8844 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8845 | if test -z "$LDSHARED" |
| 8846 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8847 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8848 | AIX*) |
| 8849 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8850 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8851 | ;; |
| 8852 | BeOS*) |
| 8853 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8854 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8855 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8856 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8857 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8858 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8859 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8860 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 8861 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8862 | else LDSHARED="$(CC) -G"; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8863 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8864 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8865 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 8866 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8867 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8868 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8869 | if test "$enable_framework" ; then |
| 8870 | # Link against the framework. All externals should be defined. |
| 8871 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8872 | else |
| 8873 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8874 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8875 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8876 | Darwin/*) |
| 8877 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8878 | if test "$enable_framework" ; then |
| 8879 | # Link against the framework. All externals should be defined. |
| 8880 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8881 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8882 | # No framework, use the Python app as bundle-loader |
| 8883 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 8884 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8885 | fi ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8886 | Linux*|GNU*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 8887 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 8888 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8889 | OpenBSD*|NetBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8890 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8891 | then |
| 8892 | LDSHARED="cc -shared ${LDFLAGS}" |
| 8893 | else |
| 8894 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 8895 | fi;; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8896 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8897 | if test "$GCC" = "yes" |
| 8898 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8899 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8900 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8901 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8902 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8903 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8904 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8905 | *) LDSHARED="ld";; |
| 8906 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8907 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8908 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 8909 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8910 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8911 | # 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] | 8912 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8913 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 8914 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8915 | if test -z "$CCSHARED" |
| 8916 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8917 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8918 | SunOS*) if test "$GCC" = yes; |
| 8919 | then CCSHARED="-fPIC"; |
| 8920 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8921 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8922 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8923 | else CCSHARED="+z"; |
| 8924 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8925 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8926 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8927 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8928 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8929 | if test "$GCC" = "yes" |
| 8930 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8931 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8932 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8933 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8934 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8935 | IRIX*/6*) case $CC in |
| 8936 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8937 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8938 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8939 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8940 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8941 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8942 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 8943 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8944 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8945 | # 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] | 8946 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 8947 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8948 | if test -z "$LINKFORSHARED" |
| 8949 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8950 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8951 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8952 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8953 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 8954 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8955 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8956 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8957 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8958 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8959 | # -u __dummy makes the linker aware of the objc runtime |
| 8960 | # in System.framework; otherwise, __objcInit (referenced in |
| 8961 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 8962 | # loading of any modules which reference it in System.framework. |
| 8963 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 8964 | # not used by the core itself but which needs to be in the core so |
| 8965 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8966 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8967 | if test "$enable_framework" |
| 8968 | then |
| 8969 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 8970 | fi |
| 8971 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8972 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8973 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8974 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8976 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 8977 | then |
| 8978 | LINKFORSHARED="-Wl,--export-dynamic" |
| 8979 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8980 | SunOS/5*) case $CC in |
| 8981 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8982 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8983 | then |
| 8984 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8985 | fi;; |
| 8986 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8987 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8988 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 8990 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8991 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8993 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 8994 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8995 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 8996 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8997 | case $ac_sys_system in |
| 8998 | CYGWIN*) |
| 8999 | # Cygwin needs CCSHARED when building extension DLLs |
| 9000 | # but not when building the interpreter DLL. |
| 9001 | CFLAGSFORSHARED='';; |
| 9002 | *) |
| 9003 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9004 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9005 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9006 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9007 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9008 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9009 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9010 | # library (with --enable-shared). |
| 9011 | # For platforms on which shared libraries are not allowed to have unresolved |
| 9012 | # symbols, this must be set to $(LIBS) (expanded by make). |
| 9013 | |
| 9014 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9015 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9016 | case "$ac_sys_system" in |
| 9017 | atheos*) |
| 9018 | SHLIBS='$(LIBS)';; |
| 9019 | *) |
| 9020 | SHLIBS='';; |
| 9021 | esac |
| 9022 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9023 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9024 | |
| 9025 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9026 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9027 | |
| 9028 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9029 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9030 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9032 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9033 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9034 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9035 | cat >conftest.$ac_ext <<_ACEOF |
| 9036 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9037 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9038 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9039 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9040 | #ifdef __cplusplus |
| 9041 | extern "C" |
| 9042 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9043 | /* 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] | 9044 | builtin and then its argument prototype would still apply. */ |
| 9045 | char dlopen (); |
| 9046 | #ifdef F77_DUMMY_MAIN |
| 9047 | # ifdef __cplusplus |
| 9048 | extern "C" |
| 9049 | # endif |
| 9050 | int F77_DUMMY_MAIN() { return 1; } |
| 9051 | #endif |
| 9052 | int |
| 9053 | main () |
| 9054 | { |
| 9055 | dlopen (); |
| 9056 | ; |
| 9057 | return 0; |
| 9058 | } |
| 9059 | _ACEOF |
| 9060 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9062 | (eval $ac_link) 2>&5 |
| 9063 | ac_status=$? |
| 9064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9065 | (exit $ac_status); } && |
| 9066 | { ac_try='test -s conftest$ac_exeext' |
| 9067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9068 | (eval $ac_try) 2>&5 |
| 9069 | ac_status=$? |
| 9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9071 | (exit $ac_status); }; }; then |
| 9072 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9074 | echo "$as_me: failed program was:" >&5 |
| 9075 | cat conftest.$ac_ext >&5 |
| 9076 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9077 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9078 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9079 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9080 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9081 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9082 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9083 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9084 | cat >>confdefs.h <<_ACEOF |
| 9085 | #define HAVE_LIBDL 1 |
| 9086 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9087 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9088 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9089 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9090 | fi |
| 9091 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9092 | |
| 9093 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9094 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9095 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9097 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9098 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9099 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9100 | cat >conftest.$ac_ext <<_ACEOF |
| 9101 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9102 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9103 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9104 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | #ifdef __cplusplus |
| 9106 | extern "C" |
| 9107 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9108 | /* 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] | 9109 | builtin and then its argument prototype would still apply. */ |
| 9110 | char shl_load (); |
| 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 | { |
| 9120 | shl_load (); |
| 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 |
| 9137 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9139 | echo "$as_me: failed program was:" >&5 |
| 9140 | cat conftest.$ac_ext >&5 |
| 9141 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9142 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9143 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9144 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9145 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9146 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9147 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9148 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9149 | cat >>confdefs.h <<_ACEOF |
| 9150 | #define HAVE_LIBDLD 1 |
| 9151 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9152 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9153 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9154 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9155 | fi |
| 9156 | # Dynamic linking for HP-UX |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9157 | |
| 9158 | echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 |
| 9159 | echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6 |
| 9160 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then |
| 9161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9163 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9164 | LIBS="-lrt $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9165 | cat >conftest.$ac_ext <<_ACEOF |
| 9166 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9167 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9168 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9169 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9170 | #ifdef __cplusplus |
| 9171 | extern "C" |
| 9172 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9173 | /* 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] | 9174 | builtin and then its argument prototype would still apply. */ |
| 9175 | char sem_init (); |
| 9176 | #ifdef F77_DUMMY_MAIN |
| 9177 | # ifdef __cplusplus |
| 9178 | extern "C" |
| 9179 | # endif |
| 9180 | int F77_DUMMY_MAIN() { return 1; } |
| 9181 | #endif |
| 9182 | int |
| 9183 | main () |
| 9184 | { |
| 9185 | sem_init (); |
| 9186 | ; |
| 9187 | return 0; |
| 9188 | } |
| 9189 | _ACEOF |
| 9190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9192 | (eval $ac_link) 2>&5 |
| 9193 | ac_status=$? |
| 9194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9195 | (exit $ac_status); } && |
| 9196 | { ac_try='test -s conftest$ac_exeext' |
| 9197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9198 | (eval $ac_try) 2>&5 |
| 9199 | ac_status=$? |
| 9200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9201 | (exit $ac_status); }; }; then |
| 9202 | ac_cv_lib_rt_sem_init=yes |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9203 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | echo "$as_me: failed program was:" >&5 |
| 9205 | cat conftest.$ac_ext >&5 |
| 9206 | ac_cv_lib_rt_sem_init=no |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9207 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9208 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9209 | LIBS=$ac_check_lib_save_LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9210 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9211 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 |
| 9212 | echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6 |
| 9213 | if test $ac_cv_lib_rt_sem_init = yes; then |
| 9214 | cat >>confdefs.h <<_ACEOF |
| 9215 | #define HAVE_LIBRT 1 |
| 9216 | _ACEOF |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9217 | |
| 9218 | LIBS="-lrt $LIBS" |
| 9219 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9220 | fi |
| 9221 | # 'Real Time' functions on Solaris |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9222 | |
| 9223 | # checks for system dependent C++ extensions support |
| 9224 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9225 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9226 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9227 | cat >conftest.$ac_ext <<_ACEOF |
| 9228 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9229 | #include "confdefs.h" |
| 9230 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9231 | #ifdef F77_DUMMY_MAIN |
| 9232 | # ifdef __cplusplus |
| 9233 | extern "C" |
| 9234 | # endif |
| 9235 | int F77_DUMMY_MAIN() { return 1; } |
| 9236 | #endif |
| 9237 | int |
| 9238 | main () |
| 9239 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9240 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9241 | ; |
| 9242 | return 0; |
| 9243 | } |
| 9244 | _ACEOF |
| 9245 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9247 | (eval $ac_link) 2>&5 |
| 9248 | ac_status=$? |
| 9249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9250 | (exit $ac_status); } && |
| 9251 | { ac_try='test -s conftest$ac_exeext' |
| 9252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9253 | (eval $ac_try) 2>&5 |
| 9254 | ac_status=$? |
| 9255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9256 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9258 | cat >>confdefs.h <<\_ACEOF |
| 9259 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9260 | _ACEOF |
| 9261 | |
| 9262 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9263 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +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 | echo "$as_me:$LINENO: result: no" >&5 |
| 9268 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9269 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9270 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9271 | *) ;; |
| 9272 | esac |
| 9273 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9274 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 9275 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9276 | # BeOS' sockets are stashed in libnet. |
| 9277 | case "$ac_sys_system" in |
| 9278 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9279 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9280 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9281 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9282 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9285 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9286 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9287 | cat >conftest.$ac_ext <<_ACEOF |
| 9288 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9289 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9290 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9291 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9292 | #ifdef __cplusplus |
| 9293 | extern "C" |
| 9294 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9295 | /* 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] | 9296 | builtin and then its argument prototype would still apply. */ |
| 9297 | char t_open (); |
| 9298 | #ifdef F77_DUMMY_MAIN |
| 9299 | # ifdef __cplusplus |
| 9300 | extern "C" |
| 9301 | # endif |
| 9302 | int F77_DUMMY_MAIN() { return 1; } |
| 9303 | #endif |
| 9304 | int |
| 9305 | main () |
| 9306 | { |
| 9307 | t_open (); |
| 9308 | ; |
| 9309 | return 0; |
| 9310 | } |
| 9311 | _ACEOF |
| 9312 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9314 | (eval $ac_link) 2>&5 |
| 9315 | ac_status=$? |
| 9316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9317 | (exit $ac_status); } && |
| 9318 | { ac_try='test -s conftest$ac_exeext' |
| 9319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9320 | (eval $ac_try) 2>&5 |
| 9321 | ac_status=$? |
| 9322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9323 | (exit $ac_status); }; }; then |
| 9324 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9325 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9326 | echo "$as_me: failed program was:" >&5 |
| 9327 | cat conftest.$ac_ext >&5 |
| 9328 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9329 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9330 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9331 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9332 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9333 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9334 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9335 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9336 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9337 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9338 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9339 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9340 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9341 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9345 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9346 | cat >conftest.$ac_ext <<_ACEOF |
| 9347 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9348 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9349 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9350 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9351 | #ifdef __cplusplus |
| 9352 | extern "C" |
| 9353 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9354 | /* 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] | 9355 | builtin and then its argument prototype would still apply. */ |
| 9356 | char socket (); |
| 9357 | #ifdef F77_DUMMY_MAIN |
| 9358 | # ifdef __cplusplus |
| 9359 | extern "C" |
| 9360 | # endif |
| 9361 | int F77_DUMMY_MAIN() { return 1; } |
| 9362 | #endif |
| 9363 | int |
| 9364 | main () |
| 9365 | { |
| 9366 | socket (); |
| 9367 | ; |
| 9368 | return 0; |
| 9369 | } |
| 9370 | _ACEOF |
| 9371 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9373 | (eval $ac_link) 2>&5 |
| 9374 | ac_status=$? |
| 9375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9376 | (exit $ac_status); } && |
| 9377 | { ac_try='test -s conftest$ac_exeext' |
| 9378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9379 | (eval $ac_try) 2>&5 |
| 9380 | ac_status=$? |
| 9381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9382 | (exit $ac_status); }; }; then |
| 9383 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9384 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9385 | echo "$as_me: failed program was:" >&5 |
| 9386 | cat conftest.$ac_ext >&5 |
| 9387 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9388 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9389 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9390 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9391 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9392 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9393 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9394 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9395 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9396 | fi |
| 9397 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9398 | ;; |
| 9399 | esac |
| 9400 | case "$ac_sys_system" in |
| 9401 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9402 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9403 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9404 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9407 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9408 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9409 | cat >conftest.$ac_ext <<_ACEOF |
| 9410 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9411 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9412 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9413 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9414 | #ifdef __cplusplus |
| 9415 | extern "C" |
| 9416 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9417 | /* 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] | 9418 | builtin and then its argument prototype would still apply. */ |
| 9419 | char socket (); |
| 9420 | #ifdef F77_DUMMY_MAIN |
| 9421 | # ifdef __cplusplus |
| 9422 | extern "C" |
| 9423 | # endif |
| 9424 | int F77_DUMMY_MAIN() { return 1; } |
| 9425 | #endif |
| 9426 | int |
| 9427 | main () |
| 9428 | { |
| 9429 | socket (); |
| 9430 | ; |
| 9431 | return 0; |
| 9432 | } |
| 9433 | _ACEOF |
| 9434 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9436 | (eval $ac_link) 2>&5 |
| 9437 | ac_status=$? |
| 9438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9439 | (exit $ac_status); } && |
| 9440 | { ac_try='test -s conftest$ac_exeext' |
| 9441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9442 | (eval $ac_try) 2>&5 |
| 9443 | ac_status=$? |
| 9444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9445 | (exit $ac_status); }; }; then |
| 9446 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9447 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9448 | echo "$as_me: failed program was:" >&5 |
| 9449 | cat conftest.$ac_ext >&5 |
| 9450 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9451 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9452 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9453 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9454 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9455 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9456 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9457 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9458 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9459 | fi |
| 9460 | # BeOS |
| 9461 | ;; |
| 9462 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9464 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9465 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9466 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9467 | # Check whether --with-libs or --without-libs was given. |
| 9468 | if test "${with_libs+set}" = set; then |
| 9469 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9470 | |
| 9471 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9472 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9473 | LIBS="$withval $LIBS" |
| 9474 | |
| 9475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | echo "$as_me:$LINENO: result: no" >&5 |
| 9477 | echo "${ECHO_T}no" >&6 |
| 9478 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9479 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9480 | # Determine if signalmodule should be used. |
| 9481 | |
| 9482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9483 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9484 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9485 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9486 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9487 | if test "${with_signal_module+set}" = set; then |
| 9488 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9490 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9491 | |
| 9492 | if test -z "$with_signal_module" |
| 9493 | then with_signal_module="yes" |
| 9494 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9496 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9497 | |
| 9498 | if test "${with_signal_module}" = "yes"; then |
| 9499 | USE_SIGNAL_MODULE="" |
| 9500 | SIGNAL_OBJS="" |
| 9501 | else |
| 9502 | USE_SIGNAL_MODULE="#" |
| 9503 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9504 | fi |
| 9505 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9506 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9507 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9508 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9510 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9511 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9512 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9513 | |
| 9514 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9515 | if test "${with_dec_threads+set}" = set; then |
| 9516 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9517 | |
| 9518 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9519 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9520 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9521 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9522 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9523 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9524 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9525 | echo "$as_me:$LINENO: result: no" >&5 |
| 9526 | echo "${ECHO_T}no" >&6 |
| 9527 | fi; |
| 9528 | |
| 9529 | # Templates for things AC_DEFINEd more than once. |
| 9530 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9531 | |
| 9532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9533 | |
| 9534 | |
| 9535 | |
| 9536 | |
| 9537 | |
| 9538 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9539 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9540 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9541 | # Check whether --with-threads or --without-threads was given. |
| 9542 | if test "${with_threads+set}" = set; then |
| 9543 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9545 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9546 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9547 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9548 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9549 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9550 | if test "${with_thread+set}" = set; then |
| 9551 | withval="$with_thread" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9553 | with_threads=$with_thread |
| 9554 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9555 | |
| 9556 | if test -z "$with_threads" |
| 9557 | then with_threads="yes" |
| 9558 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 9560 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9561 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9562 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9563 | if test "$with_threads" = "no" |
| 9564 | then |
| 9565 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9566 | elif test "$ac_cv_pthread_is_default" = yes |
| 9567 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9568 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9569 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9570 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9571 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9572 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9573 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9574 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9575 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9576 | |
| 9577 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9578 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9579 | elif test "$ac_cv_kpthread" = "yes" |
| 9580 | then |
| 9581 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9582 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9583 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9584 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9585 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9586 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9587 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9588 | else |
| 9589 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 9590 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 9591 | fi |
| 9592 | if test ! -z "$withval" -a -d "$withval" |
| 9593 | then LDFLAGS="$LDFLAGS -L$withval" |
| 9594 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9595 | |
| 9596 | # According to the POSIX spec, a pthreads implementation must |
| 9597 | # 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] | 9598 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 9599 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 9600 | cat >conftest.$ac_ext <<_ACEOF |
| 9601 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9602 | #include "confdefs.h" |
| 9603 | #include <unistd.h> |
| 9604 | #ifdef _POSIX_THREADS |
| 9605 | yes |
| 9606 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | |
| 9608 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9609 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9610 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9611 | unistd_defines_pthreads=yes |
| 9612 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9613 | unistd_defines_pthreads=no |
| 9614 | fi |
| 9615 | rm -f conftest* |
| 9616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9617 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 9618 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9620 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9621 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9622 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9625 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9626 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9627 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9629 | fi |
| 9630 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9631 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9632 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9633 | # Is the header compilable? |
| 9634 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 9635 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 9636 | cat >conftest.$ac_ext <<_ACEOF |
| 9637 | #line $LINENO "configure" |
| 9638 | #include "confdefs.h" |
| 9639 | $ac_includes_default |
| 9640 | #include <cthreads.h> |
| 9641 | _ACEOF |
| 9642 | rm -f conftest.$ac_objext |
| 9643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9644 | (eval $ac_compile) 2>&5 |
| 9645 | ac_status=$? |
| 9646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9647 | (exit $ac_status); } && |
| 9648 | { ac_try='test -s conftest.$ac_objext' |
| 9649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9650 | (eval $ac_try) 2>&5 |
| 9651 | ac_status=$? |
| 9652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9653 | (exit $ac_status); }; }; then |
| 9654 | ac_header_compiler=yes |
| 9655 | else |
| 9656 | echo "$as_me: failed program was:" >&5 |
| 9657 | cat conftest.$ac_ext >&5 |
| 9658 | ac_header_compiler=no |
| 9659 | fi |
| 9660 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9661 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9662 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9663 | |
| 9664 | # Is the header present? |
| 9665 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 9666 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 9667 | cat >conftest.$ac_ext <<_ACEOF |
| 9668 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9669 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9670 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9671 | _ACEOF |
| 9672 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9673 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9674 | ac_status=$? |
| 9675 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9676 | rm -f conftest.er1 |
| 9677 | cat conftest.err >&5 |
| 9678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9679 | (exit $ac_status); } >/dev/null; then |
| 9680 | if test -s conftest.err; then |
| 9681 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9682 | else |
| 9683 | ac_cpp_err= |
| 9684 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9685 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9686 | ac_cpp_err=yes |
| 9687 | fi |
| 9688 | if test -z "$ac_cpp_err"; then |
| 9689 | ac_header_preproc=yes |
| 9690 | else |
| 9691 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9692 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9693 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9694 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9695 | rm -f conftest.err conftest.$ac_ext |
| 9696 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9697 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9698 | |
| 9699 | # So? What about this header? |
| 9700 | case $ac_header_compiler:$ac_header_preproc in |
| 9701 | yes:no ) |
| 9702 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9703 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9704 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9705 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9706 | no:yes ) |
| 9707 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 9708 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 9709 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 9710 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9711 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9712 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9713 | esac |
| 9714 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9715 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9716 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9718 | else |
| 9719 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9720 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9721 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9722 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 9723 | |
| 9724 | fi |
| 9725 | if test $ac_cv_header_cthreads_h = yes; then |
| 9726 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9727 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9730 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9731 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9732 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9734 | |
| 9735 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9736 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9737 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9738 | |
| 9739 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9740 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9741 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9742 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9743 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9744 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9745 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9746 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9748 | fi |
| 9749 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9750 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9752 | # Is the header compilable? |
| 9753 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 9754 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 9755 | cat >conftest.$ac_ext <<_ACEOF |
| 9756 | #line $LINENO "configure" |
| 9757 | #include "confdefs.h" |
| 9758 | $ac_includes_default |
| 9759 | #include <mach/cthreads.h> |
| 9760 | _ACEOF |
| 9761 | rm -f conftest.$ac_objext |
| 9762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9763 | (eval $ac_compile) 2>&5 |
| 9764 | ac_status=$? |
| 9765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9766 | (exit $ac_status); } && |
| 9767 | { ac_try='test -s conftest.$ac_objext' |
| 9768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9769 | (eval $ac_try) 2>&5 |
| 9770 | ac_status=$? |
| 9771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9772 | (exit $ac_status); }; }; then |
| 9773 | ac_header_compiler=yes |
| 9774 | else |
| 9775 | echo "$as_me: failed program was:" >&5 |
| 9776 | cat conftest.$ac_ext >&5 |
| 9777 | ac_header_compiler=no |
| 9778 | fi |
| 9779 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9780 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9781 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9782 | |
| 9783 | # Is the header present? |
| 9784 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 9785 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 9786 | cat >conftest.$ac_ext <<_ACEOF |
| 9787 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9788 | #include "confdefs.h" |
| 9789 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9790 | _ACEOF |
| 9791 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9792 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9793 | ac_status=$? |
| 9794 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9795 | rm -f conftest.er1 |
| 9796 | cat conftest.err >&5 |
| 9797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9798 | (exit $ac_status); } >/dev/null; then |
| 9799 | if test -s conftest.err; then |
| 9800 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9801 | else |
| 9802 | ac_cpp_err= |
| 9803 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9804 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9805 | ac_cpp_err=yes |
| 9806 | fi |
| 9807 | if test -z "$ac_cpp_err"; then |
| 9808 | ac_header_preproc=yes |
| 9809 | else |
| 9810 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9811 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9812 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9813 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9814 | rm -f conftest.err conftest.$ac_ext |
| 9815 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9816 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9817 | |
| 9818 | # So? What about this header? |
| 9819 | case $ac_header_compiler:$ac_header_preproc in |
| 9820 | yes:no ) |
| 9821 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9822 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9823 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9824 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9825 | no:yes ) |
| 9826 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 9827 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 9828 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 9829 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9830 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9831 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9832 | esac |
| 9833 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9834 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9835 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9837 | else |
| 9838 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9839 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9840 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9841 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 9842 | |
| 9843 | fi |
| 9844 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 9845 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9846 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9847 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9849 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9850 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9851 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9852 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9853 | |
| 9854 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9855 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9856 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9857 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9858 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9859 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 9862 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 9863 | |
| 9864 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9865 | if test "${with_pth+set}" = set; then |
| 9866 | withval="$with_pth" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9868 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9869 | echo "${ECHO_T}$withval" >&6 |
| 9870 | cat >>confdefs.h <<\_ACEOF |
| 9871 | #define WITH_THREAD 1 |
| 9872 | _ACEOF |
| 9873 | |
| 9874 | |
| 9875 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9876 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9877 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9878 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9879 | LIBS="-lpth $LIBS" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9880 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | |
| 9883 | echo "$as_me:$LINENO: result: no" >&5 |
| 9884 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9885 | |
| 9886 | # Just looking for pthread_create in libpthread is not enough: |
| 9887 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 9888 | # So we really have to include pthread.h, and then link. |
| 9889 | _libs=$LIBS |
| 9890 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 9892 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 9893 | cat >conftest.$ac_ext <<_ACEOF |
| 9894 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9895 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9896 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9897 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9898 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9899 | #ifdef F77_DUMMY_MAIN |
| 9900 | # ifdef __cplusplus |
| 9901 | extern "C" |
| 9902 | # endif |
| 9903 | int F77_DUMMY_MAIN() { return 1; } |
| 9904 | #endif |
| 9905 | int |
| 9906 | main () |
| 9907 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9908 | |
| 9909 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9910 | ; |
| 9911 | return 0; |
| 9912 | } |
| 9913 | _ACEOF |
| 9914 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9916 | (eval $ac_link) 2>&5 |
| 9917 | ac_status=$? |
| 9918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9919 | (exit $ac_status); } && |
| 9920 | { ac_try='test -s conftest$ac_exeext' |
| 9921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9922 | (eval $ac_try) 2>&5 |
| 9923 | ac_status=$? |
| 9924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9925 | (exit $ac_status); }; }; then |
| 9926 | |
| 9927 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9928 | echo "${ECHO_T}yes" >&6 |
| 9929 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9930 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9931 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9932 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9933 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9934 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9935 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9936 | echo "$as_me: failed program was:" >&5 |
| 9937 | cat conftest.$ac_ext >&5 |
| 9938 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9939 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9940 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 9941 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 9942 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 9943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9945 | cat >conftest.$ac_ext <<_ACEOF |
| 9946 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9947 | #include "confdefs.h" |
| 9948 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9949 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9950 | #include <assert.h> |
| 9951 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | #ifdef __cplusplus |
| 9953 | extern "C" |
| 9954 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9955 | /* 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] | 9956 | builtin and then its argument prototype would still apply. */ |
| 9957 | char pthread_detach (); |
| 9958 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9960 | #ifdef F77_DUMMY_MAIN |
| 9961 | # ifdef __cplusplus |
| 9962 | extern "C" |
| 9963 | # endif |
| 9964 | int F77_DUMMY_MAIN() { return 1; } |
| 9965 | #endif |
| 9966 | int |
| 9967 | main () |
| 9968 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9969 | /* The GNU C library defines this for functions which it implements |
| 9970 | to always fail with ENOSYS. Some functions are actually named |
| 9971 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 9972 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9973 | choke me |
| 9974 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9975 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9976 | #endif |
| 9977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9978 | ; |
| 9979 | return 0; |
| 9980 | } |
| 9981 | _ACEOF |
| 9982 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9984 | (eval $ac_link) 2>&5 |
| 9985 | ac_status=$? |
| 9986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9987 | (exit $ac_status); } && |
| 9988 | { ac_try='test -s conftest$ac_exeext' |
| 9989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9990 | (eval $ac_try) 2>&5 |
| 9991 | ac_status=$? |
| 9992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9993 | (exit $ac_status); }; }; then |
| 9994 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9995 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9996 | echo "$as_me: failed program was:" >&5 |
| 9997 | cat conftest.$ac_ext >&5 |
| 9998 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9999 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10000 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10001 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10002 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10003 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10004 | if test $ac_cv_func_pthread_detach = yes; then |
| 10005 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10006 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10007 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10008 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10009 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10010 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10011 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10012 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10013 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10014 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10015 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10016 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10018 | fi |
| 10019 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10020 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10021 | else |
| 10022 | # Is the header compilable? |
| 10023 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10024 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10025 | cat >conftest.$ac_ext <<_ACEOF |
| 10026 | #line $LINENO "configure" |
| 10027 | #include "confdefs.h" |
| 10028 | $ac_includes_default |
| 10029 | #include <atheos/threads.h> |
| 10030 | _ACEOF |
| 10031 | rm -f conftest.$ac_objext |
| 10032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10033 | (eval $ac_compile) 2>&5 |
| 10034 | ac_status=$? |
| 10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10036 | (exit $ac_status); } && |
| 10037 | { ac_try='test -s conftest.$ac_objext' |
| 10038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10039 | (eval $ac_try) 2>&5 |
| 10040 | ac_status=$? |
| 10041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10042 | (exit $ac_status); }; }; then |
| 10043 | ac_header_compiler=yes |
| 10044 | else |
| 10045 | echo "$as_me: failed program was:" >&5 |
| 10046 | cat conftest.$ac_ext >&5 |
| 10047 | ac_header_compiler=no |
| 10048 | fi |
| 10049 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10050 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10051 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10052 | |
| 10053 | # Is the header present? |
| 10054 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10055 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10056 | cat >conftest.$ac_ext <<_ACEOF |
| 10057 | #line $LINENO "configure" |
| 10058 | #include "confdefs.h" |
| 10059 | #include <atheos/threads.h> |
| 10060 | _ACEOF |
| 10061 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10062 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10063 | ac_status=$? |
| 10064 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10065 | rm -f conftest.er1 |
| 10066 | cat conftest.err >&5 |
| 10067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10068 | (exit $ac_status); } >/dev/null; then |
| 10069 | if test -s conftest.err; then |
| 10070 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10071 | else |
| 10072 | ac_cpp_err= |
| 10073 | fi |
| 10074 | else |
| 10075 | ac_cpp_err=yes |
| 10076 | fi |
| 10077 | if test -z "$ac_cpp_err"; then |
| 10078 | ac_header_preproc=yes |
| 10079 | else |
| 10080 | echo "$as_me: failed program was:" >&5 |
| 10081 | cat conftest.$ac_ext >&5 |
| 10082 | ac_header_preproc=no |
| 10083 | fi |
| 10084 | rm -f conftest.err conftest.$ac_ext |
| 10085 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10086 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10087 | |
| 10088 | # So? What about this header? |
| 10089 | case $ac_header_compiler:$ac_header_preproc in |
| 10090 | yes:no ) |
| 10091 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10092 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10093 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10094 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10095 | no:yes ) |
| 10096 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10097 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10098 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10099 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10100 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10101 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10102 | esac |
| 10103 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10104 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10105 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10107 | else |
| 10108 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10109 | fi |
| 10110 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10111 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10112 | |
| 10113 | fi |
| 10114 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10115 | cat >>confdefs.h <<\_ACEOF |
| 10116 | #define WITH_THREAD 1 |
| 10117 | _ACEOF |
| 10118 | |
| 10119 | |
| 10120 | cat >>confdefs.h <<\_ACEOF |
| 10121 | #define ATHEOS_THREADS 1 |
| 10122 | _ACEOF |
| 10123 | |
| 10124 | THREADOBJ="Python/thread.o" |
| 10125 | else |
| 10126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10127 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10128 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10129 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10130 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10132 | fi |
| 10133 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10134 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10136 | # Is the header compilable? |
| 10137 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10138 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10139 | cat >conftest.$ac_ext <<_ACEOF |
| 10140 | #line $LINENO "configure" |
| 10141 | #include "confdefs.h" |
| 10142 | $ac_includes_default |
| 10143 | #include <kernel/OS.h> |
| 10144 | _ACEOF |
| 10145 | rm -f conftest.$ac_objext |
| 10146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10147 | (eval $ac_compile) 2>&5 |
| 10148 | ac_status=$? |
| 10149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10150 | (exit $ac_status); } && |
| 10151 | { ac_try='test -s conftest.$ac_objext' |
| 10152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10153 | (eval $ac_try) 2>&5 |
| 10154 | ac_status=$? |
| 10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10156 | (exit $ac_status); }; }; then |
| 10157 | ac_header_compiler=yes |
| 10158 | else |
| 10159 | echo "$as_me: failed program was:" >&5 |
| 10160 | cat conftest.$ac_ext >&5 |
| 10161 | ac_header_compiler=no |
| 10162 | fi |
| 10163 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10164 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10165 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10166 | |
| 10167 | # Is the header present? |
| 10168 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10169 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10170 | cat >conftest.$ac_ext <<_ACEOF |
| 10171 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10172 | #include "confdefs.h" |
| 10173 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10174 | _ACEOF |
| 10175 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10176 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10177 | ac_status=$? |
| 10178 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10179 | rm -f conftest.er1 |
| 10180 | cat conftest.err >&5 |
| 10181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10182 | (exit $ac_status); } >/dev/null; then |
| 10183 | if test -s conftest.err; then |
| 10184 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10185 | else |
| 10186 | ac_cpp_err= |
| 10187 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10188 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10189 | ac_cpp_err=yes |
| 10190 | fi |
| 10191 | if test -z "$ac_cpp_err"; then |
| 10192 | ac_header_preproc=yes |
| 10193 | else |
| 10194 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10195 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10197 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10198 | rm -f conftest.err conftest.$ac_ext |
| 10199 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10200 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10202 | # So? What about this header? |
| 10203 | case $ac_header_compiler:$ac_header_preproc in |
| 10204 | yes:no ) |
| 10205 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10206 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10207 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10208 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10209 | no:yes ) |
| 10210 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10211 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10212 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10213 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10214 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10215 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10216 | esac |
| 10217 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10218 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10219 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10221 | else |
| 10222 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10223 | fi |
| 10224 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10225 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10226 | |
| 10227 | fi |
| 10228 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10229 | cat >>confdefs.h <<\_ACEOF |
| 10230 | #define WITH_THREAD 1 |
| 10231 | _ACEOF |
| 10232 | |
| 10233 | |
| 10234 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10235 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10236 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10237 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10238 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10239 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10241 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10242 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10243 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10246 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10247 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10248 | cat >conftest.$ac_ext <<_ACEOF |
| 10249 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10250 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10252 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | #ifdef __cplusplus |
| 10254 | extern "C" |
| 10255 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10256 | /* 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] | 10257 | builtin and then its argument prototype would still apply. */ |
| 10258 | char pthread_create (); |
| 10259 | #ifdef F77_DUMMY_MAIN |
| 10260 | # ifdef __cplusplus |
| 10261 | extern "C" |
| 10262 | # endif |
| 10263 | int F77_DUMMY_MAIN() { return 1; } |
| 10264 | #endif |
| 10265 | int |
| 10266 | main () |
| 10267 | { |
| 10268 | pthread_create (); |
| 10269 | ; |
| 10270 | return 0; |
| 10271 | } |
| 10272 | _ACEOF |
| 10273 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10275 | (eval $ac_link) 2>&5 |
| 10276 | ac_status=$? |
| 10277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10278 | (exit $ac_status); } && |
| 10279 | { ac_try='test -s conftest$ac_exeext' |
| 10280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10281 | (eval $ac_try) 2>&5 |
| 10282 | ac_status=$? |
| 10283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10284 | (exit $ac_status); }; }; then |
| 10285 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | echo "$as_me: failed program was:" >&5 |
| 10288 | cat conftest.$ac_ext >&5 |
| 10289 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10290 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10291 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10292 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10293 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10294 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10295 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10296 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10297 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10298 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10299 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10300 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10301 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10302 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10303 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10304 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10306 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10307 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10308 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10310 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10312 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10313 | cat >conftest.$ac_ext <<_ACEOF |
| 10314 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10315 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10316 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10317 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | #ifdef __cplusplus |
| 10319 | extern "C" |
| 10320 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10321 | /* 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] | 10322 | builtin and then its argument prototype would still apply. */ |
| 10323 | char pthread_create (); |
| 10324 | #ifdef F77_DUMMY_MAIN |
| 10325 | # ifdef __cplusplus |
| 10326 | extern "C" |
| 10327 | # endif |
| 10328 | int F77_DUMMY_MAIN() { return 1; } |
| 10329 | #endif |
| 10330 | int |
| 10331 | main () |
| 10332 | { |
| 10333 | pthread_create (); |
| 10334 | ; |
| 10335 | return 0; |
| 10336 | } |
| 10337 | _ACEOF |
| 10338 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10340 | (eval $ac_link) 2>&5 |
| 10341 | ac_status=$? |
| 10342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10343 | (exit $ac_status); } && |
| 10344 | { ac_try='test -s conftest$ac_exeext' |
| 10345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10346 | (eval $ac_try) 2>&5 |
| 10347 | ac_status=$? |
| 10348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10349 | (exit $ac_status); }; }; then |
| 10350 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10351 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10352 | echo "$as_me: failed program was:" >&5 |
| 10353 | cat conftest.$ac_ext >&5 |
| 10354 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10355 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10356 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10357 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10358 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10359 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10360 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10361 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10362 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10363 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10364 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10365 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10366 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10367 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10368 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10369 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10370 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10371 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10372 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10373 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10375 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10377 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10378 | cat >conftest.$ac_ext <<_ACEOF |
| 10379 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10380 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10381 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10382 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10383 | #ifdef __cplusplus |
| 10384 | extern "C" |
| 10385 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10386 | /* 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] | 10387 | builtin and then its argument prototype would still apply. */ |
| 10388 | char __d6_pthread_create (); |
| 10389 | #ifdef F77_DUMMY_MAIN |
| 10390 | # ifdef __cplusplus |
| 10391 | extern "C" |
| 10392 | # endif |
| 10393 | int F77_DUMMY_MAIN() { return 1; } |
| 10394 | #endif |
| 10395 | int |
| 10396 | main () |
| 10397 | { |
| 10398 | __d6_pthread_create (); |
| 10399 | ; |
| 10400 | return 0; |
| 10401 | } |
| 10402 | _ACEOF |
| 10403 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10405 | (eval $ac_link) 2>&5 |
| 10406 | ac_status=$? |
| 10407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10408 | (exit $ac_status); } && |
| 10409 | { ac_try='test -s conftest$ac_exeext' |
| 10410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10411 | (eval $ac_try) 2>&5 |
| 10412 | ac_status=$? |
| 10413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10414 | (exit $ac_status); }; }; then |
| 10415 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10416 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10417 | echo "$as_me: failed program was:" >&5 |
| 10418 | cat conftest.$ac_ext >&5 |
| 10419 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10421 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10422 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10423 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10424 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10425 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10426 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10427 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10428 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10429 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10430 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10431 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10432 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10433 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10434 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10436 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10437 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10438 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10440 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10441 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10442 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10443 | cat >conftest.$ac_ext <<_ACEOF |
| 10444 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10445 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10446 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10447 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10448 | #ifdef __cplusplus |
| 10449 | extern "C" |
| 10450 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10451 | /* 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] | 10452 | builtin and then its argument prototype would still apply. */ |
| 10453 | char __pthread_create_system (); |
| 10454 | #ifdef F77_DUMMY_MAIN |
| 10455 | # ifdef __cplusplus |
| 10456 | extern "C" |
| 10457 | # endif |
| 10458 | int F77_DUMMY_MAIN() { return 1; } |
| 10459 | #endif |
| 10460 | int |
| 10461 | main () |
| 10462 | { |
| 10463 | __pthread_create_system (); |
| 10464 | ; |
| 10465 | return 0; |
| 10466 | } |
| 10467 | _ACEOF |
| 10468 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10470 | (eval $ac_link) 2>&5 |
| 10471 | ac_status=$? |
| 10472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10473 | (exit $ac_status); } && |
| 10474 | { ac_try='test -s conftest$ac_exeext' |
| 10475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10476 | (eval $ac_try) 2>&5 |
| 10477 | ac_status=$? |
| 10478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10479 | (exit $ac_status); }; }; then |
| 10480 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10482 | echo "$as_me: failed program was:" >&5 |
| 10483 | cat conftest.$ac_ext >&5 |
| 10484 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10485 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10486 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10487 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10488 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10489 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10490 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10491 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10492 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10493 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10494 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10495 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10496 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10497 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10498 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10499 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10501 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10502 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10503 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10505 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10506 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10507 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10508 | cat >conftest.$ac_ext <<_ACEOF |
| 10509 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10510 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10511 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10512 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10513 | #ifdef __cplusplus |
| 10514 | extern "C" |
| 10515 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10516 | /* 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] | 10517 | builtin and then its argument prototype would still apply. */ |
| 10518 | char pthread_create (); |
| 10519 | #ifdef F77_DUMMY_MAIN |
| 10520 | # ifdef __cplusplus |
| 10521 | extern "C" |
| 10522 | # endif |
| 10523 | int F77_DUMMY_MAIN() { return 1; } |
| 10524 | #endif |
| 10525 | int |
| 10526 | main () |
| 10527 | { |
| 10528 | pthread_create (); |
| 10529 | ; |
| 10530 | return 0; |
| 10531 | } |
| 10532 | _ACEOF |
| 10533 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10535 | (eval $ac_link) 2>&5 |
| 10536 | ac_status=$? |
| 10537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10538 | (exit $ac_status); } && |
| 10539 | { ac_try='test -s conftest$ac_exeext' |
| 10540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10541 | (eval $ac_try) 2>&5 |
| 10542 | ac_status=$? |
| 10543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10544 | (exit $ac_status); }; }; then |
| 10545 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10546 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10547 | echo "$as_me: failed program was:" >&5 |
| 10548 | cat conftest.$ac_ext >&5 |
| 10549 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10550 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10551 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10552 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10553 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10554 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10555 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10556 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10557 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10558 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10559 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10560 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10561 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10562 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10563 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10564 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10565 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10566 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10567 | fi |
| 10568 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10569 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10570 | fi |
| 10571 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10572 | fi |
| 10573 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10574 | fi |
| 10575 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10576 | fi |
| 10577 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10578 | fi |
| 10579 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10580 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10581 | fi |
| 10582 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10583 | |
| 10584 | fi |
| 10585 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10586 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10587 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10588 | fi; |
| 10589 | fi |
| 10590 | |
| 10591 | |
| 10592 | fi |
| 10593 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10594 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10595 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10596 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10597 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10598 | |
| 10599 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10600 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10601 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10602 | |
| 10603 | fi |
| 10604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10605 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10606 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 10607 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 10608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10609 | else |
| 10610 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10611 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10613 | cat >conftest.$ac_ext <<_ACEOF |
| 10614 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10615 | #include "confdefs.h" |
| 10616 | #include <pthread.h> |
| 10617 | void *foo(void *parm) { |
| 10618 | return NULL; |
| 10619 | } |
| 10620 | main() { |
| 10621 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10622 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10623 | if (pthread_attr_init(&attr)) exit(-1); |
| 10624 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10625 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10626 | exit(0); |
| 10627 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10628 | _ACEOF |
| 10629 | rm -f conftest$ac_exeext |
| 10630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10631 | (eval $ac_link) 2>&5 |
| 10632 | ac_status=$? |
| 10633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10634 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10636 | (eval $ac_try) 2>&5 |
| 10637 | ac_status=$? |
| 10638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10639 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10640 | ac_cv_pthread_system_supported=yes |
| 10641 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10642 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10643 | echo "$as_me: failed program was:" >&5 |
| 10644 | cat conftest.$ac_ext >&5 |
| 10645 | ( exit $ac_status ) |
| 10646 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10647 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10648 | 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] | 10649 | fi |
| 10650 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10651 | fi |
| 10652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10653 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 10654 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10655 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10656 | |
| 10657 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10658 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10659 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10660 | |
| 10661 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10662 | |
| 10663 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10664 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10665 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10666 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10667 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10668 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10671 | cat >conftest.$ac_ext <<_ACEOF |
| 10672 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10673 | #include "confdefs.h" |
| 10674 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10675 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10676 | #include <assert.h> |
| 10677 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10678 | #ifdef __cplusplus |
| 10679 | extern "C" |
| 10680 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10681 | /* 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] | 10682 | builtin and then its argument prototype would still apply. */ |
| 10683 | char $ac_func (); |
| 10684 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10686 | #ifdef F77_DUMMY_MAIN |
| 10687 | # ifdef __cplusplus |
| 10688 | extern "C" |
| 10689 | # endif |
| 10690 | int F77_DUMMY_MAIN() { return 1; } |
| 10691 | #endif |
| 10692 | int |
| 10693 | main () |
| 10694 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10695 | /* The GNU C library defines this for functions which it implements |
| 10696 | to always fail with ENOSYS. Some functions are actually named |
| 10697 | something starting with __ and the normal name is an alias. */ |
| 10698 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10699 | choke me |
| 10700 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10701 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10702 | #endif |
| 10703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10704 | ; |
| 10705 | return 0; |
| 10706 | } |
| 10707 | _ACEOF |
| 10708 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10710 | (eval $ac_link) 2>&5 |
| 10711 | ac_status=$? |
| 10712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10713 | (exit $ac_status); } && |
| 10714 | { ac_try='test -s conftest$ac_exeext' |
| 10715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10716 | (eval $ac_try) 2>&5 |
| 10717 | ac_status=$? |
| 10718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10719 | (exit $ac_status); }; }; then |
| 10720 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10722 | echo "$as_me: failed program was:" >&5 |
| 10723 | cat conftest.$ac_ext >&5 |
| 10724 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10725 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10726 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10727 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10729 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10730 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10731 | cat >>confdefs.h <<_ACEOF |
| 10732 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10733 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10734 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10735 | fi |
| 10736 | done |
| 10737 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10738 | fi |
| 10739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10740 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 10741 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 10742 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 10743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10745 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10746 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10747 | cat >conftest.$ac_ext <<_ACEOF |
| 10748 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10749 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10750 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10751 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10752 | #ifdef __cplusplus |
| 10753 | extern "C" |
| 10754 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10755 | /* 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] | 10756 | builtin and then its argument prototype would still apply. */ |
| 10757 | char usconfig (); |
| 10758 | #ifdef F77_DUMMY_MAIN |
| 10759 | # ifdef __cplusplus |
| 10760 | extern "C" |
| 10761 | # endif |
| 10762 | int F77_DUMMY_MAIN() { return 1; } |
| 10763 | #endif |
| 10764 | int |
| 10765 | main () |
| 10766 | { |
| 10767 | usconfig (); |
| 10768 | ; |
| 10769 | return 0; |
| 10770 | } |
| 10771 | _ACEOF |
| 10772 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10774 | (eval $ac_link) 2>&5 |
| 10775 | ac_status=$? |
| 10776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10777 | (exit $ac_status); } && |
| 10778 | { ac_try='test -s conftest$ac_exeext' |
| 10779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10780 | (eval $ac_try) 2>&5 |
| 10781 | ac_status=$? |
| 10782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10783 | (exit $ac_status); }; }; then |
| 10784 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10785 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10786 | echo "$as_me: failed program was:" >&5 |
| 10787 | cat conftest.$ac_ext >&5 |
| 10788 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10789 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10790 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10791 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10792 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10793 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 10794 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 10795 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 10796 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10797 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10798 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10799 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10800 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10801 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10802 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10803 | fi |
| 10804 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10806 | if test $posix_threads != "yes"; then |
| 10807 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 10808 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 10809 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 10810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10811 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10812 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10813 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10814 | cat >conftest.$ac_ext <<_ACEOF |
| 10815 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10816 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10817 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10818 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10819 | #ifdef __cplusplus |
| 10820 | extern "C" |
| 10821 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10822 | /* 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] | 10823 | builtin and then its argument prototype would still apply. */ |
| 10824 | char thr_create (); |
| 10825 | #ifdef F77_DUMMY_MAIN |
| 10826 | # ifdef __cplusplus |
| 10827 | extern "C" |
| 10828 | # endif |
| 10829 | int F77_DUMMY_MAIN() { return 1; } |
| 10830 | #endif |
| 10831 | int |
| 10832 | main () |
| 10833 | { |
| 10834 | thr_create (); |
| 10835 | ; |
| 10836 | return 0; |
| 10837 | } |
| 10838 | _ACEOF |
| 10839 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10841 | (eval $ac_link) 2>&5 |
| 10842 | ac_status=$? |
| 10843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10844 | (exit $ac_status); } && |
| 10845 | { ac_try='test -s conftest$ac_exeext' |
| 10846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10847 | (eval $ac_try) 2>&5 |
| 10848 | ac_status=$? |
| 10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10850 | (exit $ac_status); }; }; then |
| 10851 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10852 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10853 | echo "$as_me: failed program was:" >&5 |
| 10854 | cat conftest.$ac_ext >&5 |
| 10855 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10856 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10857 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10858 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10859 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10860 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 10861 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 10862 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 10863 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10864 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10865 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10866 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10867 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10868 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10869 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10870 | fi |
| 10871 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10872 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10873 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10874 | if test "$USE_THREAD_MODULE" != "#" |
| 10875 | then |
| 10876 | # If the above checks didn't disable threads, (at least) OSF1 |
| 10877 | # needs this '-threads' argument during linking. |
| 10878 | case $ac_sys_system in |
| 10879 | OSF1) LDLAST=-threads;; |
| 10880 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 10881 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10882 | fi |
| 10883 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10884 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10885 | |
| 10886 | |
| 10887 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 10888 | 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] | 10889 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 10890 | if test "${enable_ipv6+set}" = set; then |
| 10891 | enableval="$enable_ipv6" |
| 10892 | case "$enableval" in |
| 10893 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10894 | echo "$as_me:$LINENO: result: no" >&5 |
| 10895 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10896 | ipv6=no |
| 10897 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10898 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 10899 | echo "${ECHO_T}yes" >&6 |
| 10900 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10901 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10902 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10903 | |
| 10904 | ipv6=yes |
| 10905 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10906 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10907 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10908 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10909 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10910 | echo "$as_me:$LINENO: result: no" >&5 |
| 10911 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10912 | ipv6=no |
| 10913 | |
| 10914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10915 | cat >conftest.$ac_ext <<_ACEOF |
| 10916 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10917 | #include "confdefs.h" |
| 10918 | /* AF_INET6 available check */ |
| 10919 | #include <sys/types.h> |
| 10920 | #include <sys/socket.h> |
| 10921 | main() |
| 10922 | { |
| 10923 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 10924 | exit(1); |
| 10925 | else |
| 10926 | exit(0); |
| 10927 | } |
| 10928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10929 | _ACEOF |
| 10930 | rm -f conftest$ac_exeext |
| 10931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10932 | (eval $ac_link) 2>&5 |
| 10933 | ac_status=$? |
| 10934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10935 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10937 | (eval $ac_try) 2>&5 |
| 10938 | ac_status=$? |
| 10939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10940 | (exit $ac_status); }; }; then |
| 10941 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10942 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10943 | ipv6=yes |
| 10944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10945 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10946 | echo "$as_me: failed program was:" >&5 |
| 10947 | cat conftest.$ac_ext >&5 |
| 10948 | ( exit $ac_status ) |
| 10949 | echo "$as_me:$LINENO: result: no" >&5 |
| 10950 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10951 | ipv6=no |
| 10952 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10953 | 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] | 10954 | fi |
| 10955 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10956 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10957 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 10958 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 10959 | cat >conftest.$ac_ext <<_ACEOF |
| 10960 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10961 | #include "confdefs.h" |
| 10962 | #include <sys/types.h> |
| 10963 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10964 | #ifdef F77_DUMMY_MAIN |
| 10965 | # ifdef __cplusplus |
| 10966 | extern "C" |
| 10967 | # endif |
| 10968 | int F77_DUMMY_MAIN() { return 1; } |
| 10969 | #endif |
| 10970 | int |
| 10971 | main () |
| 10972 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10973 | struct sockaddr_in6 x; |
| 10974 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10975 | ; |
| 10976 | return 0; |
| 10977 | } |
| 10978 | _ACEOF |
| 10979 | rm -f conftest.$ac_objext |
| 10980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10981 | (eval $ac_compile) 2>&5 |
| 10982 | ac_status=$? |
| 10983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10984 | (exit $ac_status); } && |
| 10985 | { ac_try='test -s conftest.$ac_objext' |
| 10986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10987 | (eval $ac_try) 2>&5 |
| 10988 | ac_status=$? |
| 10989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10990 | (exit $ac_status); }; }; then |
| 10991 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10992 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10993 | ipv6=yes |
| 10994 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10995 | echo "$as_me: failed program was:" >&5 |
| 10996 | cat conftest.$ac_ext >&5 |
| 10997 | echo "$as_me:$LINENO: result: no" >&5 |
| 10998 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10999 | ipv6=no |
| 11000 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11001 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11002 | fi |
| 11003 | |
| 11004 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11005 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11006 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11007 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11008 | |
| 11009 | fi |
| 11010 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11011 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11012 | |
| 11013 | ipv6type=unknown |
| 11014 | ipv6lib=none |
| 11015 | ipv6trylibc=no |
| 11016 | |
| 11017 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11018 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11019 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11020 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11021 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11022 | case $i in |
| 11023 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11024 | cat >conftest.$ac_ext <<_ACEOF |
| 11025 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11026 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11027 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11028 | #include <netinet/in.h> |
| 11029 | #ifdef IPV6_INRIA_VERSION |
| 11030 | yes |
| 11031 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11032 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11033 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11034 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11035 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11036 | fi |
| 11037 | rm -f conftest* |
| 11038 | |
| 11039 | ;; |
| 11040 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11041 | cat >conftest.$ac_ext <<_ACEOF |
| 11042 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11043 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11044 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11045 | #include <netinet/in.h> |
| 11046 | #ifdef __KAME__ |
| 11047 | yes |
| 11048 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11049 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11050 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11051 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11052 | ipv6type=$i; |
| 11053 | ipv6lib=inet6 |
| 11054 | ipv6libdir=/usr/local/v6/lib |
| 11055 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11056 | fi |
| 11057 | rm -f conftest* |
| 11058 | |
| 11059 | ;; |
| 11060 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11061 | cat >conftest.$ac_ext <<_ACEOF |
| 11062 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11063 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11064 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11065 | #include <features.h> |
| 11066 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11067 | yes |
| 11068 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11069 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11070 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11071 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11072 | ipv6type=$i; |
| 11073 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11074 | fi |
| 11075 | rm -f conftest* |
| 11076 | |
| 11077 | ;; |
| 11078 | linux-inet6) |
| 11079 | if test -d /usr/inet6; then |
| 11080 | ipv6type=$i |
| 11081 | ipv6lib=inet6 |
| 11082 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11083 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11084 | fi |
| 11085 | ;; |
| 11086 | solaris) |
| 11087 | if test -f /etc/netconfig; then |
| 11088 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11089 | ipv6type=$i |
| 11090 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11091 | fi |
| 11092 | fi |
| 11093 | ;; |
| 11094 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11095 | cat >conftest.$ac_ext <<_ACEOF |
| 11096 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11097 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11098 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11099 | #include <sys/param.h> |
| 11100 | #ifdef _TOSHIBA_INET6 |
| 11101 | yes |
| 11102 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11103 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11104 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11105 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11106 | ipv6type=$i; |
| 11107 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11108 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11109 | fi |
| 11110 | rm -f conftest* |
| 11111 | |
| 11112 | ;; |
| 11113 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11114 | cat >conftest.$ac_ext <<_ACEOF |
| 11115 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11116 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11117 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11118 | #include </usr/local/v6/include/sys/v6config.h> |
| 11119 | #ifdef __V6D__ |
| 11120 | yes |
| 11121 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11122 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11123 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11124 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11125 | ipv6type=$i; |
| 11126 | ipv6lib=v6; |
| 11127 | ipv6libdir=/usr/local/v6/lib; |
| 11128 | OPT="-I/usr/local/v6/include $OPT" |
| 11129 | fi |
| 11130 | rm -f conftest* |
| 11131 | |
| 11132 | ;; |
| 11133 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11134 | cat >conftest.$ac_ext <<_ACEOF |
| 11135 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11136 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11137 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11138 | #include <sys/param.h> |
| 11139 | #ifdef _ZETA_MINAMI_INET6 |
| 11140 | yes |
| 11141 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11143 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11144 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11145 | ipv6type=$i; |
| 11146 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11147 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11148 | fi |
| 11149 | rm -f conftest* |
| 11150 | |
| 11151 | ;; |
| 11152 | esac |
| 11153 | if test "$ipv6type" != "unknown"; then |
| 11154 | break |
| 11155 | fi |
| 11156 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11157 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11158 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11159 | fi |
| 11160 | |
| 11161 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11162 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11163 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11164 | echo "using lib$ipv6lib" |
| 11165 | else |
| 11166 | if test $ipv6trylibc = "yes"; then |
| 11167 | echo "using libc" |
| 11168 | else |
| 11169 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11170 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11171 | echo 'ipv6 kit and compile beforehand.' |
| 11172 | exit 1 |
| 11173 | fi |
| 11174 | fi |
| 11175 | fi |
| 11176 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11177 | # Check for universal newline support |
| 11178 | echo "$as_me:$LINENO: checking for --with-universal-newline" >&5 |
| 11179 | echo $ECHO_N "checking for --with-universal-newline... $ECHO_C" >&6 |
| 11180 | |
| 11181 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11182 | if test "${with_universal_newlines+set}" = set; then |
| 11183 | withval="$with_universal_newlines" |
| 11184 | |
| 11185 | fi; |
| 11186 | |
| 11187 | if test -z "$with_universal_newlines" |
| 11188 | then with_universal_newlines="yes" |
| 11189 | fi |
| 11190 | if test "$with_universal_newlines" != "no" |
| 11191 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11192 | |
| 11193 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11194 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11195 | _ACEOF |
| 11196 | |
| 11197 | fi |
| 11198 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11199 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11200 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11201 | # Check for --with-doc-strings |
| 11202 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11203 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11204 | |
| 11205 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11206 | if test "${with_doc_strings+set}" = set; then |
| 11207 | withval="$with_doc_strings" |
| 11208 | |
| 11209 | fi; |
| 11210 | |
| 11211 | if test -z "$with_doc_strings" |
| 11212 | then with_doc_strings="yes" |
| 11213 | fi |
| 11214 | if test "$with_doc_strings" != "no" |
| 11215 | then |
| 11216 | |
| 11217 | cat >>confdefs.h <<\_ACEOF |
| 11218 | #define WITH_DOC_STRINGS 1 |
| 11219 | _ACEOF |
| 11220 | |
| 11221 | fi |
| 11222 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11223 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11224 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11225 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11226 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11227 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11228 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11229 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11230 | if test "${with_pymalloc+set}" = set; then |
| 11231 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11234 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11235 | if test -z "$with_pymalloc" |
| 11236 | then with_pymalloc="yes" |
| 11237 | fi |
| 11238 | if test "$with_pymalloc" != "no" |
| 11239 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11240 | |
| 11241 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11242 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11243 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11244 | |
| 11245 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11246 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11247 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11248 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11249 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11250 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11251 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11252 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11253 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11254 | if test "${with_wctype_functions+set}" = set; then |
| 11255 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11256 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11257 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 | then |
| 11259 | |
| 11260 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11261 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11262 | _ACEOF |
| 11263 | |
| 11264 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11265 | echo "${ECHO_T}yes" >&6 |
| 11266 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11267 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11268 | fi |
| 11269 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11270 | echo "$as_me:$LINENO: result: no" >&5 |
| 11271 | echo "${ECHO_T}no" >&6 |
| 11272 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11273 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11274 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11275 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11276 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11278 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11279 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11280 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11281 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11282 | if test "${with_sgi_dl+set}" = set; then |
| 11283 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11284 | |
| 11285 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11286 | echo "${ECHO_T}$withval" >&6 |
| 11287 | |
| 11288 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11289 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11290 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11291 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11292 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11293 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11294 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11295 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11296 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11297 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11298 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11299 | fi |
| 11300 | DLINCLDIR=${dldir} |
| 11301 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11303 | echo "$as_me:$LINENO: result: no" >&5 |
| 11304 | echo "${ECHO_T}no" >&6 |
| 11305 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11307 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11308 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11309 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11310 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11311 | if test "${with_dl_dld+set}" = set; then |
| 11312 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11313 | |
| 11314 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11315 | echo "${ECHO_T}$withval" >&6 |
| 11316 | |
| 11317 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11318 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11319 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11320 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11321 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11322 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11323 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11324 | 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] | 11325 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11326 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&5 |
| 11327 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&2;} |
| 11328 | { (exit DLD_DIRECTORY); exit DLD_DIRECTORY; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11329 | fi |
| 11330 | DLINCLDIR=${dldir} |
| 11331 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11332 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11333 | echo "$as_me:$LINENO: result: no" >&5 |
| 11334 | echo "${ECHO_T}no" >&6 |
| 11335 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11336 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11337 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11338 | # 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] | 11339 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11340 | for ac_func in dlopen |
| 11341 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11342 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11343 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11344 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11345 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11348 | cat >conftest.$ac_ext <<_ACEOF |
| 11349 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11350 | #include "confdefs.h" |
| 11351 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11352 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11353 | #include <assert.h> |
| 11354 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11355 | #ifdef __cplusplus |
| 11356 | extern "C" |
| 11357 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11358 | /* 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] | 11359 | builtin and then its argument prototype would still apply. */ |
| 11360 | char $ac_func (); |
| 11361 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11363 | #ifdef F77_DUMMY_MAIN |
| 11364 | # ifdef __cplusplus |
| 11365 | extern "C" |
| 11366 | # endif |
| 11367 | int F77_DUMMY_MAIN() { return 1; } |
| 11368 | #endif |
| 11369 | int |
| 11370 | main () |
| 11371 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11372 | /* The GNU C library defines this for functions which it implements |
| 11373 | to always fail with ENOSYS. Some functions are actually named |
| 11374 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11375 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11376 | choke me |
| 11377 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11378 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11379 | #endif |
| 11380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11381 | ; |
| 11382 | return 0; |
| 11383 | } |
| 11384 | _ACEOF |
| 11385 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11387 | (eval $ac_link) 2>&5 |
| 11388 | ac_status=$? |
| 11389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11390 | (exit $ac_status); } && |
| 11391 | { ac_try='test -s conftest$ac_exeext' |
| 11392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11393 | (eval $ac_try) 2>&5 |
| 11394 | ac_status=$? |
| 11395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11396 | (exit $ac_status); }; }; then |
| 11397 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11398 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11399 | echo "$as_me: failed program was:" >&5 |
| 11400 | cat conftest.$ac_ext >&5 |
| 11401 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11403 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11405 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11406 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11407 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11408 | cat >>confdefs.h <<_ACEOF |
| 11409 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11410 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11411 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11412 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11413 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11414 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11415 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11416 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11417 | # loading of modules. |
| 11418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11419 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11420 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11421 | if test -z "$DYNLOADFILE" |
| 11422 | then |
| 11423 | case $ac_sys_system/$ac_sys_release in |
| 11424 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11425 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11426 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11427 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11428 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11429 | *) |
| 11430 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11431 | # out any dynamic loading |
| 11432 | if test "$ac_cv_func_dlopen" = yes |
| 11433 | then DYNLOADFILE="dynload_shlib.o" |
| 11434 | else DYNLOADFILE="dynload_stub.o" |
| 11435 | fi |
| 11436 | ;; |
| 11437 | esac |
| 11438 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11439 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11440 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11441 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11442 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11443 | |
| 11444 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11445 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11446 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11447 | |
| 11448 | fi |
| 11449 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11450 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11451 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11452 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11453 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11454 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11455 | if test -z "$MACHDEP_OBJS" |
| 11456 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11457 | MACHDEP_OBJS=$extra_machdep_objs |
| 11458 | else |
| 11459 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11460 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11462 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11463 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11464 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11465 | |
| 11466 | |
| 11467 | |
| 11468 | |
| 11469 | |
| 11470 | |
| 11471 | |
| 11472 | |
| 11473 | |
| 11474 | |
| 11475 | |
| 11476 | |
| 11477 | |
| 11478 | |
| 11479 | |
| 11480 | |
| 11481 | |
| 11482 | |
| 11483 | |
| 11484 | |
| 11485 | |
| 11486 | |
| 11487 | |
| 11488 | |
| 11489 | |
| 11490 | |
| 11491 | |
| 11492 | |
| 11493 | |
| 11494 | |
| 11495 | |
| 11496 | |
| 11497 | |
| 11498 | |
| 11499 | |
| 11500 | |
| 11501 | |
| 11502 | |
| 11503 | |
| 11504 | |
| 11505 | |
| 11506 | |
| 11507 | |
| 11508 | |
| 11509 | |
| 11510 | |
| 11511 | |
| 11512 | |
| 11513 | |
| 11514 | |
| 11515 | |
| 11516 | |
| 11517 | |
| 11518 | |
| 11519 | |
| 11520 | |
| 11521 | |
| 11522 | |
| 11523 | |
| 11524 | |
| 11525 | |
| 11526 | |
| 11527 | |
| 11528 | |
| 11529 | |
| 11530 | |
| 11531 | |
| 11532 | |
| 11533 | |
| 11534 | |
| 11535 | |
| 11536 | |
| 11537 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11538 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11539 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 11540 | |
Martin v. Löwis | 0cec0ff | 2002-07-28 16:33:45 +0000 | [diff] [blame] | 11541 | |
Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 11542 | 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] | 11543 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 606edc1 | 2002-06-13 21:09:11 +0000 | [diff] [blame] | 11544 | gai_strerror getgroups getlogin getpeername getpgid getpid getpwent getwd \ |
Martin v. Löwis | 0cec0ff | 2002-07-28 16:33:45 +0000 | [diff] [blame] | 11545 | hstrerror inet_pton kill killpg lchown link lstat mkfifo mknod mktime \ |
| 11546 | mremap nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11547 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11548 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11549 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Michael W. Hudson | 065c1a2 | 2002-06-06 13:03:44 +0000 | [diff] [blame] | 11550 | sigaction siginterrupt sigrelse strftime strptime symlink \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11551 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Guido van Rossum | c524d95 | 2001-10-19 01:31:59 +0000 | [diff] [blame] | 11552 | truncate uname unsetenv waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11553 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11555 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11556 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11557 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11560 | cat >conftest.$ac_ext <<_ACEOF |
| 11561 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11562 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11563 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11564 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11565 | #include <assert.h> |
| 11566 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11567 | #ifdef __cplusplus |
| 11568 | extern "C" |
| 11569 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11570 | /* 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] | 11571 | builtin and then its argument prototype would still apply. */ |
| 11572 | char $ac_func (); |
| 11573 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | #ifdef F77_DUMMY_MAIN |
| 11576 | # ifdef __cplusplus |
| 11577 | extern "C" |
| 11578 | # endif |
| 11579 | int F77_DUMMY_MAIN() { return 1; } |
| 11580 | #endif |
| 11581 | int |
| 11582 | main () |
| 11583 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11584 | /* The GNU C library defines this for functions which it implements |
| 11585 | to always fail with ENOSYS. Some functions are actually named |
| 11586 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11587 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11588 | choke me |
| 11589 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11590 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11591 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11593 | ; |
| 11594 | return 0; |
| 11595 | } |
| 11596 | _ACEOF |
| 11597 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11599 | (eval $ac_link) 2>&5 |
| 11600 | ac_status=$? |
| 11601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11602 | (exit $ac_status); } && |
| 11603 | { ac_try='test -s conftest$ac_exeext' |
| 11604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11605 | (eval $ac_try) 2>&5 |
| 11606 | ac_status=$? |
| 11607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11608 | (exit $ac_status); }; }; then |
| 11609 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11610 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11611 | echo "$as_me: failed program was:" >&5 |
| 11612 | cat conftest.$ac_ext >&5 |
| 11613 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11614 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11615 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11616 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11617 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11618 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11619 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11620 | cat >>confdefs.h <<_ACEOF |
| 11621 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11622 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11623 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11624 | fi |
| 11625 | done |
| 11626 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11627 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11628 | # check for openpty and forkpty |
| 11629 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11630 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11631 | for ac_func in openpty |
| 11632 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11633 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11634 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11635 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11636 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11639 | cat >conftest.$ac_ext <<_ACEOF |
| 11640 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11641 | #include "confdefs.h" |
| 11642 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11643 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11644 | #include <assert.h> |
| 11645 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11646 | #ifdef __cplusplus |
| 11647 | extern "C" |
| 11648 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11649 | /* 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] | 11650 | builtin and then its argument prototype would still apply. */ |
| 11651 | char $ac_func (); |
| 11652 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11654 | #ifdef F77_DUMMY_MAIN |
| 11655 | # ifdef __cplusplus |
| 11656 | extern "C" |
| 11657 | # endif |
| 11658 | int F77_DUMMY_MAIN() { return 1; } |
| 11659 | #endif |
| 11660 | int |
| 11661 | main () |
| 11662 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11663 | /* The GNU C library defines this for functions which it implements |
| 11664 | to always fail with ENOSYS. Some functions are actually named |
| 11665 | something starting with __ and the normal name is an alias. */ |
| 11666 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11667 | choke me |
| 11668 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11669 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11670 | #endif |
| 11671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11672 | ; |
| 11673 | return 0; |
| 11674 | } |
| 11675 | _ACEOF |
| 11676 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11678 | (eval $ac_link) 2>&5 |
| 11679 | ac_status=$? |
| 11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11681 | (exit $ac_status); } && |
| 11682 | { ac_try='test -s conftest$ac_exeext' |
| 11683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11684 | (eval $ac_try) 2>&5 |
| 11685 | ac_status=$? |
| 11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11687 | (exit $ac_status); }; }; then |
| 11688 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11690 | echo "$as_me: failed program was:" >&5 |
| 11691 | cat conftest.$ac_ext >&5 |
| 11692 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11693 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11694 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11695 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11696 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11697 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11698 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11699 | cat >>confdefs.h <<_ACEOF |
| 11700 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11701 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11702 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11704 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 11705 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 11706 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 11707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11710 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11711 | cat >conftest.$ac_ext <<_ACEOF |
| 11712 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11713 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11714 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11715 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11716 | #ifdef __cplusplus |
| 11717 | extern "C" |
| 11718 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11719 | /* 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] | 11720 | builtin and then its argument prototype would still apply. */ |
| 11721 | char openpty (); |
| 11722 | #ifdef F77_DUMMY_MAIN |
| 11723 | # ifdef __cplusplus |
| 11724 | extern "C" |
| 11725 | # endif |
| 11726 | int F77_DUMMY_MAIN() { return 1; } |
| 11727 | #endif |
| 11728 | int |
| 11729 | main () |
| 11730 | { |
| 11731 | openpty (); |
| 11732 | ; |
| 11733 | return 0; |
| 11734 | } |
| 11735 | _ACEOF |
| 11736 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11738 | (eval $ac_link) 2>&5 |
| 11739 | ac_status=$? |
| 11740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11741 | (exit $ac_status); } && |
| 11742 | { ac_try='test -s conftest$ac_exeext' |
| 11743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11744 | (eval $ac_try) 2>&5 |
| 11745 | ac_status=$? |
| 11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11747 | (exit $ac_status); }; }; then |
| 11748 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11749 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11750 | echo "$as_me: failed program was:" >&5 |
| 11751 | cat conftest.$ac_ext >&5 |
| 11752 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11753 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11754 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11755 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11756 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11757 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 11758 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 11759 | if test $ac_cv_lib_util_openpty = yes; then |
| 11760 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11761 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11762 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11763 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11764 | fi |
| 11765 | |
| 11766 | fi |
| 11767 | done |
| 11768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11769 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11770 | for ac_func in forkpty |
| 11771 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11772 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11773 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11774 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11775 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11777 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11778 | cat >conftest.$ac_ext <<_ACEOF |
| 11779 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11780 | #include "confdefs.h" |
| 11781 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11782 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11783 | #include <assert.h> |
| 11784 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11785 | #ifdef __cplusplus |
| 11786 | extern "C" |
| 11787 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11788 | /* 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] | 11789 | builtin and then its argument prototype would still apply. */ |
| 11790 | char $ac_func (); |
| 11791 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11793 | #ifdef F77_DUMMY_MAIN |
| 11794 | # ifdef __cplusplus |
| 11795 | extern "C" |
| 11796 | # endif |
| 11797 | int F77_DUMMY_MAIN() { return 1; } |
| 11798 | #endif |
| 11799 | int |
| 11800 | main () |
| 11801 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11802 | /* The GNU C library defines this for functions which it implements |
| 11803 | to always fail with ENOSYS. Some functions are actually named |
| 11804 | something starting with __ and the normal name is an alias. */ |
| 11805 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11806 | choke me |
| 11807 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11808 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11809 | #endif |
| 11810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11811 | ; |
| 11812 | return 0; |
| 11813 | } |
| 11814 | _ACEOF |
| 11815 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11817 | (eval $ac_link) 2>&5 |
| 11818 | ac_status=$? |
| 11819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11820 | (exit $ac_status); } && |
| 11821 | { ac_try='test -s conftest$ac_exeext' |
| 11822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11823 | (eval $ac_try) 2>&5 |
| 11824 | ac_status=$? |
| 11825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11826 | (exit $ac_status); }; }; then |
| 11827 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11829 | echo "$as_me: failed program was:" >&5 |
| 11830 | cat conftest.$ac_ext >&5 |
| 11831 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11832 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11833 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11834 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11835 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11836 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11837 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11838 | cat >>confdefs.h <<_ACEOF |
| 11839 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11840 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11841 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11842 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11843 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 11844 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 11845 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 11846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11848 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11849 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11850 | cat >conftest.$ac_ext <<_ACEOF |
| 11851 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11852 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11853 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11854 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11855 | #ifdef __cplusplus |
| 11856 | extern "C" |
| 11857 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11858 | /* 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] | 11859 | builtin and then its argument prototype would still apply. */ |
| 11860 | char forkpty (); |
| 11861 | #ifdef F77_DUMMY_MAIN |
| 11862 | # ifdef __cplusplus |
| 11863 | extern "C" |
| 11864 | # endif |
| 11865 | int F77_DUMMY_MAIN() { return 1; } |
| 11866 | #endif |
| 11867 | int |
| 11868 | main () |
| 11869 | { |
| 11870 | forkpty (); |
| 11871 | ; |
| 11872 | return 0; |
| 11873 | } |
| 11874 | _ACEOF |
| 11875 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11877 | (eval $ac_link) 2>&5 |
| 11878 | ac_status=$? |
| 11879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11880 | (exit $ac_status); } && |
| 11881 | { ac_try='test -s conftest$ac_exeext' |
| 11882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11883 | (eval $ac_try) 2>&5 |
| 11884 | ac_status=$? |
| 11885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11886 | (exit $ac_status); }; }; then |
| 11887 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11889 | echo "$as_me: failed program was:" >&5 |
| 11890 | cat conftest.$ac_ext >&5 |
| 11891 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11892 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11893 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11894 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11895 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11896 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 11897 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 11898 | if test $ac_cv_lib_util_forkpty = yes; then |
| 11899 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11900 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11901 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11902 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11903 | fi |
| 11904 | |
| 11905 | fi |
| 11906 | done |
| 11907 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11908 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11909 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11910 | |
| 11911 | |
| 11912 | |
| 11913 | |
| 11914 | |
| 11915 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11916 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 11917 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11918 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11919 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11920 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11921 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11923 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11924 | cat >conftest.$ac_ext <<_ACEOF |
| 11925 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11926 | #include "confdefs.h" |
| 11927 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11928 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11929 | #include <assert.h> |
| 11930 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11931 | #ifdef __cplusplus |
| 11932 | extern "C" |
| 11933 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11934 | /* 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] | 11935 | builtin and then its argument prototype would still apply. */ |
| 11936 | char $ac_func (); |
| 11937 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11939 | #ifdef F77_DUMMY_MAIN |
| 11940 | # ifdef __cplusplus |
| 11941 | extern "C" |
| 11942 | # endif |
| 11943 | int F77_DUMMY_MAIN() { return 1; } |
| 11944 | #endif |
| 11945 | int |
| 11946 | main () |
| 11947 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11948 | /* The GNU C library defines this for functions which it implements |
| 11949 | to always fail with ENOSYS. Some functions are actually named |
| 11950 | something starting with __ and the normal name is an alias. */ |
| 11951 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11952 | choke me |
| 11953 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11954 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11955 | #endif |
| 11956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11957 | ; |
| 11958 | return 0; |
| 11959 | } |
| 11960 | _ACEOF |
| 11961 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11963 | (eval $ac_link) 2>&5 |
| 11964 | ac_status=$? |
| 11965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11966 | (exit $ac_status); } && |
| 11967 | { ac_try='test -s conftest$ac_exeext' |
| 11968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11969 | (eval $ac_try) 2>&5 |
| 11970 | ac_status=$? |
| 11971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11972 | (exit $ac_status); }; }; then |
| 11973 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11975 | echo "$as_me: failed program was:" >&5 |
| 11976 | cat conftest.$ac_ext >&5 |
| 11977 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11978 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11979 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11980 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11981 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11982 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11983 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11984 | cat >>confdefs.h <<_ACEOF |
| 11985 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11986 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11987 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11988 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11989 | done |
| 11990 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11991 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11992 | |
| 11993 | |
| 11994 | |
| 11995 | |
| 11996 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11997 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11998 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11999 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12000 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12001 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12002 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12005 | cat >conftest.$ac_ext <<_ACEOF |
| 12006 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12007 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12008 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12009 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12010 | #include <assert.h> |
| 12011 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12012 | #ifdef __cplusplus |
| 12013 | extern "C" |
| 12014 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12015 | /* 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] | 12016 | builtin and then its argument prototype would still apply. */ |
| 12017 | char $ac_func (); |
| 12018 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12020 | #ifdef F77_DUMMY_MAIN |
| 12021 | # ifdef __cplusplus |
| 12022 | extern "C" |
| 12023 | # endif |
| 12024 | int F77_DUMMY_MAIN() { return 1; } |
| 12025 | #endif |
| 12026 | int |
| 12027 | main () |
| 12028 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12029 | /* The GNU C library defines this for functions which it implements |
| 12030 | to always fail with ENOSYS. Some functions are actually named |
| 12031 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12032 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12033 | choke me |
| 12034 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12035 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12036 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12038 | ; |
| 12039 | return 0; |
| 12040 | } |
| 12041 | _ACEOF |
| 12042 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12044 | (eval $ac_link) 2>&5 |
| 12045 | ac_status=$? |
| 12046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12047 | (exit $ac_status); } && |
| 12048 | { ac_try='test -s conftest$ac_exeext' |
| 12049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12050 | (eval $ac_try) 2>&5 |
| 12051 | ac_status=$? |
| 12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12053 | (exit $ac_status); }; }; then |
| 12054 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12056 | echo "$as_me: failed program was:" >&5 |
| 12057 | cat conftest.$ac_ext >&5 |
| 12058 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12060 | 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] | 12061 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12063 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12064 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12065 | cat >>confdefs.h <<_ACEOF |
| 12066 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12067 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12068 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12069 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12070 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12071 | fi |
| 12072 | done |
| 12073 | |
| 12074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12075 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12076 | for ac_func in getpgrp |
| 12077 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12078 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12079 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12080 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12081 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12084 | cat >conftest.$ac_ext <<_ACEOF |
| 12085 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12086 | #include "confdefs.h" |
| 12087 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12088 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12089 | #include <assert.h> |
| 12090 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12091 | #ifdef __cplusplus |
| 12092 | extern "C" |
| 12093 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12094 | /* 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] | 12095 | builtin and then its argument prototype would still apply. */ |
| 12096 | char $ac_func (); |
| 12097 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12099 | #ifdef F77_DUMMY_MAIN |
| 12100 | # ifdef __cplusplus |
| 12101 | extern "C" |
| 12102 | # endif |
| 12103 | int F77_DUMMY_MAIN() { return 1; } |
| 12104 | #endif |
| 12105 | int |
| 12106 | main () |
| 12107 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12108 | /* The GNU C library defines this for functions which it implements |
| 12109 | to always fail with ENOSYS. Some functions are actually named |
| 12110 | something starting with __ and the normal name is an alias. */ |
| 12111 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12112 | choke me |
| 12113 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12114 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12115 | #endif |
| 12116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12117 | ; |
| 12118 | return 0; |
| 12119 | } |
| 12120 | _ACEOF |
| 12121 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12123 | (eval $ac_link) 2>&5 |
| 12124 | ac_status=$? |
| 12125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12126 | (exit $ac_status); } && |
| 12127 | { ac_try='test -s conftest$ac_exeext' |
| 12128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12129 | (eval $ac_try) 2>&5 |
| 12130 | ac_status=$? |
| 12131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12132 | (exit $ac_status); }; }; then |
| 12133 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12135 | echo "$as_me: failed program was:" >&5 |
| 12136 | cat conftest.$ac_ext >&5 |
| 12137 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12138 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12140 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12142 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12143 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12144 | cat >>confdefs.h <<_ACEOF |
| 12145 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12146 | _ACEOF |
| 12147 | cat >conftest.$ac_ext <<_ACEOF |
| 12148 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12149 | #include "confdefs.h" |
| 12150 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12151 | #ifdef F77_DUMMY_MAIN |
| 12152 | # ifdef __cplusplus |
| 12153 | extern "C" |
| 12154 | # endif |
| 12155 | int F77_DUMMY_MAIN() { return 1; } |
| 12156 | #endif |
| 12157 | int |
| 12158 | main () |
| 12159 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12160 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 | ; |
| 12162 | return 0; |
| 12163 | } |
| 12164 | _ACEOF |
| 12165 | rm -f conftest.$ac_objext |
| 12166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12167 | (eval $ac_compile) 2>&5 |
| 12168 | ac_status=$? |
| 12169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12170 | (exit $ac_status); } && |
| 12171 | { ac_try='test -s conftest.$ac_objext' |
| 12172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12173 | (eval $ac_try) 2>&5 |
| 12174 | ac_status=$? |
| 12175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12176 | (exit $ac_status); }; }; then |
| 12177 | |
| 12178 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12179 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12180 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12182 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12184 | echo "$as_me: failed program was:" >&5 |
| 12185 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12186 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12187 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12188 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12189 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12190 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12191 | |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12192 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 12193 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 12194 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12196 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12197 | if test "$cross_compiling" = yes; then |
| 12198 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 12199 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 12200 | { (exit 1); exit 1; }; } |
| 12201 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12202 | cat >conftest.$ac_ext <<_ACEOF |
| 12203 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12204 | #include "confdefs.h" |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12205 | #if HAVE_UNISTD_H |
| 12206 | # include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12207 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12209 | #ifdef F77_DUMMY_MAIN |
| 12210 | # ifdef __cplusplus |
| 12211 | extern "C" |
| 12212 | # endif |
| 12213 | int F77_DUMMY_MAIN() { return 1; } |
| 12214 | #endif |
| 12215 | int |
| 12216 | main () |
| 12217 | { |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12218 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 12219 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 12220 | exit successfully. */ |
| 12221 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12222 | ; |
| 12223 | return 0; |
| 12224 | } |
| 12225 | _ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12226 | rm -f conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12228 | (eval $ac_link) 2>&5 |
| 12229 | ac_status=$? |
| 12230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12231 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12233 | (eval $ac_try) 2>&5 |
| 12234 | ac_status=$? |
| 12235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12236 | (exit $ac_status); }; }; then |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12237 | ac_cv_func_setpgrp_void=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12238 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12239 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12240 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12241 | cat conftest.$ac_ext >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12242 | ( exit $ac_status ) |
| 12243 | ac_cv_func_setpgrp_void=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12244 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12245 | 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] | 12246 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12247 | fi |
| 12248 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 12249 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 12250 | if test $ac_cv_func_setpgrp_void = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12251 | |
| 12252 | cat >>confdefs.h <<\_ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12253 | #define SETPGRP_VOID 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12254 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12255 | |
| 12256 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12258 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12259 | for ac_func in gettimeofday |
| 12260 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12261 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12262 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12263 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12264 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12267 | cat >conftest.$ac_ext <<_ACEOF |
| 12268 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12269 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12270 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12271 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12272 | #include <assert.h> |
| 12273 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12274 | #ifdef __cplusplus |
| 12275 | extern "C" |
| 12276 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12277 | /* 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] | 12278 | builtin and then its argument prototype would still apply. */ |
| 12279 | char $ac_func (); |
| 12280 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12282 | #ifdef F77_DUMMY_MAIN |
| 12283 | # ifdef __cplusplus |
| 12284 | extern "C" |
| 12285 | # endif |
| 12286 | int F77_DUMMY_MAIN() { return 1; } |
| 12287 | #endif |
| 12288 | int |
| 12289 | main () |
| 12290 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12291 | /* The GNU C library defines this for functions which it implements |
| 12292 | to always fail with ENOSYS. Some functions are actually named |
| 12293 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12294 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12295 | choke me |
| 12296 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12297 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12298 | #endif |
| 12299 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12300 | ; |
| 12301 | return 0; |
| 12302 | } |
| 12303 | _ACEOF |
| 12304 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12306 | (eval $ac_link) 2>&5 |
| 12307 | ac_status=$? |
| 12308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12309 | (exit $ac_status); } && |
| 12310 | { ac_try='test -s conftest$ac_exeext' |
| 12311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12312 | (eval $ac_try) 2>&5 |
| 12313 | ac_status=$? |
| 12314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12315 | (exit $ac_status); }; }; then |
| 12316 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12318 | echo "$as_me: failed program was:" >&5 |
| 12319 | cat conftest.$ac_ext >&5 |
| 12320 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12322 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12323 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12325 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12326 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12327 | cat >>confdefs.h <<_ACEOF |
| 12328 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12329 | _ACEOF |
| 12330 | cat >conftest.$ac_ext <<_ACEOF |
| 12331 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12332 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12333 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12334 | #ifdef F77_DUMMY_MAIN |
| 12335 | # ifdef __cplusplus |
| 12336 | extern "C" |
| 12337 | # endif |
| 12338 | int F77_DUMMY_MAIN() { return 1; } |
| 12339 | #endif |
| 12340 | int |
| 12341 | main () |
| 12342 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12343 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12344 | ; |
| 12345 | return 0; |
| 12346 | } |
| 12347 | _ACEOF |
| 12348 | rm -f conftest.$ac_objext |
| 12349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12350 | (eval $ac_compile) 2>&5 |
| 12351 | ac_status=$? |
| 12352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12353 | (exit $ac_status); } && |
| 12354 | { ac_try='test -s conftest.$ac_objext' |
| 12355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12356 | (eval $ac_try) 2>&5 |
| 12357 | ac_status=$? |
| 12358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12359 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12360 | : |
| 12361 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12362 | echo "$as_me: failed program was:" >&5 |
| 12363 | cat conftest.$ac_ext >&5 |
| 12364 | |
| 12365 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12366 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12367 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12369 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12370 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12371 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12372 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12373 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12374 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12375 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12376 | |
| 12377 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12378 | # 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] | 12379 | # for [no]getaddrinfo in netdb.h. |
| 12380 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 12381 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 12382 | cat >conftest.$ac_ext <<_ACEOF |
| 12383 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12384 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12385 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12386 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12387 | #include <sys/socket.h> |
| 12388 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12389 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12391 | #ifdef F77_DUMMY_MAIN |
| 12392 | # ifdef __cplusplus |
| 12393 | extern "C" |
| 12394 | # endif |
| 12395 | int F77_DUMMY_MAIN() { return 1; } |
| 12396 | #endif |
| 12397 | int |
| 12398 | main () |
| 12399 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12400 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12401 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12403 | ; |
| 12404 | return 0; |
| 12405 | } |
| 12406 | _ACEOF |
| 12407 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12409 | (eval $ac_link) 2>&5 |
| 12410 | ac_status=$? |
| 12411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12412 | (exit $ac_status); } && |
| 12413 | { ac_try='test -s conftest$ac_exeext' |
| 12414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12415 | (eval $ac_try) 2>&5 |
| 12416 | ac_status=$? |
| 12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12418 | (exit $ac_status); }; }; then |
| 12419 | |
| 12420 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12421 | echo "${ECHO_T}yes" >&6 |
| 12422 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 12423 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12424 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12425 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12426 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12427 | buggygetaddrinfo=yes |
| 12428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12429 | cat >conftest.$ac_ext <<_ACEOF |
| 12430 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12431 | #include "confdefs.h" |
| 12432 | |
| 12433 | #include <sys/types.h> |
| 12434 | #include <netdb.h> |
| 12435 | #include <string.h> |
| 12436 | #include <sys/socket.h> |
| 12437 | #include <netinet/in.h> |
| 12438 | |
| 12439 | main() |
| 12440 | { |
| 12441 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12442 | struct addrinfo hints, *ai, *aitop; |
| 12443 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12444 | |
| 12445 | for (passive = 0; passive <= 1; passive++) { |
| 12446 | memset(&hints, 0, sizeof(hints)); |
| 12447 | hints.ai_family = AF_UNSPEC; |
| 12448 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12449 | hints.ai_socktype = SOCK_STREAM; |
| 12450 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12451 | (void)gai_strerror(gaierr); |
| 12452 | goto bad; |
| 12453 | } |
| 12454 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12455 | if (ai->ai_addr == NULL || |
| 12456 | ai->ai_addrlen == 0 || |
| 12457 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12458 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12459 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12460 | goto bad; |
| 12461 | } |
| 12462 | switch (ai->ai_family) { |
| 12463 | case AF_INET: |
| 12464 | if (strcmp(strport, "54321") != 0) { |
| 12465 | goto bad; |
| 12466 | } |
| 12467 | if (passive) { |
| 12468 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12469 | goto bad; |
| 12470 | } |
| 12471 | } else { |
| 12472 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12473 | goto bad; |
| 12474 | } |
| 12475 | } |
| 12476 | inet4++; |
| 12477 | break; |
| 12478 | case AF_INET6: |
| 12479 | if (strcmp(strport, "54321") != 0) { |
| 12480 | goto bad; |
| 12481 | } |
| 12482 | if (passive) { |
| 12483 | if (strcmp(straddr, "::") != 0) { |
| 12484 | goto bad; |
| 12485 | } |
| 12486 | } else { |
| 12487 | if (strcmp(straddr, "::1") != 0) { |
| 12488 | goto bad; |
| 12489 | } |
| 12490 | } |
| 12491 | inet6++; |
| 12492 | break; |
| 12493 | case AF_UNSPEC: |
| 12494 | goto bad; |
| 12495 | break; |
| 12496 | default: |
| 12497 | /* another family support? */ |
| 12498 | break; |
| 12499 | } |
| 12500 | } |
| 12501 | } |
| 12502 | |
| 12503 | if (!(inet4 == 0 || inet4 == 2)) |
| 12504 | goto bad; |
| 12505 | if (!(inet6 == 0 || inet6 == 2)) |
| 12506 | goto bad; |
| 12507 | |
| 12508 | if (aitop) |
| 12509 | freeaddrinfo(aitop); |
| 12510 | exit(0); |
| 12511 | |
| 12512 | bad: |
| 12513 | if (aitop) |
| 12514 | freeaddrinfo(aitop); |
| 12515 | exit(1); |
| 12516 | } |
| 12517 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12518 | _ACEOF |
| 12519 | rm -f conftest$ac_exeext |
| 12520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12521 | (eval $ac_link) 2>&5 |
| 12522 | ac_status=$? |
| 12523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12524 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12526 | (eval $ac_try) 2>&5 |
| 12527 | ac_status=$? |
| 12528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12529 | (exit $ac_status); }; }; then |
| 12530 | echo "$as_me:$LINENO: result: good" >&5 |
| 12531 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12532 | buggygetaddrinfo=no |
| 12533 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12534 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12535 | echo "$as_me: failed program was:" >&5 |
| 12536 | cat conftest.$ac_ext >&5 |
| 12537 | ( exit $ac_status ) |
| 12538 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12539 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12540 | buggygetaddrinfo=yes |
| 12541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12542 | 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] | 12543 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12544 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12545 | echo "$as_me: failed program was:" >&5 |
| 12546 | cat conftest.$ac_ext >&5 |
| 12547 | |
| 12548 | echo "$as_me:$LINENO: result: no" >&5 |
| 12549 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12550 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12551 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12552 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12553 | 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] | 12554 | |
| 12555 | if test "$buggygetaddrinfo" = "yes"; then |
| 12556 | if test "$ipv6" = "yes"; then |
| 12557 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 12558 | echo ' or you can specify "--disable-ipv6"'. |
| 12559 | exit 1 |
| 12560 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12562 | |
| 12563 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12564 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12565 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12566 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12568 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12569 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12570 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12571 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12572 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12573 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12574 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12577 | cat >conftest.$ac_ext <<_ACEOF |
| 12578 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12579 | #include "confdefs.h" |
| 12580 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12581 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12582 | #include <assert.h> |
| 12583 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12584 | #ifdef __cplusplus |
| 12585 | extern "C" |
| 12586 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12587 | /* 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] | 12588 | builtin and then its argument prototype would still apply. */ |
| 12589 | char $ac_func (); |
| 12590 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12592 | #ifdef F77_DUMMY_MAIN |
| 12593 | # ifdef __cplusplus |
| 12594 | extern "C" |
| 12595 | # endif |
| 12596 | int F77_DUMMY_MAIN() { return 1; } |
| 12597 | #endif |
| 12598 | int |
| 12599 | main () |
| 12600 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12601 | /* The GNU C library defines this for functions which it implements |
| 12602 | to always fail with ENOSYS. Some functions are actually named |
| 12603 | something starting with __ and the normal name is an alias. */ |
| 12604 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12605 | choke me |
| 12606 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12607 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12608 | #endif |
| 12609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12610 | ; |
| 12611 | return 0; |
| 12612 | } |
| 12613 | _ACEOF |
| 12614 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12616 | (eval $ac_link) 2>&5 |
| 12617 | ac_status=$? |
| 12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12619 | (exit $ac_status); } && |
| 12620 | { ac_try='test -s conftest$ac_exeext' |
| 12621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12622 | (eval $ac_try) 2>&5 |
| 12623 | ac_status=$? |
| 12624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12625 | (exit $ac_status); }; }; then |
| 12626 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12628 | echo "$as_me: failed program was:" >&5 |
| 12629 | cat conftest.$ac_ext >&5 |
| 12630 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12631 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12632 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12633 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12635 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12636 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12637 | cat >>confdefs.h <<_ACEOF |
| 12638 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12639 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12640 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12641 | fi |
| 12642 | done |
| 12643 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12644 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12645 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12646 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 12647 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12648 | if test "${ac_cv_header_time+set}" = set; then |
| 12649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12651 | cat >conftest.$ac_ext <<_ACEOF |
| 12652 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12653 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12654 | #include <sys/types.h> |
| 12655 | #include <sys/time.h> |
| 12656 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12657 | |
| 12658 | #ifdef F77_DUMMY_MAIN |
| 12659 | # ifdef __cplusplus |
| 12660 | extern "C" |
| 12661 | # endif |
| 12662 | int F77_DUMMY_MAIN() { return 1; } |
| 12663 | #endif |
| 12664 | int |
| 12665 | main () |
| 12666 | { |
| 12667 | if ((struct tm *) 0) |
| 12668 | return 0; |
| 12669 | ; |
| 12670 | return 0; |
| 12671 | } |
| 12672 | _ACEOF |
| 12673 | rm -f conftest.$ac_objext |
| 12674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12675 | (eval $ac_compile) 2>&5 |
| 12676 | ac_status=$? |
| 12677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12678 | (exit $ac_status); } && |
| 12679 | { ac_try='test -s conftest.$ac_objext' |
| 12680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12681 | (eval $ac_try) 2>&5 |
| 12682 | ac_status=$? |
| 12683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12684 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12685 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12687 | echo "$as_me: failed program was:" >&5 |
| 12688 | cat conftest.$ac_ext >&5 |
| 12689 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12690 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12691 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12692 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12693 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12694 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12695 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12696 | |
| 12697 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12698 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12699 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12700 | |
| 12701 | fi |
| 12702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12703 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 12704 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 12705 | if test "${ac_cv_struct_tm+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 | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12710 | #include "confdefs.h" |
| 12711 | #include <sys/types.h> |
| 12712 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12713 | |
| 12714 | #ifdef F77_DUMMY_MAIN |
| 12715 | # ifdef __cplusplus |
| 12716 | extern "C" |
| 12717 | # endif |
| 12718 | int F77_DUMMY_MAIN() { return 1; } |
| 12719 | #endif |
| 12720 | int |
| 12721 | main () |
| 12722 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12723 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12724 | ; |
| 12725 | return 0; |
| 12726 | } |
| 12727 | _ACEOF |
| 12728 | rm -f conftest.$ac_objext |
| 12729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12730 | (eval $ac_compile) 2>&5 |
| 12731 | ac_status=$? |
| 12732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12733 | (exit $ac_status); } && |
| 12734 | { ac_try='test -s conftest.$ac_objext' |
| 12735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12736 | (eval $ac_try) 2>&5 |
| 12737 | ac_status=$? |
| 12738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12739 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12740 | ac_cv_struct_tm=time.h |
| 12741 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12742 | echo "$as_me: failed program was:" >&5 |
| 12743 | cat conftest.$ac_ext >&5 |
| 12744 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12746 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12747 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12748 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 12749 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12750 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12751 | |
| 12752 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12753 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12754 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12755 | |
| 12756 | fi |
| 12757 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12758 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 12759 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 12760 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 12761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12763 | cat >conftest.$ac_ext <<_ACEOF |
| 12764 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12765 | #include "confdefs.h" |
| 12766 | #include <sys/types.h> |
| 12767 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12768 | |
| 12769 | |
| 12770 | #ifdef F77_DUMMY_MAIN |
| 12771 | # ifdef __cplusplus |
| 12772 | extern "C" |
| 12773 | # endif |
| 12774 | int F77_DUMMY_MAIN() { return 1; } |
| 12775 | #endif |
| 12776 | int |
| 12777 | main () |
| 12778 | { |
| 12779 | static struct tm ac_aggr; |
| 12780 | if (ac_aggr.tm_zone) |
| 12781 | return 0; |
| 12782 | ; |
| 12783 | return 0; |
| 12784 | } |
| 12785 | _ACEOF |
| 12786 | rm -f conftest.$ac_objext |
| 12787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12788 | (eval $ac_compile) 2>&5 |
| 12789 | ac_status=$? |
| 12790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12791 | (exit $ac_status); } && |
| 12792 | { ac_try='test -s conftest.$ac_objext' |
| 12793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12794 | (eval $ac_try) 2>&5 |
| 12795 | ac_status=$? |
| 12796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12797 | (exit $ac_status); }; }; then |
| 12798 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12799 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | echo "$as_me: failed program was:" >&5 |
| 12801 | cat conftest.$ac_ext >&5 |
| 12802 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12803 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12804 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12805 | fi |
| 12806 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 12807 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 12808 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 12809 | |
| 12810 | cat >>confdefs.h <<_ACEOF |
| 12811 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12812 | _ACEOF |
| 12813 | |
| 12814 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12815 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12817 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12818 | |
| 12819 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12820 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12821 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12822 | |
| 12823 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12824 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 12825 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 12826 | if test "${ac_cv_var_tzname+set}" = set; then |
| 12827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +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 | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12831 | #include "confdefs.h" |
| 12832 | #include <time.h> |
| 12833 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12834 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12835 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12836 | |
| 12837 | #ifdef F77_DUMMY_MAIN |
| 12838 | # ifdef __cplusplus |
| 12839 | extern "C" |
| 12840 | # endif |
| 12841 | int F77_DUMMY_MAIN() { return 1; } |
| 12842 | #endif |
| 12843 | int |
| 12844 | main () |
| 12845 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12846 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12847 | ; |
| 12848 | return 0; |
| 12849 | } |
| 12850 | _ACEOF |
| 12851 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12853 | (eval $ac_link) 2>&5 |
| 12854 | ac_status=$? |
| 12855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12856 | (exit $ac_status); } && |
| 12857 | { ac_try='test -s conftest$ac_exeext' |
| 12858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12859 | (eval $ac_try) 2>&5 |
| 12860 | ac_status=$? |
| 12861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12862 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12863 | ac_cv_var_tzname=yes |
| 12864 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12865 | echo "$as_me: failed program was:" >&5 |
| 12866 | cat conftest.$ac_ext >&5 |
| 12867 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12868 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12869 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12870 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12871 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 12872 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12873 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12874 | |
| 12875 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12876 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12877 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12878 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12879 | fi |
| 12880 | fi |
| 12881 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12882 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12883 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 12884 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 12885 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 12886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12887 | else |
| 12888 | cat >conftest.$ac_ext <<_ACEOF |
| 12889 | #line $LINENO "configure" |
| 12890 | #include "confdefs.h" |
| 12891 | $ac_includes_default |
| 12892 | #ifdef F77_DUMMY_MAIN |
| 12893 | # ifdef __cplusplus |
| 12894 | extern "C" |
| 12895 | # endif |
| 12896 | int F77_DUMMY_MAIN() { return 1; } |
| 12897 | #endif |
| 12898 | int |
| 12899 | main () |
| 12900 | { |
| 12901 | static struct stat ac_aggr; |
| 12902 | if (ac_aggr.st_rdev) |
| 12903 | return 0; |
| 12904 | ; |
| 12905 | return 0; |
| 12906 | } |
| 12907 | _ACEOF |
| 12908 | rm -f conftest.$ac_objext |
| 12909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12910 | (eval $ac_compile) 2>&5 |
| 12911 | ac_status=$? |
| 12912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12913 | (exit $ac_status); } && |
| 12914 | { ac_try='test -s conftest.$ac_objext' |
| 12915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12916 | (eval $ac_try) 2>&5 |
| 12917 | ac_status=$? |
| 12918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12919 | (exit $ac_status); }; }; then |
| 12920 | ac_cv_member_struct_stat_st_rdev=yes |
| 12921 | else |
| 12922 | echo "$as_me: failed program was:" >&5 |
| 12923 | cat conftest.$ac_ext >&5 |
| 12924 | ac_cv_member_struct_stat_st_rdev=no |
| 12925 | fi |
| 12926 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12927 | fi |
| 12928 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 12929 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 12930 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 12931 | |
| 12932 | cat >>confdefs.h <<_ACEOF |
| 12933 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 12934 | _ACEOF |
| 12935 | |
| 12936 | |
| 12937 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12938 | #define HAVE_ST_RDEV 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12940 | |
| 12941 | fi |
| 12942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12943 | |
| 12944 | |
| 12945 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 12946 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 12947 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 12948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12949 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12950 | cat >conftest.$ac_ext <<_ACEOF |
| 12951 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12952 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12953 | $ac_includes_default |
| 12954 | #ifdef F77_DUMMY_MAIN |
| 12955 | # ifdef __cplusplus |
| 12956 | extern "C" |
| 12957 | # endif |
| 12958 | int F77_DUMMY_MAIN() { return 1; } |
| 12959 | #endif |
| 12960 | int |
| 12961 | main () |
| 12962 | { |
| 12963 | static struct stat ac_aggr; |
| 12964 | if (ac_aggr.st_blksize) |
| 12965 | return 0; |
| 12966 | ; |
| 12967 | return 0; |
| 12968 | } |
| 12969 | _ACEOF |
| 12970 | rm -f conftest.$ac_objext |
| 12971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12972 | (eval $ac_compile) 2>&5 |
| 12973 | ac_status=$? |
| 12974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12975 | (exit $ac_status); } && |
| 12976 | { ac_try='test -s conftest.$ac_objext' |
| 12977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12978 | (eval $ac_try) 2>&5 |
| 12979 | ac_status=$? |
| 12980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12981 | (exit $ac_status); }; }; then |
| 12982 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12983 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12984 | echo "$as_me: failed program was:" >&5 |
| 12985 | cat conftest.$ac_ext >&5 |
| 12986 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12987 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12988 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12989 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12990 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 12991 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 12992 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12994 | cat >>confdefs.h <<_ACEOF |
| 12995 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 12996 | _ACEOF |
| 12997 | |
| 12998 | |
| 12999 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13000 | #define HAVE_ST_BLKSIZE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13001 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13002 | |
| 13003 | fi |
| 13004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | |
| 13006 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 13007 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 13008 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 13009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13010 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13011 | cat >conftest.$ac_ext <<_ACEOF |
| 13012 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13013 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 | $ac_includes_default |
| 13015 | #ifdef F77_DUMMY_MAIN |
| 13016 | # ifdef __cplusplus |
| 13017 | extern "C" |
| 13018 | # endif |
| 13019 | int F77_DUMMY_MAIN() { return 1; } |
| 13020 | #endif |
| 13021 | int |
| 13022 | main () |
| 13023 | { |
| 13024 | static struct stat ac_aggr; |
| 13025 | if (ac_aggr.st_blocks) |
| 13026 | return 0; |
| 13027 | ; |
| 13028 | return 0; |
| 13029 | } |
| 13030 | _ACEOF |
| 13031 | rm -f conftest.$ac_objext |
| 13032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13033 | (eval $ac_compile) 2>&5 |
| 13034 | ac_status=$? |
| 13035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13036 | (exit $ac_status); } && |
| 13037 | { ac_try='test -s conftest.$ac_objext' |
| 13038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13039 | (eval $ac_try) 2>&5 |
| 13040 | ac_status=$? |
| 13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13042 | (exit $ac_status); }; }; then |
| 13043 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13044 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 | echo "$as_me: failed program was:" >&5 |
| 13046 | cat conftest.$ac_ext >&5 |
| 13047 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13048 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13049 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13050 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13051 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 13052 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 13053 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13055 | cat >>confdefs.h <<_ACEOF |
| 13056 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13057 | _ACEOF |
| 13058 | |
| 13059 | |
| 13060 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13061 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13062 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13063 | |
| 13064 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13065 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13066 | fi |
| 13067 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13069 | |
| 13070 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 13071 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 13072 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 13073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13075 | cat >conftest.$ac_ext <<_ACEOF |
| 13076 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13077 | #include "confdefs.h" |
| 13078 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13079 | #ifdef F77_DUMMY_MAIN |
| 13080 | # ifdef __cplusplus |
| 13081 | extern "C" |
| 13082 | # endif |
| 13083 | int F77_DUMMY_MAIN() { return 1; } |
| 13084 | #endif |
| 13085 | int |
| 13086 | main () |
| 13087 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13088 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13089 | ; |
| 13090 | return 0; |
| 13091 | } |
| 13092 | _ACEOF |
| 13093 | rm -f conftest.$ac_objext |
| 13094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13095 | (eval $ac_compile) 2>&5 |
| 13096 | ac_status=$? |
| 13097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13098 | (exit $ac_status); } && |
| 13099 | { ac_try='test -s conftest.$ac_objext' |
| 13100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13101 | (eval $ac_try) 2>&5 |
| 13102 | ac_status=$? |
| 13103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13104 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13105 | ac_cv_header_time_altzone=yes |
| 13106 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13107 | echo "$as_me: failed program was:" >&5 |
| 13108 | cat conftest.$ac_ext >&5 |
| 13109 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13110 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13111 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13112 | fi |
| 13113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13114 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 13115 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13116 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13117 | |
| 13118 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13119 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13120 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13121 | |
| 13122 | fi |
| 13123 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13124 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13125 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13126 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13127 | cat >conftest.$ac_ext <<_ACEOF |
| 13128 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13129 | #include "confdefs.h" |
| 13130 | |
| 13131 | #include <sys/types.h> |
| 13132 | #include <sys/select.h> |
| 13133 | #include <sys/time.h> |
| 13134 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13135 | #ifdef F77_DUMMY_MAIN |
| 13136 | # ifdef __cplusplus |
| 13137 | extern "C" |
| 13138 | # endif |
| 13139 | int F77_DUMMY_MAIN() { return 1; } |
| 13140 | #endif |
| 13141 | int |
| 13142 | main () |
| 13143 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13144 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13145 | ; |
| 13146 | return 0; |
| 13147 | } |
| 13148 | _ACEOF |
| 13149 | rm -f conftest.$ac_objext |
| 13150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13151 | (eval $ac_compile) 2>&5 |
| 13152 | ac_status=$? |
| 13153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13154 | (exit $ac_status); } && |
| 13155 | { ac_try='test -s conftest.$ac_objext' |
| 13156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13157 | (eval $ac_try) 2>&5 |
| 13158 | ac_status=$? |
| 13159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13160 | (exit $ac_status); }; }; then |
| 13161 | |
| 13162 | |
| 13163 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13164 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13165 | _ACEOF |
| 13166 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13167 | was_it_defined=yes |
| 13168 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13169 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13170 | echo "$as_me: failed program was:" >&5 |
| 13171 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13172 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13173 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13174 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 13175 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13177 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 13178 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 13179 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 13180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13182 | cat >conftest.$ac_ext <<_ACEOF |
| 13183 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13184 | #include "confdefs.h" |
| 13185 | |
| 13186 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13187 | #ifdef F77_DUMMY_MAIN |
| 13188 | # ifdef __cplusplus |
| 13189 | extern "C" |
| 13190 | # endif |
| 13191 | int F77_DUMMY_MAIN() { return 1; } |
| 13192 | #endif |
| 13193 | int |
| 13194 | main () |
| 13195 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13196 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13197 | ; |
| 13198 | return 0; |
| 13199 | } |
| 13200 | _ACEOF |
| 13201 | rm -f conftest.$ac_objext |
| 13202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13203 | (eval $ac_compile) 2>&5 |
| 13204 | ac_status=$? |
| 13205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13206 | (exit $ac_status); } && |
| 13207 | { ac_try='test -s conftest.$ac_objext' |
| 13208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13209 | (eval $ac_try) 2>&5 |
| 13210 | ac_status=$? |
| 13211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13212 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13213 | ac_cv_struct_addrinfo=yes |
| 13214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13215 | echo "$as_me: failed program was:" >&5 |
| 13216 | cat conftest.$ac_ext >&5 |
| 13217 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13218 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13219 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13220 | fi |
| 13221 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13222 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13223 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13224 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13225 | |
| 13226 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13227 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13228 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13229 | |
| 13230 | fi |
| 13231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13232 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13233 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13234 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13237 | cat >conftest.$ac_ext <<_ACEOF |
| 13238 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13239 | #include "confdefs.h" |
| 13240 | |
| 13241 | # include <sys/types.h> |
| 13242 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13243 | #ifdef F77_DUMMY_MAIN |
| 13244 | # ifdef __cplusplus |
| 13245 | extern "C" |
| 13246 | # endif |
| 13247 | int F77_DUMMY_MAIN() { return 1; } |
| 13248 | #endif |
| 13249 | int |
| 13250 | main () |
| 13251 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13252 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13253 | ; |
| 13254 | return 0; |
| 13255 | } |
| 13256 | _ACEOF |
| 13257 | rm -f conftest.$ac_objext |
| 13258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13259 | (eval $ac_compile) 2>&5 |
| 13260 | ac_status=$? |
| 13261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13262 | (exit $ac_status); } && |
| 13263 | { ac_try='test -s conftest.$ac_objext' |
| 13264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13265 | (eval $ac_try) 2>&5 |
| 13266 | ac_status=$? |
| 13267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13268 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13269 | ac_cv_struct_sockaddr_storage=yes |
| 13270 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13271 | echo "$as_me: failed program was:" >&5 |
| 13272 | cat conftest.$ac_ext >&5 |
| 13273 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13274 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13275 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13276 | fi |
| 13277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13278 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13279 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13280 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13281 | |
| 13282 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13283 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13284 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13285 | |
| 13286 | fi |
| 13287 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13288 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13289 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13291 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13292 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13293 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13295 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13296 | cat >conftest.$ac_ext <<_ACEOF |
| 13297 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13298 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13299 | $ac_includes_default |
| 13300 | #ifdef F77_DUMMY_MAIN |
| 13301 | # ifdef __cplusplus |
| 13302 | extern "C" |
| 13303 | # endif |
| 13304 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13305 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13306 | int |
| 13307 | main () |
| 13308 | { |
| 13309 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13310 | test_array [0] = 0 |
| 13311 | |
| 13312 | ; |
| 13313 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13314 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13315 | _ACEOF |
| 13316 | rm -f conftest.$ac_objext |
| 13317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13318 | (eval $ac_compile) 2>&5 |
| 13319 | ac_status=$? |
| 13320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13321 | (exit $ac_status); } && |
| 13322 | { ac_try='test -s conftest.$ac_objext' |
| 13323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13324 | (eval $ac_try) 2>&5 |
| 13325 | ac_status=$? |
| 13326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13327 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13328 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13329 | else |
| 13330 | echo "$as_me: failed program was:" >&5 |
| 13331 | cat conftest.$ac_ext >&5 |
| 13332 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13333 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13334 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13335 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13336 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13337 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13338 | 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] | 13339 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13340 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13341 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13342 | |
| 13343 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13344 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13345 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13346 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13347 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13350 | ac_cv_prog_cc_stdc=no |
| 13351 | ac_save_CC=$CC |
| 13352 | cat >conftest.$ac_ext <<_ACEOF |
| 13353 | #line $LINENO "configure" |
| 13354 | #include "confdefs.h" |
| 13355 | #include <stdarg.h> |
| 13356 | #include <stdio.h> |
| 13357 | #include <sys/types.h> |
| 13358 | #include <sys/stat.h> |
| 13359 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 13360 | struct buf { int x; }; |
| 13361 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 13362 | static char *e (p, i) |
| 13363 | char **p; |
| 13364 | int i; |
| 13365 | { |
| 13366 | return p[i]; |
| 13367 | } |
| 13368 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 13369 | { |
| 13370 | char *s; |
| 13371 | va_list v; |
| 13372 | va_start (v,p); |
| 13373 | s = g (p, va_arg (v,int)); |
| 13374 | va_end (v); |
| 13375 | return s; |
| 13376 | } |
| 13377 | int test (int i, double x); |
| 13378 | struct s1 {int (*f) (int a);}; |
| 13379 | struct s2 {int (*f) (double a);}; |
| 13380 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 13381 | int argc; |
| 13382 | char **argv; |
| 13383 | #ifdef F77_DUMMY_MAIN |
| 13384 | # ifdef __cplusplus |
| 13385 | extern "C" |
| 13386 | # endif |
| 13387 | int F77_DUMMY_MAIN() { return 1; } |
| 13388 | #endif |
| 13389 | int |
| 13390 | main () |
| 13391 | { |
| 13392 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 13393 | ; |
| 13394 | return 0; |
| 13395 | } |
| 13396 | _ACEOF |
| 13397 | # Don't try gcc -ansi; that turns off useful extensions and |
| 13398 | # breaks some systems' header files. |
| 13399 | # AIX -qlanglvl=ansi |
| 13400 | # Ultrix and OSF/1 -std1 |
| 13401 | # HP-UX 10.20 and later -Ae |
| 13402 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 13403 | # SVR4 -Xc -D__EXTENSIONS__ |
| 13404 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 13405 | do |
| 13406 | CC="$ac_save_CC $ac_arg" |
| 13407 | rm -f conftest.$ac_objext |
| 13408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13409 | (eval $ac_compile) 2>&5 |
| 13410 | ac_status=$? |
| 13411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13412 | (exit $ac_status); } && |
| 13413 | { ac_try='test -s conftest.$ac_objext' |
| 13414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13415 | (eval $ac_try) 2>&5 |
| 13416 | ac_status=$? |
| 13417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13418 | (exit $ac_status); }; }; then |
| 13419 | ac_cv_prog_cc_stdc=$ac_arg |
| 13420 | break |
| 13421 | else |
| 13422 | echo "$as_me: failed program was:" >&5 |
| 13423 | cat conftest.$ac_ext >&5 |
| 13424 | fi |
| 13425 | rm -f conftest.$ac_objext |
| 13426 | done |
| 13427 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 13428 | CC=$ac_save_CC |
| 13429 | |
| 13430 | fi |
| 13431 | |
| 13432 | case "x$ac_cv_prog_cc_stdc" in |
| 13433 | x|xno) |
| 13434 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 13435 | echo "${ECHO_T}none needed" >&6 ;; |
| 13436 | *) |
| 13437 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 13438 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 13439 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 13440 | esac |
| 13441 | |
| 13442 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 13443 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13444 | if test "${ac_cv_c_const+set}" = set; then |
| 13445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13446 | else |
| 13447 | cat >conftest.$ac_ext <<_ACEOF |
| 13448 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13449 | #include "confdefs.h" |
| 13450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13451 | #ifdef F77_DUMMY_MAIN |
| 13452 | # ifdef __cplusplus |
| 13453 | extern "C" |
| 13454 | # endif |
| 13455 | int F77_DUMMY_MAIN() { return 1; } |
| 13456 | #endif |
| 13457 | int |
| 13458 | main () |
| 13459 | { |
| 13460 | /* FIXME: Include the comments suggested by Paul. */ |
| 13461 | #ifndef __cplusplus |
| 13462 | /* Ultrix mips cc rejects this. */ |
| 13463 | typedef int charset[2]; |
| 13464 | const charset x; |
| 13465 | /* SunOS 4.1.1 cc rejects this. */ |
| 13466 | char const *const *ccp; |
| 13467 | char **p; |
| 13468 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13469 | struct point {int x, y;}; |
| 13470 | static struct point const zero = {0,0}; |
| 13471 | /* AIX XL C 1.02.0.0 rejects this. |
| 13472 | It does not let you subtract one const X* pointer from another in |
| 13473 | an arm of an if-expression whose if-part is not a constant |
| 13474 | expression */ |
| 13475 | const char *g = "string"; |
| 13476 | ccp = &g + (g ? g-g : 0); |
| 13477 | /* HPUX 7.0 cc rejects these. */ |
| 13478 | ++ccp; |
| 13479 | p = (char**) ccp; |
| 13480 | ccp = (char const *const *) p; |
| 13481 | { /* SCO 3.2v4 cc rejects this. */ |
| 13482 | char *t; |
| 13483 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13485 | *t++ = 0; |
| 13486 | } |
| 13487 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13488 | int x[] = {25, 17}; |
| 13489 | const int *foo = &x[0]; |
| 13490 | ++foo; |
| 13491 | } |
| 13492 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13493 | typedef const int *iptr; |
| 13494 | iptr p = 0; |
| 13495 | ++p; |
| 13496 | } |
| 13497 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13498 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13499 | struct s { int j; const int *ap[3]; }; |
| 13500 | struct s *b; b->j = 5; |
| 13501 | } |
| 13502 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13503 | const int foo = 10; |
| 13504 | } |
| 13505 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13507 | ; |
| 13508 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13509 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13510 | _ACEOF |
| 13511 | rm -f conftest.$ac_objext |
| 13512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13513 | (eval $ac_compile) 2>&5 |
| 13514 | ac_status=$? |
| 13515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13516 | (exit $ac_status); } && |
| 13517 | { ac_try='test -s conftest.$ac_objext' |
| 13518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13519 | (eval $ac_try) 2>&5 |
| 13520 | ac_status=$? |
| 13521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13522 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13523 | ac_cv_c_const=yes |
| 13524 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13525 | echo "$as_me: failed program was:" >&5 |
| 13526 | cat conftest.$ac_ext >&5 |
| 13527 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13528 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13529 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13530 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13531 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 13532 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13533 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13534 | |
| 13535 | cat >>confdefs.h <<\_ACEOF |
| 13536 | #define const |
| 13537 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13538 | |
| 13539 | fi |
| 13540 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13541 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13542 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13543 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 13544 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 13545 | cat >conftest.$ac_ext <<_ACEOF |
| 13546 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13547 | #include "confdefs.h" |
| 13548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13549 | #ifdef F77_DUMMY_MAIN |
| 13550 | # ifdef __cplusplus |
| 13551 | extern "C" |
| 13552 | # endif |
| 13553 | int F77_DUMMY_MAIN() { return 1; } |
| 13554 | #endif |
| 13555 | int |
| 13556 | main () |
| 13557 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13558 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13559 | ; |
| 13560 | return 0; |
| 13561 | } |
| 13562 | _ACEOF |
| 13563 | rm -f conftest.$ac_objext |
| 13564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13565 | (eval $ac_compile) 2>&5 |
| 13566 | ac_status=$? |
| 13567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13568 | (exit $ac_status); } && |
| 13569 | { ac_try='test -s conftest.$ac_objext' |
| 13570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13571 | (eval $ac_try) 2>&5 |
| 13572 | ac_status=$? |
| 13573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13574 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13575 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13577 | echo "$as_me: failed program was:" >&5 |
| 13578 | cat conftest.$ac_ext >&5 |
| 13579 | |
| 13580 | cat >>confdefs.h <<\_ACEOF |
| 13581 | #define volatile |
| 13582 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13583 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13584 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13585 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13586 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13587 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13588 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13589 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13590 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13591 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 13592 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 13593 | cat >conftest.$ac_ext <<_ACEOF |
| 13594 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13595 | #include "confdefs.h" |
| 13596 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13597 | #ifdef F77_DUMMY_MAIN |
| 13598 | # ifdef __cplusplus |
| 13599 | extern "C" |
| 13600 | # endif |
| 13601 | int F77_DUMMY_MAIN() { return 1; } |
| 13602 | #endif |
| 13603 | int |
| 13604 | main () |
| 13605 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13606 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13607 | ; |
| 13608 | return 0; |
| 13609 | } |
| 13610 | _ACEOF |
| 13611 | rm -f conftest.$ac_objext |
| 13612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13613 | (eval $ac_compile) 2>&5 |
| 13614 | ac_status=$? |
| 13615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13616 | (exit $ac_status); } && |
| 13617 | { ac_try='test -s conftest.$ac_objext' |
| 13618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13619 | (eval $ac_try) 2>&5 |
| 13620 | ac_status=$? |
| 13621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13622 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13623 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13624 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13625 | echo "$as_me: failed program was:" >&5 |
| 13626 | cat conftest.$ac_ext >&5 |
| 13627 | |
| 13628 | cat >>confdefs.h <<\_ACEOF |
| 13629 | #define signed |
| 13630 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13631 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13632 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13633 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13634 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13635 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13636 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13637 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13638 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13639 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 13640 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 13641 | cat >conftest.$ac_ext <<_ACEOF |
| 13642 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13643 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13644 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13645 | #ifdef F77_DUMMY_MAIN |
| 13646 | # ifdef __cplusplus |
| 13647 | extern "C" |
| 13648 | # endif |
| 13649 | int F77_DUMMY_MAIN() { return 1; } |
| 13650 | #endif |
| 13651 | int |
| 13652 | main () |
| 13653 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13654 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13655 | ; |
| 13656 | return 0; |
| 13657 | } |
| 13658 | _ACEOF |
| 13659 | rm -f conftest.$ac_objext |
| 13660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13661 | (eval $ac_compile) 2>&5 |
| 13662 | ac_status=$? |
| 13663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13664 | (exit $ac_status); } && |
| 13665 | { ac_try='test -s conftest.$ac_objext' |
| 13666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13667 | (eval $ac_try) 2>&5 |
| 13668 | ac_status=$? |
| 13669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13670 | (exit $ac_status); }; }; then |
| 13671 | |
| 13672 | |
| 13673 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13674 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13675 | _ACEOF |
| 13676 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13677 | have_prototypes=yes |
| 13678 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13680 | echo "$as_me: failed program was:" >&5 |
| 13681 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13682 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13683 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13684 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 13685 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13686 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13687 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13688 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 13689 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 13690 | cat >conftest.$ac_ext <<_ACEOF |
| 13691 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13692 | #include "confdefs.h" |
| 13693 | |
| 13694 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13695 | int foo(int x, ...) { |
| 13696 | va_list va; |
| 13697 | va_start(va, x); |
| 13698 | va_arg(va, int); |
| 13699 | va_arg(va, char *); |
| 13700 | va_arg(va, double); |
| 13701 | return 0; |
| 13702 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13704 | #ifdef F77_DUMMY_MAIN |
| 13705 | # ifdef __cplusplus |
| 13706 | extern "C" |
| 13707 | # endif |
| 13708 | int F77_DUMMY_MAIN() { return 1; } |
| 13709 | #endif |
| 13710 | int |
| 13711 | main () |
| 13712 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13713 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13714 | ; |
| 13715 | return 0; |
| 13716 | } |
| 13717 | _ACEOF |
| 13718 | rm -f conftest.$ac_objext |
| 13719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13720 | (eval $ac_compile) 2>&5 |
| 13721 | ac_status=$? |
| 13722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13723 | (exit $ac_status); } && |
| 13724 | { ac_try='test -s conftest.$ac_objext' |
| 13725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13726 | (eval $ac_try) 2>&5 |
| 13727 | ac_status=$? |
| 13728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13729 | (exit $ac_status); }; }; then |
| 13730 | |
| 13731 | |
| 13732 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13733 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13734 | _ACEOF |
| 13735 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13736 | works=yes |
| 13737 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13738 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13739 | echo "$as_me: failed program was:" >&5 |
| 13740 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13741 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13742 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13743 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13744 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13745 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13746 | if test "$have_prototypes" = yes; then |
| 13747 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13748 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 13749 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 13750 | cat >conftest.$ac_ext <<_ACEOF |
| 13751 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13752 | #include "confdefs.h" |
| 13753 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13754 | #ifdef F77_DUMMY_MAIN |
| 13755 | # ifdef __cplusplus |
| 13756 | extern "C" |
| 13757 | # endif |
| 13758 | int F77_DUMMY_MAIN() { return 1; } |
| 13759 | #endif |
| 13760 | int |
| 13761 | main () |
| 13762 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13763 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13764 | ; |
| 13765 | return 0; |
| 13766 | } |
| 13767 | _ACEOF |
| 13768 | rm -f conftest.$ac_objext |
| 13769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13770 | (eval $ac_compile) 2>&5 |
| 13771 | ac_status=$? |
| 13772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13773 | (exit $ac_status); } && |
| 13774 | { ac_try='test -s conftest.$ac_objext' |
| 13775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13776 | (eval $ac_try) 2>&5 |
| 13777 | ac_status=$? |
| 13778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13779 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13780 | : |
| 13781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13782 | echo "$as_me: failed program was:" >&5 |
| 13783 | cat conftest.$ac_ext >&5 |
| 13784 | |
| 13785 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13786 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13787 | _ACEOF |
| 13788 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13789 | bad_prototypes=yes |
| 13790 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13791 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13792 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13793 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 13794 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13795 | fi |
| 13796 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13797 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13798 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 13799 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 13800 | cat >conftest.$ac_ext <<_ACEOF |
| 13801 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13802 | #include "confdefs.h" |
| 13803 | #include <sys/types.h> |
| 13804 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13805 | #ifdef F77_DUMMY_MAIN |
| 13806 | # ifdef __cplusplus |
| 13807 | extern "C" |
| 13808 | # endif |
| 13809 | int F77_DUMMY_MAIN() { return 1; } |
| 13810 | #endif |
| 13811 | int |
| 13812 | main () |
| 13813 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13814 | struct sockaddr x; |
| 13815 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13816 | ; |
| 13817 | return 0; |
| 13818 | } |
| 13819 | _ACEOF |
| 13820 | rm -f conftest.$ac_objext |
| 13821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13822 | (eval $ac_compile) 2>&5 |
| 13823 | ac_status=$? |
| 13824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13825 | (exit $ac_status); } && |
| 13826 | { ac_try='test -s conftest.$ac_objext' |
| 13827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13828 | (eval $ac_try) 2>&5 |
| 13829 | ac_status=$? |
| 13830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13831 | (exit $ac_status); }; }; then |
| 13832 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13833 | echo "${ECHO_T}yes" >&6 |
| 13834 | |
| 13835 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13836 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13837 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13838 | |
| 13839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13840 | echo "$as_me: failed program was:" >&5 |
| 13841 | cat conftest.$ac_ext >&5 |
| 13842 | echo "$as_me:$LINENO: result: no" >&5 |
| 13843 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13844 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13845 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13846 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13847 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13848 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 13849 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 13850 | cat >conftest.$ac_ext <<_ACEOF |
| 13851 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13852 | #include "confdefs.h" |
| 13853 | |
| 13854 | #ifdef HAVE_STDARG_PROTOTYPES |
| 13855 | #include <stdarg.h> |
| 13856 | #else |
| 13857 | #include <varargs.h> |
| 13858 | #endif |
| 13859 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13860 | #ifdef F77_DUMMY_MAIN |
| 13861 | # ifdef __cplusplus |
| 13862 | extern "C" |
| 13863 | # endif |
| 13864 | int F77_DUMMY_MAIN() { return 1; } |
| 13865 | #endif |
| 13866 | int |
| 13867 | main () |
| 13868 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13869 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13870 | ; |
| 13871 | return 0; |
| 13872 | } |
| 13873 | _ACEOF |
| 13874 | rm -f conftest.$ac_objext |
| 13875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13876 | (eval $ac_compile) 2>&5 |
| 13877 | ac_status=$? |
| 13878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13879 | (exit $ac_status); } && |
| 13880 | { ac_try='test -s conftest.$ac_objext' |
| 13881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13882 | (eval $ac_try) 2>&5 |
| 13883 | ac_status=$? |
| 13884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13885 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13886 | : |
| 13887 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13888 | echo "$as_me: failed program was:" >&5 |
| 13889 | cat conftest.$ac_ext >&5 |
| 13890 | |
| 13891 | |
| 13892 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13893 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13894 | _ACEOF |
| 13895 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13896 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13897 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13898 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13899 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13900 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 13901 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13902 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13903 | # 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] | 13904 | |
| 13905 | |
| 13906 | |
| 13907 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 13908 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 13909 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 13910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13912 | cat >conftest.$ac_ext <<_ACEOF |
| 13913 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13914 | #include "confdefs.h" |
| 13915 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13916 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13917 | #include <assert.h> |
| 13918 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13919 | #ifdef __cplusplus |
| 13920 | extern "C" |
| 13921 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13922 | /* 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] | 13923 | builtin and then its argument prototype would still apply. */ |
| 13924 | char gethostbyname_r (); |
| 13925 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | /* The GNU C library defines this for functions which it implements |
| 13937 | to always fail with ENOSYS. Some functions are actually named |
| 13938 | something starting with __ and the normal name is an alias. */ |
| 13939 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 13940 | choke me |
| 13941 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13942 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13943 | #endif |
| 13944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13945 | ; |
| 13946 | return 0; |
| 13947 | } |
| 13948 | _ACEOF |
| 13949 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13951 | (eval $ac_link) 2>&5 |
| 13952 | ac_status=$? |
| 13953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13954 | (exit $ac_status); } && |
| 13955 | { ac_try='test -s conftest$ac_exeext' |
| 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 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13962 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13963 | echo "$as_me: failed program was:" >&5 |
| 13964 | cat conftest.$ac_ext >&5 |
| 13965 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13966 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13967 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13968 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13969 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 13970 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 13971 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13973 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13974 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13975 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13976 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13977 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 13978 | 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] | 13979 | OLD_CFLAGS=$CFLAGS |
| 13980 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13981 | cat >conftest.$ac_ext <<_ACEOF |
| 13982 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13983 | #include "confdefs.h" |
| 13984 | |
| 13985 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13986 | |
| 13987 | #ifdef F77_DUMMY_MAIN |
| 13988 | # ifdef __cplusplus |
| 13989 | extern "C" |
| 13990 | # endif |
| 13991 | int F77_DUMMY_MAIN() { return 1; } |
| 13992 | #endif |
| 13993 | int |
| 13994 | main () |
| 13995 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13996 | |
| 13997 | char *name; |
| 13998 | struct hostent *he, *res; |
| 13999 | char buffer[2048]; |
| 14000 | int buflen = 2048; |
| 14001 | int h_errnop; |
| 14002 | |
| 14003 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14004 | |
| 14005 | ; |
| 14006 | return 0; |
| 14007 | } |
| 14008 | _ACEOF |
| 14009 | rm -f conftest.$ac_objext |
| 14010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14011 | (eval $ac_compile) 2>&5 |
| 14012 | ac_status=$? |
| 14013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14014 | (exit $ac_status); } && |
| 14015 | { ac_try='test -s conftest.$ac_objext' |
| 14016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14017 | (eval $ac_try) 2>&5 |
| 14018 | ac_status=$? |
| 14019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14020 | (exit $ac_status); }; }; then |
| 14021 | |
| 14022 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14023 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14024 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14026 | |
| 14027 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14028 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14029 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14031 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14032 | echo "${ECHO_T}yes" >&6 |
| 14033 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14034 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14035 | echo "$as_me: failed program was:" >&5 |
| 14036 | cat conftest.$ac_ext >&5 |
| 14037 | |
| 14038 | echo "$as_me:$LINENO: result: no" >&5 |
| 14039 | echo "${ECHO_T}no" >&6 |
| 14040 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 14041 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 14042 | cat >conftest.$ac_ext <<_ACEOF |
| 14043 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14044 | #include "confdefs.h" |
| 14045 | |
| 14046 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14047 | |
| 14048 | #ifdef F77_DUMMY_MAIN |
| 14049 | # ifdef __cplusplus |
| 14050 | extern "C" |
| 14051 | # endif |
| 14052 | int F77_DUMMY_MAIN() { return 1; } |
| 14053 | #endif |
| 14054 | int |
| 14055 | main () |
| 14056 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14057 | |
| 14058 | char *name; |
| 14059 | struct hostent *he; |
| 14060 | char buffer[2048]; |
| 14061 | int buflen = 2048; |
| 14062 | int h_errnop; |
| 14063 | |
| 14064 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14065 | |
| 14066 | ; |
| 14067 | return 0; |
| 14068 | } |
| 14069 | _ACEOF |
| 14070 | rm -f conftest.$ac_objext |
| 14071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14072 | (eval $ac_compile) 2>&5 |
| 14073 | ac_status=$? |
| 14074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14075 | (exit $ac_status); } && |
| 14076 | { ac_try='test -s conftest.$ac_objext' |
| 14077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14078 | (eval $ac_try) 2>&5 |
| 14079 | ac_status=$? |
| 14080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14081 | (exit $ac_status); }; }; then |
| 14082 | |
| 14083 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14084 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14085 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14087 | |
| 14088 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14089 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14090 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14092 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14093 | echo "${ECHO_T}yes" >&6 |
| 14094 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14095 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14096 | echo "$as_me: failed program was:" >&5 |
| 14097 | cat conftest.$ac_ext >&5 |
| 14098 | |
| 14099 | echo "$as_me:$LINENO: result: no" >&5 |
| 14100 | echo "${ECHO_T}no" >&6 |
| 14101 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 14102 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 14103 | cat >conftest.$ac_ext <<_ACEOF |
| 14104 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14105 | #include "confdefs.h" |
| 14106 | |
| 14107 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14108 | |
| 14109 | #ifdef F77_DUMMY_MAIN |
| 14110 | # ifdef __cplusplus |
| 14111 | extern "C" |
| 14112 | # endif |
| 14113 | int F77_DUMMY_MAIN() { return 1; } |
| 14114 | #endif |
| 14115 | int |
| 14116 | main () |
| 14117 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14118 | |
| 14119 | char *name; |
| 14120 | struct hostent *he; |
| 14121 | struct hostent_data data; |
| 14122 | |
| 14123 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14124 | |
| 14125 | ; |
| 14126 | return 0; |
| 14127 | } |
| 14128 | _ACEOF |
| 14129 | rm -f conftest.$ac_objext |
| 14130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14131 | (eval $ac_compile) 2>&5 |
| 14132 | ac_status=$? |
| 14133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14134 | (exit $ac_status); } && |
| 14135 | { ac_try='test -s conftest.$ac_objext' |
| 14136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14137 | (eval $ac_try) 2>&5 |
| 14138 | ac_status=$? |
| 14139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14140 | (exit $ac_status); }; }; then |
| 14141 | |
| 14142 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14143 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14144 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14146 | |
| 14147 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14148 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14149 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14152 | echo "${ECHO_T}yes" >&6 |
| 14153 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14154 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14155 | echo "$as_me: failed program was:" >&5 |
| 14156 | cat conftest.$ac_ext >&5 |
| 14157 | |
| 14158 | echo "$as_me:$LINENO: result: no" >&5 |
| 14159 | echo "${ECHO_T}no" >&6 |
| 14160 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14161 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14162 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14163 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14164 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14165 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14166 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14167 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14168 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14169 | CFLAGS=$OLD_CFLAGS |
| 14170 | |
| 14171 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14173 | |
| 14174 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14175 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14176 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14177 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14178 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14179 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14182 | cat >conftest.$ac_ext <<_ACEOF |
| 14183 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14184 | #include "confdefs.h" |
| 14185 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14186 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14187 | #include <assert.h> |
| 14188 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14189 | #ifdef __cplusplus |
| 14190 | extern "C" |
| 14191 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14192 | /* 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] | 14193 | builtin and then its argument prototype would still apply. */ |
| 14194 | char $ac_func (); |
| 14195 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14197 | #ifdef F77_DUMMY_MAIN |
| 14198 | # ifdef __cplusplus |
| 14199 | extern "C" |
| 14200 | # endif |
| 14201 | int F77_DUMMY_MAIN() { return 1; } |
| 14202 | #endif |
| 14203 | int |
| 14204 | main () |
| 14205 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14206 | /* The GNU C library defines this for functions which it implements |
| 14207 | to always fail with ENOSYS. Some functions are actually named |
| 14208 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14209 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14210 | choke me |
| 14211 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14212 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14213 | #endif |
| 14214 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14215 | ; |
| 14216 | return 0; |
| 14217 | } |
| 14218 | _ACEOF |
| 14219 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14221 | (eval $ac_link) 2>&5 |
| 14222 | ac_status=$? |
| 14223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14224 | (exit $ac_status); } && |
| 14225 | { ac_try='test -s conftest$ac_exeext' |
| 14226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14227 | (eval $ac_try) 2>&5 |
| 14228 | ac_status=$? |
| 14229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14230 | (exit $ac_status); }; }; then |
| 14231 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14232 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14233 | echo "$as_me: failed program was:" >&5 |
| 14234 | cat conftest.$ac_ext >&5 |
| 14235 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14236 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14237 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14238 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14239 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14240 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14241 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14242 | cat >>confdefs.h <<_ACEOF |
| 14243 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14244 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14245 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14246 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14247 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14248 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14249 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14250 | fi |
| 14251 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14252 | |
| 14253 | |
| 14254 | |
| 14255 | |
| 14256 | |
| 14257 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14258 | # checks for system services |
| 14259 | # (none yet) |
| 14260 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14261 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14262 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14263 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14264 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14267 | cat >conftest.$ac_ext <<_ACEOF |
| 14268 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14269 | #include "confdefs.h" |
| 14270 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14271 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14272 | #include <assert.h> |
| 14273 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14274 | #ifdef __cplusplus |
| 14275 | extern "C" |
| 14276 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14277 | /* 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] | 14278 | builtin and then its argument prototype would still apply. */ |
| 14279 | char __fpu_control (); |
| 14280 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14282 | #ifdef F77_DUMMY_MAIN |
| 14283 | # ifdef __cplusplus |
| 14284 | extern "C" |
| 14285 | # endif |
| 14286 | int F77_DUMMY_MAIN() { return 1; } |
| 14287 | #endif |
| 14288 | int |
| 14289 | main () |
| 14290 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14291 | /* The GNU C library defines this for functions which it implements |
| 14292 | to always fail with ENOSYS. Some functions are actually named |
| 14293 | something starting with __ and the normal name is an alias. */ |
| 14294 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14295 | choke me |
| 14296 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14297 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14298 | #endif |
| 14299 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14300 | ; |
| 14301 | return 0; |
| 14302 | } |
| 14303 | _ACEOF |
| 14304 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14306 | (eval $ac_link) 2>&5 |
| 14307 | ac_status=$? |
| 14308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14309 | (exit $ac_status); } && |
| 14310 | { ac_try='test -s conftest$ac_exeext' |
| 14311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14312 | (eval $ac_try) 2>&5 |
| 14313 | ac_status=$? |
| 14314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14315 | (exit $ac_status); }; }; then |
| 14316 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14318 | echo "$as_me: failed program was:" >&5 |
| 14319 | cat conftest.$ac_ext >&5 |
| 14320 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14322 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14323 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14324 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14325 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14326 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14327 | : |
| 14328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14329 | |
| 14330 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14331 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14332 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14334 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14335 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14336 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14337 | cat >conftest.$ac_ext <<_ACEOF |
| 14338 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14339 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14340 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14341 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14342 | #ifdef __cplusplus |
| 14343 | extern "C" |
| 14344 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14345 | /* 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] | 14346 | builtin and then its argument prototype would still apply. */ |
| 14347 | char __fpu_control (); |
| 14348 | #ifdef F77_DUMMY_MAIN |
| 14349 | # ifdef __cplusplus |
| 14350 | extern "C" |
| 14351 | # endif |
| 14352 | int F77_DUMMY_MAIN() { return 1; } |
| 14353 | #endif |
| 14354 | int |
| 14355 | main () |
| 14356 | { |
| 14357 | __fpu_control (); |
| 14358 | ; |
| 14359 | return 0; |
| 14360 | } |
| 14361 | _ACEOF |
| 14362 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14364 | (eval $ac_link) 2>&5 |
| 14365 | ac_status=$? |
| 14366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14367 | (exit $ac_status); } && |
| 14368 | { ac_try='test -s conftest$ac_exeext' |
| 14369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14370 | (eval $ac_try) 2>&5 |
| 14371 | ac_status=$? |
| 14372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14373 | (exit $ac_status); }; }; then |
| 14374 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14375 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14376 | echo "$as_me: failed program was:" >&5 |
| 14377 | cat conftest.$ac_ext >&5 |
| 14378 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14379 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14380 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14381 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14382 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14383 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 14384 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 14385 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 14386 | cat >>confdefs.h <<_ACEOF |
| 14387 | #define HAVE_LIBIEEE 1 |
| 14388 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14389 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14390 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14391 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14392 | fi |
| 14393 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14394 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14395 | fi |
| 14396 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14397 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14398 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14399 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 14400 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 14401 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14402 | # Check whether --with-fpectl or --without-fpectl was given. |
| 14403 | if test "${with_fpectl+set}" = set; then |
| 14404 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14405 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14406 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14407 | then |
| 14408 | |
| 14409 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14410 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14411 | _ACEOF |
| 14412 | |
| 14413 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14414 | echo "${ECHO_T}yes" >&6 |
| 14415 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14416 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14417 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14419 | echo "$as_me:$LINENO: result: no" >&5 |
| 14420 | echo "${ECHO_T}no" >&6 |
| 14421 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14422 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14423 | # check for --with-libm=... |
| 14424 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14425 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14426 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14427 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14428 | *) LIBM=-lm |
| 14429 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14430 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 14431 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 14432 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14433 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14434 | if test "${with_libm+set}" = set; then |
| 14435 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14436 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14437 | if test "$withval" = no |
| 14438 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14439 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 14440 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14441 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14442 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 14444 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 14445 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 14446 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 14447 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14448 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14449 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14450 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 14451 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 14452 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14453 | |
| 14454 | # check for --with-libc=... |
| 14455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14456 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 14457 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 14458 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14459 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14460 | if test "${with_libc+set}" = set; then |
| 14461 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14462 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14463 | if test "$withval" = no |
| 14464 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14465 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 14466 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14467 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14468 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14469 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 14470 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 14471 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 14472 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 14473 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14474 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14476 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 14477 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 14478 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14479 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14480 | # check for hypot() in math library |
| 14481 | LIBS_SAVE=$LIBS |
| 14482 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14483 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14484 | for ac_func in hypot |
| 14485 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14486 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14487 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14488 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14489 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14492 | cat >conftest.$ac_ext <<_ACEOF |
| 14493 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14494 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14495 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14496 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14497 | #include <assert.h> |
| 14498 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14499 | #ifdef __cplusplus |
| 14500 | extern "C" |
| 14501 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14502 | /* 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] | 14503 | builtin and then its argument prototype would still apply. */ |
| 14504 | char $ac_func (); |
| 14505 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14507 | #ifdef F77_DUMMY_MAIN |
| 14508 | # ifdef __cplusplus |
| 14509 | extern "C" |
| 14510 | # endif |
| 14511 | int F77_DUMMY_MAIN() { return 1; } |
| 14512 | #endif |
| 14513 | int |
| 14514 | main () |
| 14515 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14516 | /* The GNU C library defines this for functions which it implements |
| 14517 | to always fail with ENOSYS. Some functions are actually named |
| 14518 | something starting with __ and the normal name is an alias. */ |
| 14519 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14520 | choke me |
| 14521 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14522 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14523 | #endif |
| 14524 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14525 | ; |
| 14526 | return 0; |
| 14527 | } |
| 14528 | _ACEOF |
| 14529 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14531 | (eval $ac_link) 2>&5 |
| 14532 | ac_status=$? |
| 14533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14534 | (exit $ac_status); } && |
| 14535 | { ac_try='test -s conftest$ac_exeext' |
| 14536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14537 | (eval $ac_try) 2>&5 |
| 14538 | ac_status=$? |
| 14539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14540 | (exit $ac_status); }; }; then |
| 14541 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14542 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14543 | echo "$as_me: failed program was:" >&5 |
| 14544 | cat conftest.$ac_ext >&5 |
| 14545 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14546 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14547 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14548 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14550 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14551 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14552 | cat >>confdefs.h <<_ACEOF |
| 14553 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14554 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14555 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14557 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14558 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14559 | done |
| 14560 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14561 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14562 | LIBS=$LIBS_SAVE |
| 14563 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14564 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 14566 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 14567 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 14568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14569 | else |
| 14570 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14571 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14573 | cat >conftest.$ac_ext <<_ACEOF |
| 14574 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14575 | #include "confdefs.h" |
| 14576 | #include <stdio.h> |
| 14577 | #ifdef HAVE_STDLIB |
| 14578 | #include <stdlib.h> |
| 14579 | #else |
| 14580 | char *malloc(), *realloc(); |
| 14581 | int *free(); |
| 14582 | #endif |
| 14583 | main() { |
| 14584 | char *p; |
| 14585 | p = malloc(0); |
| 14586 | if (p == NULL) exit(1); |
| 14587 | p = realloc(p, 0); |
| 14588 | if (p == NULL) exit(1); |
| 14589 | free(p); |
| 14590 | exit(0); |
| 14591 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14592 | _ACEOF |
| 14593 | rm -f conftest$ac_exeext |
| 14594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14595 | (eval $ac_link) 2>&5 |
| 14596 | ac_status=$? |
| 14597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14598 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14600 | (eval $ac_try) 2>&5 |
| 14601 | ac_status=$? |
| 14602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14603 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14604 | ac_cv_malloc_zero=nonnull |
| 14605 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14607 | echo "$as_me: failed program was:" >&5 |
| 14608 | cat conftest.$ac_ext >&5 |
| 14609 | ( exit $ac_status ) |
| 14610 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14611 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14612 | 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] | 14613 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14614 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14615 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14616 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 14617 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14618 | if test "$ac_cv_malloc_zero" = null |
| 14619 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14620 | |
| 14621 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14622 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14624 | |
| 14625 | fi |
| 14626 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14627 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14628 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14629 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14630 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14631 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14633 | fi |
| 14634 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14635 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14636 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14637 | # Is the header compilable? |
| 14638 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 14639 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 14640 | cat >conftest.$ac_ext <<_ACEOF |
| 14641 | #line $LINENO "configure" |
| 14642 | #include "confdefs.h" |
| 14643 | $ac_includes_default |
| 14644 | #include <wchar.h> |
| 14645 | _ACEOF |
| 14646 | rm -f conftest.$ac_objext |
| 14647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14648 | (eval $ac_compile) 2>&5 |
| 14649 | ac_status=$? |
| 14650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14651 | (exit $ac_status); } && |
| 14652 | { ac_try='test -s conftest.$ac_objext' |
| 14653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14654 | (eval $ac_try) 2>&5 |
| 14655 | ac_status=$? |
| 14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14657 | (exit $ac_status); }; }; then |
| 14658 | ac_header_compiler=yes |
| 14659 | else |
| 14660 | echo "$as_me: failed program was:" >&5 |
| 14661 | cat conftest.$ac_ext >&5 |
| 14662 | ac_header_compiler=no |
| 14663 | fi |
| 14664 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14665 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14666 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14667 | |
| 14668 | # Is the header present? |
| 14669 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 14670 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 14671 | cat >conftest.$ac_ext <<_ACEOF |
| 14672 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14673 | #include "confdefs.h" |
| 14674 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14675 | _ACEOF |
| 14676 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14677 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14678 | ac_status=$? |
| 14679 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 14680 | rm -f conftest.er1 |
| 14681 | cat conftest.err >&5 |
| 14682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14683 | (exit $ac_status); } >/dev/null; then |
| 14684 | if test -s conftest.err; then |
| 14685 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14686 | else |
| 14687 | ac_cpp_err= |
| 14688 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14690 | ac_cpp_err=yes |
| 14691 | fi |
| 14692 | if test -z "$ac_cpp_err"; then |
| 14693 | ac_header_preproc=yes |
| 14694 | else |
| 14695 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14696 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14697 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14698 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14699 | rm -f conftest.err conftest.$ac_ext |
| 14700 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14701 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14702 | |
| 14703 | # So? What about this header? |
| 14704 | case $ac_header_compiler:$ac_header_preproc in |
| 14705 | yes:no ) |
| 14706 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14707 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14708 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14709 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14710 | no:yes ) |
| 14711 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 14712 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 14713 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 14714 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 14715 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14716 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14717 | esac |
| 14718 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14719 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14720 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14722 | else |
| 14723 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14724 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14725 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14726 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 14727 | |
| 14728 | fi |
| 14729 | if test $ac_cv_header_wchar_h = yes; then |
| 14730 | |
| 14731 | |
| 14732 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14733 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14734 | _ACEOF |
| 14735 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14736 | wchar_h="yes" |
| 14737 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14738 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14739 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14740 | |
| 14741 | fi |
| 14742 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14744 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14745 | # determine wchar_t size |
| 14746 | if test "$wchar_h" = yes |
| 14747 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14748 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 14749 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 14750 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 14751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14752 | else |
| 14753 | cat >conftest.$ac_ext <<_ACEOF |
| 14754 | #line $LINENO "configure" |
| 14755 | #include "confdefs.h" |
| 14756 | #include <wchar.h> |
| 14757 | |
| 14758 | #ifdef F77_DUMMY_MAIN |
| 14759 | # ifdef __cplusplus |
| 14760 | extern "C" |
| 14761 | # endif |
| 14762 | int F77_DUMMY_MAIN() { return 1; } |
| 14763 | #endif |
| 14764 | int |
| 14765 | main () |
| 14766 | { |
| 14767 | if ((wchar_t *) 0) |
| 14768 | return 0; |
| 14769 | if (sizeof (wchar_t)) |
| 14770 | return 0; |
| 14771 | ; |
| 14772 | return 0; |
| 14773 | } |
| 14774 | _ACEOF |
| 14775 | rm -f conftest.$ac_objext |
| 14776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14777 | (eval $ac_compile) 2>&5 |
| 14778 | ac_status=$? |
| 14779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14780 | (exit $ac_status); } && |
| 14781 | { ac_try='test -s conftest.$ac_objext' |
| 14782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14783 | (eval $ac_try) 2>&5 |
| 14784 | ac_status=$? |
| 14785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14786 | (exit $ac_status); }; }; then |
| 14787 | ac_cv_type_wchar_t=yes |
| 14788 | else |
| 14789 | echo "$as_me: failed program was:" >&5 |
| 14790 | cat conftest.$ac_ext >&5 |
| 14791 | ac_cv_type_wchar_t=no |
| 14792 | fi |
| 14793 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14794 | fi |
| 14795 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 14796 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 14797 | |
| 14798 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 14799 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 14800 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 14801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14802 | else |
| 14803 | if test "$ac_cv_type_wchar_t" = yes; then |
| 14804 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14805 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14806 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14807 | # This bug is HP SR number 8606223364. |
| 14808 | if test "$cross_compiling" = yes; then |
| 14809 | # Depending upon the size, compute the lo and hi bounds. |
| 14810 | cat >conftest.$ac_ext <<_ACEOF |
| 14811 | #line $LINENO "configure" |
| 14812 | #include "confdefs.h" |
| 14813 | #include <wchar.h> |
| 14814 | |
| 14815 | #ifdef F77_DUMMY_MAIN |
| 14816 | # ifdef __cplusplus |
| 14817 | extern "C" |
| 14818 | # endif |
| 14819 | int F77_DUMMY_MAIN() { return 1; } |
| 14820 | #endif |
| 14821 | int |
| 14822 | main () |
| 14823 | { |
| 14824 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 14825 | test_array [0] = 0 |
| 14826 | |
| 14827 | ; |
| 14828 | return 0; |
| 14829 | } |
| 14830 | _ACEOF |
| 14831 | rm -f conftest.$ac_objext |
| 14832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14833 | (eval $ac_compile) 2>&5 |
| 14834 | ac_status=$? |
| 14835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14836 | (exit $ac_status); } && |
| 14837 | { ac_try='test -s conftest.$ac_objext' |
| 14838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14839 | (eval $ac_try) 2>&5 |
| 14840 | ac_status=$? |
| 14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14842 | (exit $ac_status); }; }; then |
| 14843 | ac_lo=0 ac_mid=0 |
| 14844 | while :; do |
| 14845 | cat >conftest.$ac_ext <<_ACEOF |
| 14846 | #line $LINENO "configure" |
| 14847 | #include "confdefs.h" |
| 14848 | #include <wchar.h> |
| 14849 | |
| 14850 | #ifdef F77_DUMMY_MAIN |
| 14851 | # ifdef __cplusplus |
| 14852 | extern "C" |
| 14853 | # endif |
| 14854 | int F77_DUMMY_MAIN() { return 1; } |
| 14855 | #endif |
| 14856 | int |
| 14857 | main () |
| 14858 | { |
| 14859 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14860 | test_array [0] = 0 |
| 14861 | |
| 14862 | ; |
| 14863 | return 0; |
| 14864 | } |
| 14865 | _ACEOF |
| 14866 | rm -f conftest.$ac_objext |
| 14867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14868 | (eval $ac_compile) 2>&5 |
| 14869 | ac_status=$? |
| 14870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14871 | (exit $ac_status); } && |
| 14872 | { ac_try='test -s conftest.$ac_objext' |
| 14873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14874 | (eval $ac_try) 2>&5 |
| 14875 | ac_status=$? |
| 14876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14877 | (exit $ac_status); }; }; then |
| 14878 | ac_hi=$ac_mid; break |
| 14879 | else |
| 14880 | echo "$as_me: failed program was:" >&5 |
| 14881 | cat conftest.$ac_ext >&5 |
| 14882 | ac_lo=`expr $ac_mid + 1` |
| 14883 | if test $ac_lo -le $ac_mid; then |
| 14884 | ac_lo= ac_hi= |
| 14885 | break |
| 14886 | fi |
| 14887 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14888 | fi |
| 14889 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14890 | done |
| 14891 | else |
| 14892 | echo "$as_me: failed program was:" >&5 |
| 14893 | cat conftest.$ac_ext >&5 |
| 14894 | cat >conftest.$ac_ext <<_ACEOF |
| 14895 | #line $LINENO "configure" |
| 14896 | #include "confdefs.h" |
| 14897 | #include <wchar.h> |
| 14898 | |
| 14899 | #ifdef F77_DUMMY_MAIN |
| 14900 | # ifdef __cplusplus |
| 14901 | extern "C" |
| 14902 | # endif |
| 14903 | int F77_DUMMY_MAIN() { return 1; } |
| 14904 | #endif |
| 14905 | int |
| 14906 | main () |
| 14907 | { |
| 14908 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 14909 | test_array [0] = 0 |
| 14910 | |
| 14911 | ; |
| 14912 | return 0; |
| 14913 | } |
| 14914 | _ACEOF |
| 14915 | rm -f conftest.$ac_objext |
| 14916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14917 | (eval $ac_compile) 2>&5 |
| 14918 | ac_status=$? |
| 14919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14920 | (exit $ac_status); } && |
| 14921 | { ac_try='test -s conftest.$ac_objext' |
| 14922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14923 | (eval $ac_try) 2>&5 |
| 14924 | ac_status=$? |
| 14925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14926 | (exit $ac_status); }; }; then |
| 14927 | ac_hi=-1 ac_mid=-1 |
| 14928 | while :; do |
| 14929 | cat >conftest.$ac_ext <<_ACEOF |
| 14930 | #line $LINENO "configure" |
| 14931 | #include "confdefs.h" |
| 14932 | #include <wchar.h> |
| 14933 | |
| 14934 | #ifdef F77_DUMMY_MAIN |
| 14935 | # ifdef __cplusplus |
| 14936 | extern "C" |
| 14937 | # endif |
| 14938 | int F77_DUMMY_MAIN() { return 1; } |
| 14939 | #endif |
| 14940 | int |
| 14941 | main () |
| 14942 | { |
| 14943 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 14944 | test_array [0] = 0 |
| 14945 | |
| 14946 | ; |
| 14947 | return 0; |
| 14948 | } |
| 14949 | _ACEOF |
| 14950 | rm -f conftest.$ac_objext |
| 14951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14952 | (eval $ac_compile) 2>&5 |
| 14953 | ac_status=$? |
| 14954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14955 | (exit $ac_status); } && |
| 14956 | { ac_try='test -s conftest.$ac_objext' |
| 14957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14958 | (eval $ac_try) 2>&5 |
| 14959 | ac_status=$? |
| 14960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14961 | (exit $ac_status); }; }; then |
| 14962 | ac_lo=$ac_mid; break |
| 14963 | else |
| 14964 | echo "$as_me: failed program was:" >&5 |
| 14965 | cat conftest.$ac_ext >&5 |
| 14966 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14967 | if test $ac_mid -le $ac_hi; then |
| 14968 | ac_lo= ac_hi= |
| 14969 | break |
| 14970 | fi |
| 14971 | ac_mid=`expr 2 '*' $ac_mid` |
| 14972 | fi |
| 14973 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14974 | done |
| 14975 | else |
| 14976 | echo "$as_me: failed program was:" >&5 |
| 14977 | cat conftest.$ac_ext >&5 |
| 14978 | ac_lo= ac_hi= |
| 14979 | fi |
| 14980 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14981 | fi |
| 14982 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14983 | # Binary search between lo and hi bounds. |
| 14984 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14985 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14986 | cat >conftest.$ac_ext <<_ACEOF |
| 14987 | #line $LINENO "configure" |
| 14988 | #include "confdefs.h" |
| 14989 | #include <wchar.h> |
| 14990 | |
| 14991 | #ifdef F77_DUMMY_MAIN |
| 14992 | # ifdef __cplusplus |
| 14993 | extern "C" |
| 14994 | # endif |
| 14995 | int F77_DUMMY_MAIN() { return 1; } |
| 14996 | #endif |
| 14997 | int |
| 14998 | main () |
| 14999 | { |
| 15000 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15001 | test_array [0] = 0 |
| 15002 | |
| 15003 | ; |
| 15004 | return 0; |
| 15005 | } |
| 15006 | _ACEOF |
| 15007 | rm -f conftest.$ac_objext |
| 15008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15009 | (eval $ac_compile) 2>&5 |
| 15010 | ac_status=$? |
| 15011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15012 | (exit $ac_status); } && |
| 15013 | { ac_try='test -s conftest.$ac_objext' |
| 15014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15015 | (eval $ac_try) 2>&5 |
| 15016 | ac_status=$? |
| 15017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15018 | (exit $ac_status); }; }; then |
| 15019 | ac_hi=$ac_mid |
| 15020 | else |
| 15021 | echo "$as_me: failed program was:" >&5 |
| 15022 | cat conftest.$ac_ext >&5 |
| 15023 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 15024 | fi |
| 15025 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15026 | done |
| 15027 | case $ac_lo in |
| 15028 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 15029 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15030 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15031 | { (exit 1); exit 1; }; } ;; |
| 15032 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15033 | else |
| 15034 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15035 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 15036 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 15037 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15038 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15039 | cat >conftest.$ac_ext <<_ACEOF |
| 15040 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15041 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15042 | #include <wchar.h> |
| 15043 | |
| 15044 | long longval () { return (long) (sizeof (wchar_t)); } |
| 15045 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15046 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15047 | #include <stdlib.h> |
| 15048 | #ifdef F77_DUMMY_MAIN |
| 15049 | # ifdef __cplusplus |
| 15050 | extern "C" |
| 15051 | # endif |
| 15052 | int F77_DUMMY_MAIN() { return 1; } |
| 15053 | #endif |
| 15054 | int |
| 15055 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15056 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15057 | |
| 15058 | FILE *f = fopen ("conftest.val", "w"); |
| 15059 | if (! f) |
| 15060 | exit (1); |
| 15061 | if (((long) (sizeof (wchar_t))) < 0) |
| 15062 | { |
| 15063 | long i = longval (); |
| 15064 | if (i != ((long) (sizeof (wchar_t)))) |
| 15065 | exit (1); |
| 15066 | fprintf (f, "%ld\n", i); |
| 15067 | } |
| 15068 | else |
| 15069 | { |
| 15070 | unsigned long i = ulongval (); |
| 15071 | if (i != ((long) (sizeof (wchar_t)))) |
| 15072 | exit (1); |
| 15073 | fprintf (f, "%lu\n", i); |
| 15074 | } |
| 15075 | exit (ferror (f) || fclose (f) != 0); |
| 15076 | |
| 15077 | ; |
| 15078 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15079 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15080 | _ACEOF |
| 15081 | rm -f conftest$ac_exeext |
| 15082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15083 | (eval $ac_link) 2>&5 |
| 15084 | ac_status=$? |
| 15085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15086 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15088 | (eval $ac_try) 2>&5 |
| 15089 | ac_status=$? |
| 15090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15091 | (exit $ac_status); }; }; then |
| 15092 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15093 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15094 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15095 | echo "$as_me: failed program was:" >&5 |
| 15096 | cat conftest.$ac_ext >&5 |
| 15097 | ( exit $ac_status ) |
| 15098 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15099 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15100 | { (exit 1); exit 1; }; } |
| 15101 | fi |
| 15102 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15103 | fi |
| 15104 | fi |
| 15105 | rm -f conftest.val |
| 15106 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15107 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15108 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15109 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 15111 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 15112 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15113 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15114 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15115 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15116 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15117 | fi |
| 15118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 15120 | 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] | 15121 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15122 | if test "${enable_unicode+set}" = set; then |
| 15123 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15124 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15125 | else |
| 15126 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15127 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15128 | |
| 15129 | if test $enable_unicode = yes |
| 15130 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15131 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15132 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15133 | fi |
| 15134 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15135 | |
| 15136 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15137 | case "$enable_unicode" in |
| 15138 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15139 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15140 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15141 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15142 | |
| 15143 | ;; |
| 15144 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15145 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15146 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15147 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15148 | |
| 15149 | ;; |
| 15150 | esac |
| 15151 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15153 | |
| 15154 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15155 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15156 | if test "$enable_unicode" = "no" |
| 15157 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15158 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15159 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15160 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15161 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15162 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15163 | |
| 15164 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15165 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15166 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15167 | |
| 15168 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15169 | then |
| 15170 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15172 | cat >>confdefs.h <<\_ACEOF |
| 15173 | #define HAVE_USABLE_WCHAR_T 1 |
| 15174 | _ACEOF |
| 15175 | |
| 15176 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15177 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15178 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15179 | |
| 15180 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15181 | then |
| 15182 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15183 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15184 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15185 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15186 | |
| 15187 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15188 | then |
| 15189 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15190 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15191 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15192 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15193 | |
| 15194 | else |
| 15195 | PY_UNICODE_TYPE="no type found" |
| 15196 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15197 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15198 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15199 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15200 | |
| 15201 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15202 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15203 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15204 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15206 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15207 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15208 | cat >conftest.$ac_ext <<_ACEOF |
| 15209 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15210 | #include "confdefs.h" |
| 15211 | #include <sys/types.h> |
| 15212 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15213 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15214 | #ifdef F77_DUMMY_MAIN |
| 15215 | # ifdef __cplusplus |
| 15216 | extern "C" |
| 15217 | # endif |
| 15218 | int F77_DUMMY_MAIN() { return 1; } |
| 15219 | #endif |
| 15220 | int |
| 15221 | main () |
| 15222 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15223 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15224 | bogus endian macros |
| 15225 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15226 | |
| 15227 | ; |
| 15228 | return 0; |
| 15229 | } |
| 15230 | _ACEOF |
| 15231 | rm -f conftest.$ac_objext |
| 15232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15233 | (eval $ac_compile) 2>&5 |
| 15234 | ac_status=$? |
| 15235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15236 | (exit $ac_status); } && |
| 15237 | { ac_try='test -s conftest.$ac_objext' |
| 15238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15239 | (eval $ac_try) 2>&5 |
| 15240 | ac_status=$? |
| 15241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15242 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15243 | # 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] | 15244 | cat >conftest.$ac_ext <<_ACEOF |
| 15245 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15246 | #include "confdefs.h" |
| 15247 | #include <sys/types.h> |
| 15248 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15250 | #ifdef F77_DUMMY_MAIN |
| 15251 | # ifdef __cplusplus |
| 15252 | extern "C" |
| 15253 | # endif |
| 15254 | int F77_DUMMY_MAIN() { return 1; } |
| 15255 | #endif |
| 15256 | int |
| 15257 | main () |
| 15258 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15259 | #if BYTE_ORDER != BIG_ENDIAN |
| 15260 | not big endian |
| 15261 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15262 | |
| 15263 | ; |
| 15264 | return 0; |
| 15265 | } |
| 15266 | _ACEOF |
| 15267 | rm -f conftest.$ac_objext |
| 15268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15269 | (eval $ac_compile) 2>&5 |
| 15270 | ac_status=$? |
| 15271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15272 | (exit $ac_status); } && |
| 15273 | { ac_try='test -s conftest.$ac_objext' |
| 15274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15275 | (eval $ac_try) 2>&5 |
| 15276 | ac_status=$? |
| 15277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15278 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15279 | ac_cv_c_bigendian=yes |
| 15280 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15281 | echo "$as_me: failed program was:" >&5 |
| 15282 | cat conftest.$ac_ext >&5 |
| 15283 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15284 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15285 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15287 | echo "$as_me: failed program was:" >&5 |
| 15288 | cat conftest.$ac_ext >&5 |
| 15289 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15290 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15291 | # try to guess the endianess by grep'ing values into an object file |
| 15292 | ac_cv_c_bigendian=unknown |
| 15293 | cat >conftest.$ac_ext <<_ACEOF |
| 15294 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15295 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15296 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15297 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15298 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15299 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15300 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15301 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15302 | #ifdef F77_DUMMY_MAIN |
| 15303 | # ifdef __cplusplus |
| 15304 | extern "C" |
| 15305 | # endif |
| 15306 | int F77_DUMMY_MAIN() { return 1; } |
| 15307 | #endif |
| 15308 | int |
| 15309 | main () |
| 15310 | { |
| 15311 | _ascii (); _ebcdic (); |
| 15312 | ; |
| 15313 | return 0; |
| 15314 | } |
| 15315 | _ACEOF |
| 15316 | rm -f conftest.$ac_objext |
| 15317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15318 | (eval $ac_compile) 2>&5 |
| 15319 | ac_status=$? |
| 15320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15321 | (exit $ac_status); } && |
| 15322 | { ac_try='test -s conftest.$ac_objext' |
| 15323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15324 | (eval $ac_try) 2>&5 |
| 15325 | ac_status=$? |
| 15326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15327 | (exit $ac_status); }; }; then |
| 15328 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15329 | ac_cv_c_bigendian=yes |
| 15330 | fi |
| 15331 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15332 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15333 | ac_cv_c_bigendian=no |
| 15334 | else |
| 15335 | # finding both strings is unlikely to happen, but who knows? |
| 15336 | ac_cv_c_bigendian=unknown |
| 15337 | fi |
| 15338 | fi |
| 15339 | else |
| 15340 | echo "$as_me: failed program was:" >&5 |
| 15341 | cat conftest.$ac_ext >&5 |
| 15342 | fi |
| 15343 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15344 | else |
| 15345 | cat >conftest.$ac_ext <<_ACEOF |
| 15346 | #line $LINENO "configure" |
| 15347 | #include "confdefs.h" |
| 15348 | int |
| 15349 | main () |
| 15350 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15351 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15352 | union |
| 15353 | { |
| 15354 | long l; |
| 15355 | char c[sizeof (long)]; |
| 15356 | } u; |
| 15357 | u.l = 1; |
| 15358 | exit (u.c[sizeof (long) - 1] == 1); |
| 15359 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15360 | _ACEOF |
| 15361 | rm -f conftest$ac_exeext |
| 15362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15363 | (eval $ac_link) 2>&5 |
| 15364 | ac_status=$? |
| 15365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15366 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15368 | (eval $ac_try) 2>&5 |
| 15369 | ac_status=$? |
| 15370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15371 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15372 | ac_cv_c_bigendian=no |
| 15373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15374 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15375 | echo "$as_me: failed program was:" >&5 |
| 15376 | cat conftest.$ac_ext >&5 |
| 15377 | ( exit $ac_status ) |
| 15378 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15379 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15380 | 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] | 15381 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15382 | fi |
| 15383 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15384 | fi |
| 15385 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15386 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 15387 | case $ac_cv_c_bigendian in |
| 15388 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15390 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15391 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15392 | _ACEOF |
| 15393 | ;; |
| 15394 | no) |
| 15395 | ;; |
| 15396 | *) |
| 15397 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 15398 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15399 | echo "$as_me: error: unknown endianess |
| 15400 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15401 | { (exit 1); exit 1; }; } ;; |
| 15402 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15403 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15404 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15405 | # Check whether right shifting a negative integer extends the sign bit |
| 15406 | # 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] | 15407 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 15408 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 15409 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 15410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15412 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15413 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15414 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15415 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15416 | cat >conftest.$ac_ext <<_ACEOF |
| 15417 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15418 | #include "confdefs.h" |
| 15419 | |
| 15420 | int main() |
| 15421 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15422 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15423 | } |
| 15424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15425 | _ACEOF |
| 15426 | rm -f conftest$ac_exeext |
| 15427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15428 | (eval $ac_link) 2>&5 |
| 15429 | ac_status=$? |
| 15430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15431 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15433 | (eval $ac_try) 2>&5 |
| 15434 | ac_status=$? |
| 15435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15436 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15437 | ac_cv_rshift_extends_sign=yes |
| 15438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15439 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15440 | echo "$as_me: failed program was:" >&5 |
| 15441 | cat conftest.$ac_ext >&5 |
| 15442 | ( exit $ac_status ) |
| 15443 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15444 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15445 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15446 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15447 | fi |
| 15448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15449 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 15450 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15451 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15452 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15453 | |
| 15454 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15455 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15456 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15457 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15458 | fi |
| 15459 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15460 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15461 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 15462 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 15463 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 15464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15466 | |
| 15467 | cat >conftest.$ac_ext <<_ACEOF |
| 15468 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15469 | #include "confdefs.h" |
| 15470 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15471 | #ifdef F77_DUMMY_MAIN |
| 15472 | # ifdef __cplusplus |
| 15473 | extern "C" |
| 15474 | # endif |
| 15475 | int F77_DUMMY_MAIN() { return 1; } |
| 15476 | #endif |
| 15477 | int |
| 15478 | main () |
| 15479 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15480 | |
| 15481 | FILE *f = fopen("/dev/null", "r"); |
| 15482 | flockfile(f); |
| 15483 | getc_unlocked(f); |
| 15484 | funlockfile(f); |
| 15485 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15486 | ; |
| 15487 | return 0; |
| 15488 | } |
| 15489 | _ACEOF |
| 15490 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15492 | (eval $ac_link) 2>&5 |
| 15493 | ac_status=$? |
| 15494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15495 | (exit $ac_status); } && |
| 15496 | { ac_try='test -s conftest$ac_exeext' |
| 15497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15498 | (eval $ac_try) 2>&5 |
| 15499 | ac_status=$? |
| 15500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15501 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15502 | ac_cv_have_getc_unlocked=yes |
| 15503 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15504 | echo "$as_me: failed program was:" >&5 |
| 15505 | cat conftest.$ac_ext >&5 |
| 15506 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15507 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15508 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15509 | fi |
| 15510 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15511 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 15512 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15513 | if test "$ac_cv_have_getc_unlocked" = yes |
| 15514 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15515 | |
| 15516 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15517 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15518 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15519 | |
| 15520 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15521 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15522 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15523 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 15524 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 15525 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 15526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15527 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15528 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15529 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15530 | cat >conftest.$ac_ext <<_ACEOF |
| 15531 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15532 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15533 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15534 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15535 | #ifdef __cplusplus |
| 15536 | extern "C" |
| 15537 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15538 | /* 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] | 15539 | builtin and then its argument prototype would still apply. */ |
| 15540 | char rl_pre_input_hook (); |
| 15541 | #ifdef F77_DUMMY_MAIN |
| 15542 | # ifdef __cplusplus |
| 15543 | extern "C" |
| 15544 | # endif |
| 15545 | int F77_DUMMY_MAIN() { return 1; } |
| 15546 | #endif |
| 15547 | int |
| 15548 | main () |
| 15549 | { |
| 15550 | rl_pre_input_hook (); |
| 15551 | ; |
| 15552 | return 0; |
| 15553 | } |
| 15554 | _ACEOF |
| 15555 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15557 | (eval $ac_link) 2>&5 |
| 15558 | ac_status=$? |
| 15559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15560 | (exit $ac_status); } && |
| 15561 | { ac_try='test -s conftest$ac_exeext' |
| 15562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15563 | (eval $ac_try) 2>&5 |
| 15564 | ac_status=$? |
| 15565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15566 | (exit $ac_status); }; }; then |
| 15567 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15569 | echo "$as_me: failed program was:" >&5 |
| 15570 | cat conftest.$ac_ext >&5 |
| 15571 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15572 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15573 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15574 | LIBS=$ac_check_lib_save_LIBS |
| 15575 | fi |
| 15576 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 15577 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 15578 | 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] | 15579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15580 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15581 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15582 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15583 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15584 | fi |
| 15585 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15586 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15587 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15588 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 15589 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 15590 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 15591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15593 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15594 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15595 | cat >conftest.$ac_ext <<_ACEOF |
| 15596 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15597 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15598 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15599 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15600 | #ifdef __cplusplus |
| 15601 | extern "C" |
| 15602 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15603 | /* 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] | 15604 | builtin and then its argument prototype would still apply. */ |
| 15605 | char rl_completion_matches (); |
| 15606 | #ifdef F77_DUMMY_MAIN |
| 15607 | # ifdef __cplusplus |
| 15608 | extern "C" |
| 15609 | # endif |
| 15610 | int F77_DUMMY_MAIN() { return 1; } |
| 15611 | #endif |
| 15612 | int |
| 15613 | main () |
| 15614 | { |
| 15615 | rl_completion_matches (); |
| 15616 | ; |
| 15617 | return 0; |
| 15618 | } |
| 15619 | _ACEOF |
| 15620 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15622 | (eval $ac_link) 2>&5 |
| 15623 | ac_status=$? |
| 15624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15625 | (exit $ac_status); } && |
| 15626 | { ac_try='test -s conftest$ac_exeext' |
| 15627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15628 | (eval $ac_try) 2>&5 |
| 15629 | ac_status=$? |
| 15630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15631 | (exit $ac_status); }; }; then |
| 15632 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15634 | echo "$as_me: failed program was:" >&5 |
| 15635 | cat conftest.$ac_ext >&5 |
| 15636 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15637 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15638 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15639 | LIBS=$ac_check_lib_save_LIBS |
| 15640 | fi |
| 15641 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 15642 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 15643 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15645 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15646 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15647 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15648 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15649 | fi |
| 15650 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15652 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 15653 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 15654 | if test "${ac_cv_broken_nice+set}" = set; then |
| 15655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15657 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15658 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15659 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15661 | cat >conftest.$ac_ext <<_ACEOF |
| 15662 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15663 | #include "confdefs.h" |
| 15664 | |
| 15665 | int main() |
| 15666 | { |
| 15667 | int val1 = nice(1); |
| 15668 | if (val1 != -1 && val1 == nice(2)) |
| 15669 | exit(0); |
| 15670 | exit(1); |
| 15671 | } |
| 15672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15673 | _ACEOF |
| 15674 | rm -f conftest$ac_exeext |
| 15675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15676 | (eval $ac_link) 2>&5 |
| 15677 | ac_status=$? |
| 15678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15679 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15685 | ac_cv_broken_nice=yes |
| 15686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15687 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15688 | echo "$as_me: failed program was:" >&5 |
| 15689 | cat conftest.$ac_ext >&5 |
| 15690 | ( exit $ac_status ) |
| 15691 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15692 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15693 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15694 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15695 | fi |
| 15696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15697 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 15698 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15699 | if test "$ac_cv_broken_nice" = yes |
| 15700 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15701 | |
| 15702 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15703 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15704 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15705 | |
| 15706 | fi |
| 15707 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15708 | # 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] | 15709 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 15710 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 15711 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 15712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15713 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15714 | cat >conftest.$ac_ext <<_ACEOF |
| 15715 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15716 | #include "confdefs.h" |
| 15717 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15718 | #ifdef F77_DUMMY_MAIN |
| 15719 | # ifdef __cplusplus |
| 15720 | extern "C" |
| 15721 | # endif |
| 15722 | int F77_DUMMY_MAIN() { return 1; } |
| 15723 | #endif |
| 15724 | int |
| 15725 | main () |
| 15726 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15727 | |
| 15728 | int rtn; |
| 15729 | rtn = mvwdelch(0,0,0); |
| 15730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15731 | ; |
| 15732 | return 0; |
| 15733 | } |
| 15734 | _ACEOF |
| 15735 | rm -f conftest.$ac_objext |
| 15736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15737 | (eval $ac_compile) 2>&5 |
| 15738 | ac_status=$? |
| 15739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15740 | (exit $ac_status); } && |
| 15741 | { ac_try='test -s conftest.$ac_objext' |
| 15742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15743 | (eval $ac_try) 2>&5 |
| 15744 | ac_status=$? |
| 15745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15746 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15747 | ac_cv_mvwdelch_is_expression=yes |
| 15748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15749 | echo "$as_me: failed program was:" >&5 |
| 15750 | cat conftest.$ac_ext >&5 |
| 15751 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15752 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15753 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15754 | fi |
| 15755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15756 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 15757 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15758 | |
| 15759 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 15760 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15761 | |
| 15762 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15763 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15764 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15765 | |
| 15766 | fi |
| 15767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15768 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 15769 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 15770 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 15771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15772 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15773 | cat >conftest.$ac_ext <<_ACEOF |
| 15774 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15775 | #include "confdefs.h" |
| 15776 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15777 | #ifdef F77_DUMMY_MAIN |
| 15778 | # ifdef __cplusplus |
| 15779 | extern "C" |
| 15780 | # endif |
| 15781 | int F77_DUMMY_MAIN() { return 1; } |
| 15782 | #endif |
| 15783 | int |
| 15784 | main () |
| 15785 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15786 | |
| 15787 | WINDOW *w; |
| 15788 | w->_flags = 0; |
| 15789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15790 | ; |
| 15791 | return 0; |
| 15792 | } |
| 15793 | _ACEOF |
| 15794 | rm -f conftest.$ac_objext |
| 15795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15796 | (eval $ac_compile) 2>&5 |
| 15797 | ac_status=$? |
| 15798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15799 | (exit $ac_status); } && |
| 15800 | { ac_try='test -s conftest.$ac_objext' |
| 15801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15802 | (eval $ac_try) 2>&5 |
| 15803 | ac_status=$? |
| 15804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15805 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15806 | ac_cv_window_has_flags=yes |
| 15807 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15808 | echo "$as_me: failed program was:" >&5 |
| 15809 | cat conftest.$ac_ext >&5 |
| 15810 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15811 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15812 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15813 | fi |
| 15814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15815 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 15816 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15817 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15818 | |
| 15819 | if test "$ac_cv_window_has_flags" = yes |
| 15820 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15821 | |
| 15822 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15823 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15824 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15825 | |
| 15826 | fi |
| 15827 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15828 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 15829 | # Add sys/socket.h to confdefs.h |
| 15830 | cat >> confdefs.h <<\EOF |
| 15831 | #ifdef HAVE_SYS_SOCKET_H |
| 15832 | #include <sys/socket.h> |
| 15833 | #endif |
| 15834 | EOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15835 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 15836 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 15837 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 15838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15840 | cat >conftest.$ac_ext <<_ACEOF |
| 15841 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15842 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15843 | $ac_includes_default |
| 15844 | #ifdef F77_DUMMY_MAIN |
| 15845 | # ifdef __cplusplus |
| 15846 | extern "C" |
| 15847 | # endif |
| 15848 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15849 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15850 | int |
| 15851 | main () |
| 15852 | { |
| 15853 | if ((socklen_t *) 0) |
| 15854 | return 0; |
| 15855 | if (sizeof (socklen_t)) |
| 15856 | return 0; |
| 15857 | ; |
| 15858 | return 0; |
| 15859 | } |
| 15860 | _ACEOF |
| 15861 | rm -f conftest.$ac_objext |
| 15862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15863 | (eval $ac_compile) 2>&5 |
| 15864 | ac_status=$? |
| 15865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15866 | (exit $ac_status); } && |
| 15867 | { ac_try='test -s conftest.$ac_objext' |
| 15868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15869 | (eval $ac_try) 2>&5 |
| 15870 | ac_status=$? |
| 15871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15872 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15873 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15875 | echo "$as_me: failed program was:" >&5 |
| 15876 | cat conftest.$ac_ext >&5 |
| 15877 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15878 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15880 | fi |
| 15881 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 15882 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 15883 | if test $ac_cv_type_socklen_t = yes; then |
| 15884 | : |
| 15885 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15886 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15887 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15888 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15889 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15890 | |
| 15891 | fi |
| 15892 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15893 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15894 | #AC_MSG_CHECKING(for Modules/Setup) |
| 15895 | #if test ! -f Modules/Setup ; then |
| 15896 | # if test ! -d Modules ; then |
| 15897 | # mkdir Modules |
| 15898 | # fi |
| 15899 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 15900 | # AC_MSG_RESULT(creating) |
| 15901 | #else |
| 15902 | # AC_MSG_RESULT(already exists) |
| 15903 | #fi |
| 15904 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15905 | |
| 15906 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 15907 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 15908 | do |
| 15909 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 15910 | done |
| 15911 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15912 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 15913 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15914 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 15915 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15916 | for dir in $SRCDIRS; do |
| 15917 | if test ! -d $dir; then |
| 15918 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 15919 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15920 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15921 | echo "$as_me:$LINENO: result: done" >&5 |
| 15922 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 15923 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15924 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15925 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
| 15926 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15927 | # This file is a shell script that caches the results of configure |
| 15928 | # 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] | 15929 | # scripts and configure runs, see configure's option --config-cache. |
| 15930 | # It is not useful on other systems. If it contains results you don't |
| 15931 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15932 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15933 | # config.status only pays attention to the cache file if you give it |
| 15934 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15935 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15936 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 15937 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15938 | # following values. |
| 15939 | |
| 15940 | _ACEOF |
| 15941 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15942 | # The following way of writing the cache mishandles newlines in values, |
| 15943 | # but we know of no workaround that is simple, portable, and efficient. |
| 15944 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15945 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15946 | # 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] | 15947 | { |
| 15948 | (set) 2>&1 | |
| 15949 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15950 | *ac_space=\ *) |
| 15951 | # `set' does not quote correctly, so add quotes (double-quote |
| 15952 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15953 | sed -n \ |
| 15954 | "s/'/'\\\\''/g; |
| 15955 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15956 | ;; |
| 15957 | *) |
| 15958 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15959 | sed -n \ |
| 15960 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15961 | ;; |
| 15962 | esac; |
| 15963 | } | |
| 15964 | sed ' |
| 15965 | t clear |
| 15966 | : clear |
| 15967 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15968 | t end |
| 15969 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15970 | : end' >>confcache |
| 15971 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15972 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15973 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15974 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15975 | else |
| 15976 | echo "not updating unwritable cache $cache_file" |
| 15977 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15978 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15979 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15980 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15981 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15982 | # Let make expand exec_prefix. |
| 15983 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15984 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15985 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15986 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15987 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15988 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15989 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15990 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15991 | s/:*\$(srcdir):*/:/; |
| 15992 | s/:*\${srcdir}:*/:/; |
| 15993 | s/:*@srcdir@:*/:/; |
| 15994 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15995 | s/:*$//; |
| 15996 | s/^[^=]*=[ ]*$//; |
| 15997 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15998 | fi |
| 15999 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16000 | DEFS=-DHAVE_CONFIG_H |
| 16001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16002 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16003 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16004 | ac_clean_files_save=$ac_clean_files |
| 16005 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16006 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16007 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16008 | cat >$CONFIG_STATUS <<_ACEOF |
| 16009 | #! $SHELL |
| 16010 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16011 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16012 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16013 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16015 | debug=false |
| 16016 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16017 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16019 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16021 | ## --------------------- ## |
| 16022 | ## M4sh Initialization. ## |
| 16023 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16025 | # Be Bourne compatible |
| 16026 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16027 | emulate sh |
| 16028 | NULLCMD=: |
| 16029 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16030 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16031 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16033 | # NLS nuisances. |
| 16034 | # Support unset when possible. |
| 16035 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16036 | as_unset=unset |
| 16037 | else |
| 16038 | as_unset=false |
| 16039 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16041 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 16042 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 16043 | { LANG=C; export LANG; } |
| 16044 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 16045 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 16046 | { LC_ALL=C; export LC_ALL; } |
| 16047 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 16048 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 16049 | { LC_TIME=C; export LC_TIME; } |
| 16050 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 16051 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 16052 | { LC_CTYPE=C; export LC_CTYPE; } |
| 16053 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 16054 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 16055 | { LANGUAGE=C; export LANGUAGE; } |
| 16056 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 16057 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 16058 | { LC_COLLATE=C; export LC_COLLATE; } |
| 16059 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 16060 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 16061 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 16062 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 16063 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 16064 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 16065 | |
| 16066 | |
| 16067 | # Name of the executable. |
| 16068 | as_me=`(basename "$0") 2>/dev/null || |
| 16069 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16070 | X"$0" : 'X\(//\)$' \| \ |
| 16071 | X"$0" : 'X\(/\)$' \| \ |
| 16072 | . : '\(.\)' 2>/dev/null || |
| 16073 | echo X/"$0" | |
| 16074 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16075 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16076 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16077 | s/.*/./; q'` |
| 16078 | |
| 16079 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16080 | # Avoid depending upon Character Ranges. |
| 16081 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16082 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16083 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16084 | as_cr_digits='0123456789' |
| 16085 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16086 | |
| 16087 | # The user is always right. |
| 16088 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16089 | echo "#! /bin/sh" >conftest.sh |
| 16090 | echo "exit 0" >>conftest.sh |
| 16091 | chmod +x conftest.sh |
| 16092 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 16093 | PATH_SEPARATOR=';' |
| 16094 | else |
| 16095 | PATH_SEPARATOR=: |
| 16096 | fi |
| 16097 | rm -f conftest.sh |
| 16098 | fi |
| 16099 | |
| 16100 | |
| 16101 | as_lineno_1=$LINENO |
| 16102 | as_lineno_2=$LINENO |
| 16103 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16104 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16105 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16106 | # Find who we are. Look in the path if we contain no path at all |
| 16107 | # relative or not. |
| 16108 | case $0 in |
| 16109 | *[\\/]* ) as_myself=$0 ;; |
| 16110 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16111 | for as_dir in $PATH |
| 16112 | do |
| 16113 | IFS=$as_save_IFS |
| 16114 | test -z "$as_dir" && as_dir=. |
| 16115 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16116 | done |
| 16117 | |
| 16118 | ;; |
| 16119 | esac |
| 16120 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16121 | # in which case we are not to be found in the path. |
| 16122 | if test "x$as_myself" = x; then |
| 16123 | as_myself=$0 |
| 16124 | fi |
| 16125 | if test ! -f "$as_myself"; then |
| 16126 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16127 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16128 | { (exit 1); exit 1; }; } |
| 16129 | fi |
| 16130 | case $CONFIG_SHELL in |
| 16131 | '') |
| 16132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16134 | do |
| 16135 | IFS=$as_save_IFS |
| 16136 | test -z "$as_dir" && as_dir=. |
| 16137 | for as_base in sh bash ksh sh5; do |
| 16138 | case $as_dir in |
| 16139 | /*) |
| 16140 | if ("$as_dir/$as_base" -c ' |
| 16141 | as_lineno_1=$LINENO |
| 16142 | as_lineno_2=$LINENO |
| 16143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 16146 | CONFIG_SHELL=$as_dir/$as_base |
| 16147 | export CONFIG_SHELL |
| 16148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16149 | fi;; |
| 16150 | esac |
| 16151 | done |
| 16152 | done |
| 16153 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16154 | esac |
| 16155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16158 | # line-number line before each line; the second 'sed' does the real |
| 16159 | # work. The second script uses 'N' to pair each line-number line |
| 16160 | # with the numbered line, and appends trailing '-' during |
| 16161 | # substitution so that $LINENO is not a special case at line end. |
| 16162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16164 | sed '=' <$as_myself | |
| 16165 | sed ' |
| 16166 | N |
| 16167 | s,$,-, |
| 16168 | : loop |
| 16169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16170 | t loop |
| 16171 | s,-$,, |
| 16172 | s,^['$as_cr_digits']*\n,, |
| 16173 | ' >$as_me.lineno && |
| 16174 | chmod +x $as_me.lineno || |
| 16175 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16176 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16177 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16179 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16180 | # (the dirname of $[0] is not the place where we might find the |
| 16181 | # original and so on. Autoconf is especially sensible to this). |
| 16182 | . ./$as_me.lineno |
| 16183 | # Exit status is that of the last command. |
| 16184 | exit |
| 16185 | } |
| 16186 | |
| 16187 | |
| 16188 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16189 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16190 | ' ECHO_T=' ' ;; |
| 16191 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16192 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16193 | esac |
| 16194 | |
| 16195 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16196 | as_expr=expr |
| 16197 | else |
| 16198 | as_expr=false |
| 16199 | fi |
| 16200 | |
| 16201 | rm -f conf$$ conf$$.exe conf$$.file |
| 16202 | echo >conf$$.file |
| 16203 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16204 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16205 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16206 | if test -f conf$$.exe; then |
| 16207 | # Don't use ln at all; we don't have any links |
| 16208 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16209 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16210 | as_ln_s='ln -s' |
| 16211 | fi |
| 16212 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16213 | as_ln_s=ln |
| 16214 | else |
| 16215 | as_ln_s='cp -p' |
| 16216 | fi |
| 16217 | rm -f conf$$ conf$$.exe conf$$.file |
| 16218 | |
| 16219 | as_executable_p="test -f" |
| 16220 | |
| 16221 | # Sed expression to map a string onto a valid CPP name. |
| 16222 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16223 | |
| 16224 | # Sed expression to map a string onto a valid variable name. |
| 16225 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16226 | |
| 16227 | |
| 16228 | # IFS |
| 16229 | # We need space, tab and new line, in precisely that order. |
| 16230 | as_nl=' |
| 16231 | ' |
| 16232 | IFS=" $as_nl" |
| 16233 | |
| 16234 | # CDPATH. |
| 16235 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16236 | |
| 16237 | exec 6>&1 |
| 16238 | |
| 16239 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16240 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16241 | # values after options handling. Logging --version etc. is OK. |
| 16242 | exec 5>>config.log |
| 16243 | { |
| 16244 | echo |
| 16245 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16246 | ## Running $as_me. ## |
| 16247 | _ASBOX |
| 16248 | } >&5 |
| 16249 | cat >&5 <<_CSEOF |
| 16250 | |
| 16251 | This file was extended by $as_me, which was |
| 16252 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16253 | |
| 16254 | CONFIG_FILES = $CONFIG_FILES |
| 16255 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16256 | CONFIG_LINKS = $CONFIG_LINKS |
| 16257 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16258 | $ $0 $@ |
| 16259 | |
| 16260 | _CSEOF |
| 16261 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16262 | echo >&5 |
| 16263 | _ACEOF |
| 16264 | |
| 16265 | # Files that config.status was made for. |
| 16266 | if test -n "$ac_config_files"; then |
| 16267 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16268 | fi |
| 16269 | |
| 16270 | if test -n "$ac_config_headers"; then |
| 16271 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16272 | fi |
| 16273 | |
| 16274 | if test -n "$ac_config_links"; then |
| 16275 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16276 | fi |
| 16277 | |
| 16278 | if test -n "$ac_config_commands"; then |
| 16279 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16280 | fi |
| 16281 | |
| 16282 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16283 | |
| 16284 | ac_cs_usage="\ |
| 16285 | \`$as_me' instantiates files from templates according to the |
| 16286 | current configuration. |
| 16287 | |
| 16288 | Usage: $0 [OPTIONS] [FILE]... |
| 16289 | |
| 16290 | -h, --help print this help, then exit |
| 16291 | -V, --version print version number, then exit |
| 16292 | -d, --debug don't remove temporary files |
| 16293 | --recheck update $as_me by reconfiguring in the same conditions |
| 16294 | --file=FILE[:TEMPLATE] |
| 16295 | instantiate the configuration file FILE |
| 16296 | --header=FILE[:TEMPLATE] |
| 16297 | instantiate the configuration header FILE |
| 16298 | |
| 16299 | Configuration files: |
| 16300 | $config_files |
| 16301 | |
| 16302 | Configuration headers: |
| 16303 | $config_headers |
| 16304 | |
| 16305 | Report bugs to <bug-autoconf@gnu.org>." |
| 16306 | _ACEOF |
| 16307 | |
| 16308 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16309 | ac_cs_version="\\ |
| 16310 | config.status |
| 16311 | configured by $0, generated by GNU Autoconf 2.53, |
| 16312 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 16313 | |
| 16314 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16315 | Free Software Foundation, Inc. |
| 16316 | This config.status script is free software; the Free Software Foundation |
| 16317 | gives unlimited permission to copy, distribute and modify it." |
| 16318 | srcdir=$srcdir |
| 16319 | INSTALL="$INSTALL" |
| 16320 | _ACEOF |
| 16321 | |
| 16322 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16323 | # If no file are specified by the user, then we need to provide default |
| 16324 | # value. By we need to know if files were specified by the user. |
| 16325 | ac_need_defaults=: |
| 16326 | while test $# != 0 |
| 16327 | do |
| 16328 | case $1 in |
| 16329 | --*=*) |
| 16330 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16331 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 16332 | shift |
| 16333 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 16334 | shift |
| 16335 | ;; |
| 16336 | -*);; |
| 16337 | *) # This is not an option, so the user has probably given explicit |
| 16338 | # arguments. |
| 16339 | ac_need_defaults=false;; |
| 16340 | esac |
| 16341 | |
| 16342 | case $1 in |
| 16343 | # Handling of the options. |
| 16344 | _ACEOF |
| 16345 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16346 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16347 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 16348 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 16349 | _ACEOF |
| 16350 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16351 | --version | --vers* | -V ) |
| 16352 | echo "$ac_cs_version"; exit 0 ;; |
| 16353 | --he | --h) |
| 16354 | # Conflict between --help and --header |
| 16355 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16356 | Try \`$0 --help' for more information." >&5 |
| 16357 | echo "$as_me: error: ambiguous option: $1 |
| 16358 | Try \`$0 --help' for more information." >&2;} |
| 16359 | { (exit 1); exit 1; }; };; |
| 16360 | --help | --hel | -h ) |
| 16361 | echo "$ac_cs_usage"; exit 0 ;; |
| 16362 | --debug | --d* | -d ) |
| 16363 | debug=: ;; |
| 16364 | --file | --fil | --fi | --f ) |
| 16365 | shift |
| 16366 | CONFIG_FILES="$CONFIG_FILES $1" |
| 16367 | ac_need_defaults=false;; |
| 16368 | --header | --heade | --head | --hea ) |
| 16369 | shift |
| 16370 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 16371 | ac_need_defaults=false;; |
| 16372 | |
| 16373 | # This is an error. |
| 16374 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16375 | Try \`$0 --help' for more information." >&5 |
| 16376 | echo "$as_me: error: unrecognized option: $1 |
| 16377 | Try \`$0 --help' for more information." >&2;} |
| 16378 | { (exit 1); exit 1; }; } ;; |
| 16379 | |
| 16380 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16381 | |
| 16382 | esac |
| 16383 | shift |
| 16384 | done |
| 16385 | |
| 16386 | _ACEOF |
| 16387 | |
| 16388 | |
| 16389 | |
| 16390 | |
| 16391 | |
| 16392 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16393 | for ac_config_target in $ac_config_targets |
| 16394 | do |
| 16395 | case "$ac_config_target" in |
| 16396 | # Handling of arguments. |
| 16397 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 16398 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 16399 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 16400 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16401 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16402 | { (exit 1); exit 1; }; };; |
| 16403 | esac |
| 16404 | done |
| 16405 | |
| 16406 | # If the user did not use the arguments to specify the items to instantiate, |
| 16407 | # then the envvar interface is used. Set only those that are not. |
| 16408 | # We use the long form for the default assignment because of an extremely |
| 16409 | # bizarre bug on SunOS 4.1.3. |
| 16410 | if $ac_need_defaults; then |
| 16411 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16412 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16413 | fi |
| 16414 | |
| 16415 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16416 | $debug || |
| 16417 | { |
| 16418 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16419 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16420 | } |
| 16421 | |
| 16422 | # Create a (secure) tmp directory for tmp files. |
| 16423 | : ${TMPDIR=/tmp} |
| 16424 | { |
| 16425 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 16426 | test -n "$tmp" && test -d "$tmp" |
| 16427 | } || |
| 16428 | { |
| 16429 | tmp=$TMPDIR/cs$$-$RANDOM |
| 16430 | (umask 077 && mkdir $tmp) |
| 16431 | } || |
| 16432 | { |
| 16433 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 16434 | { (exit 1); exit 1; } |
| 16435 | } |
| 16436 | |
| 16437 | _ACEOF |
| 16438 | |
| 16439 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16440 | |
| 16441 | # |
| 16442 | # CONFIG_FILES section. |
| 16443 | # |
| 16444 | |
| 16445 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16446 | # This happens for instance when ./config.status config.h |
| 16447 | if test -n "\$CONFIG_FILES"; then |
| 16448 | # Protect against being on the right side of a sed subst in config.status. |
| 16449 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16450 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16451 | s,@SHELL@,$SHELL,;t t |
| 16452 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16453 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16454 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16455 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16456 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16457 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16458 | s,@exec_prefix@,$exec_prefix,;t t |
| 16459 | s,@prefix@,$prefix,;t t |
| 16460 | s,@program_transform_name@,$program_transform_name,;t t |
| 16461 | s,@bindir@,$bindir,;t t |
| 16462 | s,@sbindir@,$sbindir,;t t |
| 16463 | s,@libexecdir@,$libexecdir,;t t |
| 16464 | s,@datadir@,$datadir,;t t |
| 16465 | s,@sysconfdir@,$sysconfdir,;t t |
| 16466 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16467 | s,@localstatedir@,$localstatedir,;t t |
| 16468 | s,@libdir@,$libdir,;t t |
| 16469 | s,@includedir@,$includedir,;t t |
| 16470 | s,@oldincludedir@,$oldincludedir,;t t |
| 16471 | s,@infodir@,$infodir,;t t |
| 16472 | s,@mandir@,$mandir,;t t |
| 16473 | s,@build_alias@,$build_alias,;t t |
| 16474 | s,@host_alias@,$host_alias,;t t |
| 16475 | s,@target_alias@,$target_alias,;t t |
| 16476 | s,@DEFS@,$DEFS,;t t |
| 16477 | s,@ECHO_C@,$ECHO_C,;t t |
| 16478 | s,@ECHO_N@,$ECHO_N,;t t |
| 16479 | s,@ECHO_T@,$ECHO_T,;t t |
| 16480 | s,@LIBS@,$LIBS,;t t |
| 16481 | s,@VERSION@,$VERSION,;t t |
| 16482 | s,@SOVERSION@,$SOVERSION,;t t |
| 16483 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 16484 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 16485 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 16486 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 16487 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 16488 | s,@MACHDEP@,$MACHDEP,;t t |
| 16489 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 16490 | s,@CXX@,$CXX,;t t |
| 16491 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 16492 | s,@EXEEXT@,$EXEEXT,;t t |
| 16493 | s,@CC@,$CC,;t t |
| 16494 | s,@CFLAGS@,$CFLAGS,;t t |
| 16495 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16496 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16497 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16498 | s,@OBJEXT@,$OBJEXT,;t t |
| 16499 | s,@CPP@,$CPP,;t t |
| 16500 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 16501 | s,@LIBRARY@,$LIBRARY,;t t |
| 16502 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 16503 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 16504 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 16505 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 16506 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 16507 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 16508 | s,@LINKCC@,$LINKCC,;t t |
| 16509 | s,@RANLIB@,$RANLIB,;t t |
| 16510 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 16511 | s,@AR@,$AR,;t t |
| 16512 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 16513 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 16514 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 16515 | s,@LN@,$LN,;t t |
| 16516 | s,@OPT@,$OPT,;t t |
| 16517 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 16518 | s,@SO@,$SO,;t t |
| 16519 | s,@LDSHARED@,$LDSHARED,;t t |
| 16520 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 16521 | s,@CCSHARED@,$CCSHARED,;t t |
| 16522 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 16523 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16524 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16525 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 16526 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 16527 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 16528 | s,@LDLAST@,$LDLAST,;t t |
| 16529 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 16530 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 16531 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 16532 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 16533 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16534 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 16535 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 16536 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 16537 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 16538 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 16539 | s,@LIBM@,$LIBM,;t t |
| 16540 | s,@LIBC@,$LIBC,;t t |
| 16541 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 16542 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 16543 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 16544 | CEOF |
| 16545 | |
| 16546 | _ACEOF |
| 16547 | |
| 16548 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16549 | # Split the substitutions into bite-sized pieces for seds with |
| 16550 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16551 | ac_max_sed_lines=48 |
| 16552 | ac_sed_frag=1 # Number of current file. |
| 16553 | ac_beg=1 # First line for current file. |
| 16554 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16555 | ac_more_lines=: |
| 16556 | ac_sed_cmds= |
| 16557 | while $ac_more_lines; do |
| 16558 | if test $ac_beg -gt 1; then |
| 16559 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16560 | else |
| 16561 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16562 | fi |
| 16563 | if test ! -s $tmp/subs.frag; then |
| 16564 | ac_more_lines=false |
| 16565 | else |
| 16566 | # The purpose of the label and of the branching condition is to |
| 16567 | # speed up the sed processing (if there are no `@' at all, there |
| 16568 | # is no need to browse any of the substitutions). |
| 16569 | # These are the two extra sed commands mentioned above. |
| 16570 | (echo ':t |
| 16571 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16572 | if test -z "$ac_sed_cmds"; then |
| 16573 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16574 | else |
| 16575 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16576 | fi |
| 16577 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16578 | ac_beg=$ac_end |
| 16579 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16580 | fi |
| 16581 | done |
| 16582 | if test -z "$ac_sed_cmds"; then |
| 16583 | ac_sed_cmds=cat |
| 16584 | fi |
| 16585 | fi # test -n "$CONFIG_FILES" |
| 16586 | |
| 16587 | _ACEOF |
| 16588 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16589 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16590 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16591 | case $ac_file in |
| 16592 | - | *:- | *:-:* ) # input from stdin |
| 16593 | cat >$tmp/stdin |
| 16594 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16595 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16596 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16597 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16598 | * ) ac_file_in=$ac_file.in ;; |
| 16599 | esac |
| 16600 | |
| 16601 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16602 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16603 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16604 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16605 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16606 | X"$ac_file" : 'X\(/\)' \| \ |
| 16607 | . : '\(.\)' 2>/dev/null || |
| 16608 | echo X"$ac_file" | |
| 16609 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16610 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16611 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16612 | /^X\(\/\).*/{ s//\1/; q; } |
| 16613 | s/.*/./; q'` |
| 16614 | { case "$ac_dir" in |
| 16615 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16616 | *) as_incr_dir=.;; |
| 16617 | esac |
| 16618 | as_dummy="$ac_dir" |
| 16619 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16620 | case $as_mkdir_dir in |
| 16621 | # Skip DOS drivespec |
| 16622 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16623 | *) |
| 16624 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16625 | test -d "$as_incr_dir" || |
| 16626 | mkdir "$as_incr_dir" || |
| 16627 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16628 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16629 | { (exit 1); exit 1; }; } |
| 16630 | ;; |
| 16631 | esac |
| 16632 | done; } |
| 16633 | |
| 16634 | ac_builddir=. |
| 16635 | |
| 16636 | if test "$ac_dir" != .; then |
| 16637 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16638 | # A "../" for each directory in $ac_dir_suffix. |
| 16639 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16640 | else |
| 16641 | ac_dir_suffix= ac_top_builddir= |
| 16642 | fi |
| 16643 | |
| 16644 | case $srcdir in |
| 16645 | .) # No --srcdir option. We are building in place. |
| 16646 | ac_srcdir=. |
| 16647 | if test -z "$ac_top_builddir"; then |
| 16648 | ac_top_srcdir=. |
| 16649 | else |
| 16650 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16651 | fi ;; |
| 16652 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16653 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16654 | ac_top_srcdir=$srcdir ;; |
| 16655 | *) # Relative path. |
| 16656 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16657 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16658 | esac |
| 16659 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 16660 | # absolute. |
| 16661 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 16662 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 16663 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 16664 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 16665 | |
| 16666 | |
| 16667 | case $INSTALL in |
| 16668 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 16669 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 16670 | esac |
| 16671 | |
| 16672 | if test x"$ac_file" != x-; then |
| 16673 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16674 | echo "$as_me: creating $ac_file" >&6;} |
| 16675 | rm -f "$ac_file" |
| 16676 | fi |
| 16677 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16678 | # use $as_me), people would be surprised to read: |
| 16679 | # /* config.h. Generated by config.status. */ |
| 16680 | if test x"$ac_file" = x-; then |
| 16681 | configure_input= |
| 16682 | else |
| 16683 | configure_input="$ac_file. " |
| 16684 | fi |
| 16685 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16686 | sed 's,.*/,,'` by configure." |
| 16687 | |
| 16688 | # First look for the input files in the build tree, otherwise in the |
| 16689 | # src tree. |
| 16690 | ac_file_inputs=`IFS=: |
| 16691 | for f in $ac_file_in; do |
| 16692 | case $f in |
| 16693 | -) echo $tmp/stdin ;; |
| 16694 | [\\/$]*) |
| 16695 | # Absolute (can't be DOS-style, as IFS=:) |
| 16696 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16697 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16698 | { (exit 1); exit 1; }; } |
| 16699 | echo $f;; |
| 16700 | *) # Relative |
| 16701 | if test -f "$f"; then |
| 16702 | # Build tree |
| 16703 | echo $f |
| 16704 | elif test -f "$srcdir/$f"; then |
| 16705 | # Source tree |
| 16706 | echo $srcdir/$f |
| 16707 | else |
| 16708 | # /dev/null tree |
| 16709 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16710 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16711 | { (exit 1); exit 1; }; } |
| 16712 | fi;; |
| 16713 | esac |
| 16714 | done` || { (exit 1); exit 1; } |
| 16715 | _ACEOF |
| 16716 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16717 | sed "$ac_vpsub |
| 16718 | $extrasub |
| 16719 | _ACEOF |
| 16720 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16721 | :t |
| 16722 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16723 | s,@configure_input@,$configure_input,;t t |
| 16724 | s,@srcdir@,$ac_srcdir,;t t |
| 16725 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16726 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16727 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16728 | s,@builddir@,$ac_builddir,;t t |
| 16729 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16730 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16731 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16732 | s,@INSTALL@,$ac_INSTALL,;t t |
| 16733 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16734 | rm -f $tmp/stdin |
| 16735 | if test x"$ac_file" != x-; then |
| 16736 | mv $tmp/out $ac_file |
| 16737 | else |
| 16738 | cat $tmp/out |
| 16739 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16740 | fi |
| 16741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16742 | done |
| 16743 | _ACEOF |
| 16744 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16745 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | # |
| 16747 | # CONFIG_HEADER section. |
| 16748 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16749 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16750 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16751 | # 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] | 16752 | # |
| 16753 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16754 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16755 | ac_dB='[ ].*$,\1#\2' |
| 16756 | ac_dC=' ' |
| 16757 | ac_dD=',;t' |
| 16758 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16759 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16760 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16761 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16762 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16764 | 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] | 16765 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16766 | case $ac_file in |
| 16767 | - | *:- | *:-:* ) # input from stdin |
| 16768 | cat >$tmp/stdin |
| 16769 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16770 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16771 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16772 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16773 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16774 | esac |
| 16775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16776 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16777 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16779 | # First look for the input files in the build tree, otherwise in the |
| 16780 | # src tree. |
| 16781 | ac_file_inputs=`IFS=: |
| 16782 | for f in $ac_file_in; do |
| 16783 | case $f in |
| 16784 | -) echo $tmp/stdin ;; |
| 16785 | [\\/$]*) |
| 16786 | # Absolute (can't be DOS-style, as IFS=:) |
| 16787 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16788 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16789 | { (exit 1); exit 1; }; } |
| 16790 | echo $f;; |
| 16791 | *) # Relative |
| 16792 | if test -f "$f"; then |
| 16793 | # Build tree |
| 16794 | echo $f |
| 16795 | elif test -f "$srcdir/$f"; then |
| 16796 | # Source tree |
| 16797 | echo $srcdir/$f |
| 16798 | else |
| 16799 | # /dev/null tree |
| 16800 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16801 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16802 | { (exit 1); exit 1; }; } |
| 16803 | fi;; |
| 16804 | esac |
| 16805 | done` || { (exit 1); exit 1; } |
| 16806 | # Remove the trailing spaces. |
| 16807 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16809 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16811 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16812 | # `conftest.undefs', that substitutes the proper values into |
| 16813 | # config.h.in to produce config.h. The first handles `#define' |
| 16814 | # templates, and the second `#undef' templates. |
| 16815 | # And first: Protect against being on the right side of a sed subst in |
| 16816 | # config.status. Protect against being in an unquoted here document |
| 16817 | # in config.status. |
| 16818 | rm -f conftest.defines conftest.undefs |
| 16819 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16820 | # Putting comments in sed scripts is not portable. |
| 16821 | # |
| 16822 | # `end' is used to avoid that the second main sed command (meant for |
| 16823 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16824 | # See the Autoconf documentation for `clear'. |
| 16825 | cat >confdef2sed.sed <<\_ACEOF |
| 16826 | s/[\\&,]/\\&/g |
| 16827 | s,[\\$`],\\&,g |
| 16828 | t clear |
| 16829 | : clear |
| 16830 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16831 | t end |
| 16832 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16833 | : end |
| 16834 | _ACEOF |
| 16835 | # If some macros were called several times there might be several times |
| 16836 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16837 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16838 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16839 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16840 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16841 | |
| 16842 | # This sed command replaces #undef with comments. This is necessary, for |
| 16843 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16844 | # 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] | 16845 | cat >>conftest.undefs <<\_ACEOF |
| 16846 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16847 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16849 | # Break up conftest.defines because some shells have a limit on the size |
| 16850 | # of here documents, and old seds have small limits too (100 cmds). |
| 16851 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16852 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16853 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16854 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16855 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16856 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16857 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16858 | # Write a limited-size here document to $tmp/defines.sed. |
| 16859 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16860 | # Speed up: don't consider the non `#define' lines. |
| 16861 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16862 | # Work around the forget-to-reset-the-flag bug. |
| 16863 | echo 't clr' >>$CONFIG_STATUS |
| 16864 | echo ': clr' >>$CONFIG_STATUS |
| 16865 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16866 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16867 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16868 | rm -f $tmp/in |
| 16869 | mv $tmp/out $tmp/in |
| 16870 | ' >>$CONFIG_STATUS |
| 16871 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16872 | rm -f conftest.defines |
| 16873 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16874 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16875 | rm -f conftest.defines |
| 16876 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 16877 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16879 | # Break up conftest.undefs because some shells have a limit on the size |
| 16880 | # of here documents, and old seds have small limits too (100 cmds). |
| 16881 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16882 | rm -f conftest.tail |
| 16883 | while grep . conftest.undefs >/dev/null |
| 16884 | do |
| 16885 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16886 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16887 | # Speed up: don't consider the non `#undef' |
| 16888 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16889 | # Work around the forget-to-reset-the-flag bug. |
| 16890 | echo 't clr' >>$CONFIG_STATUS |
| 16891 | echo ': clr' >>$CONFIG_STATUS |
| 16892 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16893 | echo 'CEOF |
| 16894 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16895 | rm -f $tmp/in |
| 16896 | mv $tmp/out $tmp/in |
| 16897 | ' >>$CONFIG_STATUS |
| 16898 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16899 | rm -f conftest.undefs |
| 16900 | mv conftest.tail conftest.undefs |
| 16901 | done |
| 16902 | rm -f conftest.undefs |
| 16903 | |
| 16904 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16905 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16906 | # use $as_me), people would be surprised to read: |
| 16907 | # /* config.h. Generated by config.status. */ |
| 16908 | if test x"$ac_file" = x-; then |
| 16909 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16910 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16911 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16912 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16913 | cat $tmp/in >>$tmp/config.h |
| 16914 | rm -f $tmp/in |
| 16915 | if test x"$ac_file" != x-; then |
| 16916 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 16917 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16918 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16919 | else |
| 16920 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16921 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16922 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16923 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16924 | X"$ac_file" : 'X\(/\)' \| \ |
| 16925 | . : '\(.\)' 2>/dev/null || |
| 16926 | echo X"$ac_file" | |
| 16927 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16928 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16929 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16930 | /^X\(\/\).*/{ s//\1/; q; } |
| 16931 | s/.*/./; q'` |
| 16932 | { case "$ac_dir" in |
| 16933 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16934 | *) as_incr_dir=.;; |
| 16935 | esac |
| 16936 | as_dummy="$ac_dir" |
| 16937 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16938 | case $as_mkdir_dir in |
| 16939 | # Skip DOS drivespec |
| 16940 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16941 | *) |
| 16942 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16943 | test -d "$as_incr_dir" || |
| 16944 | mkdir "$as_incr_dir" || |
| 16945 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16946 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16947 | { (exit 1); exit 1; }; } |
| 16948 | ;; |
| 16949 | esac |
| 16950 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16952 | rm -f $ac_file |
| 16953 | mv $tmp/config.h $ac_file |
| 16954 | fi |
| 16955 | else |
| 16956 | cat $tmp/config.h |
| 16957 | rm -f $tmp/config.h |
| 16958 | fi |
| 16959 | done |
| 16960 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16962 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16964 | { (exit 0); exit 0; } |
| 16965 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16966 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16967 | ac_clean_files=$ac_clean_files_save |
| 16968 | |
| 16969 | |
| 16970 | # configure is writing to config.log, and then calls config.status. |
| 16971 | # config.status does its own redirection, appending to config.log. |
| 16972 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16973 | # by configure, so config.status won't be able to write to it; its |
| 16974 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16975 | # effectively closing config.log, so it can be properly (re)opened and |
| 16976 | # appended to by config.status. When coming back to configure, we |
| 16977 | # need to make the FD available again. |
| 16978 | if test "$no_create" != yes; then |
| 16979 | ac_cs_success=: |
| 16980 | exec 5>/dev/null |
| 16981 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 16982 | exec 5>>config.log |
| 16983 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16984 | # would make configure fail if this is the last instruction. |
| 16985 | $ac_cs_success || { (exit 1); exit 1; } |
| 16986 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16987 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16988 | |
| 16989 | echo "creating Setup" |
| 16990 | if test ! -f Modules/Setup |
| 16991 | then |
| 16992 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 16993 | fi |
| 16994 | |
| 16995 | echo "creating Setup.local" |
| 16996 | if test ! -f Modules/Setup.local |
| 16997 | then |
| 16998 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 16999 | fi |
| 17000 | |
| 17001 | echo "creating Makefile" |
| 17002 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17003 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17004 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17005 | mv config.c Modules |