Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.322 . |
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 |
| 846 | --with(out)-cycle-gc disable/enable garbage collection |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 847 | --with(out)-universal-newlines disable/enable foreign newlines |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 848 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 849 | --with(out)-pymalloc disable/enable specialized mallocs |
| 850 | --with-wctype-functions use wctype.h functions |
| 851 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking |
| 852 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking |
| 853 | --with-fpectl enable SIGFPE catching |
| 854 | --with-libm=STRING math library |
| 855 | --with-libc=STRING C library |
| 856 | |
| 857 | Some influential environment variables: |
| 858 | CC C compiler command |
| 859 | CFLAGS C compiler flags |
| 860 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 861 | nonstandard directory <lib dir> |
| 862 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 863 | headers in a nonstandard directory <include dir> |
| 864 | CPP C preprocessor |
| 865 | |
| 866 | Use these variables to override the choices made by `configure' or to help |
| 867 | it to find libraries and programs with nonstandard names/locations. |
| 868 | |
| 869 | _ACEOF |
| 870 | fi |
| 871 | |
| 872 | if test "$ac_init_help" = "recursive"; then |
| 873 | # If there are subdirs, report their specific --help. |
| 874 | ac_popdir=`pwd` |
| 875 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 876 | test -d $ac_dir || continue |
| 877 | ac_builddir=. |
| 878 | |
| 879 | if test "$ac_dir" != .; then |
| 880 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 881 | # A "../" for each directory in $ac_dir_suffix. |
| 882 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 883 | else |
| 884 | ac_dir_suffix= ac_top_builddir= |
| 885 | fi |
| 886 | |
| 887 | case $srcdir in |
| 888 | .) # No --srcdir option. We are building in place. |
| 889 | ac_srcdir=. |
| 890 | if test -z "$ac_top_builddir"; then |
| 891 | ac_top_srcdir=. |
| 892 | else |
| 893 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 894 | fi ;; |
| 895 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 896 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 897 | ac_top_srcdir=$srcdir ;; |
| 898 | *) # Relative path. |
| 899 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 900 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 901 | esac |
| 902 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 903 | # absolute. |
| 904 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 905 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 906 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 907 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 908 | |
| 909 | cd $ac_dir |
| 910 | # Check for guested configure; otherwise get Cygnus style configure. |
| 911 | if test -f $ac_srcdir/configure.gnu; then |
| 912 | echo |
| 913 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 914 | elif test -f $ac_srcdir/configure; then |
| 915 | echo |
| 916 | $SHELL $ac_srcdir/configure --help=recursive |
| 917 | elif test -f $ac_srcdir/configure.ac || |
| 918 | test -f $ac_srcdir/configure.in; then |
| 919 | echo |
| 920 | $ac_configure --help |
| 921 | else |
| 922 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 923 | fi |
| 924 | cd $ac_popdir |
| 925 | done |
| 926 | fi |
| 927 | |
| 928 | test -n "$ac_init_help" && exit 0 |
| 929 | if $ac_init_version; then |
| 930 | cat <<\_ACEOF |
| 931 | |
| 932 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 933 | Free Software Foundation, Inc. |
| 934 | This configure script is free software; the Free Software Foundation |
| 935 | gives unlimited permission to copy, distribute and modify it. |
| 936 | _ACEOF |
| 937 | exit 0 |
| 938 | fi |
| 939 | exec 5>config.log |
| 940 | cat >&5 <<_ACEOF |
| 941 | This file contains any messages produced by compilers while |
| 942 | running configure, to aid debugging if configure makes a mistake. |
| 943 | |
| 944 | It was created by $as_me, which was |
| 945 | generated by GNU Autoconf 2.53. Invocation command line was |
| 946 | |
| 947 | $ $0 $@ |
| 948 | |
| 949 | _ACEOF |
| 950 | { |
| 951 | cat <<_ASUNAME |
| 952 | ## --------- ## |
| 953 | ## Platform. ## |
| 954 | ## --------- ## |
| 955 | |
| 956 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 957 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 958 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 959 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 960 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 961 | |
| 962 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 963 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 964 | |
| 965 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 966 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 967 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 968 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 969 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 970 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 971 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 972 | |
| 973 | _ASUNAME |
| 974 | |
| 975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 976 | for as_dir in $PATH |
| 977 | do |
| 978 | IFS=$as_save_IFS |
| 979 | test -z "$as_dir" && as_dir=. |
| 980 | echo "PATH: $as_dir" |
| 981 | done |
| 982 | |
| 983 | } >&5 |
| 984 | |
| 985 | cat >&5 <<_ACEOF |
| 986 | |
| 987 | |
| 988 | ## ----------- ## |
| 989 | ## Core tests. ## |
| 990 | ## ----------- ## |
| 991 | |
| 992 | _ACEOF |
| 993 | |
| 994 | |
| 995 | # Keep a trace of the command line. |
| 996 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 997 | # Also quote any args containing shell meta-characters. |
| 998 | ac_configure_args= |
| 999 | ac_sep= |
| 1000 | for ac_arg |
| 1001 | do |
| 1002 | case $ac_arg in |
| 1003 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1004 | | --no-cr | --no-c | -n ) continue ;; |
| 1005 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1006 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1007 | continue ;; |
| 1008 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1009 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1010 | esac |
| 1011 | case " $ac_configure_args " in |
| 1012 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1013 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1014 | ac_sep=" " ;; |
| 1015 | esac |
| 1016 | # Get rid of the leading space. |
| 1017 | done |
| 1018 | |
| 1019 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1020 | # config.log. We remove comments because anyway the quotes in there |
| 1021 | # would cause problems or look ugly. |
| 1022 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1023 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1024 | trap 'exit_status=$? |
| 1025 | # Save into config.log some information that might help in debugging. |
| 1026 | { |
| 1027 | echo |
| 1028 | cat <<\_ASBOX |
| 1029 | ## ---------------- ## |
| 1030 | ## Cache variables. ## |
| 1031 | ## ---------------- ## |
| 1032 | _ASBOX |
| 1033 | echo |
| 1034 | # The following way of writing the cache mishandles newlines in values, |
| 1035 | { |
| 1036 | (set) 2>&1 | |
| 1037 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1038 | *ac_space=\ *) |
| 1039 | sed -n \ |
| 1040 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1041 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1042 | ;; |
| 1043 | *) |
| 1044 | sed -n \ |
| 1045 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1046 | ;; |
| 1047 | esac; |
| 1048 | } |
| 1049 | echo |
| 1050 | if test -s confdefs.h; then |
| 1051 | cat <<\_ASBOX |
| 1052 | ## ----------- ## |
| 1053 | ## confdefs.h. ## |
| 1054 | ## ----------- ## |
| 1055 | _ASBOX |
| 1056 | echo |
| 1057 | sed "/^$/d" confdefs.h |
| 1058 | echo |
| 1059 | fi |
| 1060 | test "$ac_signal" != 0 && |
| 1061 | echo "$as_me: caught signal $ac_signal" |
| 1062 | echo "$as_me: exit $exit_status" |
| 1063 | } >&5 |
| 1064 | rm -f core core.* *.core && |
| 1065 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1066 | exit $exit_status |
| 1067 | ' 0 |
| 1068 | for ac_signal in 1 2 13 15; do |
| 1069 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1070 | done |
| 1071 | ac_signal=0 |
| 1072 | |
| 1073 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1074 | rm -rf conftest* confdefs.h |
| 1075 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1076 | echo >confdefs.h |
| 1077 | |
| 1078 | # Predefined preprocessor variables. |
| 1079 | |
| 1080 | cat >>confdefs.h <<_ACEOF |
| 1081 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1082 | _ACEOF |
| 1083 | |
| 1084 | |
| 1085 | cat >>confdefs.h <<_ACEOF |
| 1086 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1087 | _ACEOF |
| 1088 | |
| 1089 | |
| 1090 | cat >>confdefs.h <<_ACEOF |
| 1091 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1092 | _ACEOF |
| 1093 | |
| 1094 | |
| 1095 | cat >>confdefs.h <<_ACEOF |
| 1096 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1097 | _ACEOF |
| 1098 | |
| 1099 | |
| 1100 | cat >>confdefs.h <<_ACEOF |
| 1101 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1102 | _ACEOF |
| 1103 | |
| 1104 | |
| 1105 | # 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] | 1106 | # Prefer explicitly selected file to automatically selected ones. |
| 1107 | if test -z "$CONFIG_SITE"; then |
| 1108 | if test "x$prefix" != xNONE; then |
| 1109 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1110 | else |
| 1111 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1112 | fi |
| 1113 | fi |
| 1114 | for ac_site_file in $CONFIG_SITE; do |
| 1115 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1116 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1117 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1118 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1119 | . "$ac_site_file" |
| 1120 | fi |
| 1121 | done |
| 1122 | |
| 1123 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1124 | # Some versions of bash will fail to source /dev/null (special |
| 1125 | # files actually), so we avoid doing that. |
| 1126 | if test -f "$cache_file"; then |
| 1127 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1128 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1129 | case $cache_file in |
| 1130 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1131 | *) . ./$cache_file;; |
| 1132 | esac |
| 1133 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1135 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1136 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1137 | >$cache_file |
| 1138 | fi |
| 1139 | |
| 1140 | # Check that the precious variables saved in the cache have kept the same |
| 1141 | # value. |
| 1142 | ac_cache_corrupted=false |
| 1143 | for ac_var in `(set) 2>&1 | |
| 1144 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1145 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1146 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1147 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1148 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1149 | case $ac_old_set,$ac_new_set in |
| 1150 | set,) |
| 1151 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1152 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1153 | ac_cache_corrupted=: ;; |
| 1154 | ,set) |
| 1155 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1156 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1157 | ac_cache_corrupted=: ;; |
| 1158 | ,);; |
| 1159 | *) |
| 1160 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1161 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1162 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1163 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1164 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1165 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1166 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1167 | ac_cache_corrupted=: |
| 1168 | fi;; |
| 1169 | esac |
| 1170 | # Pass precious variables to config.status. |
| 1171 | if test "$ac_new_set" = set; then |
| 1172 | case $ac_new_val in |
| 1173 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1174 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1175 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1176 | esac |
| 1177 | case " $ac_configure_args " in |
| 1178 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1179 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1180 | esac |
| 1181 | fi |
| 1182 | done |
| 1183 | if $ac_cache_corrupted; then |
| 1184 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1185 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1186 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1187 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1188 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1189 | fi |
| 1190 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1191 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1192 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1196 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1197 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1198 | |
| 1199 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1200 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1201 | |
| 1202 | |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | |
| 1214 | ac_config_headers="$ac_config_headers pyconfig.h" |
| 1215 | |
| 1216 | |
| 1217 | # This is for stuff that absolutely must end up in pyconfig.h. |
| 1218 | # Please use pyport.h instead, if possible. |
| 1219 | |
| 1220 | |
| 1221 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1222 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 1223 | |
Andrew M. Kuchling | f2f219d | 2002-02-11 16:31:10 +0000 | [diff] [blame] | 1224 | VERSION=2.3 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1225 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1226 | |
| 1227 | SOVERSION=1.0 |
| 1228 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1229 | # Arguments passed to configure. |
| 1230 | |
| 1231 | CONFIG_ARGS="$ac_configure_args" |
| 1232 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1233 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1234 | # Check whether --enable-framework or --disable-framework was given. |
| 1235 | if test "${enable_framework+set}" = set; then |
| 1236 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1237 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1238 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1239 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1240 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1241 | esac |
| 1242 | case $enableval in |
| 1243 | no) |
| 1244 | PYTHONFRAMEWORK= |
| 1245 | PYTHONFRAMEWORKDIR=no-framework |
| 1246 | PYTHONFRAMEWORKPREFIX= |
| 1247 | PYTHONFRAMEWORKINSTALLDIR= |
| 1248 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1249 | ;; |
| 1250 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1251 | PYTHONFRAMEWORK=Python |
| 1252 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1253 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1254 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1255 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1256 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1257 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1258 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1259 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1260 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1261 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1262 | PYTHONFRAMEWORKPREFIX= |
| 1263 | PYTHONFRAMEWORKINSTALLDIR= |
| 1264 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1265 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1266 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1267 | |
| 1268 | |
| 1269 | |
| 1270 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1271 | |
| 1272 | ##AC_ARG_WITH(dyld, |
| 1273 | ##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,) |
| 1274 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1275 | # Set name for machine-dependent library files |
| 1276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1277 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1278 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1279 | if test -z "$MACHDEP" |
| 1280 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1281 | ac_sys_system=`uname -s` |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1282 | 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] | 1283 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1284 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1285 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1286 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1287 | ac_md_system=`echo $ac_sys_system | |
| 1288 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1289 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1290 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1291 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1292 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1293 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1294 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1295 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1296 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1297 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1298 | esac |
| 1299 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1300 | |
| 1301 | # |
| 1302 | # SGI compilers allow the specification of the both the ABI and the |
| 1303 | # ISA on the command line. Depending on the values of these switches, |
| 1304 | # different and often incompatable code will be generated. |
| 1305 | # |
| 1306 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1307 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1308 | # variable is also adjusted. |
| 1309 | # |
| 1310 | |
| 1311 | if test ! -z "$SGI_ABI" |
| 1312 | then |
| 1313 | CC="cc $SGI_ABI" |
| 1314 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1315 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1316 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1317 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1318 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1319 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1320 | # checks for alternative programs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1321 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1322 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1323 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1324 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1325 | if test "${with_gcc+set}" = set; then |
| 1326 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1327 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1328 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1329 | no) CC=cc |
| 1330 | without_gcc=yes;; |
| 1331 | yes) CC=gcc |
| 1332 | without_gcc=no;; |
| 1333 | *) CC=$withval |
| 1334 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1335 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1336 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1337 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1338 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1339 | AIX*) CC=cc_r |
| 1340 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1341 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1342 | case $BE_HOST_CPU in |
| 1343 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1344 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1345 | without_gcc=yes |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1346 | OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1347 | CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1348 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1349 | ;; |
| 1350 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1351 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1352 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1353 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1354 | ;; |
| 1355 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1356 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1357 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1358 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1359 | ;; |
| 1360 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1361 | AR="\$(srcdir)/Modules/ar_beos" |
| 1362 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1363 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1364 | Monterey*) |
| 1365 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1366 | without_gcc=;; |
| 1367 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1368 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | fi; |
| 1370 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1371 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1372 | |
| 1373 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1374 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1375 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1376 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1377 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1378 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1379 | # Check whether --with-cxx or --without-cxx was given. |
| 1380 | if test "${with_cxx+set}" = set; then |
| 1381 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1382 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1383 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1384 | case $withval in |
| 1385 | no) CXX= |
| 1386 | with_cxx=no;; |
| 1387 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1388 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1389 | with_cxx=$withval;; |
| 1390 | esac |
| 1391 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1393 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1394 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1396 | fi; |
| 1397 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1398 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1399 | |
| 1400 | if test "$with_cxx" = "yes" |
| 1401 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1402 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1403 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1404 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1405 | fi |
| 1406 | |
| 1407 | |
| 1408 | |
| 1409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1410 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1411 | then |
| 1412 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1413 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1414 | # 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] | 1415 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1418 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1420 | else |
| 1421 | if test -n "$CXX"; then |
| 1422 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1425 | for as_dir in $PATH |
| 1426 | do |
| 1427 | IFS=$as_save_IFS |
| 1428 | test -z "$as_dir" && as_dir=. |
| 1429 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1430 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1431 | ac_cv_prog_CXX="$ac_prog" |
| 1432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1433 | break 2 |
| 1434 | fi |
| 1435 | done |
| 1436 | done |
| 1437 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1438 | fi |
| 1439 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1441 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1442 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1443 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1444 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1445 | echo "$as_me:$LINENO: result: no" >&5 |
| 1446 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1447 | fi |
| 1448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1449 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1450 | done |
| 1451 | test -n "$CXX" || CXX="notfound" |
| 1452 | |
| 1453 | if test "$CXX" = "notfound" |
| 1454 | then |
| 1455 | CXX= |
| 1456 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1457 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1458 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1459 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1460 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1461 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1462 | cat >conftest.$ac_ext <<_ACEOF |
| 1463 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1464 | #include "confdefs.h" |
| 1465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1466 | #ifdef F77_DUMMY_MAIN |
| 1467 | # ifdef __cplusplus |
| 1468 | extern "C" |
| 1469 | # endif |
| 1470 | int F77_DUMMY_MAIN() { return 1; } |
| 1471 | #endif |
| 1472 | int |
| 1473 | main () |
| 1474 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1476 | ; |
| 1477 | return 0; |
| 1478 | } |
| 1479 | _ACEOF |
| 1480 | ac_clean_files_save=$ac_clean_files |
| 1481 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1482 | # Try to create an executable without -o first, disregard a.out. |
| 1483 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1484 | # of exeext. |
| 1485 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1486 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1487 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1488 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1489 | (eval $ac_link_default) 2>&5 |
| 1490 | ac_status=$? |
| 1491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1492 | (exit $ac_status); }; then |
| 1493 | # Find the output, starting from the most likely. This scheme is |
| 1494 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1495 | # resort. |
| 1496 | |
| 1497 | # Be careful to initialize this variable, since it used to be cached. |
| 1498 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1499 | ac_cv_exeext= |
| 1500 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1501 | ls a.out conftest 2>/dev/null; |
| 1502 | ls a.* conftest.* 2>/dev/null`; do |
| 1503 | case $ac_file in |
| 1504 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1505 | a.out ) # We found the default executable, but exeext='' is most |
| 1506 | # certainly right. |
| 1507 | break;; |
| 1508 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1509 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1510 | export ac_cv_exeext |
| 1511 | break;; |
| 1512 | * ) break;; |
| 1513 | esac |
| 1514 | done |
| 1515 | else |
| 1516 | echo "$as_me: failed program was:" >&5 |
| 1517 | cat conftest.$ac_ext >&5 |
| 1518 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1519 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
| 1520 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1521 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1522 | |
| 1523 | ac_exeext=$ac_cv_exeext |
| 1524 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1525 | echo "${ECHO_T}$ac_file" >&6 |
| 1526 | |
| 1527 | # Check the compiler produces executables we can run. If not, either |
| 1528 | # the compiler is broken, or we cross compile. |
| 1529 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1530 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1531 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1532 | # If not cross compiling, check that we can run a simple program. |
| 1533 | if test "$cross_compiling" != yes; then |
| 1534 | if { ac_try='./$ac_file' |
| 1535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1536 | (eval $ac_try) 2>&5 |
| 1537 | ac_status=$? |
| 1538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1539 | (exit $ac_status); }; }; then |
| 1540 | cross_compiling=no |
| 1541 | else |
| 1542 | if test "$cross_compiling" = maybe; then |
| 1543 | cross_compiling=yes |
| 1544 | else |
| 1545 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1546 | If you meant to cross compile, use \`--host'." >&5 |
| 1547 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1548 | If you meant to cross compile, use \`--host'." >&2;} |
| 1549 | { (exit 1); exit 1; }; } |
| 1550 | fi |
| 1551 | fi |
| 1552 | fi |
| 1553 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1554 | echo "${ECHO_T}yes" >&6 |
| 1555 | |
| 1556 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1557 | ac_clean_files=$ac_clean_files_save |
| 1558 | # Check the compiler produces executables we can run. If not, either |
| 1559 | # the compiler is broken, or we cross compile. |
| 1560 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1561 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1562 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1563 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1564 | |
| 1565 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1566 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1568 | (eval $ac_link) 2>&5 |
| 1569 | ac_status=$? |
| 1570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1571 | (exit $ac_status); }; then |
| 1572 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1573 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1574 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1575 | # `rm'. |
| 1576 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1577 | case $ac_file in |
| 1578 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1579 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1580 | export ac_cv_exeext |
| 1581 | break;; |
| 1582 | * ) break;; |
| 1583 | esac |
| 1584 | done |
| 1585 | else |
| 1586 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1587 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1588 | { (exit 1); exit 1; }; } |
| 1589 | fi |
| 1590 | |
| 1591 | rm -f conftest$ac_cv_exeext |
| 1592 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1593 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1594 | |
| 1595 | rm -f conftest.$ac_ext |
| 1596 | EXEEXT=$ac_cv_exeext |
| 1597 | ac_exeext=$EXEEXT |
| 1598 | |
| 1599 | ac_ext=c |
| 1600 | ac_cpp='$CPP $CPPFLAGS' |
| 1601 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1602 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1603 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1604 | |
| 1605 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1606 | |
| 1607 | fi |
| 1608 | fi |
| 1609 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1610 | # If the user switches compilers, we can't believe the cache |
| 1611 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1612 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1613 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1614 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1615 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1616 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1617 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1618 | fi |
| 1619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1620 | ac_ext=c |
| 1621 | ac_cpp='$CPP $CPPFLAGS' |
| 1622 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1623 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1624 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1625 | if test -n "$ac_tool_prefix"; then |
| 1626 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1627 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1628 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1630 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1632 | else |
| 1633 | if test -n "$CC"; then |
| 1634 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1635 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1637 | for as_dir in $PATH |
| 1638 | do |
| 1639 | IFS=$as_save_IFS |
| 1640 | test -z "$as_dir" && as_dir=. |
| 1641 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1643 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1645 | break 2 |
| 1646 | fi |
| 1647 | done |
| 1648 | done |
| 1649 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1650 | fi |
| 1651 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1652 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1653 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1654 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1655 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1657 | echo "$as_me:$LINENO: result: no" >&5 |
| 1658 | echo "${ECHO_T}no" >&6 |
| 1659 | fi |
| 1660 | |
| 1661 | fi |
| 1662 | if test -z "$ac_cv_prog_CC"; then |
| 1663 | ac_ct_CC=$CC |
| 1664 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1665 | set dummy gcc; ac_word=$2 |
| 1666 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1668 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1670 | else |
| 1671 | if test -n "$ac_ct_CC"; then |
| 1672 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1673 | else |
| 1674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1675 | for as_dir in $PATH |
| 1676 | do |
| 1677 | IFS=$as_save_IFS |
| 1678 | test -z "$as_dir" && as_dir=. |
| 1679 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1680 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1681 | ac_cv_prog_ac_ct_CC="gcc" |
| 1682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1683 | break 2 |
| 1684 | fi |
| 1685 | done |
| 1686 | done |
| 1687 | |
| 1688 | fi |
| 1689 | fi |
| 1690 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1691 | if test -n "$ac_ct_CC"; then |
| 1692 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1693 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1694 | else |
| 1695 | echo "$as_me:$LINENO: result: no" >&5 |
| 1696 | echo "${ECHO_T}no" >&6 |
| 1697 | fi |
| 1698 | |
| 1699 | CC=$ac_ct_CC |
| 1700 | else |
| 1701 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1702 | fi |
| 1703 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1704 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1705 | if test -n "$ac_tool_prefix"; then |
| 1706 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1707 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1708 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1710 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1712 | else |
| 1713 | if test -n "$CC"; then |
| 1714 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1715 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1717 | for as_dir in $PATH |
| 1718 | do |
| 1719 | IFS=$as_save_IFS |
| 1720 | test -z "$as_dir" && as_dir=. |
| 1721 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1722 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1723 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1724 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1725 | break 2 |
| 1726 | fi |
| 1727 | done |
| 1728 | done |
| 1729 | |
| 1730 | fi |
| 1731 | fi |
| 1732 | CC=$ac_cv_prog_CC |
| 1733 | if test -n "$CC"; then |
| 1734 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1735 | echo "${ECHO_T}$CC" >&6 |
| 1736 | else |
| 1737 | echo "$as_me:$LINENO: result: no" >&5 |
| 1738 | echo "${ECHO_T}no" >&6 |
| 1739 | fi |
| 1740 | |
| 1741 | fi |
| 1742 | if test -z "$ac_cv_prog_CC"; then |
| 1743 | ac_ct_CC=$CC |
| 1744 | # Extract the first word of "cc", so it can be a program name with args. |
| 1745 | set dummy cc; ac_word=$2 |
| 1746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1748 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1750 | else |
| 1751 | if test -n "$ac_ct_CC"; then |
| 1752 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1753 | else |
| 1754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1755 | for as_dir in $PATH |
| 1756 | do |
| 1757 | IFS=$as_save_IFS |
| 1758 | test -z "$as_dir" && as_dir=. |
| 1759 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1761 | ac_cv_prog_ac_ct_CC="cc" |
| 1762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1763 | break 2 |
| 1764 | fi |
| 1765 | done |
| 1766 | done |
| 1767 | |
| 1768 | fi |
| 1769 | fi |
| 1770 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1771 | if test -n "$ac_ct_CC"; then |
| 1772 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1773 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1774 | else |
| 1775 | echo "$as_me:$LINENO: result: no" >&5 |
| 1776 | echo "${ECHO_T}no" >&6 |
| 1777 | fi |
| 1778 | |
| 1779 | CC=$ac_ct_CC |
| 1780 | else |
| 1781 | CC="$ac_cv_prog_CC" |
| 1782 | fi |
| 1783 | |
| 1784 | fi |
| 1785 | if test -z "$CC"; then |
| 1786 | # Extract the first word of "cc", so it can be a program name with args. |
| 1787 | set dummy cc; ac_word=$2 |
| 1788 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1790 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1792 | else |
| 1793 | if test -n "$CC"; then |
| 1794 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1795 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1796 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1798 | for as_dir in $PATH |
| 1799 | do |
| 1800 | IFS=$as_save_IFS |
| 1801 | test -z "$as_dir" && as_dir=. |
| 1802 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1803 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1804 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1805 | ac_prog_rejected=yes |
| 1806 | continue |
| 1807 | fi |
| 1808 | ac_cv_prog_CC="cc" |
| 1809 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1810 | break 2 |
| 1811 | fi |
| 1812 | done |
| 1813 | done |
| 1814 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1815 | if test $ac_prog_rejected = yes; then |
| 1816 | # We found a bogon in the path, so make sure we never use it. |
| 1817 | set dummy $ac_cv_prog_CC |
| 1818 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1819 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1820 | # We chose a different compiler from the bogus one. |
| 1821 | # However, it has the same basename, so the bogon will be chosen |
| 1822 | # first if we set CC to just the basename; use the full file name. |
| 1823 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1824 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1825 | shift |
| 1826 | ac_cv_prog_CC="$@" |
| 1827 | fi |
| 1828 | fi |
| 1829 | fi |
| 1830 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1831 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1832 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1833 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1834 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1835 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1836 | echo "$as_me:$LINENO: result: no" >&5 |
| 1837 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1838 | fi |
| 1839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1840 | fi |
| 1841 | if test -z "$CC"; then |
| 1842 | if test -n "$ac_tool_prefix"; then |
| 1843 | for ac_prog in cl |
| 1844 | do |
| 1845 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1846 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1847 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1849 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1851 | else |
| 1852 | if test -n "$CC"; then |
| 1853 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1856 | for as_dir in $PATH |
| 1857 | do |
| 1858 | IFS=$as_save_IFS |
| 1859 | test -z "$as_dir" && as_dir=. |
| 1860 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1861 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1862 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1863 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1864 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1865 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1866 | done |
| 1867 | done |
| 1868 | |
| 1869 | fi |
| 1870 | fi |
| 1871 | CC=$ac_cv_prog_CC |
| 1872 | if test -n "$CC"; then |
| 1873 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1874 | echo "${ECHO_T}$CC" >&6 |
| 1875 | else |
| 1876 | echo "$as_me:$LINENO: result: no" >&5 |
| 1877 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1878 | fi |
| 1879 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1880 | test -n "$CC" && break |
| 1881 | done |
| 1882 | fi |
| 1883 | if test -z "$CC"; then |
| 1884 | ac_ct_CC=$CC |
| 1885 | for ac_prog in cl |
| 1886 | do |
| 1887 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1888 | set dummy $ac_prog; ac_word=$2 |
| 1889 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1891 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1893 | else |
| 1894 | if test -n "$ac_ct_CC"; then |
| 1895 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1896 | else |
| 1897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1898 | for as_dir in $PATH |
| 1899 | do |
| 1900 | IFS=$as_save_IFS |
| 1901 | test -z "$as_dir" && as_dir=. |
| 1902 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1903 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1904 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1906 | break 2 |
| 1907 | fi |
| 1908 | done |
| 1909 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1911 | fi |
| 1912 | fi |
| 1913 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1914 | if test -n "$ac_ct_CC"; then |
| 1915 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1916 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1917 | else |
| 1918 | echo "$as_me:$LINENO: result: no" >&5 |
| 1919 | echo "${ECHO_T}no" >&6 |
| 1920 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1921 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1922 | test -n "$ac_ct_CC" && break |
| 1923 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1924 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1925 | CC=$ac_ct_CC |
| 1926 | fi |
| 1927 | |
| 1928 | fi |
| 1929 | |
| 1930 | |
| 1931 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1932 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 1933 | { (exit 1); exit 1; }; } |
| 1934 | |
| 1935 | # Provide some information about the compiler. |
| 1936 | echo "$as_me:$LINENO:" \ |
| 1937 | "checking for C compiler version" >&5 |
| 1938 | ac_compiler=`set X $ac_compile; echo $2` |
| 1939 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1940 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1941 | ac_status=$? |
| 1942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1943 | (exit $ac_status); } |
| 1944 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1945 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1946 | ac_status=$? |
| 1947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1948 | (exit $ac_status); } |
| 1949 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1950 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1951 | ac_status=$? |
| 1952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1953 | (exit $ac_status); } |
| 1954 | |
| 1955 | cat >conftest.$ac_ext <<_ACEOF |
| 1956 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1957 | #include "confdefs.h" |
| 1958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1959 | #ifdef F77_DUMMY_MAIN |
| 1960 | # ifdef __cplusplus |
| 1961 | extern "C" |
| 1962 | # endif |
| 1963 | int F77_DUMMY_MAIN() { return 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1964 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1965 | int |
| 1966 | main () |
| 1967 | { |
| 1968 | |
| 1969 | ; |
| 1970 | return 0; |
| 1971 | } |
| 1972 | _ACEOF |
| 1973 | ac_clean_files_save=$ac_clean_files |
| 1974 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1975 | # Try to create an executable without -o first, disregard a.out. |
| 1976 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1977 | # of exeext. |
| 1978 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 1979 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1980 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1981 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1982 | (eval $ac_link_default) 2>&5 |
| 1983 | ac_status=$? |
| 1984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1985 | (exit $ac_status); }; then |
| 1986 | # Find the output, starting from the most likely. This scheme is |
| 1987 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1988 | # resort. |
| 1989 | |
| 1990 | # Be careful to initialize this variable, since it used to be cached. |
| 1991 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1992 | ac_cv_exeext= |
| 1993 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1994 | ls a.out conftest 2>/dev/null; |
| 1995 | ls a.* conftest.* 2>/dev/null`; do |
| 1996 | case $ac_file in |
| 1997 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1998 | a.out ) # We found the default executable, but exeext='' is most |
| 1999 | # certainly right. |
| 2000 | break;; |
| 2001 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2002 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2003 | export ac_cv_exeext |
| 2004 | break;; |
| 2005 | * ) break;; |
| 2006 | esac |
| 2007 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2008 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2009 | echo "$as_me: failed program was:" >&5 |
| 2010 | cat conftest.$ac_ext >&5 |
| 2011 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2012 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2013 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2014 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2016 | ac_exeext=$ac_cv_exeext |
| 2017 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2018 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2020 | # Check the compiler produces executables we can run. If not, either |
| 2021 | # the compiler is broken, or we cross compile. |
| 2022 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2023 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2024 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2025 | # If not cross compiling, check that we can run a simple program. |
| 2026 | if test "$cross_compiling" != yes; then |
| 2027 | if { ac_try='./$ac_file' |
| 2028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2029 | (eval $ac_try) 2>&5 |
| 2030 | ac_status=$? |
| 2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2032 | (exit $ac_status); }; }; then |
| 2033 | cross_compiling=no |
| 2034 | else |
| 2035 | if test "$cross_compiling" = maybe; then |
| 2036 | cross_compiling=yes |
| 2037 | else |
| 2038 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2039 | If you meant to cross compile, use \`--host'." >&5 |
| 2040 | echo "$as_me: error: cannot run C compiled programs. |
| 2041 | If you meant to cross compile, use \`--host'." >&2;} |
| 2042 | { (exit 1); exit 1; }; } |
| 2043 | fi |
| 2044 | fi |
| 2045 | fi |
| 2046 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2047 | echo "${ECHO_T}yes" >&6 |
| 2048 | |
| 2049 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2050 | ac_clean_files=$ac_clean_files_save |
| 2051 | # Check the compiler produces executables we can run. If not, either |
| 2052 | # the compiler is broken, or we cross compile. |
| 2053 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2054 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2055 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2056 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2057 | |
| 2058 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2059 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2061 | (eval $ac_link) 2>&5 |
| 2062 | ac_status=$? |
| 2063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2064 | (exit $ac_status); }; then |
| 2065 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2066 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2067 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2068 | # `rm'. |
| 2069 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2070 | case $ac_file in |
| 2071 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2072 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2073 | export ac_cv_exeext |
| 2074 | break;; |
| 2075 | * ) break;; |
| 2076 | esac |
| 2077 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2078 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2079 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2080 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2081 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2082 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2084 | rm -f conftest$ac_cv_exeext |
| 2085 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2086 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2087 | |
| 2088 | rm -f conftest.$ac_ext |
| 2089 | EXEEXT=$ac_cv_exeext |
| 2090 | ac_exeext=$EXEEXT |
| 2091 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2092 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2093 | if test "${ac_cv_objext+set}" = set; then |
| 2094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2095 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2096 | cat >conftest.$ac_ext <<_ACEOF |
| 2097 | #line $LINENO "configure" |
| 2098 | #include "confdefs.h" |
| 2099 | |
| 2100 | #ifdef F77_DUMMY_MAIN |
| 2101 | # ifdef __cplusplus |
| 2102 | extern "C" |
| 2103 | # endif |
| 2104 | int F77_DUMMY_MAIN() { return 1; } |
| 2105 | #endif |
| 2106 | int |
| 2107 | main () |
| 2108 | { |
| 2109 | |
| 2110 | ; |
| 2111 | return 0; |
| 2112 | } |
| 2113 | _ACEOF |
| 2114 | rm -f conftest.o conftest.obj |
| 2115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2116 | (eval $ac_compile) 2>&5 |
| 2117 | ac_status=$? |
| 2118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2119 | (exit $ac_status); }; then |
| 2120 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2121 | case $ac_file in |
| 2122 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2123 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2124 | break;; |
| 2125 | esac |
| 2126 | done |
| 2127 | else |
| 2128 | echo "$as_me: failed program was:" >&5 |
| 2129 | cat conftest.$ac_ext >&5 |
| 2130 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2131 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2132 | { (exit 1); exit 1; }; } |
| 2133 | fi |
| 2134 | |
| 2135 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2136 | fi |
| 2137 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2138 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2139 | OBJEXT=$ac_cv_objext |
| 2140 | ac_objext=$OBJEXT |
| 2141 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2142 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2143 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2145 | else |
| 2146 | cat >conftest.$ac_ext <<_ACEOF |
| 2147 | #line $LINENO "configure" |
| 2148 | #include "confdefs.h" |
| 2149 | |
| 2150 | #ifdef F77_DUMMY_MAIN |
| 2151 | # ifdef __cplusplus |
| 2152 | extern "C" |
| 2153 | # endif |
| 2154 | int F77_DUMMY_MAIN() { return 1; } |
| 2155 | #endif |
| 2156 | int |
| 2157 | main () |
| 2158 | { |
| 2159 | #ifndef __GNUC__ |
| 2160 | choke me |
| 2161 | #endif |
| 2162 | |
| 2163 | ; |
| 2164 | return 0; |
| 2165 | } |
| 2166 | _ACEOF |
| 2167 | rm -f conftest.$ac_objext |
| 2168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2169 | (eval $ac_compile) 2>&5 |
| 2170 | ac_status=$? |
| 2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2172 | (exit $ac_status); } && |
| 2173 | { ac_try='test -s conftest.$ac_objext' |
| 2174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2175 | (eval $ac_try) 2>&5 |
| 2176 | ac_status=$? |
| 2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2178 | (exit $ac_status); }; }; then |
| 2179 | ac_compiler_gnu=yes |
| 2180 | else |
| 2181 | echo "$as_me: failed program was:" >&5 |
| 2182 | cat conftest.$ac_ext >&5 |
| 2183 | ac_compiler_gnu=no |
| 2184 | fi |
| 2185 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2186 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2187 | |
| 2188 | fi |
| 2189 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2190 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2191 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2192 | ac_test_CFLAGS=${CFLAGS+set} |
| 2193 | ac_save_CFLAGS=$CFLAGS |
| 2194 | CFLAGS="-g" |
| 2195 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2196 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2197 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2199 | else |
| 2200 | cat >conftest.$ac_ext <<_ACEOF |
| 2201 | #line $LINENO "configure" |
| 2202 | #include "confdefs.h" |
| 2203 | |
| 2204 | #ifdef F77_DUMMY_MAIN |
| 2205 | # ifdef __cplusplus |
| 2206 | extern "C" |
| 2207 | # endif |
| 2208 | int F77_DUMMY_MAIN() { return 1; } |
| 2209 | #endif |
| 2210 | int |
| 2211 | main () |
| 2212 | { |
| 2213 | |
| 2214 | ; |
| 2215 | return 0; |
| 2216 | } |
| 2217 | _ACEOF |
| 2218 | rm -f conftest.$ac_objext |
| 2219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2220 | (eval $ac_compile) 2>&5 |
| 2221 | ac_status=$? |
| 2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2223 | (exit $ac_status); } && |
| 2224 | { ac_try='test -s conftest.$ac_objext' |
| 2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2226 | (eval $ac_try) 2>&5 |
| 2227 | ac_status=$? |
| 2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2229 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2230 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2232 | echo "$as_me: failed program was:" >&5 |
| 2233 | cat conftest.$ac_ext >&5 |
| 2234 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2235 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2236 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2237 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2238 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2239 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2240 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2241 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2242 | elif test $ac_cv_prog_cc_g = yes; then |
| 2243 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2244 | CFLAGS="-g -O2" |
| 2245 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2246 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2247 | fi |
| 2248 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2249 | if test "$GCC" = yes; then |
| 2250 | CFLAGS="-O2" |
| 2251 | else |
| 2252 | CFLAGS= |
| 2253 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2254 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2255 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2256 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2257 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2258 | # the declaration of exit, since it's the most demanding environment. |
| 2259 | cat >conftest.$ac_ext <<_ACEOF |
| 2260 | #ifndef __cplusplus |
| 2261 | choke me |
| 2262 | #endif |
| 2263 | _ACEOF |
| 2264 | rm -f conftest.$ac_objext |
| 2265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2266 | (eval $ac_compile) 2>&5 |
| 2267 | ac_status=$? |
| 2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2269 | (exit $ac_status); } && |
| 2270 | { ac_try='test -s conftest.$ac_objext' |
| 2271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2272 | (eval $ac_try) 2>&5 |
| 2273 | ac_status=$? |
| 2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2275 | (exit $ac_status); }; }; then |
| 2276 | for ac_declaration in \ |
| 2277 | ''\ |
| 2278 | '#include <stdlib.h>' \ |
| 2279 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2280 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2281 | 'extern "C" void exit (int) throw ();' \ |
| 2282 | 'extern "C" void exit (int);' \ |
| 2283 | 'void exit (int);' |
| 2284 | do |
| 2285 | cat >conftest.$ac_ext <<_ACEOF |
| 2286 | #line $LINENO "configure" |
| 2287 | #include "confdefs.h" |
| 2288 | #include <stdlib.h> |
| 2289 | $ac_declaration |
| 2290 | #ifdef F77_DUMMY_MAIN |
| 2291 | # ifdef __cplusplus |
| 2292 | extern "C" |
| 2293 | # endif |
| 2294 | int F77_DUMMY_MAIN() { return 1; } |
| 2295 | #endif |
| 2296 | int |
| 2297 | main () |
| 2298 | { |
| 2299 | exit (42); |
| 2300 | ; |
| 2301 | return 0; |
| 2302 | } |
| 2303 | _ACEOF |
| 2304 | rm -f conftest.$ac_objext |
| 2305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2306 | (eval $ac_compile) 2>&5 |
| 2307 | ac_status=$? |
| 2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2309 | (exit $ac_status); } && |
| 2310 | { ac_try='test -s conftest.$ac_objext' |
| 2311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2312 | (eval $ac_try) 2>&5 |
| 2313 | ac_status=$? |
| 2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2315 | (exit $ac_status); }; }; then |
| 2316 | : |
| 2317 | else |
| 2318 | echo "$as_me: failed program was:" >&5 |
| 2319 | cat conftest.$ac_ext >&5 |
| 2320 | continue |
| 2321 | fi |
| 2322 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2323 | cat >conftest.$ac_ext <<_ACEOF |
| 2324 | #line $LINENO "configure" |
| 2325 | #include "confdefs.h" |
| 2326 | $ac_declaration |
| 2327 | #ifdef F77_DUMMY_MAIN |
| 2328 | # ifdef __cplusplus |
| 2329 | extern "C" |
| 2330 | # endif |
| 2331 | int F77_DUMMY_MAIN() { return 1; } |
| 2332 | #endif |
| 2333 | int |
| 2334 | main () |
| 2335 | { |
| 2336 | exit (42); |
| 2337 | ; |
| 2338 | return 0; |
| 2339 | } |
| 2340 | _ACEOF |
| 2341 | rm -f conftest.$ac_objext |
| 2342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2343 | (eval $ac_compile) 2>&5 |
| 2344 | ac_status=$? |
| 2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2346 | (exit $ac_status); } && |
| 2347 | { ac_try='test -s conftest.$ac_objext' |
| 2348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2349 | (eval $ac_try) 2>&5 |
| 2350 | ac_status=$? |
| 2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2352 | (exit $ac_status); }; }; then |
| 2353 | break |
| 2354 | else |
| 2355 | echo "$as_me: failed program was:" >&5 |
| 2356 | cat conftest.$ac_ext >&5 |
| 2357 | fi |
| 2358 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2359 | done |
| 2360 | rm -f conftest* |
| 2361 | if test -n "$ac_declaration"; then |
| 2362 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2363 | echo $ac_declaration >>confdefs.h |
| 2364 | echo '#endif' >>confdefs.h |
| 2365 | fi |
| 2366 | |
| 2367 | else |
| 2368 | echo "$as_me: failed program was:" >&5 |
| 2369 | cat conftest.$ac_ext >&5 |
| 2370 | fi |
| 2371 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2372 | ac_ext=c |
| 2373 | ac_cpp='$CPP $CPPFLAGS' |
| 2374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2377 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2378 | |
| 2379 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2380 | |
| 2381 | ac_ext=c |
| 2382 | ac_cpp='$CPP $CPPFLAGS' |
| 2383 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2384 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2385 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2386 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2387 | 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] | 2388 | # On Suns, sometimes $CPP names a directory. |
| 2389 | if test -n "$CPP" && test -d "$CPP"; then |
| 2390 | CPP= |
| 2391 | fi |
| 2392 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2393 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2395 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2396 | # Double quotes because CPP needs to be expanded |
| 2397 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2398 | do |
| 2399 | ac_preproc_ok=false |
| 2400 | for ac_c_preproc_warn_flag in '' yes |
| 2401 | do |
| 2402 | # Use a header file that comes with gcc, so configuring glibc |
| 2403 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2404 | # 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] | 2405 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2406 | cat >conftest.$ac_ext <<_ACEOF |
| 2407 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2408 | #include "confdefs.h" |
| 2409 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2410 | Syntax error |
| 2411 | _ACEOF |
| 2412 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2413 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2414 | ac_status=$? |
| 2415 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2416 | rm -f conftest.er1 |
| 2417 | cat conftest.err >&5 |
| 2418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2419 | (exit $ac_status); } >/dev/null; then |
| 2420 | if test -s conftest.err; then |
| 2421 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2422 | else |
| 2423 | ac_cpp_err= |
| 2424 | fi |
| 2425 | else |
| 2426 | ac_cpp_err=yes |
| 2427 | fi |
| 2428 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2429 | : |
| 2430 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2431 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2432 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2433 | # Broken: fails on valid input. |
| 2434 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2435 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2436 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2437 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2438 | # OK, works on sane cases. Now check whether non-existent headers |
| 2439 | # can be detected and how. |
| 2440 | cat >conftest.$ac_ext <<_ACEOF |
| 2441 | #line $LINENO "configure" |
| 2442 | #include "confdefs.h" |
| 2443 | #include <ac_nonexistent.h> |
| 2444 | _ACEOF |
| 2445 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2446 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2447 | ac_status=$? |
| 2448 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2449 | rm -f conftest.er1 |
| 2450 | cat conftest.err >&5 |
| 2451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2452 | (exit $ac_status); } >/dev/null; then |
| 2453 | if test -s conftest.err; then |
| 2454 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2455 | else |
| 2456 | ac_cpp_err= |
| 2457 | fi |
| 2458 | else |
| 2459 | ac_cpp_err=yes |
| 2460 | fi |
| 2461 | if test -z "$ac_cpp_err"; then |
| 2462 | # Broken: success on invalid input. |
| 2463 | continue |
| 2464 | else |
| 2465 | echo "$as_me: failed program was:" >&5 |
| 2466 | cat conftest.$ac_ext >&5 |
| 2467 | # Passes both tests. |
| 2468 | ac_preproc_ok=: |
| 2469 | break |
| 2470 | fi |
| 2471 | rm -f conftest.err conftest.$ac_ext |
| 2472 | |
| 2473 | done |
| 2474 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2475 | rm -f conftest.err conftest.$ac_ext |
| 2476 | if $ac_preproc_ok; then |
| 2477 | break |
| 2478 | fi |
| 2479 | |
| 2480 | done |
| 2481 | ac_cv_prog_CPP=$CPP |
| 2482 | |
| 2483 | fi |
| 2484 | CPP=$ac_cv_prog_CPP |
| 2485 | else |
| 2486 | ac_cv_prog_CPP=$CPP |
| 2487 | fi |
| 2488 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2489 | echo "${ECHO_T}$CPP" >&6 |
| 2490 | ac_preproc_ok=false |
| 2491 | for ac_c_preproc_warn_flag in '' yes |
| 2492 | do |
| 2493 | # Use a header file that comes with gcc, so configuring glibc |
| 2494 | # with a fresh cross-compiler works. |
| 2495 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2496 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2497 | cat >conftest.$ac_ext <<_ACEOF |
| 2498 | #line $LINENO "configure" |
| 2499 | #include "confdefs.h" |
| 2500 | #include <assert.h> |
| 2501 | Syntax error |
| 2502 | _ACEOF |
| 2503 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2504 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2505 | ac_status=$? |
| 2506 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2507 | rm -f conftest.er1 |
| 2508 | cat conftest.err >&5 |
| 2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2510 | (exit $ac_status); } >/dev/null; then |
| 2511 | if test -s conftest.err; then |
| 2512 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2513 | else |
| 2514 | ac_cpp_err= |
| 2515 | fi |
| 2516 | else |
| 2517 | ac_cpp_err=yes |
| 2518 | fi |
| 2519 | if test -z "$ac_cpp_err"; then |
| 2520 | : |
| 2521 | else |
| 2522 | echo "$as_me: failed program was:" >&5 |
| 2523 | cat conftest.$ac_ext >&5 |
| 2524 | # Broken: fails on valid input. |
| 2525 | continue |
| 2526 | fi |
| 2527 | rm -f conftest.err conftest.$ac_ext |
| 2528 | |
| 2529 | # OK, works on sane cases. Now check whether non-existent headers |
| 2530 | # can be detected and how. |
| 2531 | cat >conftest.$ac_ext <<_ACEOF |
| 2532 | #line $LINENO "configure" |
| 2533 | #include "confdefs.h" |
| 2534 | #include <ac_nonexistent.h> |
| 2535 | _ACEOF |
| 2536 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2537 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2538 | ac_status=$? |
| 2539 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2540 | rm -f conftest.er1 |
| 2541 | cat conftest.err >&5 |
| 2542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2543 | (exit $ac_status); } >/dev/null; then |
| 2544 | if test -s conftest.err; then |
| 2545 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2546 | else |
| 2547 | ac_cpp_err= |
| 2548 | fi |
| 2549 | else |
| 2550 | ac_cpp_err=yes |
| 2551 | fi |
| 2552 | if test -z "$ac_cpp_err"; then |
| 2553 | # Broken: success on invalid input. |
| 2554 | continue |
| 2555 | else |
| 2556 | echo "$as_me: failed program was:" >&5 |
| 2557 | cat conftest.$ac_ext >&5 |
| 2558 | # Passes both tests. |
| 2559 | ac_preproc_ok=: |
| 2560 | break |
| 2561 | fi |
| 2562 | rm -f conftest.err conftest.$ac_ext |
| 2563 | |
| 2564 | done |
| 2565 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2566 | rm -f conftest.err conftest.$ac_ext |
| 2567 | if $ac_preproc_ok; then |
| 2568 | : |
| 2569 | else |
| 2570 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2571 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2572 | { (exit 1); exit 1; }; } |
| 2573 | fi |
| 2574 | |
| 2575 | ac_ext=c |
| 2576 | ac_cpp='$CPP $CPPFLAGS' |
| 2577 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2578 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2579 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2580 | |
| 2581 | |
| 2582 | |
| 2583 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2584 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2585 | cat >conftest.$ac_ext <<_ACEOF |
| 2586 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2587 | #include "confdefs.h" |
| 2588 | #ifdef _AIX |
| 2589 | yes |
| 2590 | #endif |
| 2591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2592 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2593 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2594 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2595 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2596 | echo "${ECHO_T}yes" >&6 |
| 2597 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2598 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2599 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2600 | |
| 2601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2602 | echo "$as_me:$LINENO: result: no" >&5 |
| 2603 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2604 | fi |
| 2605 | rm -f conftest* |
| 2606 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2609 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2610 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2613 | cat >conftest.$ac_ext <<_ACEOF |
| 2614 | #line $LINENO "configure" |
| 2615 | #include "confdefs.h" |
| 2616 | #include <stdlib.h> |
| 2617 | #include <stdarg.h> |
| 2618 | #include <string.h> |
| 2619 | #include <float.h> |
| 2620 | |
| 2621 | _ACEOF |
| 2622 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2623 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2624 | ac_status=$? |
| 2625 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2626 | rm -f conftest.er1 |
| 2627 | cat conftest.err >&5 |
| 2628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2629 | (exit $ac_status); } >/dev/null; then |
| 2630 | if test -s conftest.err; then |
| 2631 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2632 | else |
| 2633 | ac_cpp_err= |
| 2634 | fi |
| 2635 | else |
| 2636 | ac_cpp_err=yes |
| 2637 | fi |
| 2638 | if test -z "$ac_cpp_err"; then |
| 2639 | ac_cv_header_stdc=yes |
| 2640 | else |
| 2641 | echo "$as_me: failed program was:" >&5 |
| 2642 | cat conftest.$ac_ext >&5 |
| 2643 | ac_cv_header_stdc=no |
| 2644 | fi |
| 2645 | rm -f conftest.err conftest.$ac_ext |
| 2646 | |
| 2647 | if test $ac_cv_header_stdc = yes; then |
| 2648 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2649 | cat >conftest.$ac_ext <<_ACEOF |
| 2650 | #line $LINENO "configure" |
| 2651 | #include "confdefs.h" |
| 2652 | #include <string.h> |
| 2653 | |
| 2654 | _ACEOF |
| 2655 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2656 | egrep "memchr" >/dev/null 2>&1; then |
| 2657 | : |
| 2658 | else |
| 2659 | ac_cv_header_stdc=no |
| 2660 | fi |
| 2661 | rm -f conftest* |
| 2662 | |
| 2663 | fi |
| 2664 | |
| 2665 | if test $ac_cv_header_stdc = yes; then |
| 2666 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2667 | cat >conftest.$ac_ext <<_ACEOF |
| 2668 | #line $LINENO "configure" |
| 2669 | #include "confdefs.h" |
| 2670 | #include <stdlib.h> |
| 2671 | |
| 2672 | _ACEOF |
| 2673 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2674 | egrep "free" >/dev/null 2>&1; then |
| 2675 | : |
| 2676 | else |
| 2677 | ac_cv_header_stdc=no |
| 2678 | fi |
| 2679 | rm -f conftest* |
| 2680 | |
| 2681 | fi |
| 2682 | |
| 2683 | if test $ac_cv_header_stdc = yes; then |
| 2684 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2685 | if test "$cross_compiling" = yes; then |
| 2686 | : |
| 2687 | else |
| 2688 | cat >conftest.$ac_ext <<_ACEOF |
| 2689 | #line $LINENO "configure" |
| 2690 | #include "confdefs.h" |
| 2691 | #include <ctype.h> |
| 2692 | #if ((' ' & 0x0FF) == 0x020) |
| 2693 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2694 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2695 | #else |
| 2696 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2697 | || ('j' <= (c) && (c) <= 'r') \ |
| 2698 | || ('s' <= (c) && (c) <= 'z')) |
| 2699 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2700 | #endif |
| 2701 | |
| 2702 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2703 | int |
| 2704 | main () |
| 2705 | { |
| 2706 | int i; |
| 2707 | for (i = 0; i < 256; i++) |
| 2708 | if (XOR (islower (i), ISLOWER (i)) |
| 2709 | || toupper (i) != TOUPPER (i)) |
| 2710 | exit(2); |
| 2711 | exit (0); |
| 2712 | } |
| 2713 | _ACEOF |
| 2714 | rm -f conftest$ac_exeext |
| 2715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2716 | (eval $ac_link) 2>&5 |
| 2717 | ac_status=$? |
| 2718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2719 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2721 | (eval $ac_try) 2>&5 |
| 2722 | ac_status=$? |
| 2723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2724 | (exit $ac_status); }; }; then |
| 2725 | : |
| 2726 | else |
| 2727 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2728 | echo "$as_me: failed program was:" >&5 |
| 2729 | cat conftest.$ac_ext >&5 |
| 2730 | ( exit $ac_status ) |
| 2731 | ac_cv_header_stdc=no |
| 2732 | fi |
| 2733 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2734 | fi |
| 2735 | fi |
| 2736 | fi |
| 2737 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2738 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2739 | if test $ac_cv_header_stdc = yes; then |
| 2740 | |
| 2741 | cat >>confdefs.h <<\_ACEOF |
| 2742 | #define STDC_HEADERS 1 |
| 2743 | _ACEOF |
| 2744 | |
| 2745 | fi |
| 2746 | |
| 2747 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2748 | |
| 2749 | |
| 2750 | |
| 2751 | |
| 2752 | |
| 2753 | |
| 2754 | |
| 2755 | |
| 2756 | |
| 2757 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2758 | inttypes.h stdint.h unistd.h |
| 2759 | do |
| 2760 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2761 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2763 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2765 | else |
| 2766 | cat >conftest.$ac_ext <<_ACEOF |
| 2767 | #line $LINENO "configure" |
| 2768 | #include "confdefs.h" |
| 2769 | $ac_includes_default |
| 2770 | |
| 2771 | #include <$ac_header> |
| 2772 | _ACEOF |
| 2773 | rm -f conftest.$ac_objext |
| 2774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2775 | (eval $ac_compile) 2>&5 |
| 2776 | ac_status=$? |
| 2777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2778 | (exit $ac_status); } && |
| 2779 | { ac_try='test -s conftest.$ac_objext' |
| 2780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2781 | (eval $ac_try) 2>&5 |
| 2782 | ac_status=$? |
| 2783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2784 | (exit $ac_status); }; }; then |
| 2785 | eval "$as_ac_Header=yes" |
| 2786 | else |
| 2787 | echo "$as_me: failed program was:" >&5 |
| 2788 | cat conftest.$ac_ext >&5 |
| 2789 | eval "$as_ac_Header=no" |
| 2790 | fi |
| 2791 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2792 | fi |
| 2793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2794 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2795 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2796 | cat >>confdefs.h <<_ACEOF |
| 2797 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2798 | _ACEOF |
| 2799 | |
| 2800 | fi |
| 2801 | |
| 2802 | done |
| 2803 | |
| 2804 | |
| 2805 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2806 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2807 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2808 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2810 | fi |
| 2811 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2812 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2813 | else |
| 2814 | # Is the header compilable? |
| 2815 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2816 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2817 | cat >conftest.$ac_ext <<_ACEOF |
| 2818 | #line $LINENO "configure" |
| 2819 | #include "confdefs.h" |
| 2820 | $ac_includes_default |
| 2821 | #include <minix/config.h> |
| 2822 | _ACEOF |
| 2823 | rm -f conftest.$ac_objext |
| 2824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2825 | (eval $ac_compile) 2>&5 |
| 2826 | ac_status=$? |
| 2827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2828 | (exit $ac_status); } && |
| 2829 | { ac_try='test -s conftest.$ac_objext' |
| 2830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2831 | (eval $ac_try) 2>&5 |
| 2832 | ac_status=$? |
| 2833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2834 | (exit $ac_status); }; }; then |
| 2835 | ac_header_compiler=yes |
| 2836 | else |
| 2837 | echo "$as_me: failed program was:" >&5 |
| 2838 | cat conftest.$ac_ext >&5 |
| 2839 | ac_header_compiler=no |
| 2840 | fi |
| 2841 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2842 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2843 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2844 | |
| 2845 | # Is the header present? |
| 2846 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2847 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2848 | cat >conftest.$ac_ext <<_ACEOF |
| 2849 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2850 | #include "confdefs.h" |
| 2851 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2852 | _ACEOF |
| 2853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2854 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2855 | ac_status=$? |
| 2856 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2857 | rm -f conftest.er1 |
| 2858 | cat conftest.err >&5 |
| 2859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2860 | (exit $ac_status); } >/dev/null; then |
| 2861 | if test -s conftest.err; then |
| 2862 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2863 | else |
| 2864 | ac_cpp_err= |
| 2865 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2867 | ac_cpp_err=yes |
| 2868 | fi |
| 2869 | if test -z "$ac_cpp_err"; then |
| 2870 | ac_header_preproc=yes |
| 2871 | else |
| 2872 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2873 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2874 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2875 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2876 | rm -f conftest.err conftest.$ac_ext |
| 2877 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2878 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2879 | |
| 2880 | # So? What about this header? |
| 2881 | case $ac_header_compiler:$ac_header_preproc in |
| 2882 | yes:no ) |
| 2883 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2884 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2885 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2886 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2887 | no:yes ) |
| 2888 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2889 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2890 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2891 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2892 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2893 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2894 | esac |
| 2895 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2896 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2897 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2899 | else |
| 2900 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2901 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2902 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2903 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2904 | |
| 2905 | fi |
| 2906 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2907 | MINIX=yes |
| 2908 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2909 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2910 | fi |
| 2911 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2912 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2913 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2914 | |
| 2915 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2916 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2917 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2918 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2919 | |
| 2920 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2921 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2922 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2924 | |
| 2925 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2926 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2927 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2928 | |
| 2929 | fi |
| 2930 | |
| 2931 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2933 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 2934 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2935 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2936 | # Check whether --with-suffix or --without-suffix was given. |
| 2937 | if test "${with_suffix+set}" = set; then |
| 2938 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2939 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2940 | case $withval in |
| 2941 | no) EXEEXT=;; |
| 2942 | yes) EXEEXT=.exe;; |
| 2943 | *) EXEEXT=$withval;; |
| 2944 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2945 | fi; |
| 2946 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 2947 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2948 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2949 | # Test whether we're running on a non-case-sensitive system, in which |
| 2950 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2952 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 2953 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2954 | if test -d "python" |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2955 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2956 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2957 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2958 | BUILDEXEEXT=.exe |
| 2959 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2960 | echo "$as_me:$LINENO: result: no" >&5 |
| 2961 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2962 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2963 | fi |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 2964 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 2965 | case $MACHDEP in |
| 2966 | bsdos*) |
| 2967 | case $CC in |
| 2968 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 2969 | esac;; |
| 2970 | esac |
| 2971 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2972 | case $ac_sys_system in |
| 2973 | hp*|HP*) |
| 2974 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 2975 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2976 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2977 | Monterey*) |
| 2978 | case $CC in |
| 2979 | cc) CC="$CC -Wl,-Bexport";; |
| 2980 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 2981 | SunOS*) |
| 2982 | # 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] | 2983 | |
| 2984 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 2985 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2986 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 2987 | |
| 2988 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2989 | esac |
| 2990 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2991 | |
| 2992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2993 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 2994 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2995 | if test -z "$LIBRARY" |
| 2996 | then |
| 2997 | LIBRARY='libpython$(VERSION).a' |
| 2998 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2999 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3000 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3001 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3002 | # 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] | 3003 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3004 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3005 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3006 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3007 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3008 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3009 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3010 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3011 | # RUNSHARED is used to run shared python without installed libraries |
| 3012 | # |
| 3013 | # INSTSONAME is the name of the shared library that will be use to install |
| 3014 | # on the system - some systems like version suffix, others don't |
| 3015 | |
| 3016 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3017 | |
| 3018 | |
| 3019 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3020 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3021 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3022 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3023 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3024 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3025 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3026 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3027 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3028 | # 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] | 3029 | # If CXX is set, and if it is needed to link a main function that was |
| 3030 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3031 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3032 | # 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] | 3033 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3035 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3036 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3037 | if test -z "$LINKCC" |
| 3038 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3039 | if test -z "$CXX"; then |
| 3040 | LINKCC="\$(PURIFY) \$(CC)" |
| 3041 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3042 | 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] | 3043 | $CXX -c conftest.$ac_ext 2>&5 |
| 3044 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3045 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3046 | then |
| 3047 | LINKCC="\$(PURIFY) \$(CC)" |
| 3048 | else |
| 3049 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3050 | fi |
| 3051 | rm -fr conftest* |
| 3052 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3053 | case $ac_sys_system in |
| 3054 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3055 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3056 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3057 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3058 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3059 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3060 | esac |
| 3061 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3062 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3063 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3065 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3066 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3067 | # Check whether --enable-shared or --disable-shared was given. |
| 3068 | if test "${enable_shared+set}" = set; then |
| 3069 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3071 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3072 | |
| 3073 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3074 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3075 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3076 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3077 | enable_shared="yes";; |
| 3078 | *) |
| 3079 | enable_shared="no";; |
| 3080 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3081 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3082 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3083 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3084 | |
| 3085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3086 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3087 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3088 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3089 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3090 | # library that we build, but we do not want to link against it (we |
| 3091 | # will find it with a -framework option). For this reason there is an |
| 3092 | # extra variable BLDLIBRARY against which Python and the extension |
| 3093 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3094 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3095 | if test "$enable_framework" |
| 3096 | then |
| 3097 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3098 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3099 | BLDLIBRARY='' |
| 3100 | else |
| 3101 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3102 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3103 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3104 | # Other platforms follow |
| 3105 | if test $enable_shared = "yes"; then |
| 3106 | case $ac_sys_system in |
| 3107 | BeOS*) |
| 3108 | LDLIBRARY='libpython$(VERSION).so' |
| 3109 | ;; |
| 3110 | CYGWIN*) |
| 3111 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3112 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3113 | ;; |
| 3114 | SunOS*) |
| 3115 | LDLIBRARY='libpython$(VERSION).so' |
| 3116 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3117 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3118 | ;; |
| 3119 | Linux*) |
| 3120 | LDLIBRARY='libpython$(VERSION).so' |
| 3121 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3122 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3123 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3124 | ;; |
| 3125 | hp*|HP*) |
| 3126 | LDLIBRARY='libpython$(VERSION).sl' |
| 3127 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3128 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3129 | ;; |
| 3130 | OSF*) |
| 3131 | LDLIBRARY='libpython$(VERSION).so' |
| 3132 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3133 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3134 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3135 | atheos*) |
| 3136 | LDLIBRARY='libpython$(VERSION).so' |
| 3137 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3138 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3139 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3140 | esac |
| 3141 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3142 | case $MACHDEP in |
| 3143 | dguxR4) |
| 3144 | LDLIBRARY='libpython$(VERSION).so' |
| 3145 | OPT="$OPT -pic" |
| 3146 | ;; |
| 3147 | esac |
| 3148 | fi |
| 3149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3150 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3151 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3153 | if test -n "$ac_tool_prefix"; then |
| 3154 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3155 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3156 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3157 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3158 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3160 | else |
| 3161 | if test -n "$RANLIB"; then |
| 3162 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3165 | for as_dir in $PATH |
| 3166 | do |
| 3167 | IFS=$as_save_IFS |
| 3168 | test -z "$as_dir" && as_dir=. |
| 3169 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3170 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3171 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3172 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3173 | break 2 |
| 3174 | fi |
| 3175 | done |
| 3176 | done |
| 3177 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3178 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3179 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3180 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3181 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3182 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3183 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3185 | echo "$as_me:$LINENO: result: no" >&5 |
| 3186 | echo "${ECHO_T}no" >&6 |
| 3187 | fi |
| 3188 | |
| 3189 | fi |
| 3190 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3191 | ac_ct_RANLIB=$RANLIB |
| 3192 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3193 | set dummy ranlib; ac_word=$2 |
| 3194 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3195 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3196 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3198 | else |
| 3199 | if test -n "$ac_ct_RANLIB"; then |
| 3200 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3201 | else |
| 3202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3203 | for as_dir in $PATH |
| 3204 | do |
| 3205 | IFS=$as_save_IFS |
| 3206 | test -z "$as_dir" && as_dir=. |
| 3207 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3208 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3209 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3211 | break 2 |
| 3212 | fi |
| 3213 | done |
| 3214 | done |
| 3215 | |
| 3216 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3217 | fi |
| 3218 | fi |
| 3219 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3220 | if test -n "$ac_ct_RANLIB"; then |
| 3221 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3222 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3223 | else |
| 3224 | echo "$as_me:$LINENO: result: no" >&5 |
| 3225 | echo "${ECHO_T}no" >&6 |
| 3226 | fi |
| 3227 | |
| 3228 | RANLIB=$ac_ct_RANLIB |
| 3229 | else |
| 3230 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3231 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3232 | |
| 3233 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3234 | for ac_prog in ar aal |
| 3235 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3236 | # 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] | 3237 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3238 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3240 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3242 | else |
| 3243 | if test -n "$AR"; then |
| 3244 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3247 | for as_dir in $PATH |
| 3248 | do |
| 3249 | IFS=$as_save_IFS |
| 3250 | test -z "$as_dir" && as_dir=. |
| 3251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3252 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3253 | ac_cv_prog_AR="$ac_prog" |
| 3254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3255 | break 2 |
| 3256 | fi |
| 3257 | done |
| 3258 | done |
| 3259 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3260 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3261 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3262 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3263 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3264 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3265 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 | echo "$as_me:$LINENO: result: no" >&5 |
| 3268 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3269 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3271 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3272 | done |
| 3273 | test -n "$AR" || AR="ar" |
| 3274 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3275 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3276 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3277 | bsdos*|hp*|HP*) |
| 3278 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3279 | if test -z "$INSTALL" |
| 3280 | then |
| 3281 | INSTALL="${srcdir}/install-sh -c" |
| 3282 | fi |
| 3283 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3284 | ac_aux_dir= |
| 3285 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3286 | if test -f $ac_dir/install-sh; then |
| 3287 | ac_aux_dir=$ac_dir |
| 3288 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3289 | break |
| 3290 | elif test -f $ac_dir/install.sh; then |
| 3291 | ac_aux_dir=$ac_dir |
| 3292 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3293 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3294 | elif test -f $ac_dir/shtool; then |
| 3295 | ac_aux_dir=$ac_dir |
| 3296 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3297 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3298 | fi |
| 3299 | done |
| 3300 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3301 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3302 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3303 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3304 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3305 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3306 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3307 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3308 | |
| 3309 | # Find a good install program. We prefer a C program (faster), |
| 3310 | # so one script is as good as another. But avoid the broken or |
| 3311 | # incompatible versions: |
| 3312 | # SysV /etc/install, /usr/sbin/install |
| 3313 | # SunOS /usr/etc/install |
| 3314 | # IRIX /sbin/install |
| 3315 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3316 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3317 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3318 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3319 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3320 | # ./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] | 3321 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3322 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3323 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3324 | if test "${ac_cv_path_install+set}" = set; then |
| 3325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3326 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3328 | for as_dir in $PATH |
| 3329 | do |
| 3330 | IFS=$as_save_IFS |
| 3331 | test -z "$as_dir" && as_dir=. |
| 3332 | # Account for people who put trailing slashes in PATH elements. |
| 3333 | case $as_dir/ in |
| 3334 | ./ | .// | /cC/* | \ |
| 3335 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3336 | /usr/ucb/* ) ;; |
| 3337 | *) |
| 3338 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3339 | # Don't use installbsd from OSF since it installs stuff as root |
| 3340 | # by default. |
| 3341 | for ac_prog in ginstall scoinst install; do |
| 3342 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3343 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3344 | if test $ac_prog = install && |
| 3345 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3346 | # AIX install. It has an incompatible calling convention. |
| 3347 | : |
| 3348 | elif test $ac_prog = install && |
| 3349 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3350 | # program-specific install script used by HP pwplus--don't use. |
| 3351 | : |
| 3352 | else |
| 3353 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3354 | break 3 |
| 3355 | fi |
| 3356 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3357 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3358 | done |
| 3359 | ;; |
| 3360 | esac |
| 3361 | done |
| 3362 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3363 | |
| 3364 | fi |
| 3365 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3366 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3367 | else |
| 3368 | # As a last resort, use the slow shell script. We don't cache a |
| 3369 | # path for INSTALL within a source directory, because that will |
| 3370 | # break other packages using the cache if that directory is |
| 3371 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3372 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3373 | fi |
| 3374 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3375 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3376 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3377 | |
| 3378 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3379 | # It thinks the first close brace ends the variable substitution. |
| 3380 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3382 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3383 | |
| 3384 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3385 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3386 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3387 | # Not every filesystem supports hard links |
| 3388 | |
| 3389 | if test -z "$LN" ; then |
| 3390 | case $ac_sys_system in |
| 3391 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3392 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3393 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3394 | *) LN=ln;; |
| 3395 | esac |
| 3396 | fi |
| 3397 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3398 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3399 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3400 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3401 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3402 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3403 | if test "${with_pydebug+set}" = set; then |
| 3404 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3405 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3406 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3407 | then |
| 3408 | |
| 3409 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3410 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3411 | _ACEOF |
| 3412 | |
| 3413 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3414 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3415 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3416 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3417 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3418 | fi |
| 3419 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3420 | echo "$as_me:$LINENO: result: no" >&5 |
| 3421 | echo "${ECHO_T}no" >&6 |
| 3422 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3423 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3424 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3425 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3426 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3427 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3428 | case $GCC in |
| 3429 | yes) |
| 3430 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3431 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3432 | if test "$Py_DEBUG" = 'true' ; then |
| 3433 | # Optimization messes up debuggers, so turn it off for |
| 3434 | # debug builds. |
| 3435 | OPT="-g -Wall -Wstrict-prototypes" |
| 3436 | else |
| 3437 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3438 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3439 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3440 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3441 | esac |
| 3442 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3443 | *) |
| 3444 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3445 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3446 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
| 3447 | *) |
| 3448 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3449 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3450 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3451 | case $ac_sys_system in |
| 3452 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3453 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3454 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3455 | fi |
| 3456 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3457 | if test "$Py_DEBUG" = 'true'; then |
| 3458 | : |
| 3459 | else |
| 3460 | OPT="-DNDEBUG $OPT" |
| 3461 | fi |
| 3462 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3463 | # The current (beta) Monterey compiler dies with optimizations |
| 3464 | case $ac_sys_system in |
| 3465 | Monterey*) OPT="";; |
| 3466 | esac |
| 3467 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3468 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3469 | then |
| 3470 | OPT="$OPT $ac_arch_flags" |
| 3471 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3473 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3474 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3475 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3477 | else |
| 3478 | ac_save_cc="$CC" |
| 3479 | CC="$CC -OPT:Olimit=0" |
| 3480 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3481 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3483 | cat >conftest.$ac_ext <<_ACEOF |
| 3484 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3485 | #include "confdefs.h" |
| 3486 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3487 | _ACEOF |
| 3488 | rm -f conftest$ac_exeext |
| 3489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3490 | (eval $ac_link) 2>&5 |
| 3491 | ac_status=$? |
| 3492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3493 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3495 | (eval $ac_try) 2>&5 |
| 3496 | ac_status=$? |
| 3497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3498 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3499 | ac_cv_opt_olimit_ok=yes |
| 3500 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3501 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3502 | echo "$as_me: failed program was:" >&5 |
| 3503 | cat conftest.$ac_ext >&5 |
| 3504 | ( exit $ac_status ) |
| 3505 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3506 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3507 | 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] | 3508 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3509 | CC="$ac_save_cc" |
| 3510 | fi |
| 3511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3512 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3513 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3514 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3515 | case $ac_sys_system in |
| 3516 | Darwin*) OPT="$OPT" ;; |
| 3517 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3518 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3520 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3521 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3522 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3524 | else |
| 3525 | ac_save_cc="$CC" |
| 3526 | CC="$CC -Olimit 1500" |
| 3527 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3528 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3530 | cat >conftest.$ac_ext <<_ACEOF |
| 3531 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3532 | #include "confdefs.h" |
| 3533 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3534 | _ACEOF |
| 3535 | rm -f conftest$ac_exeext |
| 3536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3537 | (eval $ac_link) 2>&5 |
| 3538 | ac_status=$? |
| 3539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3540 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3542 | (eval $ac_try) 2>&5 |
| 3543 | ac_status=$? |
| 3544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3545 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3546 | ac_cv_olimit_ok=yes |
| 3547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3548 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3549 | echo "$as_me: failed program was:" >&5 |
| 3550 | cat conftest.$ac_ext >&5 |
| 3551 | ( exit $ac_status ) |
| 3552 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3553 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3554 | 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] | 3555 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3556 | CC="$ac_save_cc" |
| 3557 | fi |
| 3558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3559 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3560 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3561 | if test $ac_cv_olimit_ok = yes; then |
| 3562 | OPT="$OPT -Olimit 1500" |
| 3563 | fi |
| 3564 | fi |
| 3565 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3566 | # On some compilers, pthreads are available without further options |
| 3567 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3568 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3569 | # So we have to see first whether pthreads are available without |
| 3570 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3571 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3572 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3573 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3575 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3576 | if test "$cross_compiling" = yes; then |
| 3577 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3578 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3579 | cat >conftest.$ac_ext <<_ACEOF |
| 3580 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3581 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3582 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3583 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3584 | |
| 3585 | void* routine(void* p){return NULL;} |
| 3586 | |
| 3587 | int main(){ |
| 3588 | pthread_t p; |
| 3589 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3590 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3591 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3592 | return 0; |
| 3593 | } |
| 3594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3595 | _ACEOF |
| 3596 | rm -f conftest$ac_exeext |
| 3597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3598 | (eval $ac_link) 2>&5 |
| 3599 | ac_status=$? |
| 3600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3601 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3603 | (eval $ac_try) 2>&5 |
| 3604 | ac_status=$? |
| 3605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3606 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3607 | ac_cv_pthread_is_default=yes |
| 3608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3609 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3610 | echo "$as_me: failed program was:" >&5 |
| 3611 | cat conftest.$ac_ext >&5 |
| 3612 | ( exit $ac_status ) |
| 3613 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3614 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3615 | 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] | 3616 | fi |
| 3617 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3618 | fi |
| 3619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3620 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3621 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3622 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3624 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3625 | then |
| 3626 | ac_cv_kpthread=no |
| 3627 | else |
| 3628 | # -Kpthread, if available, provides the right #defines |
| 3629 | # and linker options to make pthread_create available |
| 3630 | # Some compilers won't report that they do not support -Kpthread, |
| 3631 | # so we need to run a program to see whether it really made the |
| 3632 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3633 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3634 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3635 | if test "${ac_cv_kpthread+set}" = set; then |
| 3636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3637 | else |
| 3638 | ac_save_cc="$CC" |
| 3639 | CC="$CC -Kpthread" |
| 3640 | if test "$cross_compiling" = yes; then |
| 3641 | ac_cv_kpthread=no |
| 3642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3643 | cat >conftest.$ac_ext <<_ACEOF |
| 3644 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3645 | #include "confdefs.h" |
| 3646 | |
| 3647 | #include <pthread.h> |
| 3648 | |
| 3649 | void* routine(void* p){return NULL;} |
| 3650 | |
| 3651 | int main(){ |
| 3652 | pthread_t p; |
| 3653 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3654 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3655 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3656 | return 0; |
| 3657 | } |
| 3658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3659 | _ACEOF |
| 3660 | rm -f conftest$ac_exeext |
| 3661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3662 | (eval $ac_link) 2>&5 |
| 3663 | ac_status=$? |
| 3664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3665 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3667 | (eval $ac_try) 2>&5 |
| 3668 | ac_status=$? |
| 3669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3670 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3671 | ac_cv_kpthread=yes |
| 3672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3673 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3674 | echo "$as_me: failed program was:" >&5 |
| 3675 | cat conftest.$ac_ext >&5 |
| 3676 | ( exit $ac_status ) |
| 3677 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3678 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3679 | 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] | 3680 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3681 | CC="$ac_save_cc" |
| 3682 | fi |
| 3683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3684 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3685 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3686 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3687 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3688 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3689 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3690 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3691 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3692 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3694 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3695 | cat >conftest.$ac_ext <<_ACEOF |
| 3696 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3697 | #include "confdefs.h" |
| 3698 | #include <stdlib.h> |
| 3699 | #include <stdarg.h> |
| 3700 | #include <string.h> |
| 3701 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | |
| 3703 | _ACEOF |
| 3704 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3705 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3706 | ac_status=$? |
| 3707 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3708 | rm -f conftest.er1 |
| 3709 | cat conftest.err >&5 |
| 3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3711 | (exit $ac_status); } >/dev/null; then |
| 3712 | if test -s conftest.err; then |
| 3713 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3714 | else |
| 3715 | ac_cpp_err= |
| 3716 | fi |
| 3717 | else |
| 3718 | ac_cpp_err=yes |
| 3719 | fi |
| 3720 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3721 | ac_cv_header_stdc=yes |
| 3722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3723 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3724 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3725 | ac_cv_header_stdc=no |
| 3726 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3727 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3728 | |
| 3729 | if test $ac_cv_header_stdc = yes; then |
| 3730 | # 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] | 3731 | cat >conftest.$ac_ext <<_ACEOF |
| 3732 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3733 | #include "confdefs.h" |
| 3734 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3735 | |
| 3736 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3737 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3738 | egrep "memchr" >/dev/null 2>&1; then |
| 3739 | : |
| 3740 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3741 | ac_cv_header_stdc=no |
| 3742 | fi |
| 3743 | rm -f conftest* |
| 3744 | |
| 3745 | fi |
| 3746 | |
| 3747 | if test $ac_cv_header_stdc = yes; then |
| 3748 | # 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] | 3749 | cat >conftest.$ac_ext <<_ACEOF |
| 3750 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3751 | #include "confdefs.h" |
| 3752 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3753 | |
| 3754 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3755 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3756 | egrep "free" >/dev/null 2>&1; then |
| 3757 | : |
| 3758 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3759 | ac_cv_header_stdc=no |
| 3760 | fi |
| 3761 | rm -f conftest* |
| 3762 | |
| 3763 | fi |
| 3764 | |
| 3765 | if test $ac_cv_header_stdc = yes; then |
| 3766 | # /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] | 3767 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3768 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 | cat >conftest.$ac_ext <<_ACEOF |
| 3771 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3772 | #include "confdefs.h" |
| 3773 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3774 | #if ((' ' & 0x0FF) == 0x020) |
| 3775 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3776 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3777 | #else |
| 3778 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3779 | || ('j' <= (c) && (c) <= 'r') \ |
| 3780 | || ('s' <= (c) && (c) <= 'z')) |
| 3781 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3782 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3783 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3784 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3785 | int |
| 3786 | main () |
| 3787 | { |
| 3788 | int i; |
| 3789 | for (i = 0; i < 256; i++) |
| 3790 | if (XOR (islower (i), ISLOWER (i)) |
| 3791 | || toupper (i) != TOUPPER (i)) |
| 3792 | exit(2); |
| 3793 | exit (0); |
| 3794 | } |
| 3795 | _ACEOF |
| 3796 | rm -f conftest$ac_exeext |
| 3797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3798 | (eval $ac_link) 2>&5 |
| 3799 | ac_status=$? |
| 3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3801 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3803 | (eval $ac_try) 2>&5 |
| 3804 | ac_status=$? |
| 3805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3806 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3807 | : |
| 3808 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3809 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3810 | echo "$as_me: failed program was:" >&5 |
| 3811 | cat conftest.$ac_ext >&5 |
| 3812 | ( exit $ac_status ) |
| 3813 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3814 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3815 | 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] | 3816 | fi |
| 3817 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3818 | fi |
| 3819 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3820 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3821 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3822 | |
| 3823 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3824 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3825 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3826 | |
| 3827 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3829 | |
| 3830 | |
| 3831 | |
| 3832 | |
| 3833 | |
| 3834 | |
| 3835 | |
| 3836 | |
| 3837 | |
| 3838 | |
| 3839 | |
| 3840 | |
| 3841 | |
| 3842 | |
| 3843 | |
| 3844 | |
| 3845 | |
| 3846 | |
| 3847 | |
| 3848 | |
| 3849 | |
| 3850 | |
| 3851 | |
| 3852 | |
| 3853 | |
| 3854 | |
| 3855 | |
| 3856 | |
| 3857 | |
| 3858 | |
| 3859 | |
| 3860 | |
| 3861 | |
| 3862 | |
| 3863 | |
| 3864 | |
| 3865 | |
| 3866 | |
| 3867 | |
| 3868 | |
| 3869 | |
Neal Norwitz | 3d94942 | 2002-04-20 13:46:43 +0000 | [diff] [blame] | 3870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3871 | 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] | 3872 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3873 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ |
Neal Norwitz | 3d94942 | 2002-04-20 13:46:43 +0000 | [diff] [blame] | 3874 | sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h db_185.h db.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3875 | 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] | 3876 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Martin v. Löwis | f24b2f3 | 2001-08-10 20:29:40 +0000 | [diff] [blame] | 3877 | ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3878 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3879 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3880 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3881 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3882 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3883 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3885 | fi |
| 3886 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3887 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3889 | # Is the header compilable? |
| 3890 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3891 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3892 | cat >conftest.$ac_ext <<_ACEOF |
| 3893 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3894 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3895 | $ac_includes_default |
| 3896 | #include <$ac_header> |
| 3897 | _ACEOF |
| 3898 | rm -f conftest.$ac_objext |
| 3899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3900 | (eval $ac_compile) 2>&5 |
| 3901 | ac_status=$? |
| 3902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3903 | (exit $ac_status); } && |
| 3904 | { ac_try='test -s conftest.$ac_objext' |
| 3905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3906 | (eval $ac_try) 2>&5 |
| 3907 | ac_status=$? |
| 3908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3909 | (exit $ac_status); }; }; then |
| 3910 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3912 | echo "$as_me: failed program was:" >&5 |
| 3913 | cat conftest.$ac_ext >&5 |
| 3914 | ac_header_compiler=no |
| 3915 | fi |
| 3916 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3917 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3918 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3919 | |
| 3920 | # Is the header present? |
| 3921 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3922 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3923 | cat >conftest.$ac_ext <<_ACEOF |
| 3924 | #line $LINENO "configure" |
| 3925 | #include "confdefs.h" |
| 3926 | #include <$ac_header> |
| 3927 | _ACEOF |
| 3928 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3929 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3930 | ac_status=$? |
| 3931 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3932 | rm -f conftest.er1 |
| 3933 | cat conftest.err >&5 |
| 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3935 | (exit $ac_status); } >/dev/null; then |
| 3936 | if test -s conftest.err; then |
| 3937 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3938 | else |
| 3939 | ac_cpp_err= |
| 3940 | fi |
| 3941 | else |
| 3942 | ac_cpp_err=yes |
| 3943 | fi |
| 3944 | if test -z "$ac_cpp_err"; then |
| 3945 | ac_header_preproc=yes |
| 3946 | else |
| 3947 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3948 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3949 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3950 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3951 | rm -f conftest.err conftest.$ac_ext |
| 3952 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3953 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3954 | |
| 3955 | # So? What about this header? |
| 3956 | case $ac_header_compiler:$ac_header_preproc in |
| 3957 | yes:no ) |
| 3958 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3959 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3960 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3961 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3962 | no:yes ) |
| 3963 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3964 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3965 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3966 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3967 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3968 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3969 | esac |
| 3970 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3971 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3972 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3975 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3976 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3978 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3979 | |
| 3980 | fi |
| 3981 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3982 | cat >>confdefs.h <<_ACEOF |
| 3983 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3984 | _ACEOF |
| 3985 | |
| 3986 | fi |
| 3987 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3988 | done |
| 3989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3990 | |
| 3991 | |
| 3992 | |
| 3993 | |
| 3994 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3995 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3996 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 3997 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 3998 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 3999 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4000 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4003 | cat >conftest.$ac_ext <<_ACEOF |
| 4004 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4005 | #include "confdefs.h" |
| 4006 | #include <sys/types.h> |
| 4007 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4008 | |
| 4009 | #ifdef F77_DUMMY_MAIN |
| 4010 | # ifdef __cplusplus |
| 4011 | extern "C" |
| 4012 | # endif |
| 4013 | int F77_DUMMY_MAIN() { return 1; } |
| 4014 | #endif |
| 4015 | int |
| 4016 | main () |
| 4017 | { |
| 4018 | if ((DIR *) 0) |
| 4019 | return 0; |
| 4020 | ; |
| 4021 | return 0; |
| 4022 | } |
| 4023 | _ACEOF |
| 4024 | rm -f conftest.$ac_objext |
| 4025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4026 | (eval $ac_compile) 2>&5 |
| 4027 | ac_status=$? |
| 4028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4029 | (exit $ac_status); } && |
| 4030 | { ac_try='test -s conftest.$ac_objext' |
| 4031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4032 | (eval $ac_try) 2>&5 |
| 4033 | ac_status=$? |
| 4034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4035 | (exit $ac_status); }; }; then |
| 4036 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4037 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4038 | echo "$as_me: failed program was:" >&5 |
| 4039 | cat conftest.$ac_ext >&5 |
| 4040 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4041 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4042 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4043 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4044 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4045 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4046 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4047 | cat >>confdefs.h <<_ACEOF |
| 4048 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4049 | _ACEOF |
| 4050 | |
| 4051 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4052 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4053 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4054 | done |
| 4055 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4056 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4057 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4058 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4059 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4061 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4062 | ac_func_search_save_LIBS=$LIBS |
| 4063 | ac_cv_search_opendir=no |
| 4064 | cat >conftest.$ac_ext <<_ACEOF |
| 4065 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4066 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4067 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4068 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4069 | #ifdef __cplusplus |
| 4070 | extern "C" |
| 4071 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4072 | /* 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] | 4073 | builtin and then its argument prototype would still apply. */ |
| 4074 | char opendir (); |
| 4075 | #ifdef F77_DUMMY_MAIN |
| 4076 | # ifdef __cplusplus |
| 4077 | extern "C" |
| 4078 | # endif |
| 4079 | int F77_DUMMY_MAIN() { return 1; } |
| 4080 | #endif |
| 4081 | int |
| 4082 | main () |
| 4083 | { |
| 4084 | opendir (); |
| 4085 | ; |
| 4086 | return 0; |
| 4087 | } |
| 4088 | _ACEOF |
| 4089 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4091 | (eval $ac_link) 2>&5 |
| 4092 | ac_status=$? |
| 4093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4094 | (exit $ac_status); } && |
| 4095 | { ac_try='test -s conftest$ac_exeext' |
| 4096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4097 | (eval $ac_try) 2>&5 |
| 4098 | ac_status=$? |
| 4099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4100 | (exit $ac_status); }; }; then |
| 4101 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4102 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4103 | echo "$as_me: failed program was:" >&5 |
| 4104 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4105 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4106 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4107 | if test "$ac_cv_search_opendir" = no; then |
| 4108 | for ac_lib in dir; do |
| 4109 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4110 | cat >conftest.$ac_ext <<_ACEOF |
| 4111 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4112 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4113 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4114 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4115 | #ifdef __cplusplus |
| 4116 | extern "C" |
| 4117 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4118 | /* 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] | 4119 | builtin and then its argument prototype would still apply. */ |
| 4120 | char opendir (); |
| 4121 | #ifdef F77_DUMMY_MAIN |
| 4122 | # ifdef __cplusplus |
| 4123 | extern "C" |
| 4124 | # endif |
| 4125 | int F77_DUMMY_MAIN() { return 1; } |
| 4126 | #endif |
| 4127 | int |
| 4128 | main () |
| 4129 | { |
| 4130 | opendir (); |
| 4131 | ; |
| 4132 | return 0; |
| 4133 | } |
| 4134 | _ACEOF |
| 4135 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4137 | (eval $ac_link) 2>&5 |
| 4138 | ac_status=$? |
| 4139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4140 | (exit $ac_status); } && |
| 4141 | { ac_try='test -s conftest$ac_exeext' |
| 4142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4143 | (eval $ac_try) 2>&5 |
| 4144 | ac_status=$? |
| 4145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4146 | (exit $ac_status); }; }; then |
| 4147 | ac_cv_search_opendir="-l$ac_lib" |
| 4148 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4149 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4150 | echo "$as_me: failed program was:" >&5 |
| 4151 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4152 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4153 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4154 | done |
| 4155 | fi |
| 4156 | LIBS=$ac_func_search_save_LIBS |
| 4157 | fi |
| 4158 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4159 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4160 | if test "$ac_cv_search_opendir" != no; then |
| 4161 | 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] | 4162 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4163 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4164 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4165 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4166 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4167 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4168 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4170 | else |
| 4171 | ac_func_search_save_LIBS=$LIBS |
| 4172 | ac_cv_search_opendir=no |
| 4173 | cat >conftest.$ac_ext <<_ACEOF |
| 4174 | #line $LINENO "configure" |
| 4175 | #include "confdefs.h" |
| 4176 | |
| 4177 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4178 | #ifdef __cplusplus |
| 4179 | extern "C" |
| 4180 | #endif |
| 4181 | /* We use char because int might match the return type of a gcc2 |
| 4182 | builtin and then its argument prototype would still apply. */ |
| 4183 | char opendir (); |
| 4184 | #ifdef F77_DUMMY_MAIN |
| 4185 | # ifdef __cplusplus |
| 4186 | extern "C" |
| 4187 | # endif |
| 4188 | int F77_DUMMY_MAIN() { return 1; } |
| 4189 | #endif |
| 4190 | int |
| 4191 | main () |
| 4192 | { |
| 4193 | opendir (); |
| 4194 | ; |
| 4195 | return 0; |
| 4196 | } |
| 4197 | _ACEOF |
| 4198 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4200 | (eval $ac_link) 2>&5 |
| 4201 | ac_status=$? |
| 4202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4203 | (exit $ac_status); } && |
| 4204 | { ac_try='test -s conftest$ac_exeext' |
| 4205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4206 | (eval $ac_try) 2>&5 |
| 4207 | ac_status=$? |
| 4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4209 | (exit $ac_status); }; }; then |
| 4210 | ac_cv_search_opendir="none required" |
| 4211 | else |
| 4212 | echo "$as_me: failed program was:" >&5 |
| 4213 | cat conftest.$ac_ext >&5 |
| 4214 | fi |
| 4215 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4216 | if test "$ac_cv_search_opendir" = no; then |
| 4217 | for ac_lib in x; do |
| 4218 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4219 | cat >conftest.$ac_ext <<_ACEOF |
| 4220 | #line $LINENO "configure" |
| 4221 | #include "confdefs.h" |
| 4222 | |
| 4223 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4224 | #ifdef __cplusplus |
| 4225 | extern "C" |
| 4226 | #endif |
| 4227 | /* We use char because int might match the return type of a gcc2 |
| 4228 | builtin and then its argument prototype would still apply. */ |
| 4229 | char opendir (); |
| 4230 | #ifdef F77_DUMMY_MAIN |
| 4231 | # ifdef __cplusplus |
| 4232 | extern "C" |
| 4233 | # endif |
| 4234 | int F77_DUMMY_MAIN() { return 1; } |
| 4235 | #endif |
| 4236 | int |
| 4237 | main () |
| 4238 | { |
| 4239 | opendir (); |
| 4240 | ; |
| 4241 | return 0; |
| 4242 | } |
| 4243 | _ACEOF |
| 4244 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4246 | (eval $ac_link) 2>&5 |
| 4247 | ac_status=$? |
| 4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4249 | (exit $ac_status); } && |
| 4250 | { ac_try='test -s conftest$ac_exeext' |
| 4251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4252 | (eval $ac_try) 2>&5 |
| 4253 | ac_status=$? |
| 4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4255 | (exit $ac_status); }; }; then |
| 4256 | ac_cv_search_opendir="-l$ac_lib" |
| 4257 | break |
| 4258 | else |
| 4259 | echo "$as_me: failed program was:" >&5 |
| 4260 | cat conftest.$ac_ext >&5 |
| 4261 | fi |
| 4262 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4263 | done |
| 4264 | fi |
| 4265 | LIBS=$ac_func_search_save_LIBS |
| 4266 | fi |
| 4267 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4268 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4269 | if test "$ac_cv_search_opendir" != no; then |
| 4270 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4271 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4272 | fi |
| 4273 | |
| 4274 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4275 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4276 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4277 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4278 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4279 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4280 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4281 | cat >conftest.$ac_ext <<_ACEOF |
| 4282 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4283 | #include "confdefs.h" |
| 4284 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4285 | |
| 4286 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4287 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4288 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4289 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4290 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4291 | |
| 4292 | |
| 4293 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4294 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4295 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4296 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4297 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4298 | fi |
| 4299 | rm -f conftest* |
| 4300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4301 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4302 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4303 | |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4304 | # Two defines needed to enable largefile support on various platforms |
| 4305 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4307 | cat >>confdefs.h <<\_ACEOF |
| 4308 | #define _LARGEFILE_SOURCE 1 |
| 4309 | _ACEOF |
| 4310 | |
| 4311 | |
| 4312 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4313 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4314 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4315 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4316 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4317 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4318 | cat >> confdefs.h <<\EOF |
| 4319 | #if defined(SCO_DS) |
| 4320 | #undef _OFF_T |
| 4321 | #endif |
| 4322 | EOF |
| 4323 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4324 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4325 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4326 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4327 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4329 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4330 | cat >conftest.$ac_ext <<_ACEOF |
| 4331 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4332 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4333 | $ac_includes_default |
| 4334 | #ifdef F77_DUMMY_MAIN |
| 4335 | # ifdef __cplusplus |
| 4336 | extern "C" |
| 4337 | # endif |
| 4338 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4339 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4340 | int |
| 4341 | main () |
| 4342 | { |
| 4343 | if ((mode_t *) 0) |
| 4344 | return 0; |
| 4345 | if (sizeof (mode_t)) |
| 4346 | return 0; |
| 4347 | ; |
| 4348 | return 0; |
| 4349 | } |
| 4350 | _ACEOF |
| 4351 | rm -f conftest.$ac_objext |
| 4352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4353 | (eval $ac_compile) 2>&5 |
| 4354 | ac_status=$? |
| 4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4356 | (exit $ac_status); } && |
| 4357 | { ac_try='test -s conftest.$ac_objext' |
| 4358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4359 | (eval $ac_try) 2>&5 |
| 4360 | ac_status=$? |
| 4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4362 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4363 | ac_cv_type_mode_t=yes |
| 4364 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4365 | echo "$as_me: failed program was:" >&5 |
| 4366 | cat conftest.$ac_ext >&5 |
| 4367 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4368 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4369 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4370 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4371 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4372 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4373 | if test $ac_cv_type_mode_t = yes; then |
| 4374 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4375 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4376 | |
| 4377 | cat >>confdefs.h <<_ACEOF |
| 4378 | #define mode_t int |
| 4379 | _ACEOF |
| 4380 | |
| 4381 | fi |
| 4382 | |
| 4383 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4384 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4385 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4387 | else |
| 4388 | cat >conftest.$ac_ext <<_ACEOF |
| 4389 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4390 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4391 | $ac_includes_default |
| 4392 | #ifdef F77_DUMMY_MAIN |
| 4393 | # ifdef __cplusplus |
| 4394 | extern "C" |
| 4395 | # endif |
| 4396 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4397 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4398 | int |
| 4399 | main () |
| 4400 | { |
| 4401 | if ((off_t *) 0) |
| 4402 | return 0; |
| 4403 | if (sizeof (off_t)) |
| 4404 | return 0; |
| 4405 | ; |
| 4406 | return 0; |
| 4407 | } |
| 4408 | _ACEOF |
| 4409 | rm -f conftest.$ac_objext |
| 4410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4411 | (eval $ac_compile) 2>&5 |
| 4412 | ac_status=$? |
| 4413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4414 | (exit $ac_status); } && |
| 4415 | { ac_try='test -s conftest.$ac_objext' |
| 4416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4417 | (eval $ac_try) 2>&5 |
| 4418 | ac_status=$? |
| 4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4420 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4421 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4423 | echo "$as_me: failed program was:" >&5 |
| 4424 | cat conftest.$ac_ext >&5 |
| 4425 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4426 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4427 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4428 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4429 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4430 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4431 | if test $ac_cv_type_off_t = yes; then |
| 4432 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4434 | |
| 4435 | cat >>confdefs.h <<_ACEOF |
| 4436 | #define off_t long |
| 4437 | _ACEOF |
| 4438 | |
| 4439 | fi |
| 4440 | |
| 4441 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4442 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4443 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4445 | else |
| 4446 | cat >conftest.$ac_ext <<_ACEOF |
| 4447 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4448 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4449 | $ac_includes_default |
| 4450 | #ifdef F77_DUMMY_MAIN |
| 4451 | # ifdef __cplusplus |
| 4452 | extern "C" |
| 4453 | # endif |
| 4454 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4455 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4456 | int |
| 4457 | main () |
| 4458 | { |
| 4459 | if ((pid_t *) 0) |
| 4460 | return 0; |
| 4461 | if (sizeof (pid_t)) |
| 4462 | return 0; |
| 4463 | ; |
| 4464 | return 0; |
| 4465 | } |
| 4466 | _ACEOF |
| 4467 | rm -f conftest.$ac_objext |
| 4468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4469 | (eval $ac_compile) 2>&5 |
| 4470 | ac_status=$? |
| 4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4472 | (exit $ac_status); } && |
| 4473 | { ac_try='test -s conftest.$ac_objext' |
| 4474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4475 | (eval $ac_try) 2>&5 |
| 4476 | ac_status=$? |
| 4477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4478 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4479 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4481 | echo "$as_me: failed program was:" >&5 |
| 4482 | cat conftest.$ac_ext >&5 |
| 4483 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4484 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4485 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4486 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4487 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 4488 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 4489 | if test $ac_cv_type_pid_t = yes; then |
| 4490 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4492 | |
| 4493 | cat >>confdefs.h <<_ACEOF |
| 4494 | #define pid_t int |
| 4495 | _ACEOF |
| 4496 | |
| 4497 | fi |
| 4498 | |
| 4499 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 4500 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 4501 | if test "${ac_cv_type_signal+set}" = set; then |
| 4502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4503 | else |
| 4504 | cat >conftest.$ac_ext <<_ACEOF |
| 4505 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4506 | #include "confdefs.h" |
| 4507 | #include <sys/types.h> |
| 4508 | #include <signal.h> |
| 4509 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4510 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4511 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4512 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4513 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 4514 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4515 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4516 | #endif |
| 4517 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4518 | #ifdef F77_DUMMY_MAIN |
| 4519 | # ifdef __cplusplus |
| 4520 | extern "C" |
| 4521 | # endif |
| 4522 | int F77_DUMMY_MAIN() { return 1; } |
| 4523 | #endif |
| 4524 | int |
| 4525 | main () |
| 4526 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4527 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4528 | ; |
| 4529 | return 0; |
| 4530 | } |
| 4531 | _ACEOF |
| 4532 | rm -f conftest.$ac_objext |
| 4533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4534 | (eval $ac_compile) 2>&5 |
| 4535 | ac_status=$? |
| 4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4537 | (exit $ac_status); } && |
| 4538 | { ac_try='test -s conftest.$ac_objext' |
| 4539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4540 | (eval $ac_try) 2>&5 |
| 4541 | ac_status=$? |
| 4542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4543 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4544 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4545 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4546 | echo "$as_me: failed program was:" >&5 |
| 4547 | cat conftest.$ac_ext >&5 |
| 4548 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4549 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4550 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4551 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4552 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 4553 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4555 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4556 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4557 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4558 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4560 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 4561 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 4562 | if test "${ac_cv_type_size_t+set}" = set; then |
| 4563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4564 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4565 | cat >conftest.$ac_ext <<_ACEOF |
| 4566 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4567 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4568 | $ac_includes_default |
| 4569 | #ifdef F77_DUMMY_MAIN |
| 4570 | # ifdef __cplusplus |
| 4571 | extern "C" |
| 4572 | # endif |
| 4573 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4574 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4575 | int |
| 4576 | main () |
| 4577 | { |
| 4578 | if ((size_t *) 0) |
| 4579 | return 0; |
| 4580 | if (sizeof (size_t)) |
| 4581 | return 0; |
| 4582 | ; |
| 4583 | return 0; |
| 4584 | } |
| 4585 | _ACEOF |
| 4586 | rm -f conftest.$ac_objext |
| 4587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4588 | (eval $ac_compile) 2>&5 |
| 4589 | ac_status=$? |
| 4590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4591 | (exit $ac_status); } && |
| 4592 | { ac_try='test -s conftest.$ac_objext' |
| 4593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4594 | (eval $ac_try) 2>&5 |
| 4595 | ac_status=$? |
| 4596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4597 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4598 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4599 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4600 | echo "$as_me: failed program was:" >&5 |
| 4601 | cat conftest.$ac_ext >&5 |
| 4602 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4603 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4604 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4605 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4606 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 4607 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 4608 | if test $ac_cv_type_size_t = yes; then |
| 4609 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4610 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4611 | |
| 4612 | cat >>confdefs.h <<_ACEOF |
| 4613 | #define size_t unsigned |
| 4614 | _ACEOF |
| 4615 | |
| 4616 | fi |
| 4617 | |
| 4618 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 4619 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 4620 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 4621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4622 | else |
| 4623 | cat >conftest.$ac_ext <<_ACEOF |
| 4624 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4625 | #include "confdefs.h" |
| 4626 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4627 | |
| 4628 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4629 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4630 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4631 | ac_cv_type_uid_t=yes |
| 4632 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4633 | ac_cv_type_uid_t=no |
| 4634 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4635 | rm -f conftest* |
| 4636 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4637 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4638 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 4639 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4640 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4642 | cat >>confdefs.h <<\_ACEOF |
| 4643 | #define uid_t int |
| 4644 | _ACEOF |
| 4645 | |
| 4646 | |
| 4647 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4648 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4649 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4650 | |
| 4651 | fi |
| 4652 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4653 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4654 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4655 | echo "$as_me:$LINENO: checking for int" >&5 |
| 4656 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 4657 | if test "${ac_cv_type_int+set}" = set; then |
| 4658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4659 | else |
| 4660 | cat >conftest.$ac_ext <<_ACEOF |
| 4661 | #line $LINENO "configure" |
| 4662 | #include "confdefs.h" |
| 4663 | $ac_includes_default |
| 4664 | #ifdef F77_DUMMY_MAIN |
| 4665 | # ifdef __cplusplus |
| 4666 | extern "C" |
| 4667 | # endif |
| 4668 | int F77_DUMMY_MAIN() { return 1; } |
| 4669 | #endif |
| 4670 | int |
| 4671 | main () |
| 4672 | { |
| 4673 | if ((int *) 0) |
| 4674 | return 0; |
| 4675 | if (sizeof (int)) |
| 4676 | return 0; |
| 4677 | ; |
| 4678 | return 0; |
| 4679 | } |
| 4680 | _ACEOF |
| 4681 | rm -f conftest.$ac_objext |
| 4682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4683 | (eval $ac_compile) 2>&5 |
| 4684 | ac_status=$? |
| 4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4686 | (exit $ac_status); } && |
| 4687 | { ac_try='test -s conftest.$ac_objext' |
| 4688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4689 | (eval $ac_try) 2>&5 |
| 4690 | ac_status=$? |
| 4691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4692 | (exit $ac_status); }; }; then |
| 4693 | ac_cv_type_int=yes |
| 4694 | else |
| 4695 | echo "$as_me: failed program was:" >&5 |
| 4696 | cat conftest.$ac_ext >&5 |
| 4697 | ac_cv_type_int=no |
| 4698 | fi |
| 4699 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4700 | fi |
| 4701 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 4702 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 4703 | |
| 4704 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 4705 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 4706 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 4707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4708 | else |
| 4709 | if test "$ac_cv_type_int" = yes; then |
| 4710 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 4711 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4712 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4713 | # This bug is HP SR number 8606223364. |
| 4714 | if test "$cross_compiling" = yes; then |
| 4715 | # Depending upon the size, compute the lo and hi bounds. |
| 4716 | cat >conftest.$ac_ext <<_ACEOF |
| 4717 | #line $LINENO "configure" |
| 4718 | #include "confdefs.h" |
| 4719 | $ac_includes_default |
| 4720 | #ifdef F77_DUMMY_MAIN |
| 4721 | # ifdef __cplusplus |
| 4722 | extern "C" |
| 4723 | # endif |
| 4724 | int F77_DUMMY_MAIN() { return 1; } |
| 4725 | #endif |
| 4726 | int |
| 4727 | main () |
| 4728 | { |
| 4729 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 4730 | test_array [0] = 0 |
| 4731 | |
| 4732 | ; |
| 4733 | return 0; |
| 4734 | } |
| 4735 | _ACEOF |
| 4736 | rm -f conftest.$ac_objext |
| 4737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4738 | (eval $ac_compile) 2>&5 |
| 4739 | ac_status=$? |
| 4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4741 | (exit $ac_status); } && |
| 4742 | { ac_try='test -s conftest.$ac_objext' |
| 4743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4744 | (eval $ac_try) 2>&5 |
| 4745 | ac_status=$? |
| 4746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4747 | (exit $ac_status); }; }; then |
| 4748 | ac_lo=0 ac_mid=0 |
| 4749 | while :; do |
| 4750 | cat >conftest.$ac_ext <<_ACEOF |
| 4751 | #line $LINENO "configure" |
| 4752 | #include "confdefs.h" |
| 4753 | $ac_includes_default |
| 4754 | #ifdef F77_DUMMY_MAIN |
| 4755 | # ifdef __cplusplus |
| 4756 | extern "C" |
| 4757 | # endif |
| 4758 | int F77_DUMMY_MAIN() { return 1; } |
| 4759 | #endif |
| 4760 | int |
| 4761 | main () |
| 4762 | { |
| 4763 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4764 | test_array [0] = 0 |
| 4765 | |
| 4766 | ; |
| 4767 | return 0; |
| 4768 | } |
| 4769 | _ACEOF |
| 4770 | rm -f conftest.$ac_objext |
| 4771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4772 | (eval $ac_compile) 2>&5 |
| 4773 | ac_status=$? |
| 4774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4775 | (exit $ac_status); } && |
| 4776 | { ac_try='test -s conftest.$ac_objext' |
| 4777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4778 | (eval $ac_try) 2>&5 |
| 4779 | ac_status=$? |
| 4780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4781 | (exit $ac_status); }; }; then |
| 4782 | ac_hi=$ac_mid; break |
| 4783 | else |
| 4784 | echo "$as_me: failed program was:" >&5 |
| 4785 | cat conftest.$ac_ext >&5 |
| 4786 | ac_lo=`expr $ac_mid + 1` |
| 4787 | if test $ac_lo -le $ac_mid; then |
| 4788 | ac_lo= ac_hi= |
| 4789 | break |
| 4790 | fi |
| 4791 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 4792 | fi |
| 4793 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4794 | done |
| 4795 | else |
| 4796 | echo "$as_me: failed program was:" >&5 |
| 4797 | cat conftest.$ac_ext >&5 |
| 4798 | cat >conftest.$ac_ext <<_ACEOF |
| 4799 | #line $LINENO "configure" |
| 4800 | #include "confdefs.h" |
| 4801 | $ac_includes_default |
| 4802 | #ifdef F77_DUMMY_MAIN |
| 4803 | # ifdef __cplusplus |
| 4804 | extern "C" |
| 4805 | # endif |
| 4806 | int F77_DUMMY_MAIN() { return 1; } |
| 4807 | #endif |
| 4808 | int |
| 4809 | main () |
| 4810 | { |
| 4811 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 4812 | test_array [0] = 0 |
| 4813 | |
| 4814 | ; |
| 4815 | return 0; |
| 4816 | } |
| 4817 | _ACEOF |
| 4818 | rm -f conftest.$ac_objext |
| 4819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4820 | (eval $ac_compile) 2>&5 |
| 4821 | ac_status=$? |
| 4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4823 | (exit $ac_status); } && |
| 4824 | { ac_try='test -s conftest.$ac_objext' |
| 4825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4826 | (eval $ac_try) 2>&5 |
| 4827 | ac_status=$? |
| 4828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4829 | (exit $ac_status); }; }; then |
| 4830 | ac_hi=-1 ac_mid=-1 |
| 4831 | while :; do |
| 4832 | cat >conftest.$ac_ext <<_ACEOF |
| 4833 | #line $LINENO "configure" |
| 4834 | #include "confdefs.h" |
| 4835 | $ac_includes_default |
| 4836 | #ifdef F77_DUMMY_MAIN |
| 4837 | # ifdef __cplusplus |
| 4838 | extern "C" |
| 4839 | # endif |
| 4840 | int F77_DUMMY_MAIN() { return 1; } |
| 4841 | #endif |
| 4842 | int |
| 4843 | main () |
| 4844 | { |
| 4845 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 4846 | test_array [0] = 0 |
| 4847 | |
| 4848 | ; |
| 4849 | return 0; |
| 4850 | } |
| 4851 | _ACEOF |
| 4852 | rm -f conftest.$ac_objext |
| 4853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4854 | (eval $ac_compile) 2>&5 |
| 4855 | ac_status=$? |
| 4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4857 | (exit $ac_status); } && |
| 4858 | { ac_try='test -s conftest.$ac_objext' |
| 4859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4860 | (eval $ac_try) 2>&5 |
| 4861 | ac_status=$? |
| 4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4863 | (exit $ac_status); }; }; then |
| 4864 | ac_lo=$ac_mid; break |
| 4865 | else |
| 4866 | echo "$as_me: failed program was:" >&5 |
| 4867 | cat conftest.$ac_ext >&5 |
| 4868 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 4869 | if test $ac_mid -le $ac_hi; then |
| 4870 | ac_lo= ac_hi= |
| 4871 | break |
| 4872 | fi |
| 4873 | ac_mid=`expr 2 '*' $ac_mid` |
| 4874 | fi |
| 4875 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4876 | done |
| 4877 | else |
| 4878 | echo "$as_me: failed program was:" >&5 |
| 4879 | cat conftest.$ac_ext >&5 |
| 4880 | ac_lo= ac_hi= |
| 4881 | fi |
| 4882 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4883 | fi |
| 4884 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4885 | # Binary search between lo and hi bounds. |
| 4886 | while test "x$ac_lo" != "x$ac_hi"; do |
| 4887 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 4888 | cat >conftest.$ac_ext <<_ACEOF |
| 4889 | #line $LINENO "configure" |
| 4890 | #include "confdefs.h" |
| 4891 | $ac_includes_default |
| 4892 | #ifdef F77_DUMMY_MAIN |
| 4893 | # ifdef __cplusplus |
| 4894 | extern "C" |
| 4895 | # endif |
| 4896 | int F77_DUMMY_MAIN() { return 1; } |
| 4897 | #endif |
| 4898 | int |
| 4899 | main () |
| 4900 | { |
| 4901 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4902 | test_array [0] = 0 |
| 4903 | |
| 4904 | ; |
| 4905 | return 0; |
| 4906 | } |
| 4907 | _ACEOF |
| 4908 | rm -f conftest.$ac_objext |
| 4909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4910 | (eval $ac_compile) 2>&5 |
| 4911 | ac_status=$? |
| 4912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4913 | (exit $ac_status); } && |
| 4914 | { ac_try='test -s conftest.$ac_objext' |
| 4915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4916 | (eval $ac_try) 2>&5 |
| 4917 | ac_status=$? |
| 4918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4919 | (exit $ac_status); }; }; then |
| 4920 | ac_hi=$ac_mid |
| 4921 | else |
| 4922 | echo "$as_me: failed program was:" >&5 |
| 4923 | cat conftest.$ac_ext >&5 |
| 4924 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 4925 | fi |
| 4926 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4927 | done |
| 4928 | case $ac_lo in |
| 4929 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 4930 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 4931 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 4932 | { (exit 1); exit 1; }; } ;; |
| 4933 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4934 | else |
| 4935 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4936 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 4937 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 4938 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4939 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4940 | cat >conftest.$ac_ext <<_ACEOF |
| 4941 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4942 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4943 | $ac_includes_default |
| 4944 | long longval () { return (long) (sizeof (int)); } |
| 4945 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4946 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4947 | #include <stdlib.h> |
| 4948 | #ifdef F77_DUMMY_MAIN |
| 4949 | # ifdef __cplusplus |
| 4950 | extern "C" |
| 4951 | # endif |
| 4952 | int F77_DUMMY_MAIN() { return 1; } |
| 4953 | #endif |
| 4954 | int |
| 4955 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4956 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4957 | |
| 4958 | FILE *f = fopen ("conftest.val", "w"); |
| 4959 | if (! f) |
| 4960 | exit (1); |
| 4961 | if (((long) (sizeof (int))) < 0) |
| 4962 | { |
| 4963 | long i = longval (); |
| 4964 | if (i != ((long) (sizeof (int)))) |
| 4965 | exit (1); |
| 4966 | fprintf (f, "%ld\n", i); |
| 4967 | } |
| 4968 | else |
| 4969 | { |
| 4970 | unsigned long i = ulongval (); |
| 4971 | if (i != ((long) (sizeof (int)))) |
| 4972 | exit (1); |
| 4973 | fprintf (f, "%lu\n", i); |
| 4974 | } |
| 4975 | exit (ferror (f) || fclose (f) != 0); |
| 4976 | |
| 4977 | ; |
| 4978 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4979 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4980 | _ACEOF |
| 4981 | rm -f conftest$ac_exeext |
| 4982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4983 | (eval $ac_link) 2>&5 |
| 4984 | ac_status=$? |
| 4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4986 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4988 | (eval $ac_try) 2>&5 |
| 4989 | ac_status=$? |
| 4990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4991 | (exit $ac_status); }; }; then |
| 4992 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4993 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4994 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4995 | echo "$as_me: failed program was:" >&5 |
| 4996 | cat conftest.$ac_ext >&5 |
| 4997 | ( exit $ac_status ) |
| 4998 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 4999 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5000 | { (exit 1); exit 1; }; } |
| 5001 | fi |
| 5002 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5003 | fi |
| 5004 | fi |
| 5005 | rm -f conftest.val |
| 5006 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5007 | ac_cv_sizeof_int=0 |
| 5008 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5009 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5010 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5011 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5012 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5013 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5014 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5015 | |
| 5016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5017 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5018 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5019 | if test "${ac_cv_type_long+set}" = set; then |
| 5020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5021 | else |
| 5022 | cat >conftest.$ac_ext <<_ACEOF |
| 5023 | #line $LINENO "configure" |
| 5024 | #include "confdefs.h" |
| 5025 | $ac_includes_default |
| 5026 | #ifdef F77_DUMMY_MAIN |
| 5027 | # ifdef __cplusplus |
| 5028 | extern "C" |
| 5029 | # endif |
| 5030 | int F77_DUMMY_MAIN() { return 1; } |
| 5031 | #endif |
| 5032 | int |
| 5033 | main () |
| 5034 | { |
| 5035 | if ((long *) 0) |
| 5036 | return 0; |
| 5037 | if (sizeof (long)) |
| 5038 | return 0; |
| 5039 | ; |
| 5040 | return 0; |
| 5041 | } |
| 5042 | _ACEOF |
| 5043 | rm -f conftest.$ac_objext |
| 5044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5045 | (eval $ac_compile) 2>&5 |
| 5046 | ac_status=$? |
| 5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5048 | (exit $ac_status); } && |
| 5049 | { ac_try='test -s conftest.$ac_objext' |
| 5050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5051 | (eval $ac_try) 2>&5 |
| 5052 | ac_status=$? |
| 5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5054 | (exit $ac_status); }; }; then |
| 5055 | ac_cv_type_long=yes |
| 5056 | else |
| 5057 | echo "$as_me: failed program was:" >&5 |
| 5058 | cat conftest.$ac_ext >&5 |
| 5059 | ac_cv_type_long=no |
| 5060 | fi |
| 5061 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5062 | fi |
| 5063 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5064 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5065 | |
| 5066 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5067 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5068 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5070 | else |
| 5071 | if test "$ac_cv_type_long" = yes; then |
| 5072 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5073 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5074 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5075 | # This bug is HP SR number 8606223364. |
| 5076 | if test "$cross_compiling" = yes; then |
| 5077 | # Depending upon the size, compute the lo and hi bounds. |
| 5078 | cat >conftest.$ac_ext <<_ACEOF |
| 5079 | #line $LINENO "configure" |
| 5080 | #include "confdefs.h" |
| 5081 | $ac_includes_default |
| 5082 | #ifdef F77_DUMMY_MAIN |
| 5083 | # ifdef __cplusplus |
| 5084 | extern "C" |
| 5085 | # endif |
| 5086 | int F77_DUMMY_MAIN() { return 1; } |
| 5087 | #endif |
| 5088 | int |
| 5089 | main () |
| 5090 | { |
| 5091 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5092 | test_array [0] = 0 |
| 5093 | |
| 5094 | ; |
| 5095 | return 0; |
| 5096 | } |
| 5097 | _ACEOF |
| 5098 | rm -f conftest.$ac_objext |
| 5099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5100 | (eval $ac_compile) 2>&5 |
| 5101 | ac_status=$? |
| 5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5103 | (exit $ac_status); } && |
| 5104 | { ac_try='test -s conftest.$ac_objext' |
| 5105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5106 | (eval $ac_try) 2>&5 |
| 5107 | ac_status=$? |
| 5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5109 | (exit $ac_status); }; }; then |
| 5110 | ac_lo=0 ac_mid=0 |
| 5111 | while :; do |
| 5112 | cat >conftest.$ac_ext <<_ACEOF |
| 5113 | #line $LINENO "configure" |
| 5114 | #include "confdefs.h" |
| 5115 | $ac_includes_default |
| 5116 | #ifdef F77_DUMMY_MAIN |
| 5117 | # ifdef __cplusplus |
| 5118 | extern "C" |
| 5119 | # endif |
| 5120 | int F77_DUMMY_MAIN() { return 1; } |
| 5121 | #endif |
| 5122 | int |
| 5123 | main () |
| 5124 | { |
| 5125 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5126 | test_array [0] = 0 |
| 5127 | |
| 5128 | ; |
| 5129 | return 0; |
| 5130 | } |
| 5131 | _ACEOF |
| 5132 | rm -f conftest.$ac_objext |
| 5133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5134 | (eval $ac_compile) 2>&5 |
| 5135 | ac_status=$? |
| 5136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5137 | (exit $ac_status); } && |
| 5138 | { ac_try='test -s conftest.$ac_objext' |
| 5139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5140 | (eval $ac_try) 2>&5 |
| 5141 | ac_status=$? |
| 5142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5143 | (exit $ac_status); }; }; then |
| 5144 | ac_hi=$ac_mid; break |
| 5145 | else |
| 5146 | echo "$as_me: failed program was:" >&5 |
| 5147 | cat conftest.$ac_ext >&5 |
| 5148 | ac_lo=`expr $ac_mid + 1` |
| 5149 | if test $ac_lo -le $ac_mid; then |
| 5150 | ac_lo= ac_hi= |
| 5151 | break |
| 5152 | fi |
| 5153 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5154 | fi |
| 5155 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5156 | done |
| 5157 | else |
| 5158 | echo "$as_me: failed program was:" >&5 |
| 5159 | cat conftest.$ac_ext >&5 |
| 5160 | cat >conftest.$ac_ext <<_ACEOF |
| 5161 | #line $LINENO "configure" |
| 5162 | #include "confdefs.h" |
| 5163 | $ac_includes_default |
| 5164 | #ifdef F77_DUMMY_MAIN |
| 5165 | # ifdef __cplusplus |
| 5166 | extern "C" |
| 5167 | # endif |
| 5168 | int F77_DUMMY_MAIN() { return 1; } |
| 5169 | #endif |
| 5170 | int |
| 5171 | main () |
| 5172 | { |
| 5173 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5174 | test_array [0] = 0 |
| 5175 | |
| 5176 | ; |
| 5177 | return 0; |
| 5178 | } |
| 5179 | _ACEOF |
| 5180 | rm -f conftest.$ac_objext |
| 5181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5182 | (eval $ac_compile) 2>&5 |
| 5183 | ac_status=$? |
| 5184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5185 | (exit $ac_status); } && |
| 5186 | { ac_try='test -s conftest.$ac_objext' |
| 5187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5188 | (eval $ac_try) 2>&5 |
| 5189 | ac_status=$? |
| 5190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5191 | (exit $ac_status); }; }; then |
| 5192 | ac_hi=-1 ac_mid=-1 |
| 5193 | while :; do |
| 5194 | cat >conftest.$ac_ext <<_ACEOF |
| 5195 | #line $LINENO "configure" |
| 5196 | #include "confdefs.h" |
| 5197 | $ac_includes_default |
| 5198 | #ifdef F77_DUMMY_MAIN |
| 5199 | # ifdef __cplusplus |
| 5200 | extern "C" |
| 5201 | # endif |
| 5202 | int F77_DUMMY_MAIN() { return 1; } |
| 5203 | #endif |
| 5204 | int |
| 5205 | main () |
| 5206 | { |
| 5207 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5208 | test_array [0] = 0 |
| 5209 | |
| 5210 | ; |
| 5211 | return 0; |
| 5212 | } |
| 5213 | _ACEOF |
| 5214 | rm -f conftest.$ac_objext |
| 5215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5216 | (eval $ac_compile) 2>&5 |
| 5217 | ac_status=$? |
| 5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5219 | (exit $ac_status); } && |
| 5220 | { ac_try='test -s conftest.$ac_objext' |
| 5221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5222 | (eval $ac_try) 2>&5 |
| 5223 | ac_status=$? |
| 5224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5225 | (exit $ac_status); }; }; then |
| 5226 | ac_lo=$ac_mid; break |
| 5227 | else |
| 5228 | echo "$as_me: failed program was:" >&5 |
| 5229 | cat conftest.$ac_ext >&5 |
| 5230 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5231 | if test $ac_mid -le $ac_hi; then |
| 5232 | ac_lo= ac_hi= |
| 5233 | break |
| 5234 | fi |
| 5235 | ac_mid=`expr 2 '*' $ac_mid` |
| 5236 | fi |
| 5237 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5238 | done |
| 5239 | else |
| 5240 | echo "$as_me: failed program was:" >&5 |
| 5241 | cat conftest.$ac_ext >&5 |
| 5242 | ac_lo= ac_hi= |
| 5243 | fi |
| 5244 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5245 | fi |
| 5246 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5247 | # Binary search between lo and hi bounds. |
| 5248 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5249 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5250 | cat >conftest.$ac_ext <<_ACEOF |
| 5251 | #line $LINENO "configure" |
| 5252 | #include "confdefs.h" |
| 5253 | $ac_includes_default |
| 5254 | #ifdef F77_DUMMY_MAIN |
| 5255 | # ifdef __cplusplus |
| 5256 | extern "C" |
| 5257 | # endif |
| 5258 | int F77_DUMMY_MAIN() { return 1; } |
| 5259 | #endif |
| 5260 | int |
| 5261 | main () |
| 5262 | { |
| 5263 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5264 | test_array [0] = 0 |
| 5265 | |
| 5266 | ; |
| 5267 | return 0; |
| 5268 | } |
| 5269 | _ACEOF |
| 5270 | rm -f conftest.$ac_objext |
| 5271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5272 | (eval $ac_compile) 2>&5 |
| 5273 | ac_status=$? |
| 5274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5275 | (exit $ac_status); } && |
| 5276 | { ac_try='test -s conftest.$ac_objext' |
| 5277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5278 | (eval $ac_try) 2>&5 |
| 5279 | ac_status=$? |
| 5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5281 | (exit $ac_status); }; }; then |
| 5282 | ac_hi=$ac_mid |
| 5283 | else |
| 5284 | echo "$as_me: failed program was:" >&5 |
| 5285 | cat conftest.$ac_ext >&5 |
| 5286 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5287 | fi |
| 5288 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5289 | done |
| 5290 | case $ac_lo in |
| 5291 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5292 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5293 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5294 | { (exit 1); exit 1; }; } ;; |
| 5295 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5296 | else |
| 5297 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5298 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5299 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5300 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5302 | cat >conftest.$ac_ext <<_ACEOF |
| 5303 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5304 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5305 | $ac_includes_default |
| 5306 | long longval () { return (long) (sizeof (long)); } |
| 5307 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5308 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5309 | #include <stdlib.h> |
| 5310 | #ifdef F77_DUMMY_MAIN |
| 5311 | # ifdef __cplusplus |
| 5312 | extern "C" |
| 5313 | # endif |
| 5314 | int F77_DUMMY_MAIN() { return 1; } |
| 5315 | #endif |
| 5316 | int |
| 5317 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5318 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5319 | |
| 5320 | FILE *f = fopen ("conftest.val", "w"); |
| 5321 | if (! f) |
| 5322 | exit (1); |
| 5323 | if (((long) (sizeof (long))) < 0) |
| 5324 | { |
| 5325 | long i = longval (); |
| 5326 | if (i != ((long) (sizeof (long)))) |
| 5327 | exit (1); |
| 5328 | fprintf (f, "%ld\n", i); |
| 5329 | } |
| 5330 | else |
| 5331 | { |
| 5332 | unsigned long i = ulongval (); |
| 5333 | if (i != ((long) (sizeof (long)))) |
| 5334 | exit (1); |
| 5335 | fprintf (f, "%lu\n", i); |
| 5336 | } |
| 5337 | exit (ferror (f) || fclose (f) != 0); |
| 5338 | |
| 5339 | ; |
| 5340 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5341 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5342 | _ACEOF |
| 5343 | rm -f conftest$ac_exeext |
| 5344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5345 | (eval $ac_link) 2>&5 |
| 5346 | ac_status=$? |
| 5347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5348 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5350 | (eval $ac_try) 2>&5 |
| 5351 | ac_status=$? |
| 5352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5353 | (exit $ac_status); }; }; then |
| 5354 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5356 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5357 | echo "$as_me: failed program was:" >&5 |
| 5358 | cat conftest.$ac_ext >&5 |
| 5359 | ( exit $ac_status ) |
| 5360 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5361 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5362 | { (exit 1); exit 1; }; } |
| 5363 | fi |
| 5364 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5365 | fi |
| 5366 | fi |
| 5367 | rm -f conftest.val |
| 5368 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5369 | ac_cv_sizeof_long=0 |
| 5370 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5371 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5372 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5373 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5374 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5375 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5376 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5377 | |
| 5378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5379 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5380 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5381 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5383 | else |
| 5384 | cat >conftest.$ac_ext <<_ACEOF |
| 5385 | #line $LINENO "configure" |
| 5386 | #include "confdefs.h" |
| 5387 | $ac_includes_default |
| 5388 | #ifdef F77_DUMMY_MAIN |
| 5389 | # ifdef __cplusplus |
| 5390 | extern "C" |
| 5391 | # endif |
| 5392 | int F77_DUMMY_MAIN() { return 1; } |
| 5393 | #endif |
| 5394 | int |
| 5395 | main () |
| 5396 | { |
| 5397 | if ((void * *) 0) |
| 5398 | return 0; |
| 5399 | if (sizeof (void *)) |
| 5400 | return 0; |
| 5401 | ; |
| 5402 | return 0; |
| 5403 | } |
| 5404 | _ACEOF |
| 5405 | rm -f conftest.$ac_objext |
| 5406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5407 | (eval $ac_compile) 2>&5 |
| 5408 | ac_status=$? |
| 5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5410 | (exit $ac_status); } && |
| 5411 | { ac_try='test -s conftest.$ac_objext' |
| 5412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5413 | (eval $ac_try) 2>&5 |
| 5414 | ac_status=$? |
| 5415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5416 | (exit $ac_status); }; }; then |
| 5417 | ac_cv_type_void_p=yes |
| 5418 | else |
| 5419 | echo "$as_me: failed program was:" >&5 |
| 5420 | cat conftest.$ac_ext >&5 |
| 5421 | ac_cv_type_void_p=no |
| 5422 | fi |
| 5423 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5424 | fi |
| 5425 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5426 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5427 | |
| 5428 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5429 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5430 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5432 | else |
| 5433 | if test "$ac_cv_type_void_p" = yes; then |
| 5434 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5435 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5436 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5437 | # This bug is HP SR number 8606223364. |
| 5438 | if test "$cross_compiling" = yes; then |
| 5439 | # Depending upon the size, compute the lo and hi bounds. |
| 5440 | cat >conftest.$ac_ext <<_ACEOF |
| 5441 | #line $LINENO "configure" |
| 5442 | #include "confdefs.h" |
| 5443 | $ac_includes_default |
| 5444 | #ifdef F77_DUMMY_MAIN |
| 5445 | # ifdef __cplusplus |
| 5446 | extern "C" |
| 5447 | # endif |
| 5448 | int F77_DUMMY_MAIN() { return 1; } |
| 5449 | #endif |
| 5450 | int |
| 5451 | main () |
| 5452 | { |
| 5453 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5454 | test_array [0] = 0 |
| 5455 | |
| 5456 | ; |
| 5457 | return 0; |
| 5458 | } |
| 5459 | _ACEOF |
| 5460 | rm -f conftest.$ac_objext |
| 5461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5462 | (eval $ac_compile) 2>&5 |
| 5463 | ac_status=$? |
| 5464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5465 | (exit $ac_status); } && |
| 5466 | { ac_try='test -s conftest.$ac_objext' |
| 5467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5468 | (eval $ac_try) 2>&5 |
| 5469 | ac_status=$? |
| 5470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5471 | (exit $ac_status); }; }; then |
| 5472 | ac_lo=0 ac_mid=0 |
| 5473 | while :; do |
| 5474 | cat >conftest.$ac_ext <<_ACEOF |
| 5475 | #line $LINENO "configure" |
| 5476 | #include "confdefs.h" |
| 5477 | $ac_includes_default |
| 5478 | #ifdef F77_DUMMY_MAIN |
| 5479 | # ifdef __cplusplus |
| 5480 | extern "C" |
| 5481 | # endif |
| 5482 | int F77_DUMMY_MAIN() { return 1; } |
| 5483 | #endif |
| 5484 | int |
| 5485 | main () |
| 5486 | { |
| 5487 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5488 | test_array [0] = 0 |
| 5489 | |
| 5490 | ; |
| 5491 | return 0; |
| 5492 | } |
| 5493 | _ACEOF |
| 5494 | rm -f conftest.$ac_objext |
| 5495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5496 | (eval $ac_compile) 2>&5 |
| 5497 | ac_status=$? |
| 5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5499 | (exit $ac_status); } && |
| 5500 | { ac_try='test -s conftest.$ac_objext' |
| 5501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5502 | (eval $ac_try) 2>&5 |
| 5503 | ac_status=$? |
| 5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5505 | (exit $ac_status); }; }; then |
| 5506 | ac_hi=$ac_mid; break |
| 5507 | else |
| 5508 | echo "$as_me: failed program was:" >&5 |
| 5509 | cat conftest.$ac_ext >&5 |
| 5510 | ac_lo=`expr $ac_mid + 1` |
| 5511 | if test $ac_lo -le $ac_mid; then |
| 5512 | ac_lo= ac_hi= |
| 5513 | break |
| 5514 | fi |
| 5515 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5516 | fi |
| 5517 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5518 | done |
| 5519 | else |
| 5520 | echo "$as_me: failed program was:" >&5 |
| 5521 | cat conftest.$ac_ext >&5 |
| 5522 | cat >conftest.$ac_ext <<_ACEOF |
| 5523 | #line $LINENO "configure" |
| 5524 | #include "confdefs.h" |
| 5525 | $ac_includes_default |
| 5526 | #ifdef F77_DUMMY_MAIN |
| 5527 | # ifdef __cplusplus |
| 5528 | extern "C" |
| 5529 | # endif |
| 5530 | int F77_DUMMY_MAIN() { return 1; } |
| 5531 | #endif |
| 5532 | int |
| 5533 | main () |
| 5534 | { |
| 5535 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 5536 | test_array [0] = 0 |
| 5537 | |
| 5538 | ; |
| 5539 | return 0; |
| 5540 | } |
| 5541 | _ACEOF |
| 5542 | rm -f conftest.$ac_objext |
| 5543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5544 | (eval $ac_compile) 2>&5 |
| 5545 | ac_status=$? |
| 5546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5547 | (exit $ac_status); } && |
| 5548 | { ac_try='test -s conftest.$ac_objext' |
| 5549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5550 | (eval $ac_try) 2>&5 |
| 5551 | ac_status=$? |
| 5552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5553 | (exit $ac_status); }; }; then |
| 5554 | ac_hi=-1 ac_mid=-1 |
| 5555 | while :; do |
| 5556 | cat >conftest.$ac_ext <<_ACEOF |
| 5557 | #line $LINENO "configure" |
| 5558 | #include "confdefs.h" |
| 5559 | $ac_includes_default |
| 5560 | #ifdef F77_DUMMY_MAIN |
| 5561 | # ifdef __cplusplus |
| 5562 | extern "C" |
| 5563 | # endif |
| 5564 | int F77_DUMMY_MAIN() { return 1; } |
| 5565 | #endif |
| 5566 | int |
| 5567 | main () |
| 5568 | { |
| 5569 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 5570 | test_array [0] = 0 |
| 5571 | |
| 5572 | ; |
| 5573 | return 0; |
| 5574 | } |
| 5575 | _ACEOF |
| 5576 | rm -f conftest.$ac_objext |
| 5577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5578 | (eval $ac_compile) 2>&5 |
| 5579 | ac_status=$? |
| 5580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5581 | (exit $ac_status); } && |
| 5582 | { ac_try='test -s conftest.$ac_objext' |
| 5583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5584 | (eval $ac_try) 2>&5 |
| 5585 | ac_status=$? |
| 5586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5587 | (exit $ac_status); }; }; then |
| 5588 | ac_lo=$ac_mid; break |
| 5589 | else |
| 5590 | echo "$as_me: failed program was:" >&5 |
| 5591 | cat conftest.$ac_ext >&5 |
| 5592 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5593 | if test $ac_mid -le $ac_hi; then |
| 5594 | ac_lo= ac_hi= |
| 5595 | break |
| 5596 | fi |
| 5597 | ac_mid=`expr 2 '*' $ac_mid` |
| 5598 | fi |
| 5599 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5600 | done |
| 5601 | else |
| 5602 | echo "$as_me: failed program was:" >&5 |
| 5603 | cat conftest.$ac_ext >&5 |
| 5604 | ac_lo= ac_hi= |
| 5605 | fi |
| 5606 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5607 | fi |
| 5608 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5609 | # Binary search between lo and hi bounds. |
| 5610 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5611 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5612 | cat >conftest.$ac_ext <<_ACEOF |
| 5613 | #line $LINENO "configure" |
| 5614 | #include "confdefs.h" |
| 5615 | $ac_includes_default |
| 5616 | #ifdef F77_DUMMY_MAIN |
| 5617 | # ifdef __cplusplus |
| 5618 | extern "C" |
| 5619 | # endif |
| 5620 | int F77_DUMMY_MAIN() { return 1; } |
| 5621 | #endif |
| 5622 | int |
| 5623 | main () |
| 5624 | { |
| 5625 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5626 | test_array [0] = 0 |
| 5627 | |
| 5628 | ; |
| 5629 | return 0; |
| 5630 | } |
| 5631 | _ACEOF |
| 5632 | rm -f conftest.$ac_objext |
| 5633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5634 | (eval $ac_compile) 2>&5 |
| 5635 | ac_status=$? |
| 5636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5637 | (exit $ac_status); } && |
| 5638 | { ac_try='test -s conftest.$ac_objext' |
| 5639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5640 | (eval $ac_try) 2>&5 |
| 5641 | ac_status=$? |
| 5642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5643 | (exit $ac_status); }; }; then |
| 5644 | ac_hi=$ac_mid |
| 5645 | else |
| 5646 | echo "$as_me: failed program was:" >&5 |
| 5647 | cat conftest.$ac_ext >&5 |
| 5648 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5649 | fi |
| 5650 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5651 | done |
| 5652 | case $ac_lo in |
| 5653 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 5654 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5655 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5656 | { (exit 1); exit 1; }; } ;; |
| 5657 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5658 | else |
| 5659 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5660 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5661 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5662 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5663 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5664 | cat >conftest.$ac_ext <<_ACEOF |
| 5665 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5666 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5667 | $ac_includes_default |
| 5668 | long longval () { return (long) (sizeof (void *)); } |
| 5669 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5670 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5671 | #include <stdlib.h> |
| 5672 | #ifdef F77_DUMMY_MAIN |
| 5673 | # ifdef __cplusplus |
| 5674 | extern "C" |
| 5675 | # endif |
| 5676 | int F77_DUMMY_MAIN() { return 1; } |
| 5677 | #endif |
| 5678 | int |
| 5679 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5680 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5681 | |
| 5682 | FILE *f = fopen ("conftest.val", "w"); |
| 5683 | if (! f) |
| 5684 | exit (1); |
| 5685 | if (((long) (sizeof (void *))) < 0) |
| 5686 | { |
| 5687 | long i = longval (); |
| 5688 | if (i != ((long) (sizeof (void *)))) |
| 5689 | exit (1); |
| 5690 | fprintf (f, "%ld\n", i); |
| 5691 | } |
| 5692 | else |
| 5693 | { |
| 5694 | unsigned long i = ulongval (); |
| 5695 | if (i != ((long) (sizeof (void *)))) |
| 5696 | exit (1); |
| 5697 | fprintf (f, "%lu\n", i); |
| 5698 | } |
| 5699 | exit (ferror (f) || fclose (f) != 0); |
| 5700 | |
| 5701 | ; |
| 5702 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5703 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5704 | _ACEOF |
| 5705 | rm -f conftest$ac_exeext |
| 5706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5707 | (eval $ac_link) 2>&5 |
| 5708 | ac_status=$? |
| 5709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5710 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5712 | (eval $ac_try) 2>&5 |
| 5713 | ac_status=$? |
| 5714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5715 | (exit $ac_status); }; }; then |
| 5716 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5717 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5718 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5719 | echo "$as_me: failed program was:" >&5 |
| 5720 | cat conftest.$ac_ext >&5 |
| 5721 | ( exit $ac_status ) |
| 5722 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5723 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5724 | { (exit 1); exit 1; }; } |
| 5725 | fi |
| 5726 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5727 | fi |
| 5728 | fi |
| 5729 | rm -f conftest.val |
| 5730 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5731 | ac_cv_sizeof_void_p=0 |
| 5732 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5733 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5734 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 5735 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 5736 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5737 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5738 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5739 | |
| 5740 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5741 | echo "$as_me:$LINENO: checking for char" >&5 |
| 5742 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 5743 | if test "${ac_cv_type_char+set}" = set; then |
| 5744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5745 | else |
| 5746 | cat >conftest.$ac_ext <<_ACEOF |
| 5747 | #line $LINENO "configure" |
| 5748 | #include "confdefs.h" |
| 5749 | $ac_includes_default |
| 5750 | #ifdef F77_DUMMY_MAIN |
| 5751 | # ifdef __cplusplus |
| 5752 | extern "C" |
| 5753 | # endif |
| 5754 | int F77_DUMMY_MAIN() { return 1; } |
| 5755 | #endif |
| 5756 | int |
| 5757 | main () |
| 5758 | { |
| 5759 | if ((char *) 0) |
| 5760 | return 0; |
| 5761 | if (sizeof (char)) |
| 5762 | return 0; |
| 5763 | ; |
| 5764 | return 0; |
| 5765 | } |
| 5766 | _ACEOF |
| 5767 | rm -f conftest.$ac_objext |
| 5768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5769 | (eval $ac_compile) 2>&5 |
| 5770 | ac_status=$? |
| 5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5772 | (exit $ac_status); } && |
| 5773 | { ac_try='test -s conftest.$ac_objext' |
| 5774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5775 | (eval $ac_try) 2>&5 |
| 5776 | ac_status=$? |
| 5777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5778 | (exit $ac_status); }; }; then |
| 5779 | ac_cv_type_char=yes |
| 5780 | else |
| 5781 | echo "$as_me: failed program was:" >&5 |
| 5782 | cat conftest.$ac_ext >&5 |
| 5783 | ac_cv_type_char=no |
| 5784 | fi |
| 5785 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5786 | fi |
| 5787 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 5788 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 5789 | |
| 5790 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 5791 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 5792 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 5793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5794 | else |
| 5795 | if test "$ac_cv_type_char" = yes; then |
| 5796 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5797 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5798 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5799 | # This bug is HP SR number 8606223364. |
| 5800 | if test "$cross_compiling" = yes; then |
| 5801 | # Depending upon the size, compute the lo and hi bounds. |
| 5802 | cat >conftest.$ac_ext <<_ACEOF |
| 5803 | #line $LINENO "configure" |
| 5804 | #include "confdefs.h" |
| 5805 | $ac_includes_default |
| 5806 | #ifdef F77_DUMMY_MAIN |
| 5807 | # ifdef __cplusplus |
| 5808 | extern "C" |
| 5809 | # endif |
| 5810 | int F77_DUMMY_MAIN() { return 1; } |
| 5811 | #endif |
| 5812 | int |
| 5813 | main () |
| 5814 | { |
| 5815 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 5816 | test_array [0] = 0 |
| 5817 | |
| 5818 | ; |
| 5819 | return 0; |
| 5820 | } |
| 5821 | _ACEOF |
| 5822 | rm -f conftest.$ac_objext |
| 5823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5824 | (eval $ac_compile) 2>&5 |
| 5825 | ac_status=$? |
| 5826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5827 | (exit $ac_status); } && |
| 5828 | { ac_try='test -s conftest.$ac_objext' |
| 5829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5830 | (eval $ac_try) 2>&5 |
| 5831 | ac_status=$? |
| 5832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5833 | (exit $ac_status); }; }; then |
| 5834 | ac_lo=0 ac_mid=0 |
| 5835 | while :; do |
| 5836 | cat >conftest.$ac_ext <<_ACEOF |
| 5837 | #line $LINENO "configure" |
| 5838 | #include "confdefs.h" |
| 5839 | $ac_includes_default |
| 5840 | #ifdef F77_DUMMY_MAIN |
| 5841 | # ifdef __cplusplus |
| 5842 | extern "C" |
| 5843 | # endif |
| 5844 | int F77_DUMMY_MAIN() { return 1; } |
| 5845 | #endif |
| 5846 | int |
| 5847 | main () |
| 5848 | { |
| 5849 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5850 | test_array [0] = 0 |
| 5851 | |
| 5852 | ; |
| 5853 | return 0; |
| 5854 | } |
| 5855 | _ACEOF |
| 5856 | rm -f conftest.$ac_objext |
| 5857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5858 | (eval $ac_compile) 2>&5 |
| 5859 | ac_status=$? |
| 5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5861 | (exit $ac_status); } && |
| 5862 | { ac_try='test -s conftest.$ac_objext' |
| 5863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5864 | (eval $ac_try) 2>&5 |
| 5865 | ac_status=$? |
| 5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5867 | (exit $ac_status); }; }; then |
| 5868 | ac_hi=$ac_mid; break |
| 5869 | else |
| 5870 | echo "$as_me: failed program was:" >&5 |
| 5871 | cat conftest.$ac_ext >&5 |
| 5872 | ac_lo=`expr $ac_mid + 1` |
| 5873 | if test $ac_lo -le $ac_mid; then |
| 5874 | ac_lo= ac_hi= |
| 5875 | break |
| 5876 | fi |
| 5877 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5878 | fi |
| 5879 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5880 | done |
| 5881 | else |
| 5882 | echo "$as_me: failed program was:" >&5 |
| 5883 | cat conftest.$ac_ext >&5 |
| 5884 | cat >conftest.$ac_ext <<_ACEOF |
| 5885 | #line $LINENO "configure" |
| 5886 | #include "confdefs.h" |
| 5887 | $ac_includes_default |
| 5888 | #ifdef F77_DUMMY_MAIN |
| 5889 | # ifdef __cplusplus |
| 5890 | extern "C" |
| 5891 | # endif |
| 5892 | int F77_DUMMY_MAIN() { return 1; } |
| 5893 | #endif |
| 5894 | int |
| 5895 | main () |
| 5896 | { |
| 5897 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 5898 | test_array [0] = 0 |
| 5899 | |
| 5900 | ; |
| 5901 | return 0; |
| 5902 | } |
| 5903 | _ACEOF |
| 5904 | rm -f conftest.$ac_objext |
| 5905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5906 | (eval $ac_compile) 2>&5 |
| 5907 | ac_status=$? |
| 5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5909 | (exit $ac_status); } && |
| 5910 | { ac_try='test -s conftest.$ac_objext' |
| 5911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5912 | (eval $ac_try) 2>&5 |
| 5913 | ac_status=$? |
| 5914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5915 | (exit $ac_status); }; }; then |
| 5916 | ac_hi=-1 ac_mid=-1 |
| 5917 | while :; do |
| 5918 | cat >conftest.$ac_ext <<_ACEOF |
| 5919 | #line $LINENO "configure" |
| 5920 | #include "confdefs.h" |
| 5921 | $ac_includes_default |
| 5922 | #ifdef F77_DUMMY_MAIN |
| 5923 | # ifdef __cplusplus |
| 5924 | extern "C" |
| 5925 | # endif |
| 5926 | int F77_DUMMY_MAIN() { return 1; } |
| 5927 | #endif |
| 5928 | int |
| 5929 | main () |
| 5930 | { |
| 5931 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 5932 | test_array [0] = 0 |
| 5933 | |
| 5934 | ; |
| 5935 | return 0; |
| 5936 | } |
| 5937 | _ACEOF |
| 5938 | rm -f conftest.$ac_objext |
| 5939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5940 | (eval $ac_compile) 2>&5 |
| 5941 | ac_status=$? |
| 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5943 | (exit $ac_status); } && |
| 5944 | { ac_try='test -s conftest.$ac_objext' |
| 5945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5946 | (eval $ac_try) 2>&5 |
| 5947 | ac_status=$? |
| 5948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5949 | (exit $ac_status); }; }; then |
| 5950 | ac_lo=$ac_mid; break |
| 5951 | else |
| 5952 | echo "$as_me: failed program was:" >&5 |
| 5953 | cat conftest.$ac_ext >&5 |
| 5954 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5955 | if test $ac_mid -le $ac_hi; then |
| 5956 | ac_lo= ac_hi= |
| 5957 | break |
| 5958 | fi |
| 5959 | ac_mid=`expr 2 '*' $ac_mid` |
| 5960 | fi |
| 5961 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5962 | done |
| 5963 | else |
| 5964 | echo "$as_me: failed program was:" >&5 |
| 5965 | cat conftest.$ac_ext >&5 |
| 5966 | ac_lo= ac_hi= |
| 5967 | fi |
| 5968 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5969 | fi |
| 5970 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5971 | # Binary search between lo and hi bounds. |
| 5972 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5973 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5974 | cat >conftest.$ac_ext <<_ACEOF |
| 5975 | #line $LINENO "configure" |
| 5976 | #include "confdefs.h" |
| 5977 | $ac_includes_default |
| 5978 | #ifdef F77_DUMMY_MAIN |
| 5979 | # ifdef __cplusplus |
| 5980 | extern "C" |
| 5981 | # endif |
| 5982 | int F77_DUMMY_MAIN() { return 1; } |
| 5983 | #endif |
| 5984 | int |
| 5985 | main () |
| 5986 | { |
| 5987 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5988 | test_array [0] = 0 |
| 5989 | |
| 5990 | ; |
| 5991 | return 0; |
| 5992 | } |
| 5993 | _ACEOF |
| 5994 | rm -f conftest.$ac_objext |
| 5995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5996 | (eval $ac_compile) 2>&5 |
| 5997 | ac_status=$? |
| 5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5999 | (exit $ac_status); } && |
| 6000 | { ac_try='test -s conftest.$ac_objext' |
| 6001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6002 | (eval $ac_try) 2>&5 |
| 6003 | ac_status=$? |
| 6004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6005 | (exit $ac_status); }; }; then |
| 6006 | ac_hi=$ac_mid |
| 6007 | else |
| 6008 | echo "$as_me: failed program was:" >&5 |
| 6009 | cat conftest.$ac_ext >&5 |
| 6010 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6011 | fi |
| 6012 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6013 | done |
| 6014 | case $ac_lo in |
| 6015 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6016 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6017 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6018 | { (exit 1); exit 1; }; } ;; |
| 6019 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6020 | else |
| 6021 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6022 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6023 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6024 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6025 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6026 | cat >conftest.$ac_ext <<_ACEOF |
| 6027 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6028 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6029 | $ac_includes_default |
| 6030 | long longval () { return (long) (sizeof (char)); } |
| 6031 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6032 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6033 | #include <stdlib.h> |
| 6034 | #ifdef F77_DUMMY_MAIN |
| 6035 | # ifdef __cplusplus |
| 6036 | extern "C" |
| 6037 | # endif |
| 6038 | int F77_DUMMY_MAIN() { return 1; } |
| 6039 | #endif |
| 6040 | int |
| 6041 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6042 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6043 | |
| 6044 | FILE *f = fopen ("conftest.val", "w"); |
| 6045 | if (! f) |
| 6046 | exit (1); |
| 6047 | if (((long) (sizeof (char))) < 0) |
| 6048 | { |
| 6049 | long i = longval (); |
| 6050 | if (i != ((long) (sizeof (char)))) |
| 6051 | exit (1); |
| 6052 | fprintf (f, "%ld\n", i); |
| 6053 | } |
| 6054 | else |
| 6055 | { |
| 6056 | unsigned long i = ulongval (); |
| 6057 | if (i != ((long) (sizeof (char)))) |
| 6058 | exit (1); |
| 6059 | fprintf (f, "%lu\n", i); |
| 6060 | } |
| 6061 | exit (ferror (f) || fclose (f) != 0); |
| 6062 | |
| 6063 | ; |
| 6064 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6065 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6066 | _ACEOF |
| 6067 | rm -f conftest$ac_exeext |
| 6068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6069 | (eval $ac_link) 2>&5 |
| 6070 | ac_status=$? |
| 6071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6072 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6074 | (eval $ac_try) 2>&5 |
| 6075 | ac_status=$? |
| 6076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6077 | (exit $ac_status); }; }; then |
| 6078 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6080 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6081 | echo "$as_me: failed program was:" >&5 |
| 6082 | cat conftest.$ac_ext >&5 |
| 6083 | ( exit $ac_status ) |
| 6084 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6085 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6086 | { (exit 1); exit 1; }; } |
| 6087 | fi |
| 6088 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6089 | fi |
| 6090 | fi |
| 6091 | rm -f conftest.val |
| 6092 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6093 | ac_cv_sizeof_char=0 |
| 6094 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6095 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6096 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6097 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6098 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6099 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6100 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6101 | |
| 6102 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6103 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6104 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6105 | if test "${ac_cv_type_short+set}" = set; then |
| 6106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6107 | else |
| 6108 | cat >conftest.$ac_ext <<_ACEOF |
| 6109 | #line $LINENO "configure" |
| 6110 | #include "confdefs.h" |
| 6111 | $ac_includes_default |
| 6112 | #ifdef F77_DUMMY_MAIN |
| 6113 | # ifdef __cplusplus |
| 6114 | extern "C" |
| 6115 | # endif |
| 6116 | int F77_DUMMY_MAIN() { return 1; } |
| 6117 | #endif |
| 6118 | int |
| 6119 | main () |
| 6120 | { |
| 6121 | if ((short *) 0) |
| 6122 | return 0; |
| 6123 | if (sizeof (short)) |
| 6124 | return 0; |
| 6125 | ; |
| 6126 | return 0; |
| 6127 | } |
| 6128 | _ACEOF |
| 6129 | rm -f conftest.$ac_objext |
| 6130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6131 | (eval $ac_compile) 2>&5 |
| 6132 | ac_status=$? |
| 6133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6134 | (exit $ac_status); } && |
| 6135 | { ac_try='test -s conftest.$ac_objext' |
| 6136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6137 | (eval $ac_try) 2>&5 |
| 6138 | ac_status=$? |
| 6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6140 | (exit $ac_status); }; }; then |
| 6141 | ac_cv_type_short=yes |
| 6142 | else |
| 6143 | echo "$as_me: failed program was:" >&5 |
| 6144 | cat conftest.$ac_ext >&5 |
| 6145 | ac_cv_type_short=no |
| 6146 | fi |
| 6147 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6148 | fi |
| 6149 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6150 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6151 | |
| 6152 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6153 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6154 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6156 | else |
| 6157 | if test "$ac_cv_type_short" = yes; then |
| 6158 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6159 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6160 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6161 | # This bug is HP SR number 8606223364. |
| 6162 | if test "$cross_compiling" = yes; then |
| 6163 | # Depending upon the size, compute the lo and hi bounds. |
| 6164 | cat >conftest.$ac_ext <<_ACEOF |
| 6165 | #line $LINENO "configure" |
| 6166 | #include "confdefs.h" |
| 6167 | $ac_includes_default |
| 6168 | #ifdef F77_DUMMY_MAIN |
| 6169 | # ifdef __cplusplus |
| 6170 | extern "C" |
| 6171 | # endif |
| 6172 | int F77_DUMMY_MAIN() { return 1; } |
| 6173 | #endif |
| 6174 | int |
| 6175 | main () |
| 6176 | { |
| 6177 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6178 | test_array [0] = 0 |
| 6179 | |
| 6180 | ; |
| 6181 | return 0; |
| 6182 | } |
| 6183 | _ACEOF |
| 6184 | rm -f conftest.$ac_objext |
| 6185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6186 | (eval $ac_compile) 2>&5 |
| 6187 | ac_status=$? |
| 6188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6189 | (exit $ac_status); } && |
| 6190 | { ac_try='test -s conftest.$ac_objext' |
| 6191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6192 | (eval $ac_try) 2>&5 |
| 6193 | ac_status=$? |
| 6194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6195 | (exit $ac_status); }; }; then |
| 6196 | ac_lo=0 ac_mid=0 |
| 6197 | while :; do |
| 6198 | cat >conftest.$ac_ext <<_ACEOF |
| 6199 | #line $LINENO "configure" |
| 6200 | #include "confdefs.h" |
| 6201 | $ac_includes_default |
| 6202 | #ifdef F77_DUMMY_MAIN |
| 6203 | # ifdef __cplusplus |
| 6204 | extern "C" |
| 6205 | # endif |
| 6206 | int F77_DUMMY_MAIN() { return 1; } |
| 6207 | #endif |
| 6208 | int |
| 6209 | main () |
| 6210 | { |
| 6211 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6212 | test_array [0] = 0 |
| 6213 | |
| 6214 | ; |
| 6215 | return 0; |
| 6216 | } |
| 6217 | _ACEOF |
| 6218 | rm -f conftest.$ac_objext |
| 6219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6220 | (eval $ac_compile) 2>&5 |
| 6221 | ac_status=$? |
| 6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6223 | (exit $ac_status); } && |
| 6224 | { ac_try='test -s conftest.$ac_objext' |
| 6225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6226 | (eval $ac_try) 2>&5 |
| 6227 | ac_status=$? |
| 6228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6229 | (exit $ac_status); }; }; then |
| 6230 | ac_hi=$ac_mid; break |
| 6231 | else |
| 6232 | echo "$as_me: failed program was:" >&5 |
| 6233 | cat conftest.$ac_ext >&5 |
| 6234 | ac_lo=`expr $ac_mid + 1` |
| 6235 | if test $ac_lo -le $ac_mid; then |
| 6236 | ac_lo= ac_hi= |
| 6237 | break |
| 6238 | fi |
| 6239 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6240 | fi |
| 6241 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6242 | done |
| 6243 | else |
| 6244 | echo "$as_me: failed program was:" >&5 |
| 6245 | cat conftest.$ac_ext >&5 |
| 6246 | cat >conftest.$ac_ext <<_ACEOF |
| 6247 | #line $LINENO "configure" |
| 6248 | #include "confdefs.h" |
| 6249 | $ac_includes_default |
| 6250 | #ifdef F77_DUMMY_MAIN |
| 6251 | # ifdef __cplusplus |
| 6252 | extern "C" |
| 6253 | # endif |
| 6254 | int F77_DUMMY_MAIN() { return 1; } |
| 6255 | #endif |
| 6256 | int |
| 6257 | main () |
| 6258 | { |
| 6259 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6260 | test_array [0] = 0 |
| 6261 | |
| 6262 | ; |
| 6263 | return 0; |
| 6264 | } |
| 6265 | _ACEOF |
| 6266 | rm -f conftest.$ac_objext |
| 6267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6268 | (eval $ac_compile) 2>&5 |
| 6269 | ac_status=$? |
| 6270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6271 | (exit $ac_status); } && |
| 6272 | { ac_try='test -s conftest.$ac_objext' |
| 6273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6274 | (eval $ac_try) 2>&5 |
| 6275 | ac_status=$? |
| 6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6277 | (exit $ac_status); }; }; then |
| 6278 | ac_hi=-1 ac_mid=-1 |
| 6279 | while :; do |
| 6280 | cat >conftest.$ac_ext <<_ACEOF |
| 6281 | #line $LINENO "configure" |
| 6282 | #include "confdefs.h" |
| 6283 | $ac_includes_default |
| 6284 | #ifdef F77_DUMMY_MAIN |
| 6285 | # ifdef __cplusplus |
| 6286 | extern "C" |
| 6287 | # endif |
| 6288 | int F77_DUMMY_MAIN() { return 1; } |
| 6289 | #endif |
| 6290 | int |
| 6291 | main () |
| 6292 | { |
| 6293 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6294 | test_array [0] = 0 |
| 6295 | |
| 6296 | ; |
| 6297 | return 0; |
| 6298 | } |
| 6299 | _ACEOF |
| 6300 | rm -f conftest.$ac_objext |
| 6301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6302 | (eval $ac_compile) 2>&5 |
| 6303 | ac_status=$? |
| 6304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6305 | (exit $ac_status); } && |
| 6306 | { ac_try='test -s conftest.$ac_objext' |
| 6307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6308 | (eval $ac_try) 2>&5 |
| 6309 | ac_status=$? |
| 6310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6311 | (exit $ac_status); }; }; then |
| 6312 | ac_lo=$ac_mid; break |
| 6313 | else |
| 6314 | echo "$as_me: failed program was:" >&5 |
| 6315 | cat conftest.$ac_ext >&5 |
| 6316 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6317 | if test $ac_mid -le $ac_hi; then |
| 6318 | ac_lo= ac_hi= |
| 6319 | break |
| 6320 | fi |
| 6321 | ac_mid=`expr 2 '*' $ac_mid` |
| 6322 | fi |
| 6323 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6324 | done |
| 6325 | else |
| 6326 | echo "$as_me: failed program was:" >&5 |
| 6327 | cat conftest.$ac_ext >&5 |
| 6328 | ac_lo= ac_hi= |
| 6329 | fi |
| 6330 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6331 | fi |
| 6332 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6333 | # Binary search between lo and hi bounds. |
| 6334 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6335 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6336 | cat >conftest.$ac_ext <<_ACEOF |
| 6337 | #line $LINENO "configure" |
| 6338 | #include "confdefs.h" |
| 6339 | $ac_includes_default |
| 6340 | #ifdef F77_DUMMY_MAIN |
| 6341 | # ifdef __cplusplus |
| 6342 | extern "C" |
| 6343 | # endif |
| 6344 | int F77_DUMMY_MAIN() { return 1; } |
| 6345 | #endif |
| 6346 | int |
| 6347 | main () |
| 6348 | { |
| 6349 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6350 | test_array [0] = 0 |
| 6351 | |
| 6352 | ; |
| 6353 | return 0; |
| 6354 | } |
| 6355 | _ACEOF |
| 6356 | rm -f conftest.$ac_objext |
| 6357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6358 | (eval $ac_compile) 2>&5 |
| 6359 | ac_status=$? |
| 6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6361 | (exit $ac_status); } && |
| 6362 | { ac_try='test -s conftest.$ac_objext' |
| 6363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6364 | (eval $ac_try) 2>&5 |
| 6365 | ac_status=$? |
| 6366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6367 | (exit $ac_status); }; }; then |
| 6368 | ac_hi=$ac_mid |
| 6369 | else |
| 6370 | echo "$as_me: failed program was:" >&5 |
| 6371 | cat conftest.$ac_ext >&5 |
| 6372 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6373 | fi |
| 6374 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6375 | done |
| 6376 | case $ac_lo in |
| 6377 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6378 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6379 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6380 | { (exit 1); exit 1; }; } ;; |
| 6381 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6382 | else |
| 6383 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6384 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6385 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6386 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6387 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6388 | cat >conftest.$ac_ext <<_ACEOF |
| 6389 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6390 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6391 | $ac_includes_default |
| 6392 | long longval () { return (long) (sizeof (short)); } |
| 6393 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6394 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6395 | #include <stdlib.h> |
| 6396 | #ifdef F77_DUMMY_MAIN |
| 6397 | # ifdef __cplusplus |
| 6398 | extern "C" |
| 6399 | # endif |
| 6400 | int F77_DUMMY_MAIN() { return 1; } |
| 6401 | #endif |
| 6402 | int |
| 6403 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6404 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6405 | |
| 6406 | FILE *f = fopen ("conftest.val", "w"); |
| 6407 | if (! f) |
| 6408 | exit (1); |
| 6409 | if (((long) (sizeof (short))) < 0) |
| 6410 | { |
| 6411 | long i = longval (); |
| 6412 | if (i != ((long) (sizeof (short)))) |
| 6413 | exit (1); |
| 6414 | fprintf (f, "%ld\n", i); |
| 6415 | } |
| 6416 | else |
| 6417 | { |
| 6418 | unsigned long i = ulongval (); |
| 6419 | if (i != ((long) (sizeof (short)))) |
| 6420 | exit (1); |
| 6421 | fprintf (f, "%lu\n", i); |
| 6422 | } |
| 6423 | exit (ferror (f) || fclose (f) != 0); |
| 6424 | |
| 6425 | ; |
| 6426 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6427 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6428 | _ACEOF |
| 6429 | rm -f conftest$ac_exeext |
| 6430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6431 | (eval $ac_link) 2>&5 |
| 6432 | ac_status=$? |
| 6433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6434 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6436 | (eval $ac_try) 2>&5 |
| 6437 | ac_status=$? |
| 6438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6439 | (exit $ac_status); }; }; then |
| 6440 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6441 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6442 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6443 | echo "$as_me: failed program was:" >&5 |
| 6444 | cat conftest.$ac_ext >&5 |
| 6445 | ( exit $ac_status ) |
| 6446 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6447 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6448 | { (exit 1); exit 1; }; } |
| 6449 | fi |
| 6450 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6451 | fi |
| 6452 | fi |
| 6453 | rm -f conftest.val |
| 6454 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6455 | ac_cv_sizeof_short=0 |
| 6456 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6457 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6458 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6459 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6460 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6461 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6462 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6463 | |
| 6464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6465 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6466 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6467 | if test "${ac_cv_type_float+set}" = set; then |
| 6468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6469 | else |
| 6470 | cat >conftest.$ac_ext <<_ACEOF |
| 6471 | #line $LINENO "configure" |
| 6472 | #include "confdefs.h" |
| 6473 | $ac_includes_default |
| 6474 | #ifdef F77_DUMMY_MAIN |
| 6475 | # ifdef __cplusplus |
| 6476 | extern "C" |
| 6477 | # endif |
| 6478 | int F77_DUMMY_MAIN() { return 1; } |
| 6479 | #endif |
| 6480 | int |
| 6481 | main () |
| 6482 | { |
| 6483 | if ((float *) 0) |
| 6484 | return 0; |
| 6485 | if (sizeof (float)) |
| 6486 | return 0; |
| 6487 | ; |
| 6488 | return 0; |
| 6489 | } |
| 6490 | _ACEOF |
| 6491 | rm -f conftest.$ac_objext |
| 6492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6493 | (eval $ac_compile) 2>&5 |
| 6494 | ac_status=$? |
| 6495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6496 | (exit $ac_status); } && |
| 6497 | { ac_try='test -s conftest.$ac_objext' |
| 6498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6499 | (eval $ac_try) 2>&5 |
| 6500 | ac_status=$? |
| 6501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6502 | (exit $ac_status); }; }; then |
| 6503 | ac_cv_type_float=yes |
| 6504 | else |
| 6505 | echo "$as_me: failed program was:" >&5 |
| 6506 | cat conftest.$ac_ext >&5 |
| 6507 | ac_cv_type_float=no |
| 6508 | fi |
| 6509 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6510 | fi |
| 6511 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 6512 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 6513 | |
| 6514 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 6515 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 6516 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 6517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6518 | else |
| 6519 | if test "$ac_cv_type_float" = yes; then |
| 6520 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6521 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6522 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6523 | # This bug is HP SR number 8606223364. |
| 6524 | if test "$cross_compiling" = yes; then |
| 6525 | # Depending upon the size, compute the lo and hi bounds. |
| 6526 | cat >conftest.$ac_ext <<_ACEOF |
| 6527 | #line $LINENO "configure" |
| 6528 | #include "confdefs.h" |
| 6529 | $ac_includes_default |
| 6530 | #ifdef F77_DUMMY_MAIN |
| 6531 | # ifdef __cplusplus |
| 6532 | extern "C" |
| 6533 | # endif |
| 6534 | int F77_DUMMY_MAIN() { return 1; } |
| 6535 | #endif |
| 6536 | int |
| 6537 | main () |
| 6538 | { |
| 6539 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 6540 | test_array [0] = 0 |
| 6541 | |
| 6542 | ; |
| 6543 | return 0; |
| 6544 | } |
| 6545 | _ACEOF |
| 6546 | rm -f conftest.$ac_objext |
| 6547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6548 | (eval $ac_compile) 2>&5 |
| 6549 | ac_status=$? |
| 6550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6551 | (exit $ac_status); } && |
| 6552 | { ac_try='test -s conftest.$ac_objext' |
| 6553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6554 | (eval $ac_try) 2>&5 |
| 6555 | ac_status=$? |
| 6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6557 | (exit $ac_status); }; }; then |
| 6558 | ac_lo=0 ac_mid=0 |
| 6559 | while :; do |
| 6560 | cat >conftest.$ac_ext <<_ACEOF |
| 6561 | #line $LINENO "configure" |
| 6562 | #include "confdefs.h" |
| 6563 | $ac_includes_default |
| 6564 | #ifdef F77_DUMMY_MAIN |
| 6565 | # ifdef __cplusplus |
| 6566 | extern "C" |
| 6567 | # endif |
| 6568 | int F77_DUMMY_MAIN() { return 1; } |
| 6569 | #endif |
| 6570 | int |
| 6571 | main () |
| 6572 | { |
| 6573 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6574 | test_array [0] = 0 |
| 6575 | |
| 6576 | ; |
| 6577 | return 0; |
| 6578 | } |
| 6579 | _ACEOF |
| 6580 | rm -f conftest.$ac_objext |
| 6581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6582 | (eval $ac_compile) 2>&5 |
| 6583 | ac_status=$? |
| 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6585 | (exit $ac_status); } && |
| 6586 | { ac_try='test -s conftest.$ac_objext' |
| 6587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6588 | (eval $ac_try) 2>&5 |
| 6589 | ac_status=$? |
| 6590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6591 | (exit $ac_status); }; }; then |
| 6592 | ac_hi=$ac_mid; break |
| 6593 | else |
| 6594 | echo "$as_me: failed program was:" >&5 |
| 6595 | cat conftest.$ac_ext >&5 |
| 6596 | ac_lo=`expr $ac_mid + 1` |
| 6597 | if test $ac_lo -le $ac_mid; then |
| 6598 | ac_lo= ac_hi= |
| 6599 | break |
| 6600 | fi |
| 6601 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6602 | fi |
| 6603 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6604 | done |
| 6605 | else |
| 6606 | echo "$as_me: failed program was:" >&5 |
| 6607 | cat conftest.$ac_ext >&5 |
| 6608 | cat >conftest.$ac_ext <<_ACEOF |
| 6609 | #line $LINENO "configure" |
| 6610 | #include "confdefs.h" |
| 6611 | $ac_includes_default |
| 6612 | #ifdef F77_DUMMY_MAIN |
| 6613 | # ifdef __cplusplus |
| 6614 | extern "C" |
| 6615 | # endif |
| 6616 | int F77_DUMMY_MAIN() { return 1; } |
| 6617 | #endif |
| 6618 | int |
| 6619 | main () |
| 6620 | { |
| 6621 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 6622 | test_array [0] = 0 |
| 6623 | |
| 6624 | ; |
| 6625 | return 0; |
| 6626 | } |
| 6627 | _ACEOF |
| 6628 | rm -f conftest.$ac_objext |
| 6629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6630 | (eval $ac_compile) 2>&5 |
| 6631 | ac_status=$? |
| 6632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6633 | (exit $ac_status); } && |
| 6634 | { ac_try='test -s conftest.$ac_objext' |
| 6635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6636 | (eval $ac_try) 2>&5 |
| 6637 | ac_status=$? |
| 6638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6639 | (exit $ac_status); }; }; then |
| 6640 | ac_hi=-1 ac_mid=-1 |
| 6641 | while :; do |
| 6642 | cat >conftest.$ac_ext <<_ACEOF |
| 6643 | #line $LINENO "configure" |
| 6644 | #include "confdefs.h" |
| 6645 | $ac_includes_default |
| 6646 | #ifdef F77_DUMMY_MAIN |
| 6647 | # ifdef __cplusplus |
| 6648 | extern "C" |
| 6649 | # endif |
| 6650 | int F77_DUMMY_MAIN() { return 1; } |
| 6651 | #endif |
| 6652 | int |
| 6653 | main () |
| 6654 | { |
| 6655 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 6656 | test_array [0] = 0 |
| 6657 | |
| 6658 | ; |
| 6659 | return 0; |
| 6660 | } |
| 6661 | _ACEOF |
| 6662 | rm -f conftest.$ac_objext |
| 6663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6664 | (eval $ac_compile) 2>&5 |
| 6665 | ac_status=$? |
| 6666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6667 | (exit $ac_status); } && |
| 6668 | { ac_try='test -s conftest.$ac_objext' |
| 6669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6670 | (eval $ac_try) 2>&5 |
| 6671 | ac_status=$? |
| 6672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6673 | (exit $ac_status); }; }; then |
| 6674 | ac_lo=$ac_mid; break |
| 6675 | else |
| 6676 | echo "$as_me: failed program was:" >&5 |
| 6677 | cat conftest.$ac_ext >&5 |
| 6678 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6679 | if test $ac_mid -le $ac_hi; then |
| 6680 | ac_lo= ac_hi= |
| 6681 | break |
| 6682 | fi |
| 6683 | ac_mid=`expr 2 '*' $ac_mid` |
| 6684 | fi |
| 6685 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6686 | done |
| 6687 | else |
| 6688 | echo "$as_me: failed program was:" >&5 |
| 6689 | cat conftest.$ac_ext >&5 |
| 6690 | ac_lo= ac_hi= |
| 6691 | fi |
| 6692 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6693 | fi |
| 6694 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6695 | # Binary search between lo and hi bounds. |
| 6696 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6697 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6698 | cat >conftest.$ac_ext <<_ACEOF |
| 6699 | #line $LINENO "configure" |
| 6700 | #include "confdefs.h" |
| 6701 | $ac_includes_default |
| 6702 | #ifdef F77_DUMMY_MAIN |
| 6703 | # ifdef __cplusplus |
| 6704 | extern "C" |
| 6705 | # endif |
| 6706 | int F77_DUMMY_MAIN() { return 1; } |
| 6707 | #endif |
| 6708 | int |
| 6709 | main () |
| 6710 | { |
| 6711 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6712 | test_array [0] = 0 |
| 6713 | |
| 6714 | ; |
| 6715 | return 0; |
| 6716 | } |
| 6717 | _ACEOF |
| 6718 | rm -f conftest.$ac_objext |
| 6719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6720 | (eval $ac_compile) 2>&5 |
| 6721 | ac_status=$? |
| 6722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6723 | (exit $ac_status); } && |
| 6724 | { ac_try='test -s conftest.$ac_objext' |
| 6725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6726 | (eval $ac_try) 2>&5 |
| 6727 | ac_status=$? |
| 6728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6729 | (exit $ac_status); }; }; then |
| 6730 | ac_hi=$ac_mid |
| 6731 | else |
| 6732 | echo "$as_me: failed program was:" >&5 |
| 6733 | cat conftest.$ac_ext >&5 |
| 6734 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6735 | fi |
| 6736 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6737 | done |
| 6738 | case $ac_lo in |
| 6739 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 6740 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6741 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6742 | { (exit 1); exit 1; }; } ;; |
| 6743 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6744 | else |
| 6745 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6746 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6747 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6748 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6749 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6750 | cat >conftest.$ac_ext <<_ACEOF |
| 6751 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6752 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6753 | $ac_includes_default |
| 6754 | long longval () { return (long) (sizeof (float)); } |
| 6755 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6756 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6757 | #include <stdlib.h> |
| 6758 | #ifdef F77_DUMMY_MAIN |
| 6759 | # ifdef __cplusplus |
| 6760 | extern "C" |
| 6761 | # endif |
| 6762 | int F77_DUMMY_MAIN() { return 1; } |
| 6763 | #endif |
| 6764 | int |
| 6765 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6766 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6767 | |
| 6768 | FILE *f = fopen ("conftest.val", "w"); |
| 6769 | if (! f) |
| 6770 | exit (1); |
| 6771 | if (((long) (sizeof (float))) < 0) |
| 6772 | { |
| 6773 | long i = longval (); |
| 6774 | if (i != ((long) (sizeof (float)))) |
| 6775 | exit (1); |
| 6776 | fprintf (f, "%ld\n", i); |
| 6777 | } |
| 6778 | else |
| 6779 | { |
| 6780 | unsigned long i = ulongval (); |
| 6781 | if (i != ((long) (sizeof (float)))) |
| 6782 | exit (1); |
| 6783 | fprintf (f, "%lu\n", i); |
| 6784 | } |
| 6785 | exit (ferror (f) || fclose (f) != 0); |
| 6786 | |
| 6787 | ; |
| 6788 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6789 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6790 | _ACEOF |
| 6791 | rm -f conftest$ac_exeext |
| 6792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6793 | (eval $ac_link) 2>&5 |
| 6794 | ac_status=$? |
| 6795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6796 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6798 | (eval $ac_try) 2>&5 |
| 6799 | ac_status=$? |
| 6800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6801 | (exit $ac_status); }; }; then |
| 6802 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6804 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6805 | echo "$as_me: failed program was:" >&5 |
| 6806 | cat conftest.$ac_ext >&5 |
| 6807 | ( exit $ac_status ) |
| 6808 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6809 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6810 | { (exit 1); exit 1; }; } |
| 6811 | fi |
| 6812 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6813 | fi |
| 6814 | fi |
| 6815 | rm -f conftest.val |
| 6816 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6817 | ac_cv_sizeof_float=0 |
| 6818 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6819 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6820 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 6821 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 6822 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6823 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6824 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6825 | |
| 6826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6827 | echo "$as_me:$LINENO: checking for double" >&5 |
| 6828 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 6829 | if test "${ac_cv_type_double+set}" = set; then |
| 6830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6831 | else |
| 6832 | cat >conftest.$ac_ext <<_ACEOF |
| 6833 | #line $LINENO "configure" |
| 6834 | #include "confdefs.h" |
| 6835 | $ac_includes_default |
| 6836 | #ifdef F77_DUMMY_MAIN |
| 6837 | # ifdef __cplusplus |
| 6838 | extern "C" |
| 6839 | # endif |
| 6840 | int F77_DUMMY_MAIN() { return 1; } |
| 6841 | #endif |
| 6842 | int |
| 6843 | main () |
| 6844 | { |
| 6845 | if ((double *) 0) |
| 6846 | return 0; |
| 6847 | if (sizeof (double)) |
| 6848 | return 0; |
| 6849 | ; |
| 6850 | return 0; |
| 6851 | } |
| 6852 | _ACEOF |
| 6853 | rm -f conftest.$ac_objext |
| 6854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6855 | (eval $ac_compile) 2>&5 |
| 6856 | ac_status=$? |
| 6857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6858 | (exit $ac_status); } && |
| 6859 | { ac_try='test -s conftest.$ac_objext' |
| 6860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6861 | (eval $ac_try) 2>&5 |
| 6862 | ac_status=$? |
| 6863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6864 | (exit $ac_status); }; }; then |
| 6865 | ac_cv_type_double=yes |
| 6866 | else |
| 6867 | echo "$as_me: failed program was:" >&5 |
| 6868 | cat conftest.$ac_ext >&5 |
| 6869 | ac_cv_type_double=no |
| 6870 | fi |
| 6871 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6872 | fi |
| 6873 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 6874 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 6875 | |
| 6876 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 6877 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 6878 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 6879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6880 | else |
| 6881 | if test "$ac_cv_type_double" = yes; then |
| 6882 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6883 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6884 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6885 | # This bug is HP SR number 8606223364. |
| 6886 | if test "$cross_compiling" = yes; then |
| 6887 | # Depending upon the size, compute the lo and hi bounds. |
| 6888 | cat >conftest.$ac_ext <<_ACEOF |
| 6889 | #line $LINENO "configure" |
| 6890 | #include "confdefs.h" |
| 6891 | $ac_includes_default |
| 6892 | #ifdef F77_DUMMY_MAIN |
| 6893 | # ifdef __cplusplus |
| 6894 | extern "C" |
| 6895 | # endif |
| 6896 | int F77_DUMMY_MAIN() { return 1; } |
| 6897 | #endif |
| 6898 | int |
| 6899 | main () |
| 6900 | { |
| 6901 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 6902 | test_array [0] = 0 |
| 6903 | |
| 6904 | ; |
| 6905 | return 0; |
| 6906 | } |
| 6907 | _ACEOF |
| 6908 | rm -f conftest.$ac_objext |
| 6909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6910 | (eval $ac_compile) 2>&5 |
| 6911 | ac_status=$? |
| 6912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6913 | (exit $ac_status); } && |
| 6914 | { ac_try='test -s conftest.$ac_objext' |
| 6915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6916 | (eval $ac_try) 2>&5 |
| 6917 | ac_status=$? |
| 6918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6919 | (exit $ac_status); }; }; then |
| 6920 | ac_lo=0 ac_mid=0 |
| 6921 | while :; do |
| 6922 | cat >conftest.$ac_ext <<_ACEOF |
| 6923 | #line $LINENO "configure" |
| 6924 | #include "confdefs.h" |
| 6925 | $ac_includes_default |
| 6926 | #ifdef F77_DUMMY_MAIN |
| 6927 | # ifdef __cplusplus |
| 6928 | extern "C" |
| 6929 | # endif |
| 6930 | int F77_DUMMY_MAIN() { return 1; } |
| 6931 | #endif |
| 6932 | int |
| 6933 | main () |
| 6934 | { |
| 6935 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 6936 | test_array [0] = 0 |
| 6937 | |
| 6938 | ; |
| 6939 | return 0; |
| 6940 | } |
| 6941 | _ACEOF |
| 6942 | rm -f conftest.$ac_objext |
| 6943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6944 | (eval $ac_compile) 2>&5 |
| 6945 | ac_status=$? |
| 6946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6947 | (exit $ac_status); } && |
| 6948 | { ac_try='test -s conftest.$ac_objext' |
| 6949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6950 | (eval $ac_try) 2>&5 |
| 6951 | ac_status=$? |
| 6952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6953 | (exit $ac_status); }; }; then |
| 6954 | ac_hi=$ac_mid; break |
| 6955 | else |
| 6956 | echo "$as_me: failed program was:" >&5 |
| 6957 | cat conftest.$ac_ext >&5 |
| 6958 | ac_lo=`expr $ac_mid + 1` |
| 6959 | if test $ac_lo -le $ac_mid; then |
| 6960 | ac_lo= ac_hi= |
| 6961 | break |
| 6962 | fi |
| 6963 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6964 | fi |
| 6965 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6966 | done |
| 6967 | else |
| 6968 | echo "$as_me: failed program was:" >&5 |
| 6969 | cat conftest.$ac_ext >&5 |
| 6970 | cat >conftest.$ac_ext <<_ACEOF |
| 6971 | #line $LINENO "configure" |
| 6972 | #include "confdefs.h" |
| 6973 | $ac_includes_default |
| 6974 | #ifdef F77_DUMMY_MAIN |
| 6975 | # ifdef __cplusplus |
| 6976 | extern "C" |
| 6977 | # endif |
| 6978 | int F77_DUMMY_MAIN() { return 1; } |
| 6979 | #endif |
| 6980 | int |
| 6981 | main () |
| 6982 | { |
| 6983 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 6984 | test_array [0] = 0 |
| 6985 | |
| 6986 | ; |
| 6987 | return 0; |
| 6988 | } |
| 6989 | _ACEOF |
| 6990 | rm -f conftest.$ac_objext |
| 6991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6992 | (eval $ac_compile) 2>&5 |
| 6993 | ac_status=$? |
| 6994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6995 | (exit $ac_status); } && |
| 6996 | { ac_try='test -s conftest.$ac_objext' |
| 6997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6998 | (eval $ac_try) 2>&5 |
| 6999 | ac_status=$? |
| 7000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7001 | (exit $ac_status); }; }; then |
| 7002 | ac_hi=-1 ac_mid=-1 |
| 7003 | while :; do |
| 7004 | cat >conftest.$ac_ext <<_ACEOF |
| 7005 | #line $LINENO "configure" |
| 7006 | #include "confdefs.h" |
| 7007 | $ac_includes_default |
| 7008 | #ifdef F77_DUMMY_MAIN |
| 7009 | # ifdef __cplusplus |
| 7010 | extern "C" |
| 7011 | # endif |
| 7012 | int F77_DUMMY_MAIN() { return 1; } |
| 7013 | #endif |
| 7014 | int |
| 7015 | main () |
| 7016 | { |
| 7017 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7018 | test_array [0] = 0 |
| 7019 | |
| 7020 | ; |
| 7021 | return 0; |
| 7022 | } |
| 7023 | _ACEOF |
| 7024 | rm -f conftest.$ac_objext |
| 7025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7026 | (eval $ac_compile) 2>&5 |
| 7027 | ac_status=$? |
| 7028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7029 | (exit $ac_status); } && |
| 7030 | { ac_try='test -s conftest.$ac_objext' |
| 7031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7032 | (eval $ac_try) 2>&5 |
| 7033 | ac_status=$? |
| 7034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7035 | (exit $ac_status); }; }; then |
| 7036 | ac_lo=$ac_mid; break |
| 7037 | else |
| 7038 | echo "$as_me: failed program was:" >&5 |
| 7039 | cat conftest.$ac_ext >&5 |
| 7040 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7041 | if test $ac_mid -le $ac_hi; then |
| 7042 | ac_lo= ac_hi= |
| 7043 | break |
| 7044 | fi |
| 7045 | ac_mid=`expr 2 '*' $ac_mid` |
| 7046 | fi |
| 7047 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7048 | done |
| 7049 | else |
| 7050 | echo "$as_me: failed program was:" >&5 |
| 7051 | cat conftest.$ac_ext >&5 |
| 7052 | ac_lo= ac_hi= |
| 7053 | fi |
| 7054 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7055 | fi |
| 7056 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7057 | # Binary search between lo and hi bounds. |
| 7058 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7059 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7060 | cat >conftest.$ac_ext <<_ACEOF |
| 7061 | #line $LINENO "configure" |
| 7062 | #include "confdefs.h" |
| 7063 | $ac_includes_default |
| 7064 | #ifdef F77_DUMMY_MAIN |
| 7065 | # ifdef __cplusplus |
| 7066 | extern "C" |
| 7067 | # endif |
| 7068 | int F77_DUMMY_MAIN() { return 1; } |
| 7069 | #endif |
| 7070 | int |
| 7071 | main () |
| 7072 | { |
| 7073 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7074 | test_array [0] = 0 |
| 7075 | |
| 7076 | ; |
| 7077 | return 0; |
| 7078 | } |
| 7079 | _ACEOF |
| 7080 | rm -f conftest.$ac_objext |
| 7081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7082 | (eval $ac_compile) 2>&5 |
| 7083 | ac_status=$? |
| 7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7085 | (exit $ac_status); } && |
| 7086 | { ac_try='test -s conftest.$ac_objext' |
| 7087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7088 | (eval $ac_try) 2>&5 |
| 7089 | ac_status=$? |
| 7090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7091 | (exit $ac_status); }; }; then |
| 7092 | ac_hi=$ac_mid |
| 7093 | else |
| 7094 | echo "$as_me: failed program was:" >&5 |
| 7095 | cat conftest.$ac_ext >&5 |
| 7096 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7097 | fi |
| 7098 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7099 | done |
| 7100 | case $ac_lo in |
| 7101 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7102 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7103 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7104 | { (exit 1); exit 1; }; } ;; |
| 7105 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7106 | else |
| 7107 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7108 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7109 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7110 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7112 | cat >conftest.$ac_ext <<_ACEOF |
| 7113 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7114 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7115 | $ac_includes_default |
| 7116 | long longval () { return (long) (sizeof (double)); } |
| 7117 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7118 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7119 | #include <stdlib.h> |
| 7120 | #ifdef F77_DUMMY_MAIN |
| 7121 | # ifdef __cplusplus |
| 7122 | extern "C" |
| 7123 | # endif |
| 7124 | int F77_DUMMY_MAIN() { return 1; } |
| 7125 | #endif |
| 7126 | int |
| 7127 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7128 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7129 | |
| 7130 | FILE *f = fopen ("conftest.val", "w"); |
| 7131 | if (! f) |
| 7132 | exit (1); |
| 7133 | if (((long) (sizeof (double))) < 0) |
| 7134 | { |
| 7135 | long i = longval (); |
| 7136 | if (i != ((long) (sizeof (double)))) |
| 7137 | exit (1); |
| 7138 | fprintf (f, "%ld\n", i); |
| 7139 | } |
| 7140 | else |
| 7141 | { |
| 7142 | unsigned long i = ulongval (); |
| 7143 | if (i != ((long) (sizeof (double)))) |
| 7144 | exit (1); |
| 7145 | fprintf (f, "%lu\n", i); |
| 7146 | } |
| 7147 | exit (ferror (f) || fclose (f) != 0); |
| 7148 | |
| 7149 | ; |
| 7150 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7151 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7152 | _ACEOF |
| 7153 | rm -f conftest$ac_exeext |
| 7154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7155 | (eval $ac_link) 2>&5 |
| 7156 | ac_status=$? |
| 7157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7158 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7160 | (eval $ac_try) 2>&5 |
| 7161 | ac_status=$? |
| 7162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7163 | (exit $ac_status); }; }; then |
| 7164 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7165 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7166 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7167 | echo "$as_me: failed program was:" >&5 |
| 7168 | cat conftest.$ac_ext >&5 |
| 7169 | ( exit $ac_status ) |
| 7170 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7171 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7172 | { (exit 1); exit 1; }; } |
| 7173 | fi |
| 7174 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7175 | fi |
| 7176 | fi |
| 7177 | rm -f conftest.val |
| 7178 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7179 | ac_cv_sizeof_double=0 |
| 7180 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7182 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7183 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7184 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7185 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7186 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7187 | |
| 7188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7189 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7190 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7191 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7193 | else |
| 7194 | cat >conftest.$ac_ext <<_ACEOF |
| 7195 | #line $LINENO "configure" |
| 7196 | #include "confdefs.h" |
| 7197 | $ac_includes_default |
| 7198 | #ifdef F77_DUMMY_MAIN |
| 7199 | # ifdef __cplusplus |
| 7200 | extern "C" |
| 7201 | # endif |
| 7202 | int F77_DUMMY_MAIN() { return 1; } |
| 7203 | #endif |
| 7204 | int |
| 7205 | main () |
| 7206 | { |
| 7207 | if ((fpos_t *) 0) |
| 7208 | return 0; |
| 7209 | if (sizeof (fpos_t)) |
| 7210 | return 0; |
| 7211 | ; |
| 7212 | return 0; |
| 7213 | } |
| 7214 | _ACEOF |
| 7215 | rm -f conftest.$ac_objext |
| 7216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7217 | (eval $ac_compile) 2>&5 |
| 7218 | ac_status=$? |
| 7219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7220 | (exit $ac_status); } && |
| 7221 | { ac_try='test -s conftest.$ac_objext' |
| 7222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7223 | (eval $ac_try) 2>&5 |
| 7224 | ac_status=$? |
| 7225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7226 | (exit $ac_status); }; }; then |
| 7227 | ac_cv_type_fpos_t=yes |
| 7228 | else |
| 7229 | echo "$as_me: failed program was:" >&5 |
| 7230 | cat conftest.$ac_ext >&5 |
| 7231 | ac_cv_type_fpos_t=no |
| 7232 | fi |
| 7233 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7234 | fi |
| 7235 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7236 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7237 | |
| 7238 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7239 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7240 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7242 | else |
| 7243 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7244 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7245 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7246 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7247 | # This bug is HP SR number 8606223364. |
| 7248 | if test "$cross_compiling" = yes; then |
| 7249 | # Depending upon the size, compute the lo and hi bounds. |
| 7250 | cat >conftest.$ac_ext <<_ACEOF |
| 7251 | #line $LINENO "configure" |
| 7252 | #include "confdefs.h" |
| 7253 | $ac_includes_default |
| 7254 | #ifdef F77_DUMMY_MAIN |
| 7255 | # ifdef __cplusplus |
| 7256 | extern "C" |
| 7257 | # endif |
| 7258 | int F77_DUMMY_MAIN() { return 1; } |
| 7259 | #endif |
| 7260 | int |
| 7261 | main () |
| 7262 | { |
| 7263 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7264 | test_array [0] = 0 |
| 7265 | |
| 7266 | ; |
| 7267 | return 0; |
| 7268 | } |
| 7269 | _ACEOF |
| 7270 | rm -f conftest.$ac_objext |
| 7271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7272 | (eval $ac_compile) 2>&5 |
| 7273 | ac_status=$? |
| 7274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7275 | (exit $ac_status); } && |
| 7276 | { ac_try='test -s conftest.$ac_objext' |
| 7277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7278 | (eval $ac_try) 2>&5 |
| 7279 | ac_status=$? |
| 7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7281 | (exit $ac_status); }; }; then |
| 7282 | ac_lo=0 ac_mid=0 |
| 7283 | while :; do |
| 7284 | cat >conftest.$ac_ext <<_ACEOF |
| 7285 | #line $LINENO "configure" |
| 7286 | #include "confdefs.h" |
| 7287 | $ac_includes_default |
| 7288 | #ifdef F77_DUMMY_MAIN |
| 7289 | # ifdef __cplusplus |
| 7290 | extern "C" |
| 7291 | # endif |
| 7292 | int F77_DUMMY_MAIN() { return 1; } |
| 7293 | #endif |
| 7294 | int |
| 7295 | main () |
| 7296 | { |
| 7297 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7298 | test_array [0] = 0 |
| 7299 | |
| 7300 | ; |
| 7301 | return 0; |
| 7302 | } |
| 7303 | _ACEOF |
| 7304 | rm -f conftest.$ac_objext |
| 7305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7306 | (eval $ac_compile) 2>&5 |
| 7307 | ac_status=$? |
| 7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7309 | (exit $ac_status); } && |
| 7310 | { ac_try='test -s conftest.$ac_objext' |
| 7311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7312 | (eval $ac_try) 2>&5 |
| 7313 | ac_status=$? |
| 7314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7315 | (exit $ac_status); }; }; then |
| 7316 | ac_hi=$ac_mid; break |
| 7317 | else |
| 7318 | echo "$as_me: failed program was:" >&5 |
| 7319 | cat conftest.$ac_ext >&5 |
| 7320 | ac_lo=`expr $ac_mid + 1` |
| 7321 | if test $ac_lo -le $ac_mid; then |
| 7322 | ac_lo= ac_hi= |
| 7323 | break |
| 7324 | fi |
| 7325 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7326 | fi |
| 7327 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7328 | done |
| 7329 | else |
| 7330 | echo "$as_me: failed program was:" >&5 |
| 7331 | cat conftest.$ac_ext >&5 |
| 7332 | cat >conftest.$ac_ext <<_ACEOF |
| 7333 | #line $LINENO "configure" |
| 7334 | #include "confdefs.h" |
| 7335 | $ac_includes_default |
| 7336 | #ifdef F77_DUMMY_MAIN |
| 7337 | # ifdef __cplusplus |
| 7338 | extern "C" |
| 7339 | # endif |
| 7340 | int F77_DUMMY_MAIN() { return 1; } |
| 7341 | #endif |
| 7342 | int |
| 7343 | main () |
| 7344 | { |
| 7345 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7346 | test_array [0] = 0 |
| 7347 | |
| 7348 | ; |
| 7349 | return 0; |
| 7350 | } |
| 7351 | _ACEOF |
| 7352 | rm -f conftest.$ac_objext |
| 7353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7354 | (eval $ac_compile) 2>&5 |
| 7355 | ac_status=$? |
| 7356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7357 | (exit $ac_status); } && |
| 7358 | { ac_try='test -s conftest.$ac_objext' |
| 7359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7360 | (eval $ac_try) 2>&5 |
| 7361 | ac_status=$? |
| 7362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7363 | (exit $ac_status); }; }; then |
| 7364 | ac_hi=-1 ac_mid=-1 |
| 7365 | while :; do |
| 7366 | cat >conftest.$ac_ext <<_ACEOF |
| 7367 | #line $LINENO "configure" |
| 7368 | #include "confdefs.h" |
| 7369 | $ac_includes_default |
| 7370 | #ifdef F77_DUMMY_MAIN |
| 7371 | # ifdef __cplusplus |
| 7372 | extern "C" |
| 7373 | # endif |
| 7374 | int F77_DUMMY_MAIN() { return 1; } |
| 7375 | #endif |
| 7376 | int |
| 7377 | main () |
| 7378 | { |
| 7379 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7380 | test_array [0] = 0 |
| 7381 | |
| 7382 | ; |
| 7383 | return 0; |
| 7384 | } |
| 7385 | _ACEOF |
| 7386 | rm -f conftest.$ac_objext |
| 7387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7388 | (eval $ac_compile) 2>&5 |
| 7389 | ac_status=$? |
| 7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7391 | (exit $ac_status); } && |
| 7392 | { ac_try='test -s conftest.$ac_objext' |
| 7393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7394 | (eval $ac_try) 2>&5 |
| 7395 | ac_status=$? |
| 7396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7397 | (exit $ac_status); }; }; then |
| 7398 | ac_lo=$ac_mid; break |
| 7399 | else |
| 7400 | echo "$as_me: failed program was:" >&5 |
| 7401 | cat conftest.$ac_ext >&5 |
| 7402 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7403 | if test $ac_mid -le $ac_hi; then |
| 7404 | ac_lo= ac_hi= |
| 7405 | break |
| 7406 | fi |
| 7407 | ac_mid=`expr 2 '*' $ac_mid` |
| 7408 | fi |
| 7409 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7410 | done |
| 7411 | else |
| 7412 | echo "$as_me: failed program was:" >&5 |
| 7413 | cat conftest.$ac_ext >&5 |
| 7414 | ac_lo= ac_hi= |
| 7415 | fi |
| 7416 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7417 | fi |
| 7418 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7419 | # Binary search between lo and hi bounds. |
| 7420 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7421 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7422 | cat >conftest.$ac_ext <<_ACEOF |
| 7423 | #line $LINENO "configure" |
| 7424 | #include "confdefs.h" |
| 7425 | $ac_includes_default |
| 7426 | #ifdef F77_DUMMY_MAIN |
| 7427 | # ifdef __cplusplus |
| 7428 | extern "C" |
| 7429 | # endif |
| 7430 | int F77_DUMMY_MAIN() { return 1; } |
| 7431 | #endif |
| 7432 | int |
| 7433 | main () |
| 7434 | { |
| 7435 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7436 | test_array [0] = 0 |
| 7437 | |
| 7438 | ; |
| 7439 | return 0; |
| 7440 | } |
| 7441 | _ACEOF |
| 7442 | rm -f conftest.$ac_objext |
| 7443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7444 | (eval $ac_compile) 2>&5 |
| 7445 | ac_status=$? |
| 7446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7447 | (exit $ac_status); } && |
| 7448 | { ac_try='test -s conftest.$ac_objext' |
| 7449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7450 | (eval $ac_try) 2>&5 |
| 7451 | ac_status=$? |
| 7452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7453 | (exit $ac_status); }; }; then |
| 7454 | ac_hi=$ac_mid |
| 7455 | else |
| 7456 | echo "$as_me: failed program was:" >&5 |
| 7457 | cat conftest.$ac_ext >&5 |
| 7458 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7459 | fi |
| 7460 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7461 | done |
| 7462 | case $ac_lo in |
| 7463 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7464 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7465 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7466 | { (exit 1); exit 1; }; } ;; |
| 7467 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7468 | else |
| 7469 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7470 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7471 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7472 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7473 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7474 | cat >conftest.$ac_ext <<_ACEOF |
| 7475 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7476 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7477 | $ac_includes_default |
| 7478 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7479 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7480 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7481 | #include <stdlib.h> |
| 7482 | #ifdef F77_DUMMY_MAIN |
| 7483 | # ifdef __cplusplus |
| 7484 | extern "C" |
| 7485 | # endif |
| 7486 | int F77_DUMMY_MAIN() { return 1; } |
| 7487 | #endif |
| 7488 | int |
| 7489 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7490 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7491 | |
| 7492 | FILE *f = fopen ("conftest.val", "w"); |
| 7493 | if (! f) |
| 7494 | exit (1); |
| 7495 | if (((long) (sizeof (fpos_t))) < 0) |
| 7496 | { |
| 7497 | long i = longval (); |
| 7498 | if (i != ((long) (sizeof (fpos_t)))) |
| 7499 | exit (1); |
| 7500 | fprintf (f, "%ld\n", i); |
| 7501 | } |
| 7502 | else |
| 7503 | { |
| 7504 | unsigned long i = ulongval (); |
| 7505 | if (i != ((long) (sizeof (fpos_t)))) |
| 7506 | exit (1); |
| 7507 | fprintf (f, "%lu\n", i); |
| 7508 | } |
| 7509 | exit (ferror (f) || fclose (f) != 0); |
| 7510 | |
| 7511 | ; |
| 7512 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7513 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7514 | _ACEOF |
| 7515 | rm -f conftest$ac_exeext |
| 7516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7517 | (eval $ac_link) 2>&5 |
| 7518 | ac_status=$? |
| 7519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7522 | (eval $ac_try) 2>&5 |
| 7523 | ac_status=$? |
| 7524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7525 | (exit $ac_status); }; }; then |
| 7526 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7527 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7528 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7529 | echo "$as_me: failed program was:" >&5 |
| 7530 | cat conftest.$ac_ext >&5 |
| 7531 | ( exit $ac_status ) |
| 7532 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7533 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7534 | { (exit 1); exit 1; }; } |
| 7535 | fi |
| 7536 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7537 | fi |
| 7538 | fi |
| 7539 | rm -f conftest.val |
| 7540 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7541 | ac_cv_sizeof_fpos_t=0 |
| 7542 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7543 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7544 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 7545 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 7546 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7547 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7548 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7549 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7550 | |
| 7551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7552 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 7553 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7554 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7555 | cat >conftest.$ac_ext <<_ACEOF |
| 7556 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7557 | #include "confdefs.h" |
| 7558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7559 | #ifdef F77_DUMMY_MAIN |
| 7560 | # ifdef __cplusplus |
| 7561 | extern "C" |
| 7562 | # endif |
| 7563 | int F77_DUMMY_MAIN() { return 1; } |
| 7564 | #endif |
| 7565 | int |
| 7566 | main () |
| 7567 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7568 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7569 | ; |
| 7570 | return 0; |
| 7571 | } |
| 7572 | _ACEOF |
| 7573 | rm -f conftest.$ac_objext |
| 7574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7575 | (eval $ac_compile) 2>&5 |
| 7576 | ac_status=$? |
| 7577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7578 | (exit $ac_status); } && |
| 7579 | { ac_try='test -s conftest.$ac_objext' |
| 7580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7581 | (eval $ac_try) 2>&5 |
| 7582 | ac_status=$? |
| 7583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7584 | (exit $ac_status); }; }; then |
| 7585 | |
| 7586 | |
| 7587 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7588 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7589 | _ACEOF |
| 7590 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7591 | have_long_long=yes |
| 7592 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7593 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7594 | echo "$as_me: failed program was:" >&5 |
| 7595 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7596 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7597 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7598 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 7599 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7600 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7601 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 7602 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 7603 | if test "${ac_cv_type_long_long+set}" = set; then |
| 7604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7605 | else |
| 7606 | cat >conftest.$ac_ext <<_ACEOF |
| 7607 | #line $LINENO "configure" |
| 7608 | #include "confdefs.h" |
| 7609 | $ac_includes_default |
| 7610 | #ifdef F77_DUMMY_MAIN |
| 7611 | # ifdef __cplusplus |
| 7612 | extern "C" |
| 7613 | # endif |
| 7614 | int F77_DUMMY_MAIN() { return 1; } |
| 7615 | #endif |
| 7616 | int |
| 7617 | main () |
| 7618 | { |
| 7619 | if ((long long *) 0) |
| 7620 | return 0; |
| 7621 | if (sizeof (long long)) |
| 7622 | return 0; |
| 7623 | ; |
| 7624 | return 0; |
| 7625 | } |
| 7626 | _ACEOF |
| 7627 | rm -f conftest.$ac_objext |
| 7628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7629 | (eval $ac_compile) 2>&5 |
| 7630 | ac_status=$? |
| 7631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7632 | (exit $ac_status); } && |
| 7633 | { ac_try='test -s conftest.$ac_objext' |
| 7634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7635 | (eval $ac_try) 2>&5 |
| 7636 | ac_status=$? |
| 7637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7638 | (exit $ac_status); }; }; then |
| 7639 | ac_cv_type_long_long=yes |
| 7640 | else |
| 7641 | echo "$as_me: failed program was:" >&5 |
| 7642 | cat conftest.$ac_ext >&5 |
| 7643 | ac_cv_type_long_long=no |
| 7644 | fi |
| 7645 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7646 | fi |
| 7647 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 7648 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 7649 | |
| 7650 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 7651 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 7652 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 7653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7654 | else |
| 7655 | if test "$ac_cv_type_long_long" = yes; then |
| 7656 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7657 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7658 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7659 | # This bug is HP SR number 8606223364. |
| 7660 | if test "$cross_compiling" = yes; then |
| 7661 | # Depending upon the size, compute the lo and hi bounds. |
| 7662 | cat >conftest.$ac_ext <<_ACEOF |
| 7663 | #line $LINENO "configure" |
| 7664 | #include "confdefs.h" |
| 7665 | $ac_includes_default |
| 7666 | #ifdef F77_DUMMY_MAIN |
| 7667 | # ifdef __cplusplus |
| 7668 | extern "C" |
| 7669 | # endif |
| 7670 | int F77_DUMMY_MAIN() { return 1; } |
| 7671 | #endif |
| 7672 | int |
| 7673 | main () |
| 7674 | { |
| 7675 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 7676 | test_array [0] = 0 |
| 7677 | |
| 7678 | ; |
| 7679 | return 0; |
| 7680 | } |
| 7681 | _ACEOF |
| 7682 | rm -f conftest.$ac_objext |
| 7683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7684 | (eval $ac_compile) 2>&5 |
| 7685 | ac_status=$? |
| 7686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7687 | (exit $ac_status); } && |
| 7688 | { ac_try='test -s conftest.$ac_objext' |
| 7689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7690 | (eval $ac_try) 2>&5 |
| 7691 | ac_status=$? |
| 7692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7693 | (exit $ac_status); }; }; then |
| 7694 | ac_lo=0 ac_mid=0 |
| 7695 | while :; do |
| 7696 | cat >conftest.$ac_ext <<_ACEOF |
| 7697 | #line $LINENO "configure" |
| 7698 | #include "confdefs.h" |
| 7699 | $ac_includes_default |
| 7700 | #ifdef F77_DUMMY_MAIN |
| 7701 | # ifdef __cplusplus |
| 7702 | extern "C" |
| 7703 | # endif |
| 7704 | int F77_DUMMY_MAIN() { return 1; } |
| 7705 | #endif |
| 7706 | int |
| 7707 | main () |
| 7708 | { |
| 7709 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7710 | test_array [0] = 0 |
| 7711 | |
| 7712 | ; |
| 7713 | return 0; |
| 7714 | } |
| 7715 | _ACEOF |
| 7716 | rm -f conftest.$ac_objext |
| 7717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7718 | (eval $ac_compile) 2>&5 |
| 7719 | ac_status=$? |
| 7720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7721 | (exit $ac_status); } && |
| 7722 | { ac_try='test -s conftest.$ac_objext' |
| 7723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7724 | (eval $ac_try) 2>&5 |
| 7725 | ac_status=$? |
| 7726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7727 | (exit $ac_status); }; }; then |
| 7728 | ac_hi=$ac_mid; break |
| 7729 | else |
| 7730 | echo "$as_me: failed program was:" >&5 |
| 7731 | cat conftest.$ac_ext >&5 |
| 7732 | ac_lo=`expr $ac_mid + 1` |
| 7733 | if test $ac_lo -le $ac_mid; then |
| 7734 | ac_lo= ac_hi= |
| 7735 | break |
| 7736 | fi |
| 7737 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7738 | fi |
| 7739 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7740 | done |
| 7741 | else |
| 7742 | echo "$as_me: failed program was:" >&5 |
| 7743 | cat conftest.$ac_ext >&5 |
| 7744 | cat >conftest.$ac_ext <<_ACEOF |
| 7745 | #line $LINENO "configure" |
| 7746 | #include "confdefs.h" |
| 7747 | $ac_includes_default |
| 7748 | #ifdef F77_DUMMY_MAIN |
| 7749 | # ifdef __cplusplus |
| 7750 | extern "C" |
| 7751 | # endif |
| 7752 | int F77_DUMMY_MAIN() { return 1; } |
| 7753 | #endif |
| 7754 | int |
| 7755 | main () |
| 7756 | { |
| 7757 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 7758 | test_array [0] = 0 |
| 7759 | |
| 7760 | ; |
| 7761 | return 0; |
| 7762 | } |
| 7763 | _ACEOF |
| 7764 | rm -f conftest.$ac_objext |
| 7765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7766 | (eval $ac_compile) 2>&5 |
| 7767 | ac_status=$? |
| 7768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7769 | (exit $ac_status); } && |
| 7770 | { ac_try='test -s conftest.$ac_objext' |
| 7771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7772 | (eval $ac_try) 2>&5 |
| 7773 | ac_status=$? |
| 7774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7775 | (exit $ac_status); }; }; then |
| 7776 | ac_hi=-1 ac_mid=-1 |
| 7777 | while :; do |
| 7778 | cat >conftest.$ac_ext <<_ACEOF |
| 7779 | #line $LINENO "configure" |
| 7780 | #include "confdefs.h" |
| 7781 | $ac_includes_default |
| 7782 | #ifdef F77_DUMMY_MAIN |
| 7783 | # ifdef __cplusplus |
| 7784 | extern "C" |
| 7785 | # endif |
| 7786 | int F77_DUMMY_MAIN() { return 1; } |
| 7787 | #endif |
| 7788 | int |
| 7789 | main () |
| 7790 | { |
| 7791 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 7792 | test_array [0] = 0 |
| 7793 | |
| 7794 | ; |
| 7795 | return 0; |
| 7796 | } |
| 7797 | _ACEOF |
| 7798 | rm -f conftest.$ac_objext |
| 7799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7800 | (eval $ac_compile) 2>&5 |
| 7801 | ac_status=$? |
| 7802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7803 | (exit $ac_status); } && |
| 7804 | { ac_try='test -s conftest.$ac_objext' |
| 7805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7806 | (eval $ac_try) 2>&5 |
| 7807 | ac_status=$? |
| 7808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7809 | (exit $ac_status); }; }; then |
| 7810 | ac_lo=$ac_mid; break |
| 7811 | else |
| 7812 | echo "$as_me: failed program was:" >&5 |
| 7813 | cat conftest.$ac_ext >&5 |
| 7814 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7815 | if test $ac_mid -le $ac_hi; then |
| 7816 | ac_lo= ac_hi= |
| 7817 | break |
| 7818 | fi |
| 7819 | ac_mid=`expr 2 '*' $ac_mid` |
| 7820 | fi |
| 7821 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7822 | done |
| 7823 | else |
| 7824 | echo "$as_me: failed program was:" >&5 |
| 7825 | cat conftest.$ac_ext >&5 |
| 7826 | ac_lo= ac_hi= |
| 7827 | fi |
| 7828 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7829 | fi |
| 7830 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7831 | # Binary search between lo and hi bounds. |
| 7832 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7833 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7834 | cat >conftest.$ac_ext <<_ACEOF |
| 7835 | #line $LINENO "configure" |
| 7836 | #include "confdefs.h" |
| 7837 | $ac_includes_default |
| 7838 | #ifdef F77_DUMMY_MAIN |
| 7839 | # ifdef __cplusplus |
| 7840 | extern "C" |
| 7841 | # endif |
| 7842 | int F77_DUMMY_MAIN() { return 1; } |
| 7843 | #endif |
| 7844 | int |
| 7845 | main () |
| 7846 | { |
| 7847 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7848 | test_array [0] = 0 |
| 7849 | |
| 7850 | ; |
| 7851 | return 0; |
| 7852 | } |
| 7853 | _ACEOF |
| 7854 | rm -f conftest.$ac_objext |
| 7855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7856 | (eval $ac_compile) 2>&5 |
| 7857 | ac_status=$? |
| 7858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7859 | (exit $ac_status); } && |
| 7860 | { ac_try='test -s conftest.$ac_objext' |
| 7861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7862 | (eval $ac_try) 2>&5 |
| 7863 | ac_status=$? |
| 7864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7865 | (exit $ac_status); }; }; then |
| 7866 | ac_hi=$ac_mid |
| 7867 | else |
| 7868 | echo "$as_me: failed program was:" >&5 |
| 7869 | cat conftest.$ac_ext >&5 |
| 7870 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7871 | fi |
| 7872 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7873 | done |
| 7874 | case $ac_lo in |
| 7875 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 7876 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 7877 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7878 | { (exit 1); exit 1; }; } ;; |
| 7879 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7880 | else |
| 7881 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7883 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7884 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7886 | cat >conftest.$ac_ext <<_ACEOF |
| 7887 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7888 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7889 | $ac_includes_default |
| 7890 | long longval () { return (long) (sizeof (long long)); } |
| 7891 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7892 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7893 | #include <stdlib.h> |
| 7894 | #ifdef F77_DUMMY_MAIN |
| 7895 | # ifdef __cplusplus |
| 7896 | extern "C" |
| 7897 | # endif |
| 7898 | int F77_DUMMY_MAIN() { return 1; } |
| 7899 | #endif |
| 7900 | int |
| 7901 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7902 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7903 | |
| 7904 | FILE *f = fopen ("conftest.val", "w"); |
| 7905 | if (! f) |
| 7906 | exit (1); |
| 7907 | if (((long) (sizeof (long long))) < 0) |
| 7908 | { |
| 7909 | long i = longval (); |
| 7910 | if (i != ((long) (sizeof (long long)))) |
| 7911 | exit (1); |
| 7912 | fprintf (f, "%ld\n", i); |
| 7913 | } |
| 7914 | else |
| 7915 | { |
| 7916 | unsigned long i = ulongval (); |
| 7917 | if (i != ((long) (sizeof (long long)))) |
| 7918 | exit (1); |
| 7919 | fprintf (f, "%lu\n", i); |
| 7920 | } |
| 7921 | exit (ferror (f) || fclose (f) != 0); |
| 7922 | |
| 7923 | ; |
| 7924 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7925 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7926 | _ACEOF |
| 7927 | rm -f conftest$ac_exeext |
| 7928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7929 | (eval $ac_link) 2>&5 |
| 7930 | ac_status=$? |
| 7931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7932 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7934 | (eval $ac_try) 2>&5 |
| 7935 | ac_status=$? |
| 7936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7937 | (exit $ac_status); }; }; then |
| 7938 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7939 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7940 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7941 | echo "$as_me: failed program was:" >&5 |
| 7942 | cat conftest.$ac_ext >&5 |
| 7943 | ( exit $ac_status ) |
| 7944 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 7945 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7946 | { (exit 1); exit 1; }; } |
| 7947 | fi |
| 7948 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7949 | fi |
| 7950 | fi |
| 7951 | rm -f conftest.val |
| 7952 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7953 | ac_cv_sizeof_long_long=0 |
| 7954 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7955 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7956 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 7957 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 7958 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7959 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7960 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7961 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7962 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7963 | fi |
| 7964 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7965 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 7966 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7967 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7968 | cat >conftest.$ac_ext <<_ACEOF |
| 7969 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7970 | #include "confdefs.h" |
| 7971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7972 | #ifdef F77_DUMMY_MAIN |
| 7973 | # ifdef __cplusplus |
| 7974 | extern "C" |
| 7975 | # endif |
| 7976 | int F77_DUMMY_MAIN() { return 1; } |
| 7977 | #endif |
| 7978 | int |
| 7979 | main () |
| 7980 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7981 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7982 | ; |
| 7983 | return 0; |
| 7984 | } |
| 7985 | _ACEOF |
| 7986 | rm -f conftest.$ac_objext |
| 7987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7988 | (eval $ac_compile) 2>&5 |
| 7989 | ac_status=$? |
| 7990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7991 | (exit $ac_status); } && |
| 7992 | { ac_try='test -s conftest.$ac_objext' |
| 7993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7994 | (eval $ac_try) 2>&5 |
| 7995 | ac_status=$? |
| 7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7997 | (exit $ac_status); }; }; then |
| 7998 | |
| 7999 | |
| 8000 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8001 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8002 | _ACEOF |
| 8003 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8004 | have_uintptr_t=yes |
| 8005 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8007 | echo "$as_me: failed program was:" >&5 |
| 8008 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8009 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8010 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8011 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8012 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8013 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8014 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8015 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8016 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8018 | else |
| 8019 | cat >conftest.$ac_ext <<_ACEOF |
| 8020 | #line $LINENO "configure" |
| 8021 | #include "confdefs.h" |
| 8022 | $ac_includes_default |
| 8023 | #ifdef F77_DUMMY_MAIN |
| 8024 | # ifdef __cplusplus |
| 8025 | extern "C" |
| 8026 | # endif |
| 8027 | int F77_DUMMY_MAIN() { return 1; } |
| 8028 | #endif |
| 8029 | int |
| 8030 | main () |
| 8031 | { |
| 8032 | if ((uintptr_t *) 0) |
| 8033 | return 0; |
| 8034 | if (sizeof (uintptr_t)) |
| 8035 | return 0; |
| 8036 | ; |
| 8037 | return 0; |
| 8038 | } |
| 8039 | _ACEOF |
| 8040 | rm -f conftest.$ac_objext |
| 8041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8042 | (eval $ac_compile) 2>&5 |
| 8043 | ac_status=$? |
| 8044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8045 | (exit $ac_status); } && |
| 8046 | { ac_try='test -s conftest.$ac_objext' |
| 8047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8048 | (eval $ac_try) 2>&5 |
| 8049 | ac_status=$? |
| 8050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8051 | (exit $ac_status); }; }; then |
| 8052 | ac_cv_type_uintptr_t=yes |
| 8053 | else |
| 8054 | echo "$as_me: failed program was:" >&5 |
| 8055 | cat conftest.$ac_ext >&5 |
| 8056 | ac_cv_type_uintptr_t=no |
| 8057 | fi |
| 8058 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8059 | fi |
| 8060 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8061 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8062 | |
| 8063 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8064 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8065 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8067 | else |
| 8068 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8069 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8070 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8071 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8072 | # This bug is HP SR number 8606223364. |
| 8073 | if test "$cross_compiling" = yes; then |
| 8074 | # Depending upon the size, compute the lo and hi bounds. |
| 8075 | cat >conftest.$ac_ext <<_ACEOF |
| 8076 | #line $LINENO "configure" |
| 8077 | #include "confdefs.h" |
| 8078 | $ac_includes_default |
| 8079 | #ifdef F77_DUMMY_MAIN |
| 8080 | # ifdef __cplusplus |
| 8081 | extern "C" |
| 8082 | # endif |
| 8083 | int F77_DUMMY_MAIN() { return 1; } |
| 8084 | #endif |
| 8085 | int |
| 8086 | main () |
| 8087 | { |
| 8088 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8089 | test_array [0] = 0 |
| 8090 | |
| 8091 | ; |
| 8092 | return 0; |
| 8093 | } |
| 8094 | _ACEOF |
| 8095 | rm -f conftest.$ac_objext |
| 8096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8097 | (eval $ac_compile) 2>&5 |
| 8098 | ac_status=$? |
| 8099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8100 | (exit $ac_status); } && |
| 8101 | { ac_try='test -s conftest.$ac_objext' |
| 8102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8103 | (eval $ac_try) 2>&5 |
| 8104 | ac_status=$? |
| 8105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8106 | (exit $ac_status); }; }; then |
| 8107 | ac_lo=0 ac_mid=0 |
| 8108 | while :; do |
| 8109 | cat >conftest.$ac_ext <<_ACEOF |
| 8110 | #line $LINENO "configure" |
| 8111 | #include "confdefs.h" |
| 8112 | $ac_includes_default |
| 8113 | #ifdef F77_DUMMY_MAIN |
| 8114 | # ifdef __cplusplus |
| 8115 | extern "C" |
| 8116 | # endif |
| 8117 | int F77_DUMMY_MAIN() { return 1; } |
| 8118 | #endif |
| 8119 | int |
| 8120 | main () |
| 8121 | { |
| 8122 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8123 | test_array [0] = 0 |
| 8124 | |
| 8125 | ; |
| 8126 | return 0; |
| 8127 | } |
| 8128 | _ACEOF |
| 8129 | rm -f conftest.$ac_objext |
| 8130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8131 | (eval $ac_compile) 2>&5 |
| 8132 | ac_status=$? |
| 8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8134 | (exit $ac_status); } && |
| 8135 | { ac_try='test -s conftest.$ac_objext' |
| 8136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8137 | (eval $ac_try) 2>&5 |
| 8138 | ac_status=$? |
| 8139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8140 | (exit $ac_status); }; }; then |
| 8141 | ac_hi=$ac_mid; break |
| 8142 | else |
| 8143 | echo "$as_me: failed program was:" >&5 |
| 8144 | cat conftest.$ac_ext >&5 |
| 8145 | ac_lo=`expr $ac_mid + 1` |
| 8146 | if test $ac_lo -le $ac_mid; then |
| 8147 | ac_lo= ac_hi= |
| 8148 | break |
| 8149 | fi |
| 8150 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8151 | fi |
| 8152 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8153 | done |
| 8154 | else |
| 8155 | echo "$as_me: failed program was:" >&5 |
| 8156 | cat conftest.$ac_ext >&5 |
| 8157 | cat >conftest.$ac_ext <<_ACEOF |
| 8158 | #line $LINENO "configure" |
| 8159 | #include "confdefs.h" |
| 8160 | $ac_includes_default |
| 8161 | #ifdef F77_DUMMY_MAIN |
| 8162 | # ifdef __cplusplus |
| 8163 | extern "C" |
| 8164 | # endif |
| 8165 | int F77_DUMMY_MAIN() { return 1; } |
| 8166 | #endif |
| 8167 | int |
| 8168 | main () |
| 8169 | { |
| 8170 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8171 | test_array [0] = 0 |
| 8172 | |
| 8173 | ; |
| 8174 | return 0; |
| 8175 | } |
| 8176 | _ACEOF |
| 8177 | rm -f conftest.$ac_objext |
| 8178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8179 | (eval $ac_compile) 2>&5 |
| 8180 | ac_status=$? |
| 8181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8182 | (exit $ac_status); } && |
| 8183 | { ac_try='test -s conftest.$ac_objext' |
| 8184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8185 | (eval $ac_try) 2>&5 |
| 8186 | ac_status=$? |
| 8187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8188 | (exit $ac_status); }; }; then |
| 8189 | ac_hi=-1 ac_mid=-1 |
| 8190 | while :; do |
| 8191 | cat >conftest.$ac_ext <<_ACEOF |
| 8192 | #line $LINENO "configure" |
| 8193 | #include "confdefs.h" |
| 8194 | $ac_includes_default |
| 8195 | #ifdef F77_DUMMY_MAIN |
| 8196 | # ifdef __cplusplus |
| 8197 | extern "C" |
| 8198 | # endif |
| 8199 | int F77_DUMMY_MAIN() { return 1; } |
| 8200 | #endif |
| 8201 | int |
| 8202 | main () |
| 8203 | { |
| 8204 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8205 | test_array [0] = 0 |
| 8206 | |
| 8207 | ; |
| 8208 | return 0; |
| 8209 | } |
| 8210 | _ACEOF |
| 8211 | rm -f conftest.$ac_objext |
| 8212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8213 | (eval $ac_compile) 2>&5 |
| 8214 | ac_status=$? |
| 8215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8216 | (exit $ac_status); } && |
| 8217 | { ac_try='test -s conftest.$ac_objext' |
| 8218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8219 | (eval $ac_try) 2>&5 |
| 8220 | ac_status=$? |
| 8221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8222 | (exit $ac_status); }; }; then |
| 8223 | ac_lo=$ac_mid; break |
| 8224 | else |
| 8225 | echo "$as_me: failed program was:" >&5 |
| 8226 | cat conftest.$ac_ext >&5 |
| 8227 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8228 | if test $ac_mid -le $ac_hi; then |
| 8229 | ac_lo= ac_hi= |
| 8230 | break |
| 8231 | fi |
| 8232 | ac_mid=`expr 2 '*' $ac_mid` |
| 8233 | fi |
| 8234 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8235 | done |
| 8236 | else |
| 8237 | echo "$as_me: failed program was:" >&5 |
| 8238 | cat conftest.$ac_ext >&5 |
| 8239 | ac_lo= ac_hi= |
| 8240 | fi |
| 8241 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8242 | fi |
| 8243 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8244 | # Binary search between lo and hi bounds. |
| 8245 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8246 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8247 | cat >conftest.$ac_ext <<_ACEOF |
| 8248 | #line $LINENO "configure" |
| 8249 | #include "confdefs.h" |
| 8250 | $ac_includes_default |
| 8251 | #ifdef F77_DUMMY_MAIN |
| 8252 | # ifdef __cplusplus |
| 8253 | extern "C" |
| 8254 | # endif |
| 8255 | int F77_DUMMY_MAIN() { return 1; } |
| 8256 | #endif |
| 8257 | int |
| 8258 | main () |
| 8259 | { |
| 8260 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8261 | test_array [0] = 0 |
| 8262 | |
| 8263 | ; |
| 8264 | return 0; |
| 8265 | } |
| 8266 | _ACEOF |
| 8267 | rm -f conftest.$ac_objext |
| 8268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8269 | (eval $ac_compile) 2>&5 |
| 8270 | ac_status=$? |
| 8271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8272 | (exit $ac_status); } && |
| 8273 | { ac_try='test -s conftest.$ac_objext' |
| 8274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8275 | (eval $ac_try) 2>&5 |
| 8276 | ac_status=$? |
| 8277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8278 | (exit $ac_status); }; }; then |
| 8279 | ac_hi=$ac_mid |
| 8280 | else |
| 8281 | echo "$as_me: failed program was:" >&5 |
| 8282 | cat conftest.$ac_ext >&5 |
| 8283 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8284 | fi |
| 8285 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8286 | done |
| 8287 | case $ac_lo in |
| 8288 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8289 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8290 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8291 | { (exit 1); exit 1; }; } ;; |
| 8292 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8293 | else |
| 8294 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8295 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8296 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8297 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8299 | cat >conftest.$ac_ext <<_ACEOF |
| 8300 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8301 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8302 | $ac_includes_default |
| 8303 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8304 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8305 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8306 | #include <stdlib.h> |
| 8307 | #ifdef F77_DUMMY_MAIN |
| 8308 | # ifdef __cplusplus |
| 8309 | extern "C" |
| 8310 | # endif |
| 8311 | int F77_DUMMY_MAIN() { return 1; } |
| 8312 | #endif |
| 8313 | int |
| 8314 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8315 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8316 | |
| 8317 | FILE *f = fopen ("conftest.val", "w"); |
| 8318 | if (! f) |
| 8319 | exit (1); |
| 8320 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8321 | { |
| 8322 | long i = longval (); |
| 8323 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8324 | exit (1); |
| 8325 | fprintf (f, "%ld\n", i); |
| 8326 | } |
| 8327 | else |
| 8328 | { |
| 8329 | unsigned long i = ulongval (); |
| 8330 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8331 | exit (1); |
| 8332 | fprintf (f, "%lu\n", i); |
| 8333 | } |
| 8334 | exit (ferror (f) || fclose (f) != 0); |
| 8335 | |
| 8336 | ; |
| 8337 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8338 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8339 | _ACEOF |
| 8340 | rm -f conftest$ac_exeext |
| 8341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8342 | (eval $ac_link) 2>&5 |
| 8343 | ac_status=$? |
| 8344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8345 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8347 | (eval $ac_try) 2>&5 |
| 8348 | ac_status=$? |
| 8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8350 | (exit $ac_status); }; }; then |
| 8351 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8353 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8354 | echo "$as_me: failed program was:" >&5 |
| 8355 | cat conftest.$ac_ext >&5 |
| 8356 | ( exit $ac_status ) |
| 8357 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8358 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8359 | { (exit 1); exit 1; }; } |
| 8360 | fi |
| 8361 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8362 | fi |
| 8363 | fi |
| 8364 | rm -f conftest.val |
| 8365 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8366 | ac_cv_sizeof_uintptr_t=0 |
| 8367 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8368 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8369 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8370 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8371 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8372 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8373 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8374 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8375 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8376 | fi |
| 8377 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8378 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8379 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8380 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8381 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8383 | else |
| 8384 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8385 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8386 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8387 | cat >conftest.$ac_ext <<_ACEOF |
| 8388 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8389 | #include "confdefs.h" |
| 8390 | #include <stdio.h> |
| 8391 | #include <sys/types.h> |
| 8392 | main() |
| 8393 | { |
| 8394 | FILE *f=fopen("conftestval", "w"); |
| 8395 | if (!f) exit(1); |
| 8396 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8397 | exit(0); |
| 8398 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | _ACEOF |
| 8400 | rm -f conftest$ac_exeext |
| 8401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8402 | (eval $ac_link) 2>&5 |
| 8403 | ac_status=$? |
| 8404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8405 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8407 | (eval $ac_try) 2>&5 |
| 8408 | ac_status=$? |
| 8409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8410 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8411 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8412 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8413 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8414 | echo "$as_me: failed program was:" >&5 |
| 8415 | cat conftest.$ac_ext >&5 |
| 8416 | ( exit $ac_status ) |
| 8417 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8418 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8419 | 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] | 8420 | fi |
| 8421 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8422 | fi |
| 8423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8425 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8426 | |
| 8427 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8428 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8429 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8430 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8432 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8433 | 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] | 8434 | if test "$have_long_long" = yes -a \ |
| 8435 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8436 | "$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] | 8437 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8438 | cat >>confdefs.h <<\_ACEOF |
| 8439 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8440 | _ACEOF |
| 8441 | |
| 8442 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8443 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8444 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8445 | echo "$as_me:$LINENO: result: no" >&5 |
| 8446 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8447 | fi |
| 8448 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8449 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8450 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8451 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8452 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8454 | else |
| 8455 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8456 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8457 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8458 | cat >conftest.$ac_ext <<_ACEOF |
| 8459 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8460 | #include "confdefs.h" |
| 8461 | #include <stdio.h> |
| 8462 | #include <time.h> |
| 8463 | main() |
| 8464 | { |
| 8465 | FILE *f=fopen("conftestval", "w"); |
| 8466 | if (!f) exit(1); |
| 8467 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8468 | exit(0); |
| 8469 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8470 | _ACEOF |
| 8471 | rm -f conftest$ac_exeext |
| 8472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8473 | (eval $ac_link) 2>&5 |
| 8474 | ac_status=$? |
| 8475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8476 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8478 | (eval $ac_try) 2>&5 |
| 8479 | ac_status=$? |
| 8480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8481 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8482 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8485 | echo "$as_me: failed program was:" >&5 |
| 8486 | cat conftest.$ac_ext >&5 |
| 8487 | ( exit $ac_status ) |
| 8488 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8489 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8490 | 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] | 8491 | fi |
| 8492 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8493 | fi |
| 8494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8495 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 8496 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 8497 | |
| 8498 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8499 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8500 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8501 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8502 | |
| 8503 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8504 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8505 | ac_save_cc="$CC" |
| 8506 | if test "$ac_cv_kpthread" = "yes" |
| 8507 | then CC="$CC -Kpthread" |
| 8508 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8509 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 8510 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8511 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8512 | cat >conftest.$ac_ext <<_ACEOF |
| 8513 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8514 | #include "confdefs.h" |
| 8515 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8516 | #ifdef F77_DUMMY_MAIN |
| 8517 | # ifdef __cplusplus |
| 8518 | extern "C" |
| 8519 | # endif |
| 8520 | int F77_DUMMY_MAIN() { return 1; } |
| 8521 | #endif |
| 8522 | int |
| 8523 | main () |
| 8524 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8525 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8526 | ; |
| 8527 | return 0; |
| 8528 | } |
| 8529 | _ACEOF |
| 8530 | rm -f conftest.$ac_objext |
| 8531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8532 | (eval $ac_compile) 2>&5 |
| 8533 | ac_status=$? |
| 8534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8535 | (exit $ac_status); } && |
| 8536 | { ac_try='test -s conftest.$ac_objext' |
| 8537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8538 | (eval $ac_try) 2>&5 |
| 8539 | ac_status=$? |
| 8540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8541 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8542 | have_pthread_t=yes |
| 8543 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8544 | echo "$as_me: failed program was:" >&5 |
| 8545 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8546 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8547 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8548 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 8549 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8550 | if test "$have_pthread_t" = yes ; then |
| 8551 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8552 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 8553 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 8554 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 8555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8556 | else |
| 8557 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8558 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8560 | cat >conftest.$ac_ext <<_ACEOF |
| 8561 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8562 | #include "confdefs.h" |
| 8563 | #include <stdio.h> |
| 8564 | #include <pthread.h> |
| 8565 | main() |
| 8566 | { |
| 8567 | FILE *f=fopen("conftestval", "w"); |
| 8568 | if (!f) exit(1); |
| 8569 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 8570 | exit(0); |
| 8571 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8572 | _ACEOF |
| 8573 | rm -f conftest$ac_exeext |
| 8574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8575 | (eval $ac_link) 2>&5 |
| 8576 | ac_status=$? |
| 8577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8578 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8580 | (eval $ac_try) 2>&5 |
| 8581 | ac_status=$? |
| 8582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8583 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8584 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 8585 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8586 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8587 | echo "$as_me: failed program was:" >&5 |
| 8588 | cat conftest.$ac_ext >&5 |
| 8589 | ( exit $ac_status ) |
| 8590 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8591 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8592 | 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] | 8593 | fi |
| 8594 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8595 | fi |
| 8596 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8597 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 8598 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 8599 | |
| 8600 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8601 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8602 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8603 | |
| 8604 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8605 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8607 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 8608 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8609 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 8610 | if test "${enable_toolbox_glue+set}" = set; then |
| 8611 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8613 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8614 | |
| 8615 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8617 | case $ac_sys_system/$ac_sys_release in |
| 8618 | Darwin/*) |
| 8619 | enable_toolbox_glue="yes";; |
| 8620 | *) |
| 8621 | enable_toolbox_glue="no";; |
| 8622 | esac |
| 8623 | fi |
| 8624 | case "$enable_toolbox_glue" in |
| 8625 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 8626 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8627 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8628 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8629 | |
| 8630 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8631 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8633 | |
| 8634 | ;; |
| 8635 | *) |
| 8636 | extra_frameworks="" |
| 8637 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8638 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8639 | ;; |
| 8640 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8641 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 8642 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8643 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8644 | |
| 8645 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8646 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8647 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8648 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" |
| 8649 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8650 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8651 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8652 | Darwin/*) |
| 8653 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8654 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -flat_namespace -U $ns_undef_sym" |
| 8655 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8656 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8657 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8658 | esac |
| 8659 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8660 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 8661 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8662 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8663 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 8664 | OPT="$OPT -fno-common -dynamic" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8665 | # -U __environ is needed since bundles don't have access |
| 8666 | # 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] | 8667 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8668 | # in the build location. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8669 | |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8670 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8671 | Darwin/1.3*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-U,$ns_undef_sym";; |
| 8672 | Darwin/*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-flat_namespace,-U,$ns_undef_sym";; |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8673 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8674 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8675 | cat >>confdefs.h <<\_ACEOF |
| 8676 | #define WITH_NEXT_FRAMEWORK 1 |
| 8677 | _ACEOF |
| 8678 | |
| 8679 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8680 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8682 | echo "$as_me:$LINENO: result: no" >&5 |
| 8683 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8684 | fi |
| 8685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8686 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 8687 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8688 | case $ac_sys_system/$ac_sys_release in |
| 8689 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | cat >>confdefs.h <<\_ACEOF |
| 8692 | #define WITH_DYLD 1 |
| 8693 | _ACEOF |
| 8694 | |
| 8695 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 8696 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8697 | ;; |
| 8698 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | echo "$as_me:$LINENO: result: no" >&5 |
| 8700 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8701 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8702 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8703 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8704 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8705 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8706 | |
| 8707 | |
| 8708 | |
| 8709 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8710 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8711 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8712 | echo "$as_me:$LINENO: checking SO" >&5 |
| 8713 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8714 | if test -z "$SO" |
| 8715 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8716 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8717 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8718 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8719 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8720 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8721 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8722 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 8723 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8724 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8725 | # -- "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] | 8726 | # (Shared libraries in this instance are shared modules to be loaded into |
| 8727 | # 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] | 8728 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 8729 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8730 | if test -z "$LDSHARED" |
| 8731 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8732 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8733 | AIX*) |
| 8734 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8735 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8736 | ;; |
| 8737 | BeOS*) |
| 8738 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8739 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8740 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8741 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8742 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8743 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8744 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8745 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 8746 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8747 | else LDSHARED="$(CC) -G"; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8748 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8749 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8750 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 8751 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8752 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8753 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8754 | if test "$enable_framework" ; then |
| 8755 | # Link against the framework. All externals should be defined. |
| 8756 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8757 | else |
| 8758 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8759 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8760 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8761 | Darwin/*) |
| 8762 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8763 | if test "$enable_framework" ; then |
| 8764 | # Link against the framework. All externals should be defined. |
| 8765 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8766 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8767 | # No framework, use the Python app as bundle-loader |
| 8768 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 8769 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8770 | fi ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8771 | Linux*|GNU*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 8772 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 8773 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8774 | OpenBSD*|NetBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8775 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8776 | then |
| 8777 | LDSHARED="cc -shared ${LDFLAGS}" |
| 8778 | else |
| 8779 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 8780 | fi;; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8781 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8782 | if test "$GCC" = "yes" |
| 8783 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8784 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8785 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8786 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8787 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8788 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8789 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8790 | *) LDSHARED="ld";; |
| 8791 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8792 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8793 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 8794 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8795 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8796 | # 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] | 8797 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8798 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 8799 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8800 | if test -z "$CCSHARED" |
| 8801 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8802 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8803 | SunOS*) if test "$GCC" = yes; |
| 8804 | then CCSHARED="-fPIC"; |
| 8805 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8806 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8807 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8808 | else CCSHARED="+z"; |
| 8809 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8810 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8811 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8812 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8813 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8814 | if test "$GCC" = "yes" |
| 8815 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8816 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8817 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8818 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8819 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8820 | IRIX*/6*) case $CC in |
| 8821 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8822 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8823 | esac;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8824 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8825 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8826 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8827 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 8829 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8830 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8831 | # 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] | 8832 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 8833 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8834 | if test -z "$LINKFORSHARED" |
| 8835 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8836 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8837 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8838 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8839 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 8840 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8841 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8842 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8843 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8844 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8845 | # -u __dummy makes the linker aware of the objc runtime |
| 8846 | # in System.framework; otherwise, __objcInit (referenced in |
| 8847 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 8848 | # loading of any modules which reference it in System.framework. |
| 8849 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 8850 | # not used by the core itself but which needs to be in the core so |
| 8851 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8852 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8853 | if test "$enable_framework" |
| 8854 | then |
| 8855 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 8856 | fi |
| 8857 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8858 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8859 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8860 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8861 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8862 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 8863 | then |
| 8864 | LINKFORSHARED="-Wl,--export-dynamic" |
| 8865 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8866 | SunOS/5*) case $CC in |
| 8867 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8868 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8869 | then |
| 8870 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8871 | fi;; |
| 8872 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8873 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8874 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8875 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 8876 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8877 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8879 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 8880 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8881 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 8882 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8883 | case $ac_sys_system in |
| 8884 | CYGWIN*) |
| 8885 | # Cygwin needs CCSHARED when building extension DLLs |
| 8886 | # but not when building the interpreter DLL. |
| 8887 | CFLAGSFORSHARED='';; |
| 8888 | *) |
| 8889 | CFLAGSFORSHARED='$(CCSHARED)' |
| 8890 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8891 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 8893 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8894 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8895 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 8896 | # library (with --enable-shared). |
| 8897 | # For platforms on which shared libraries are not allowed to have unresolved |
| 8898 | # symbols, this must be set to $(LIBS) (expanded by make). |
| 8899 | |
| 8900 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 8901 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 8902 | case "$ac_sys_system" in |
| 8903 | atheos*) |
| 8904 | SHLIBS='$(LIBS)';; |
| 8905 | *) |
| 8906 | SHLIBS='';; |
| 8907 | esac |
| 8908 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 8909 | echo "${ECHO_T}$SHLIBS" >&6 |
| 8910 | |
| 8911 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8912 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8913 | |
| 8914 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8915 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8916 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8919 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8920 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8921 | cat >conftest.$ac_ext <<_ACEOF |
| 8922 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8923 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8924 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8925 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8926 | #ifdef __cplusplus |
| 8927 | extern "C" |
| 8928 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8929 | /* 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] | 8930 | builtin and then its argument prototype would still apply. */ |
| 8931 | char dlopen (); |
| 8932 | #ifdef F77_DUMMY_MAIN |
| 8933 | # ifdef __cplusplus |
| 8934 | extern "C" |
| 8935 | # endif |
| 8936 | int F77_DUMMY_MAIN() { return 1; } |
| 8937 | #endif |
| 8938 | int |
| 8939 | main () |
| 8940 | { |
| 8941 | dlopen (); |
| 8942 | ; |
| 8943 | return 0; |
| 8944 | } |
| 8945 | _ACEOF |
| 8946 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8948 | (eval $ac_link) 2>&5 |
| 8949 | ac_status=$? |
| 8950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8951 | (exit $ac_status); } && |
| 8952 | { ac_try='test -s conftest$ac_exeext' |
| 8953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8954 | (eval $ac_try) 2>&5 |
| 8955 | ac_status=$? |
| 8956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8957 | (exit $ac_status); }; }; then |
| 8958 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8959 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8960 | echo "$as_me: failed program was:" >&5 |
| 8961 | cat conftest.$ac_ext >&5 |
| 8962 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8963 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8965 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8966 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8967 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8968 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8969 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8970 | cat >>confdefs.h <<_ACEOF |
| 8971 | #define HAVE_LIBDL 1 |
| 8972 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8973 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8974 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8975 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8976 | fi |
| 8977 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8978 | |
| 8979 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8980 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 8981 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8983 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8984 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8985 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8986 | cat >conftest.$ac_ext <<_ACEOF |
| 8987 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8988 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8990 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8991 | #ifdef __cplusplus |
| 8992 | extern "C" |
| 8993 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8994 | /* 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] | 8995 | builtin and then its argument prototype would still apply. */ |
| 8996 | char shl_load (); |
| 8997 | #ifdef F77_DUMMY_MAIN |
| 8998 | # ifdef __cplusplus |
| 8999 | extern "C" |
| 9000 | # endif |
| 9001 | int F77_DUMMY_MAIN() { return 1; } |
| 9002 | #endif |
| 9003 | int |
| 9004 | main () |
| 9005 | { |
| 9006 | shl_load (); |
| 9007 | ; |
| 9008 | return 0; |
| 9009 | } |
| 9010 | _ACEOF |
| 9011 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9013 | (eval $ac_link) 2>&5 |
| 9014 | ac_status=$? |
| 9015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9016 | (exit $ac_status); } && |
| 9017 | { ac_try='test -s conftest$ac_exeext' |
| 9018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9019 | (eval $ac_try) 2>&5 |
| 9020 | ac_status=$? |
| 9021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9022 | (exit $ac_status); }; }; then |
| 9023 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9025 | echo "$as_me: failed program was:" >&5 |
| 9026 | cat conftest.$ac_ext >&5 |
| 9027 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9028 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9029 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9030 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9031 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9032 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9033 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9034 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9035 | cat >>confdefs.h <<_ACEOF |
| 9036 | #define HAVE_LIBDLD 1 |
| 9037 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9038 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9039 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9040 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9041 | fi |
| 9042 | # Dynamic linking for HP-UX |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9043 | |
| 9044 | echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 |
| 9045 | echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6 |
| 9046 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then |
| 9047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9049 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9050 | LIBS="-lrt $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9051 | cat >conftest.$ac_ext <<_ACEOF |
| 9052 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9053 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9054 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9055 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9056 | #ifdef __cplusplus |
| 9057 | extern "C" |
| 9058 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9059 | /* 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] | 9060 | builtin and then its argument prototype would still apply. */ |
| 9061 | char sem_init (); |
| 9062 | #ifdef F77_DUMMY_MAIN |
| 9063 | # ifdef __cplusplus |
| 9064 | extern "C" |
| 9065 | # endif |
| 9066 | int F77_DUMMY_MAIN() { return 1; } |
| 9067 | #endif |
| 9068 | int |
| 9069 | main () |
| 9070 | { |
| 9071 | sem_init (); |
| 9072 | ; |
| 9073 | return 0; |
| 9074 | } |
| 9075 | _ACEOF |
| 9076 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9078 | (eval $ac_link) 2>&5 |
| 9079 | ac_status=$? |
| 9080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9081 | (exit $ac_status); } && |
| 9082 | { ac_try='test -s conftest$ac_exeext' |
| 9083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9084 | (eval $ac_try) 2>&5 |
| 9085 | ac_status=$? |
| 9086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9087 | (exit $ac_status); }; }; then |
| 9088 | ac_cv_lib_rt_sem_init=yes |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9089 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9090 | echo "$as_me: failed program was:" >&5 |
| 9091 | cat conftest.$ac_ext >&5 |
| 9092 | ac_cv_lib_rt_sem_init=no |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9093 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9095 | LIBS=$ac_check_lib_save_LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9096 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9097 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 |
| 9098 | echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6 |
| 9099 | if test $ac_cv_lib_rt_sem_init = yes; then |
| 9100 | cat >>confdefs.h <<_ACEOF |
| 9101 | #define HAVE_LIBRT 1 |
| 9102 | _ACEOF |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9103 | |
| 9104 | LIBS="-lrt $LIBS" |
| 9105 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9106 | fi |
| 9107 | # 'Real Time' functions on Solaris |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9108 | |
| 9109 | # checks for system dependent C++ extensions support |
| 9110 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9111 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9112 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9113 | cat >conftest.$ac_ext <<_ACEOF |
| 9114 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9115 | #include "confdefs.h" |
| 9116 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9117 | #ifdef F77_DUMMY_MAIN |
| 9118 | # ifdef __cplusplus |
| 9119 | extern "C" |
| 9120 | # endif |
| 9121 | int F77_DUMMY_MAIN() { return 1; } |
| 9122 | #endif |
| 9123 | int |
| 9124 | main () |
| 9125 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9126 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9127 | ; |
| 9128 | return 0; |
| 9129 | } |
| 9130 | _ACEOF |
| 9131 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9133 | (eval $ac_link) 2>&5 |
| 9134 | ac_status=$? |
| 9135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9136 | (exit $ac_status); } && |
| 9137 | { ac_try='test -s conftest$ac_exeext' |
| 9138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9139 | (eval $ac_try) 2>&5 |
| 9140 | ac_status=$? |
| 9141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9142 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | cat >>confdefs.h <<\_ACEOF |
| 9145 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9146 | _ACEOF |
| 9147 | |
| 9148 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9149 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9150 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 | echo "$as_me: failed program was:" >&5 |
| 9152 | cat conftest.$ac_ext >&5 |
| 9153 | echo "$as_me:$LINENO: result: no" >&5 |
| 9154 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9155 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9156 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9157 | *) ;; |
| 9158 | esac |
| 9159 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9160 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 9161 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9162 | # BeOS' sockets are stashed in libnet. |
| 9163 | case "$ac_sys_system" in |
| 9164 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9165 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9166 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9167 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9168 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9170 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9171 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9172 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9173 | cat >conftest.$ac_ext <<_ACEOF |
| 9174 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9175 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9176 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9177 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9178 | #ifdef __cplusplus |
| 9179 | extern "C" |
| 9180 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9181 | /* 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] | 9182 | builtin and then its argument prototype would still apply. */ |
| 9183 | char t_open (); |
| 9184 | #ifdef F77_DUMMY_MAIN |
| 9185 | # ifdef __cplusplus |
| 9186 | extern "C" |
| 9187 | # endif |
| 9188 | int F77_DUMMY_MAIN() { return 1; } |
| 9189 | #endif |
| 9190 | int |
| 9191 | main () |
| 9192 | { |
| 9193 | t_open (); |
| 9194 | ; |
| 9195 | return 0; |
| 9196 | } |
| 9197 | _ACEOF |
| 9198 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9200 | (eval $ac_link) 2>&5 |
| 9201 | ac_status=$? |
| 9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9203 | (exit $ac_status); } && |
| 9204 | { ac_try='test -s conftest$ac_exeext' |
| 9205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9206 | (eval $ac_try) 2>&5 |
| 9207 | ac_status=$? |
| 9208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9209 | (exit $ac_status); }; }; then |
| 9210 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9211 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9212 | echo "$as_me: failed program was:" >&5 |
| 9213 | cat conftest.$ac_ext >&5 |
| 9214 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9215 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9216 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9217 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9218 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9220 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9221 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9222 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9223 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9224 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9225 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9226 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9227 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9230 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9231 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9232 | cat >conftest.$ac_ext <<_ACEOF |
| 9233 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9234 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9235 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9236 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9237 | #ifdef __cplusplus |
| 9238 | extern "C" |
| 9239 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9240 | /* 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] | 9241 | builtin and then its argument prototype would still apply. */ |
| 9242 | char socket (); |
| 9243 | #ifdef F77_DUMMY_MAIN |
| 9244 | # ifdef __cplusplus |
| 9245 | extern "C" |
| 9246 | # endif |
| 9247 | int F77_DUMMY_MAIN() { return 1; } |
| 9248 | #endif |
| 9249 | int |
| 9250 | main () |
| 9251 | { |
| 9252 | socket (); |
| 9253 | ; |
| 9254 | return 0; |
| 9255 | } |
| 9256 | _ACEOF |
| 9257 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9259 | (eval $ac_link) 2>&5 |
| 9260 | ac_status=$? |
| 9261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9262 | (exit $ac_status); } && |
| 9263 | { ac_try='test -s conftest$ac_exeext' |
| 9264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9265 | (eval $ac_try) 2>&5 |
| 9266 | ac_status=$? |
| 9267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9268 | (exit $ac_status); }; }; then |
| 9269 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9270 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9271 | echo "$as_me: failed program was:" >&5 |
| 9272 | cat conftest.$ac_ext >&5 |
| 9273 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9274 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9275 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9276 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9277 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9278 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9279 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9280 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9281 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9282 | fi |
| 9283 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9284 | ;; |
| 9285 | esac |
| 9286 | case "$ac_sys_system" in |
| 9287 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9288 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9289 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9290 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9293 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9294 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9295 | cat >conftest.$ac_ext <<_ACEOF |
| 9296 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9297 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9298 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9299 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9300 | #ifdef __cplusplus |
| 9301 | extern "C" |
| 9302 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9303 | /* 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] | 9304 | builtin and then its argument prototype would still apply. */ |
| 9305 | char socket (); |
| 9306 | #ifdef F77_DUMMY_MAIN |
| 9307 | # ifdef __cplusplus |
| 9308 | extern "C" |
| 9309 | # endif |
| 9310 | int F77_DUMMY_MAIN() { return 1; } |
| 9311 | #endif |
| 9312 | int |
| 9313 | main () |
| 9314 | { |
| 9315 | socket (); |
| 9316 | ; |
| 9317 | return 0; |
| 9318 | } |
| 9319 | _ACEOF |
| 9320 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9322 | (eval $ac_link) 2>&5 |
| 9323 | ac_status=$? |
| 9324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9325 | (exit $ac_status); } && |
| 9326 | { ac_try='test -s conftest$ac_exeext' |
| 9327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9328 | (eval $ac_try) 2>&5 |
| 9329 | ac_status=$? |
| 9330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9331 | (exit $ac_status); }; }; then |
| 9332 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9333 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9334 | echo "$as_me: failed program was:" >&5 |
| 9335 | cat conftest.$ac_ext >&5 |
| 9336 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9337 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9338 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9339 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9340 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9341 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9342 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9343 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9344 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9345 | fi |
| 9346 | # BeOS |
| 9347 | ;; |
| 9348 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9350 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9351 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9352 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9353 | # Check whether --with-libs or --without-libs was given. |
| 9354 | if test "${with_libs+set}" = set; then |
| 9355 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9356 | |
| 9357 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9358 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9359 | LIBS="$withval $LIBS" |
| 9360 | |
| 9361 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9362 | echo "$as_me:$LINENO: result: no" >&5 |
| 9363 | echo "${ECHO_T}no" >&6 |
| 9364 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9365 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9366 | # Determine if signalmodule should be used. |
| 9367 | |
| 9368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9369 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9370 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9371 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9372 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9373 | if test "${with_signal_module+set}" = set; then |
| 9374 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9376 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9377 | |
| 9378 | if test -z "$with_signal_module" |
| 9379 | then with_signal_module="yes" |
| 9380 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9382 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9383 | |
| 9384 | if test "${with_signal_module}" = "yes"; then |
| 9385 | USE_SIGNAL_MODULE="" |
| 9386 | SIGNAL_OBJS="" |
| 9387 | else |
| 9388 | USE_SIGNAL_MODULE="#" |
| 9389 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9390 | fi |
| 9391 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9392 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9393 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9394 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9396 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9397 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9398 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9399 | |
| 9400 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9401 | if test "${with_dec_threads+set}" = set; then |
| 9402 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9403 | |
| 9404 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9405 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9406 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9407 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9408 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9409 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9411 | echo "$as_me:$LINENO: result: no" >&5 |
| 9412 | echo "${ECHO_T}no" >&6 |
| 9413 | fi; |
| 9414 | |
| 9415 | # Templates for things AC_DEFINEd more than once. |
| 9416 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9417 | |
| 9418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9419 | |
| 9420 | |
| 9421 | |
| 9422 | |
| 9423 | |
| 9424 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9425 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9426 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9427 | # Check whether --with-threads or --without-threads was given. |
| 9428 | if test "${with_threads+set}" = set; then |
| 9429 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9431 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9432 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9433 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9434 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9435 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9436 | if test "${with_thread+set}" = set; then |
| 9437 | withval="$with_thread" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9438 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | with_threads=$with_thread |
| 9440 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9441 | |
| 9442 | if test -z "$with_threads" |
| 9443 | then with_threads="yes" |
| 9444 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9445 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 9446 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9447 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9448 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9449 | if test "$with_threads" = "no" |
| 9450 | then |
| 9451 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9452 | elif test "$ac_cv_pthread_is_default" = yes |
| 9453 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9454 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9455 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9456 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9457 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9458 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9459 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9460 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9461 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9462 | |
| 9463 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9464 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9465 | elif test "$ac_cv_kpthread" = "yes" |
| 9466 | then |
| 9467 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9469 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9470 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9471 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9472 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9473 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9474 | else |
| 9475 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 9476 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 9477 | fi |
| 9478 | if test ! -z "$withval" -a -d "$withval" |
| 9479 | then LDFLAGS="$LDFLAGS -L$withval" |
| 9480 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9481 | |
| 9482 | # According to the POSIX spec, a pthreads implementation must |
| 9483 | # 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] | 9484 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 9485 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 9486 | cat >conftest.$ac_ext <<_ACEOF |
| 9487 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9488 | #include "confdefs.h" |
| 9489 | #include <unistd.h> |
| 9490 | #ifdef _POSIX_THREADS |
| 9491 | yes |
| 9492 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9493 | |
| 9494 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9496 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9497 | unistd_defines_pthreads=yes |
| 9498 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9499 | unistd_defines_pthreads=no |
| 9500 | fi |
| 9501 | rm -f conftest* |
| 9502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9503 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 9504 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9505 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9506 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9507 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9508 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9510 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9511 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9512 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9513 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9515 | fi |
| 9516 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9517 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9519 | # Is the header compilable? |
| 9520 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 9521 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 9522 | cat >conftest.$ac_ext <<_ACEOF |
| 9523 | #line $LINENO "configure" |
| 9524 | #include "confdefs.h" |
| 9525 | $ac_includes_default |
| 9526 | #include <cthreads.h> |
| 9527 | _ACEOF |
| 9528 | rm -f conftest.$ac_objext |
| 9529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9530 | (eval $ac_compile) 2>&5 |
| 9531 | ac_status=$? |
| 9532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9533 | (exit $ac_status); } && |
| 9534 | { ac_try='test -s conftest.$ac_objext' |
| 9535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9536 | (eval $ac_try) 2>&5 |
| 9537 | ac_status=$? |
| 9538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9539 | (exit $ac_status); }; }; then |
| 9540 | ac_header_compiler=yes |
| 9541 | else |
| 9542 | echo "$as_me: failed program was:" >&5 |
| 9543 | cat conftest.$ac_ext >&5 |
| 9544 | ac_header_compiler=no |
| 9545 | fi |
| 9546 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9547 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9548 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9549 | |
| 9550 | # Is the header present? |
| 9551 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 9552 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 9553 | cat >conftest.$ac_ext <<_ACEOF |
| 9554 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9555 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9556 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9557 | _ACEOF |
| 9558 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9559 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9560 | ac_status=$? |
| 9561 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9562 | rm -f conftest.er1 |
| 9563 | cat conftest.err >&5 |
| 9564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9565 | (exit $ac_status); } >/dev/null; then |
| 9566 | if test -s conftest.err; then |
| 9567 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9568 | else |
| 9569 | ac_cpp_err= |
| 9570 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9572 | ac_cpp_err=yes |
| 9573 | fi |
| 9574 | if test -z "$ac_cpp_err"; then |
| 9575 | ac_header_preproc=yes |
| 9576 | else |
| 9577 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9578 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9579 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9580 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9581 | rm -f conftest.err conftest.$ac_ext |
| 9582 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9583 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9584 | |
| 9585 | # So? What about this header? |
| 9586 | case $ac_header_compiler:$ac_header_preproc in |
| 9587 | yes:no ) |
| 9588 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9589 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9590 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9591 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9592 | no:yes ) |
| 9593 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 9594 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 9595 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 9596 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9597 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9598 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9599 | esac |
| 9600 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9601 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9602 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9604 | else |
| 9605 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9606 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9608 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 9609 | |
| 9610 | fi |
| 9611 | if test $ac_cv_header_cthreads_h = yes; then |
| 9612 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9613 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9614 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9616 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9617 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9618 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9620 | |
| 9621 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9622 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9623 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9624 | |
| 9625 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9626 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9627 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9629 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9630 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9631 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9632 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9634 | fi |
| 9635 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9636 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9637 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9638 | # Is the header compilable? |
| 9639 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 9640 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 9641 | cat >conftest.$ac_ext <<_ACEOF |
| 9642 | #line $LINENO "configure" |
| 9643 | #include "confdefs.h" |
| 9644 | $ac_includes_default |
| 9645 | #include <mach/cthreads.h> |
| 9646 | _ACEOF |
| 9647 | rm -f conftest.$ac_objext |
| 9648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9649 | (eval $ac_compile) 2>&5 |
| 9650 | ac_status=$? |
| 9651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9652 | (exit $ac_status); } && |
| 9653 | { ac_try='test -s conftest.$ac_objext' |
| 9654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9655 | (eval $ac_try) 2>&5 |
| 9656 | ac_status=$? |
| 9657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9658 | (exit $ac_status); }; }; then |
| 9659 | ac_header_compiler=yes |
| 9660 | else |
| 9661 | echo "$as_me: failed program was:" >&5 |
| 9662 | cat conftest.$ac_ext >&5 |
| 9663 | ac_header_compiler=no |
| 9664 | fi |
| 9665 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9666 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9667 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9668 | |
| 9669 | # Is the header present? |
| 9670 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 9671 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 9672 | cat >conftest.$ac_ext <<_ACEOF |
| 9673 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9674 | #include "confdefs.h" |
| 9675 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9676 | _ACEOF |
| 9677 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9678 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9679 | ac_status=$? |
| 9680 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9681 | rm -f conftest.er1 |
| 9682 | cat conftest.err >&5 |
| 9683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9684 | (exit $ac_status); } >/dev/null; then |
| 9685 | if test -s conftest.err; then |
| 9686 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9687 | else |
| 9688 | ac_cpp_err= |
| 9689 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9690 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9691 | ac_cpp_err=yes |
| 9692 | fi |
| 9693 | if test -z "$ac_cpp_err"; then |
| 9694 | ac_header_preproc=yes |
| 9695 | else |
| 9696 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9697 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9698 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9699 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9700 | rm -f conftest.err conftest.$ac_ext |
| 9701 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9702 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9703 | |
| 9704 | # So? What about this header? |
| 9705 | case $ac_header_compiler:$ac_header_preproc in |
| 9706 | yes:no ) |
| 9707 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9708 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9709 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9710 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9711 | no:yes ) |
| 9712 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 9713 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 9714 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 9715 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9716 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9717 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9718 | esac |
| 9719 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9720 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9721 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9723 | else |
| 9724 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9725 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9726 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9727 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 9728 | |
| 9729 | fi |
| 9730 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 9731 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9732 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9735 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9736 | #define 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 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9739 | |
| 9740 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9741 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9742 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9743 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9744 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9745 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9747 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 9748 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 9749 | |
| 9750 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9751 | if test "${with_pth+set}" = set; then |
| 9752 | withval="$with_pth" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9754 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9755 | echo "${ECHO_T}$withval" >&6 |
| 9756 | cat >>confdefs.h <<\_ACEOF |
| 9757 | #define WITH_THREAD 1 |
| 9758 | _ACEOF |
| 9759 | |
| 9760 | |
| 9761 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9762 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9763 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9764 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9765 | LIBS="-lpth $LIBS" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9766 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | |
| 9769 | echo "$as_me:$LINENO: result: no" >&5 |
| 9770 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9771 | |
| 9772 | # Just looking for pthread_create in libpthread is not enough: |
| 9773 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 9774 | # So we really have to include pthread.h, and then link. |
| 9775 | _libs=$LIBS |
| 9776 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9777 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 9778 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 9779 | cat >conftest.$ac_ext <<_ACEOF |
| 9780 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9781 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9782 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9783 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9784 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9785 | #ifdef F77_DUMMY_MAIN |
| 9786 | # ifdef __cplusplus |
| 9787 | extern "C" |
| 9788 | # endif |
| 9789 | int F77_DUMMY_MAIN() { return 1; } |
| 9790 | #endif |
| 9791 | int |
| 9792 | main () |
| 9793 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9794 | |
| 9795 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9796 | ; |
| 9797 | return 0; |
| 9798 | } |
| 9799 | _ACEOF |
| 9800 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9802 | (eval $ac_link) 2>&5 |
| 9803 | ac_status=$? |
| 9804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9805 | (exit $ac_status); } && |
| 9806 | { ac_try='test -s conftest$ac_exeext' |
| 9807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9808 | (eval $ac_try) 2>&5 |
| 9809 | ac_status=$? |
| 9810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9811 | (exit $ac_status); }; }; then |
| 9812 | |
| 9813 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9814 | echo "${ECHO_T}yes" >&6 |
| 9815 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9816 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9817 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9818 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9819 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9820 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9821 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9822 | echo "$as_me: failed program was:" >&5 |
| 9823 | cat conftest.$ac_ext >&5 |
| 9824 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9825 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9826 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 9827 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 9828 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 9829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9830 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9831 | cat >conftest.$ac_ext <<_ACEOF |
| 9832 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9833 | #include "confdefs.h" |
| 9834 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9835 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9836 | #include <assert.h> |
| 9837 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9838 | #ifdef __cplusplus |
| 9839 | extern "C" |
| 9840 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9841 | /* 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] | 9842 | builtin and then its argument prototype would still apply. */ |
| 9843 | char pthread_detach (); |
| 9844 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9846 | #ifdef F77_DUMMY_MAIN |
| 9847 | # ifdef __cplusplus |
| 9848 | extern "C" |
| 9849 | # endif |
| 9850 | int F77_DUMMY_MAIN() { return 1; } |
| 9851 | #endif |
| 9852 | int |
| 9853 | main () |
| 9854 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9855 | /* The GNU C library defines this for functions which it implements |
| 9856 | to always fail with ENOSYS. Some functions are actually named |
| 9857 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 9858 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9859 | choke me |
| 9860 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9862 | #endif |
| 9863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9864 | ; |
| 9865 | return 0; |
| 9866 | } |
| 9867 | _ACEOF |
| 9868 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9870 | (eval $ac_link) 2>&5 |
| 9871 | ac_status=$? |
| 9872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9873 | (exit $ac_status); } && |
| 9874 | { ac_try='test -s conftest$ac_exeext' |
| 9875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9876 | (eval $ac_try) 2>&5 |
| 9877 | ac_status=$? |
| 9878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9879 | (exit $ac_status); }; }; then |
| 9880 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | echo "$as_me: failed program was:" >&5 |
| 9883 | cat conftest.$ac_ext >&5 |
| 9884 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9886 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9887 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9888 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 9889 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 9890 | if test $ac_cv_func_pthread_detach = yes; then |
| 9891 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9892 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9893 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9894 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9895 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9896 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9897 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9898 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9899 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 9900 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 9901 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 9902 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 9903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9904 | fi |
| 9905 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 9906 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 9907 | else |
| 9908 | # Is the header compilable? |
| 9909 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 9910 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 9911 | cat >conftest.$ac_ext <<_ACEOF |
| 9912 | #line $LINENO "configure" |
| 9913 | #include "confdefs.h" |
| 9914 | $ac_includes_default |
| 9915 | #include <atheos/threads.h> |
| 9916 | _ACEOF |
| 9917 | rm -f conftest.$ac_objext |
| 9918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9919 | (eval $ac_compile) 2>&5 |
| 9920 | ac_status=$? |
| 9921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9922 | (exit $ac_status); } && |
| 9923 | { ac_try='test -s conftest.$ac_objext' |
| 9924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9925 | (eval $ac_try) 2>&5 |
| 9926 | ac_status=$? |
| 9927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9928 | (exit $ac_status); }; }; then |
| 9929 | ac_header_compiler=yes |
| 9930 | else |
| 9931 | echo "$as_me: failed program was:" >&5 |
| 9932 | cat conftest.$ac_ext >&5 |
| 9933 | ac_header_compiler=no |
| 9934 | fi |
| 9935 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9936 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9937 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9938 | |
| 9939 | # Is the header present? |
| 9940 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 9941 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 9942 | cat >conftest.$ac_ext <<_ACEOF |
| 9943 | #line $LINENO "configure" |
| 9944 | #include "confdefs.h" |
| 9945 | #include <atheos/threads.h> |
| 9946 | _ACEOF |
| 9947 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9948 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9949 | ac_status=$? |
| 9950 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9951 | rm -f conftest.er1 |
| 9952 | cat conftest.err >&5 |
| 9953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9954 | (exit $ac_status); } >/dev/null; then |
| 9955 | if test -s conftest.err; then |
| 9956 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9957 | else |
| 9958 | ac_cpp_err= |
| 9959 | fi |
| 9960 | else |
| 9961 | ac_cpp_err=yes |
| 9962 | fi |
| 9963 | if test -z "$ac_cpp_err"; then |
| 9964 | ac_header_preproc=yes |
| 9965 | else |
| 9966 | echo "$as_me: failed program was:" >&5 |
| 9967 | cat conftest.$ac_ext >&5 |
| 9968 | ac_header_preproc=no |
| 9969 | fi |
| 9970 | rm -f conftest.err conftest.$ac_ext |
| 9971 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9972 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9973 | |
| 9974 | # So? What about this header? |
| 9975 | case $ac_header_compiler:$ac_header_preproc in |
| 9976 | yes:no ) |
| 9977 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9978 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9979 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 9980 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 9981 | no:yes ) |
| 9982 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 9983 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 9984 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 9985 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 9986 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 9987 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 9988 | esac |
| 9989 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 9990 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 9991 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 9992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9993 | else |
| 9994 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 9995 | fi |
| 9996 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 9997 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 9998 | |
| 9999 | fi |
| 10000 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10001 | cat >>confdefs.h <<\_ACEOF |
| 10002 | #define WITH_THREAD 1 |
| 10003 | _ACEOF |
| 10004 | |
| 10005 | |
| 10006 | cat >>confdefs.h <<\_ACEOF |
| 10007 | #define ATHEOS_THREADS 1 |
| 10008 | _ACEOF |
| 10009 | |
| 10010 | THREADOBJ="Python/thread.o" |
| 10011 | else |
| 10012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10013 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10014 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10015 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10016 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10018 | fi |
| 10019 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10020 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10022 | # Is the header compilable? |
| 10023 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10024 | echo $ECHO_N "checking kernel/OS.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 <kernel/OS.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 kernel/OS.h presence" >&5 |
| 10055 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10056 | cat >conftest.$ac_ext <<_ACEOF |
| 10057 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10058 | #include "confdefs.h" |
| 10059 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10081 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10082 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10083 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10088 | # So? What about this header? |
| 10089 | case $ac_header_compiler:$ac_header_preproc in |
| 10090 | yes:no ) |
| 10091 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10092 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10093 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10094 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10095 | no:yes ) |
| 10096 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10097 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10098 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10099 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10100 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10101 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10102 | esac |
| 10103 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10104 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10105 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10107 | else |
| 10108 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10109 | fi |
| 10110 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10111 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10112 | |
| 10113 | fi |
| 10114 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10115 | cat >>confdefs.h <<\_ACEOF |
| 10116 | #define WITH_THREAD 1 |
| 10117 | _ACEOF |
| 10118 | |
| 10119 | |
| 10120 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10121 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10122 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10123 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10124 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10125 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10127 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10128 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10129 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10132 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10133 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10134 | cat >conftest.$ac_ext <<_ACEOF |
| 10135 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10136 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10137 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10138 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10139 | #ifdef __cplusplus |
| 10140 | extern "C" |
| 10141 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10142 | /* 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] | 10143 | builtin and then its argument prototype would still apply. */ |
| 10144 | char pthread_create (); |
| 10145 | #ifdef F77_DUMMY_MAIN |
| 10146 | # ifdef __cplusplus |
| 10147 | extern "C" |
| 10148 | # endif |
| 10149 | int F77_DUMMY_MAIN() { return 1; } |
| 10150 | #endif |
| 10151 | int |
| 10152 | main () |
| 10153 | { |
| 10154 | pthread_create (); |
| 10155 | ; |
| 10156 | return 0; |
| 10157 | } |
| 10158 | _ACEOF |
| 10159 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10161 | (eval $ac_link) 2>&5 |
| 10162 | ac_status=$? |
| 10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10164 | (exit $ac_status); } && |
| 10165 | { ac_try='test -s conftest$ac_exeext' |
| 10166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10167 | (eval $ac_try) 2>&5 |
| 10168 | ac_status=$? |
| 10169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10170 | (exit $ac_status); }; }; then |
| 10171 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10172 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10173 | echo "$as_me: failed program was:" >&5 |
| 10174 | cat conftest.$ac_ext >&5 |
| 10175 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10176 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10177 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10178 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10179 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10180 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10181 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10182 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10183 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10184 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10185 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10186 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10187 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10188 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10189 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10190 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10192 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10193 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10194 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10197 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10198 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10199 | cat >conftest.$ac_ext <<_ACEOF |
| 10200 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10201 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10202 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10203 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10204 | #ifdef __cplusplus |
| 10205 | extern "C" |
| 10206 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10207 | /* 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] | 10208 | builtin and then its argument prototype would still apply. */ |
| 10209 | char pthread_create (); |
| 10210 | #ifdef F77_DUMMY_MAIN |
| 10211 | # ifdef __cplusplus |
| 10212 | extern "C" |
| 10213 | # endif |
| 10214 | int F77_DUMMY_MAIN() { return 1; } |
| 10215 | #endif |
| 10216 | int |
| 10217 | main () |
| 10218 | { |
| 10219 | pthread_create (); |
| 10220 | ; |
| 10221 | return 0; |
| 10222 | } |
| 10223 | _ACEOF |
| 10224 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10226 | (eval $ac_link) 2>&5 |
| 10227 | ac_status=$? |
| 10228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10229 | (exit $ac_status); } && |
| 10230 | { ac_try='test -s conftest$ac_exeext' |
| 10231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10232 | (eval $ac_try) 2>&5 |
| 10233 | ac_status=$? |
| 10234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10235 | (exit $ac_status); }; }; then |
| 10236 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10237 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10238 | echo "$as_me: failed program was:" >&5 |
| 10239 | cat conftest.$ac_ext >&5 |
| 10240 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10241 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10242 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10243 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10244 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10245 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10246 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10247 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10248 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10249 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10250 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10251 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10252 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10253 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10254 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10255 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10256 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10257 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10258 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10259 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10262 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10263 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | cat >conftest.$ac_ext <<_ACEOF |
| 10265 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10266 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10267 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10268 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10269 | #ifdef __cplusplus |
| 10270 | extern "C" |
| 10271 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10272 | /* 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] | 10273 | builtin and then its argument prototype would still apply. */ |
| 10274 | char __d6_pthread_create (); |
| 10275 | #ifdef F77_DUMMY_MAIN |
| 10276 | # ifdef __cplusplus |
| 10277 | extern "C" |
| 10278 | # endif |
| 10279 | int F77_DUMMY_MAIN() { return 1; } |
| 10280 | #endif |
| 10281 | int |
| 10282 | main () |
| 10283 | { |
| 10284 | __d6_pthread_create (); |
| 10285 | ; |
| 10286 | return 0; |
| 10287 | } |
| 10288 | _ACEOF |
| 10289 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10291 | (eval $ac_link) 2>&5 |
| 10292 | ac_status=$? |
| 10293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10294 | (exit $ac_status); } && |
| 10295 | { ac_try='test -s conftest$ac_exeext' |
| 10296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10297 | (eval $ac_try) 2>&5 |
| 10298 | ac_status=$? |
| 10299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10300 | (exit $ac_status); }; }; then |
| 10301 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10303 | echo "$as_me: failed program was:" >&5 |
| 10304 | cat conftest.$ac_ext >&5 |
| 10305 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10306 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10308 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10310 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10311 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10312 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10313 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10314 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10316 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10317 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10318 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10319 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10320 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10321 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10323 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10324 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10326 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10328 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10329 | cat >conftest.$ac_ext <<_ACEOF |
| 10330 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10331 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10332 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10333 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10334 | #ifdef __cplusplus |
| 10335 | extern "C" |
| 10336 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10337 | /* 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] | 10338 | builtin and then its argument prototype would still apply. */ |
| 10339 | char __pthread_create_system (); |
| 10340 | #ifdef F77_DUMMY_MAIN |
| 10341 | # ifdef __cplusplus |
| 10342 | extern "C" |
| 10343 | # endif |
| 10344 | int F77_DUMMY_MAIN() { return 1; } |
| 10345 | #endif |
| 10346 | int |
| 10347 | main () |
| 10348 | { |
| 10349 | __pthread_create_system (); |
| 10350 | ; |
| 10351 | return 0; |
| 10352 | } |
| 10353 | _ACEOF |
| 10354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10356 | (eval $ac_link) 2>&5 |
| 10357 | ac_status=$? |
| 10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10359 | (exit $ac_status); } && |
| 10360 | { ac_try='test -s conftest$ac_exeext' |
| 10361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10362 | (eval $ac_try) 2>&5 |
| 10363 | ac_status=$? |
| 10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10365 | (exit $ac_status); }; }; then |
| 10366 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10368 | echo "$as_me: failed program was:" >&5 |
| 10369 | cat conftest.$ac_ext >&5 |
| 10370 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10371 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10372 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10373 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10374 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10375 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10376 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10377 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10378 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10379 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10380 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10381 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10382 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10383 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10384 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10385 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10387 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10388 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10389 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10391 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10392 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10393 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | cat >conftest.$ac_ext <<_ACEOF |
| 10395 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10396 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10398 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10399 | #ifdef __cplusplus |
| 10400 | extern "C" |
| 10401 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10402 | /* 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] | 10403 | builtin and then its argument prototype would still apply. */ |
| 10404 | char pthread_create (); |
| 10405 | #ifdef F77_DUMMY_MAIN |
| 10406 | # ifdef __cplusplus |
| 10407 | extern "C" |
| 10408 | # endif |
| 10409 | int F77_DUMMY_MAIN() { return 1; } |
| 10410 | #endif |
| 10411 | int |
| 10412 | main () |
| 10413 | { |
| 10414 | pthread_create (); |
| 10415 | ; |
| 10416 | return 0; |
| 10417 | } |
| 10418 | _ACEOF |
| 10419 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10421 | (eval $ac_link) 2>&5 |
| 10422 | ac_status=$? |
| 10423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10424 | (exit $ac_status); } && |
| 10425 | { ac_try='test -s conftest$ac_exeext' |
| 10426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10427 | (eval $ac_try) 2>&5 |
| 10428 | ac_status=$? |
| 10429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10430 | (exit $ac_status); }; }; then |
| 10431 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10432 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10433 | echo "$as_me: failed program was:" >&5 |
| 10434 | cat conftest.$ac_ext >&5 |
| 10435 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10436 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10437 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10438 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10439 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10440 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10441 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10442 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10443 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10444 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10445 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10446 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10447 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10448 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10449 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10450 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10451 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10452 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10453 | fi |
| 10454 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10455 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10456 | fi |
| 10457 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10458 | fi |
| 10459 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10460 | fi |
| 10461 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10462 | fi |
| 10463 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10464 | fi |
| 10465 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10466 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10467 | fi |
| 10468 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10469 | |
| 10470 | fi |
| 10471 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10472 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10473 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10474 | fi; |
| 10475 | fi |
| 10476 | |
| 10477 | |
| 10478 | fi |
| 10479 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10480 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10481 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10482 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10483 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10484 | |
| 10485 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10486 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10487 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10488 | |
| 10489 | fi |
| 10490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10491 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10492 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 10493 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 10494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10495 | else |
| 10496 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10497 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10499 | cat >conftest.$ac_ext <<_ACEOF |
| 10500 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10501 | #include "confdefs.h" |
| 10502 | #include <pthread.h> |
| 10503 | void *foo(void *parm) { |
| 10504 | return NULL; |
| 10505 | } |
| 10506 | main() { |
| 10507 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10508 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10509 | if (pthread_attr_init(&attr)) exit(-1); |
| 10510 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10511 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10512 | exit(0); |
| 10513 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10514 | _ACEOF |
| 10515 | rm -f conftest$ac_exeext |
| 10516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10517 | (eval $ac_link) 2>&5 |
| 10518 | ac_status=$? |
| 10519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10522 | (eval $ac_try) 2>&5 |
| 10523 | ac_status=$? |
| 10524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10525 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10526 | ac_cv_pthread_system_supported=yes |
| 10527 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10528 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10529 | echo "$as_me: failed program was:" >&5 |
| 10530 | cat conftest.$ac_ext >&5 |
| 10531 | ( exit $ac_status ) |
| 10532 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10533 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10534 | 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] | 10535 | fi |
| 10536 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10537 | fi |
| 10538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10539 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 10540 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10541 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10542 | |
| 10543 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10544 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10545 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10546 | |
| 10547 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10548 | |
| 10549 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10550 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10551 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10552 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10553 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10554 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10557 | cat >conftest.$ac_ext <<_ACEOF |
| 10558 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10559 | #include "confdefs.h" |
| 10560 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10561 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10562 | #include <assert.h> |
| 10563 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10564 | #ifdef __cplusplus |
| 10565 | extern "C" |
| 10566 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10567 | /* 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] | 10568 | builtin and then its argument prototype would still apply. */ |
| 10569 | char $ac_func (); |
| 10570 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10572 | #ifdef F77_DUMMY_MAIN |
| 10573 | # ifdef __cplusplus |
| 10574 | extern "C" |
| 10575 | # endif |
| 10576 | int F77_DUMMY_MAIN() { return 1; } |
| 10577 | #endif |
| 10578 | int |
| 10579 | main () |
| 10580 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10581 | /* The GNU C library defines this for functions which it implements |
| 10582 | to always fail with ENOSYS. Some functions are actually named |
| 10583 | something starting with __ and the normal name is an alias. */ |
| 10584 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10585 | choke me |
| 10586 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10587 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10588 | #endif |
| 10589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10590 | ; |
| 10591 | return 0; |
| 10592 | } |
| 10593 | _ACEOF |
| 10594 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10596 | (eval $ac_link) 2>&5 |
| 10597 | ac_status=$? |
| 10598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10599 | (exit $ac_status); } && |
| 10600 | { ac_try='test -s conftest$ac_exeext' |
| 10601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10602 | (eval $ac_try) 2>&5 |
| 10603 | ac_status=$? |
| 10604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10605 | (exit $ac_status); }; }; then |
| 10606 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10607 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10608 | echo "$as_me: failed program was:" >&5 |
| 10609 | cat conftest.$ac_ext >&5 |
| 10610 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10611 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10612 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10613 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10614 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10615 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10616 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10617 | cat >>confdefs.h <<_ACEOF |
| 10618 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10619 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10620 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10621 | fi |
| 10622 | done |
| 10623 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10624 | fi |
| 10625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10626 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 10627 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 10628 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 10629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10630 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10631 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10632 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10633 | cat >conftest.$ac_ext <<_ACEOF |
| 10634 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10635 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10636 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10637 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10638 | #ifdef __cplusplus |
| 10639 | extern "C" |
| 10640 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10641 | /* 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] | 10642 | builtin and then its argument prototype would still apply. */ |
| 10643 | char usconfig (); |
| 10644 | #ifdef F77_DUMMY_MAIN |
| 10645 | # ifdef __cplusplus |
| 10646 | extern "C" |
| 10647 | # endif |
| 10648 | int F77_DUMMY_MAIN() { return 1; } |
| 10649 | #endif |
| 10650 | int |
| 10651 | main () |
| 10652 | { |
| 10653 | usconfig (); |
| 10654 | ; |
| 10655 | return 0; |
| 10656 | } |
| 10657 | _ACEOF |
| 10658 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10660 | (eval $ac_link) 2>&5 |
| 10661 | ac_status=$? |
| 10662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10663 | (exit $ac_status); } && |
| 10664 | { ac_try='test -s conftest$ac_exeext' |
| 10665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10666 | (eval $ac_try) 2>&5 |
| 10667 | ac_status=$? |
| 10668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10669 | (exit $ac_status); }; }; then |
| 10670 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10671 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10672 | echo "$as_me: failed program was:" >&5 |
| 10673 | cat conftest.$ac_ext >&5 |
| 10674 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10675 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10676 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10677 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10678 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10679 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 10680 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 10681 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 10682 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10683 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10684 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10685 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10686 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10687 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10688 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10689 | fi |
| 10690 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10692 | if test $posix_threads != "yes"; then |
| 10693 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 10694 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 10695 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 10696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10698 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10699 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10700 | cat >conftest.$ac_ext <<_ACEOF |
| 10701 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10702 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10703 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10704 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10705 | #ifdef __cplusplus |
| 10706 | extern "C" |
| 10707 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10708 | /* 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] | 10709 | builtin and then its argument prototype would still apply. */ |
| 10710 | char thr_create (); |
| 10711 | #ifdef F77_DUMMY_MAIN |
| 10712 | # ifdef __cplusplus |
| 10713 | extern "C" |
| 10714 | # endif |
| 10715 | int F77_DUMMY_MAIN() { return 1; } |
| 10716 | #endif |
| 10717 | int |
| 10718 | main () |
| 10719 | { |
| 10720 | thr_create (); |
| 10721 | ; |
| 10722 | return 0; |
| 10723 | } |
| 10724 | _ACEOF |
| 10725 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10727 | (eval $ac_link) 2>&5 |
| 10728 | ac_status=$? |
| 10729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10730 | (exit $ac_status); } && |
| 10731 | { ac_try='test -s conftest$ac_exeext' |
| 10732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10733 | (eval $ac_try) 2>&5 |
| 10734 | ac_status=$? |
| 10735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10736 | (exit $ac_status); }; }; then |
| 10737 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10738 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10739 | echo "$as_me: failed program was:" >&5 |
| 10740 | cat conftest.$ac_ext >&5 |
| 10741 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10742 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10743 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10744 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10746 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 10747 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 10748 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 10749 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10750 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10751 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10752 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10753 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10754 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10755 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10756 | fi |
| 10757 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10758 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10759 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10760 | if test "$USE_THREAD_MODULE" != "#" |
| 10761 | then |
| 10762 | # If the above checks didn't disable threads, (at least) OSF1 |
| 10763 | # needs this '-threads' argument during linking. |
| 10764 | case $ac_sys_system in |
| 10765 | OSF1) LDLAST=-threads;; |
| 10766 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 10767 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10768 | fi |
| 10769 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10770 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10771 | |
| 10772 | |
| 10773 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 10774 | 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] | 10775 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 10776 | if test "${enable_ipv6+set}" = set; then |
| 10777 | enableval="$enable_ipv6" |
| 10778 | case "$enableval" in |
| 10779 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10780 | echo "$as_me:$LINENO: result: no" >&5 |
| 10781 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10782 | ipv6=no |
| 10783 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10784 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 10785 | echo "${ECHO_T}yes" >&6 |
| 10786 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10787 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10788 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10789 | |
| 10790 | ipv6=yes |
| 10791 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10792 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10793 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10794 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10795 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10796 | echo "$as_me:$LINENO: result: no" >&5 |
| 10797 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10798 | ipv6=no |
| 10799 | |
| 10800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10801 | cat >conftest.$ac_ext <<_ACEOF |
| 10802 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10803 | #include "confdefs.h" |
| 10804 | /* AF_INET6 available check */ |
| 10805 | #include <sys/types.h> |
| 10806 | #include <sys/socket.h> |
| 10807 | main() |
| 10808 | { |
| 10809 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 10810 | exit(1); |
| 10811 | else |
| 10812 | exit(0); |
| 10813 | } |
| 10814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10815 | _ACEOF |
| 10816 | rm -f conftest$ac_exeext |
| 10817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10818 | (eval $ac_link) 2>&5 |
| 10819 | ac_status=$? |
| 10820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10821 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10823 | (eval $ac_try) 2>&5 |
| 10824 | ac_status=$? |
| 10825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10826 | (exit $ac_status); }; }; then |
| 10827 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10828 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10829 | ipv6=yes |
| 10830 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10831 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10832 | echo "$as_me: failed program was:" >&5 |
| 10833 | cat conftest.$ac_ext >&5 |
| 10834 | ( exit $ac_status ) |
| 10835 | echo "$as_me:$LINENO: result: no" >&5 |
| 10836 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10837 | ipv6=no |
| 10838 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10839 | 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] | 10840 | fi |
| 10841 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10842 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10843 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 10844 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 10845 | cat >conftest.$ac_ext <<_ACEOF |
| 10846 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10847 | #include "confdefs.h" |
| 10848 | #include <sys/types.h> |
| 10849 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10850 | #ifdef F77_DUMMY_MAIN |
| 10851 | # ifdef __cplusplus |
| 10852 | extern "C" |
| 10853 | # endif |
| 10854 | int F77_DUMMY_MAIN() { return 1; } |
| 10855 | #endif |
| 10856 | int |
| 10857 | main () |
| 10858 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10859 | struct sockaddr_in6 x; |
| 10860 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10861 | ; |
| 10862 | return 0; |
| 10863 | } |
| 10864 | _ACEOF |
| 10865 | rm -f conftest.$ac_objext |
| 10866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10867 | (eval $ac_compile) 2>&5 |
| 10868 | ac_status=$? |
| 10869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10870 | (exit $ac_status); } && |
| 10871 | { ac_try='test -s conftest.$ac_objext' |
| 10872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10873 | (eval $ac_try) 2>&5 |
| 10874 | ac_status=$? |
| 10875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10876 | (exit $ac_status); }; }; then |
| 10877 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10878 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10879 | ipv6=yes |
| 10880 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10881 | echo "$as_me: failed program was:" >&5 |
| 10882 | cat conftest.$ac_ext >&5 |
| 10883 | echo "$as_me:$LINENO: result: no" >&5 |
| 10884 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10885 | ipv6=no |
| 10886 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10887 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10888 | fi |
| 10889 | |
| 10890 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10892 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10893 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10894 | |
| 10895 | fi |
| 10896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10897 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10898 | |
| 10899 | ipv6type=unknown |
| 10900 | ipv6lib=none |
| 10901 | ipv6trylibc=no |
| 10902 | |
| 10903 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10904 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 10905 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10906 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 10907 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10908 | case $i in |
| 10909 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10910 | cat >conftest.$ac_ext <<_ACEOF |
| 10911 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10912 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10913 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10914 | #include <netinet/in.h> |
| 10915 | #ifdef IPV6_INRIA_VERSION |
| 10916 | yes |
| 10917 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10918 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10919 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10920 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10921 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10922 | fi |
| 10923 | rm -f conftest* |
| 10924 | |
| 10925 | ;; |
| 10926 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10927 | cat >conftest.$ac_ext <<_ACEOF |
| 10928 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10929 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10930 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10931 | #include <netinet/in.h> |
| 10932 | #ifdef __KAME__ |
| 10933 | yes |
| 10934 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10935 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10936 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10937 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10938 | ipv6type=$i; |
| 10939 | ipv6lib=inet6 |
| 10940 | ipv6libdir=/usr/local/v6/lib |
| 10941 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10942 | fi |
| 10943 | rm -f conftest* |
| 10944 | |
| 10945 | ;; |
| 10946 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10947 | cat >conftest.$ac_ext <<_ACEOF |
| 10948 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10949 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10950 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10951 | #include <features.h> |
| 10952 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 10953 | yes |
| 10954 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10955 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10956 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10957 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10958 | ipv6type=$i; |
| 10959 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10960 | fi |
| 10961 | rm -f conftest* |
| 10962 | |
| 10963 | ;; |
| 10964 | linux-inet6) |
| 10965 | if test -d /usr/inet6; then |
| 10966 | ipv6type=$i |
| 10967 | ipv6lib=inet6 |
| 10968 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10969 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10970 | fi |
| 10971 | ;; |
| 10972 | solaris) |
| 10973 | if test -f /etc/netconfig; then |
| 10974 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 10975 | ipv6type=$i |
| 10976 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10977 | fi |
| 10978 | fi |
| 10979 | ;; |
| 10980 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10981 | cat >conftest.$ac_ext <<_ACEOF |
| 10982 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10983 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10984 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10985 | #include <sys/param.h> |
| 10986 | #ifdef _TOSHIBA_INET6 |
| 10987 | yes |
| 10988 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10991 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10992 | ipv6type=$i; |
| 10993 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10994 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10995 | fi |
| 10996 | rm -f conftest* |
| 10997 | |
| 10998 | ;; |
| 10999 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11000 | cat >conftest.$ac_ext <<_ACEOF |
| 11001 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11002 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11003 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11004 | #include </usr/local/v6/include/sys/v6config.h> |
| 11005 | #ifdef __V6D__ |
| 11006 | yes |
| 11007 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11008 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11009 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11010 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11011 | ipv6type=$i; |
| 11012 | ipv6lib=v6; |
| 11013 | ipv6libdir=/usr/local/v6/lib; |
| 11014 | OPT="-I/usr/local/v6/include $OPT" |
| 11015 | fi |
| 11016 | rm -f conftest* |
| 11017 | |
| 11018 | ;; |
| 11019 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11020 | cat >conftest.$ac_ext <<_ACEOF |
| 11021 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11022 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11023 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11024 | #include <sys/param.h> |
| 11025 | #ifdef _ZETA_MINAMI_INET6 |
| 11026 | yes |
| 11027 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11028 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11029 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11030 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11031 | ipv6type=$i; |
| 11032 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11033 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11034 | fi |
| 11035 | rm -f conftest* |
| 11036 | |
| 11037 | ;; |
| 11038 | esac |
| 11039 | if test "$ipv6type" != "unknown"; then |
| 11040 | break |
| 11041 | fi |
| 11042 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11043 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11044 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11045 | fi |
| 11046 | |
| 11047 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11048 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11049 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11050 | echo "using lib$ipv6lib" |
| 11051 | else |
| 11052 | if test $ipv6trylibc = "yes"; then |
| 11053 | echo "using libc" |
| 11054 | else |
| 11055 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11056 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11057 | echo 'ipv6 kit and compile beforehand.' |
| 11058 | exit 1 |
| 11059 | fi |
| 11060 | fi |
| 11061 | fi |
| 11062 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11063 | # Check for GC support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11064 | echo "$as_me:$LINENO: checking for --with-cycle-gc" >&5 |
| 11065 | echo $ECHO_N "checking for --with-cycle-gc... $ECHO_C" >&6 |
| 11066 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11067 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 11068 | if test "${with_cycle_gc+set}" = set; then |
| 11069 | withval="$with_cycle_gc" |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11071 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11072 | |
| 11073 | if test -z "$with_cycle_gc" |
| 11074 | then with_cycle_gc="yes" |
| 11075 | fi |
Neil Schemenauer | cf22946 | 2001-08-29 23:58:47 +0000 | [diff] [blame] | 11076 | if test "$with_cycle_gc" != "no" |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11077 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11078 | |
| 11079 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11080 | #define WITH_CYCLE_GC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11081 | _ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11082 | |
| 11083 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11084 | echo "$as_me:$LINENO: result: $with_cycle_gc" >&5 |
| 11085 | echo "${ECHO_T}$with_cycle_gc" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11086 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11087 | # Check for universal newline support |
| 11088 | echo "$as_me:$LINENO: checking for --with-universal-newline" >&5 |
| 11089 | echo $ECHO_N "checking for --with-universal-newline... $ECHO_C" >&6 |
| 11090 | |
| 11091 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11092 | if test "${with_universal_newlines+set}" = set; then |
| 11093 | withval="$with_universal_newlines" |
| 11094 | |
| 11095 | fi; |
| 11096 | |
| 11097 | if test -z "$with_universal_newlines" |
| 11098 | then with_universal_newlines="yes" |
| 11099 | fi |
| 11100 | if test "$with_universal_newlines" != "no" |
| 11101 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11102 | |
| 11103 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11104 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11105 | _ACEOF |
| 11106 | |
| 11107 | fi |
| 11108 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11109 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11110 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11111 | # Check for --with-doc-strings |
| 11112 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11113 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11114 | |
| 11115 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11116 | if test "${with_doc_strings+set}" = set; then |
| 11117 | withval="$with_doc_strings" |
| 11118 | |
| 11119 | fi; |
| 11120 | |
| 11121 | if test -z "$with_doc_strings" |
| 11122 | then with_doc_strings="yes" |
| 11123 | fi |
| 11124 | if test "$with_doc_strings" != "no" |
| 11125 | then |
| 11126 | |
| 11127 | cat >>confdefs.h <<\_ACEOF |
| 11128 | #define WITH_DOC_STRINGS 1 |
| 11129 | _ACEOF |
| 11130 | |
| 11131 | fi |
| 11132 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11133 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11134 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11135 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11136 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11137 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11138 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11139 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11140 | if test "${with_pymalloc+set}" = set; then |
| 11141 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11143 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11144 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11145 | if test -z "$with_pymalloc" |
| 11146 | then with_pymalloc="yes" |
| 11147 | fi |
| 11148 | if test "$with_pymalloc" != "no" |
| 11149 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11150 | |
| 11151 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11152 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11153 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11154 | |
| 11155 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11156 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11157 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11158 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11159 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11160 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11161 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11162 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11163 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11164 | if test "${with_wctype_functions+set}" = set; then |
| 11165 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11166 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11167 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11168 | then |
| 11169 | |
| 11170 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11171 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11172 | _ACEOF |
| 11173 | |
| 11174 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11175 | echo "${ECHO_T}yes" >&6 |
| 11176 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11177 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11178 | fi |
| 11179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11180 | echo "$as_me:$LINENO: result: no" >&5 |
| 11181 | echo "${ECHO_T}no" >&6 |
| 11182 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11183 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11184 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11185 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11186 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11188 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11189 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11190 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11191 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11192 | if test "${with_sgi_dl+set}" = set; then |
| 11193 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11194 | |
| 11195 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11196 | echo "${ECHO_T}$withval" >&6 |
| 11197 | |
| 11198 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11199 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11200 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11201 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11202 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11203 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11204 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11205 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11206 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11207 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11208 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11209 | fi |
| 11210 | DLINCLDIR=${dldir} |
| 11211 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11212 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11213 | echo "$as_me:$LINENO: result: no" >&5 |
| 11214 | echo "${ECHO_T}no" >&6 |
| 11215 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11217 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11218 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11219 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11220 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11221 | if test "${with_dl_dld+set}" = set; then |
| 11222 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11223 | |
| 11224 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11225 | echo "${ECHO_T}$withval" >&6 |
| 11226 | |
| 11227 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11228 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11229 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11230 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11231 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11232 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11233 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11234 | 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] | 11235 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11236 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&5 |
| 11237 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&2;} |
| 11238 | { (exit DLD_DIRECTORY); exit DLD_DIRECTORY; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11239 | fi |
| 11240 | DLINCLDIR=${dldir} |
| 11241 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11242 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11243 | echo "$as_me:$LINENO: result: no" >&5 |
| 11244 | echo "${ECHO_T}no" >&6 |
| 11245 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11246 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11247 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11248 | # 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] | 11249 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11250 | for ac_func in dlopen |
| 11251 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11252 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11253 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11254 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11255 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 | cat >conftest.$ac_ext <<_ACEOF |
| 11259 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11260 | #include "confdefs.h" |
| 11261 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11262 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11263 | #include <assert.h> |
| 11264 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11265 | #ifdef __cplusplus |
| 11266 | extern "C" |
| 11267 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11268 | /* 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] | 11269 | builtin and then its argument prototype would still apply. */ |
| 11270 | char $ac_func (); |
| 11271 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11273 | #ifdef F77_DUMMY_MAIN |
| 11274 | # ifdef __cplusplus |
| 11275 | extern "C" |
| 11276 | # endif |
| 11277 | int F77_DUMMY_MAIN() { return 1; } |
| 11278 | #endif |
| 11279 | int |
| 11280 | main () |
| 11281 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11282 | /* The GNU C library defines this for functions which it implements |
| 11283 | to always fail with ENOSYS. Some functions are actually named |
| 11284 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11285 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11286 | choke me |
| 11287 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11289 | #endif |
| 11290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11291 | ; |
| 11292 | return 0; |
| 11293 | } |
| 11294 | _ACEOF |
| 11295 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11297 | (eval $ac_link) 2>&5 |
| 11298 | ac_status=$? |
| 11299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11300 | (exit $ac_status); } && |
| 11301 | { ac_try='test -s conftest$ac_exeext' |
| 11302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11303 | (eval $ac_try) 2>&5 |
| 11304 | ac_status=$? |
| 11305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11306 | (exit $ac_status); }; }; then |
| 11307 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11308 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11309 | echo "$as_me: failed program was:" >&5 |
| 11310 | cat conftest.$ac_ext >&5 |
| 11311 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11312 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11313 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11314 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11315 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11316 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11317 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11318 | cat >>confdefs.h <<_ACEOF |
| 11319 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11320 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11321 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11322 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11323 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11324 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11325 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11326 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11327 | # loading of modules. |
| 11328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11329 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11330 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11331 | if test -z "$DYNLOADFILE" |
| 11332 | then |
| 11333 | case $ac_sys_system/$ac_sys_release in |
| 11334 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11335 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11336 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11337 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11338 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11339 | *) |
| 11340 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11341 | # out any dynamic loading |
| 11342 | if test "$ac_cv_func_dlopen" = yes |
| 11343 | then DYNLOADFILE="dynload_shlib.o" |
| 11344 | else DYNLOADFILE="dynload_stub.o" |
| 11345 | fi |
| 11346 | ;; |
| 11347 | esac |
| 11348 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11349 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11350 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11351 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11352 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11353 | |
| 11354 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11355 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11356 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11357 | |
| 11358 | fi |
| 11359 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11360 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11361 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11363 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11364 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11365 | if test -z "$MACHDEP_OBJS" |
| 11366 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11367 | MACHDEP_OBJS=$extra_machdep_objs |
| 11368 | else |
| 11369 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11370 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11371 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11372 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11373 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11374 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11375 | |
| 11376 | |
| 11377 | |
| 11378 | |
| 11379 | |
| 11380 | |
| 11381 | |
| 11382 | |
| 11383 | |
| 11384 | |
| 11385 | |
| 11386 | |
| 11387 | |
| 11388 | |
| 11389 | |
| 11390 | |
| 11391 | |
| 11392 | |
| 11393 | |
| 11394 | |
| 11395 | |
| 11396 | |
| 11397 | |
| 11398 | |
| 11399 | |
| 11400 | |
| 11401 | |
| 11402 | |
| 11403 | |
| 11404 | |
| 11405 | |
| 11406 | |
| 11407 | |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | |
| 11412 | |
| 11413 | |
| 11414 | |
| 11415 | |
| 11416 | |
| 11417 | |
| 11418 | |
| 11419 | |
| 11420 | |
| 11421 | |
| 11422 | |
| 11423 | |
| 11424 | |
| 11425 | |
| 11426 | |
| 11427 | |
| 11428 | |
| 11429 | |
| 11430 | |
| 11431 | |
| 11432 | |
| 11433 | |
| 11434 | |
| 11435 | |
| 11436 | |
| 11437 | |
| 11438 | |
| 11439 | |
| 11440 | |
| 11441 | |
| 11442 | |
| 11443 | |
| 11444 | |
| 11445 | |
| 11446 | |
| 11447 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11448 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11449 | |
Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 11450 | 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] | 11451 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 606edc1 | 2002-06-13 21:09:11 +0000 | [diff] [blame] | 11452 | gai_strerror getgroups getlogin getpeername getpgid getpid getpwent getwd \ |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11453 | hstrerror inet_pton kill killpg link lstat mkfifo mknod mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 11454 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11455 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11456 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11457 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Michael W. Hudson | 065c1a2 | 2002-06-06 13:03:44 +0000 | [diff] [blame] | 11458 | sigaction siginterrupt sigrelse strftime strptime symlink \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11459 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Guido van Rossum | c524d95 | 2001-10-19 01:31:59 +0000 | [diff] [blame] | 11460 | truncate uname unsetenv waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11461 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11462 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11463 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11464 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11465 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11468 | cat >conftest.$ac_ext <<_ACEOF |
| 11469 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11470 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11471 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11472 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11473 | #include <assert.h> |
| 11474 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | #ifdef __cplusplus |
| 11476 | extern "C" |
| 11477 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11478 | /* 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] | 11479 | builtin and then its argument prototype would still apply. */ |
| 11480 | char $ac_func (); |
| 11481 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11483 | #ifdef F77_DUMMY_MAIN |
| 11484 | # ifdef __cplusplus |
| 11485 | extern "C" |
| 11486 | # endif |
| 11487 | int F77_DUMMY_MAIN() { return 1; } |
| 11488 | #endif |
| 11489 | int |
| 11490 | main () |
| 11491 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11492 | /* The GNU C library defines this for functions which it implements |
| 11493 | to always fail with ENOSYS. Some functions are actually named |
| 11494 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11495 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11496 | choke me |
| 11497 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11498 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11499 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11501 | ; |
| 11502 | return 0; |
| 11503 | } |
| 11504 | _ACEOF |
| 11505 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11507 | (eval $ac_link) 2>&5 |
| 11508 | ac_status=$? |
| 11509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11510 | (exit $ac_status); } && |
| 11511 | { ac_try='test -s conftest$ac_exeext' |
| 11512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11513 | (eval $ac_try) 2>&5 |
| 11514 | ac_status=$? |
| 11515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11516 | (exit $ac_status); }; }; then |
| 11517 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11519 | echo "$as_me: failed program was:" >&5 |
| 11520 | cat conftest.$ac_ext >&5 |
| 11521 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11522 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11523 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11524 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11526 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11527 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11528 | cat >>confdefs.h <<_ACEOF |
| 11529 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11530 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11531 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11532 | fi |
| 11533 | done |
| 11534 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11535 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11536 | # check for openpty and forkpty |
| 11537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11538 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11539 | for ac_func in openpty |
| 11540 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11541 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11542 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11543 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11544 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11546 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11547 | cat >conftest.$ac_ext <<_ACEOF |
| 11548 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11549 | #include "confdefs.h" |
| 11550 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11551 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11552 | #include <assert.h> |
| 11553 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 | #ifdef __cplusplus |
| 11555 | extern "C" |
| 11556 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11557 | /* 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] | 11558 | builtin and then its argument prototype would still apply. */ |
| 11559 | char $ac_func (); |
| 11560 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11562 | #ifdef F77_DUMMY_MAIN |
| 11563 | # ifdef __cplusplus |
| 11564 | extern "C" |
| 11565 | # endif |
| 11566 | int F77_DUMMY_MAIN() { return 1; } |
| 11567 | #endif |
| 11568 | int |
| 11569 | main () |
| 11570 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11571 | /* The GNU C library defines this for functions which it implements |
| 11572 | to always fail with ENOSYS. Some functions are actually named |
| 11573 | something starting with __ and the normal name is an alias. */ |
| 11574 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11575 | choke me |
| 11576 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11577 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11578 | #endif |
| 11579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11580 | ; |
| 11581 | return 0; |
| 11582 | } |
| 11583 | _ACEOF |
| 11584 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11586 | (eval $ac_link) 2>&5 |
| 11587 | ac_status=$? |
| 11588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11589 | (exit $ac_status); } && |
| 11590 | { ac_try='test -s conftest$ac_exeext' |
| 11591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11592 | (eval $ac_try) 2>&5 |
| 11593 | ac_status=$? |
| 11594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11595 | (exit $ac_status); }; }; then |
| 11596 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11598 | echo "$as_me: failed program was:" >&5 |
| 11599 | cat conftest.$ac_ext >&5 |
| 11600 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11601 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11602 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11603 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11604 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11605 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11606 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11607 | cat >>confdefs.h <<_ACEOF |
| 11608 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11609 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11610 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11611 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11612 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 11613 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 11614 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 11615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11616 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11617 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11618 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11619 | cat >conftest.$ac_ext <<_ACEOF |
| 11620 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11621 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11622 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11623 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11624 | #ifdef __cplusplus |
| 11625 | extern "C" |
| 11626 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11627 | /* 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] | 11628 | builtin and then its argument prototype would still apply. */ |
| 11629 | char openpty (); |
| 11630 | #ifdef F77_DUMMY_MAIN |
| 11631 | # ifdef __cplusplus |
| 11632 | extern "C" |
| 11633 | # endif |
| 11634 | int F77_DUMMY_MAIN() { return 1; } |
| 11635 | #endif |
| 11636 | int |
| 11637 | main () |
| 11638 | { |
| 11639 | openpty (); |
| 11640 | ; |
| 11641 | return 0; |
| 11642 | } |
| 11643 | _ACEOF |
| 11644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11646 | (eval $ac_link) 2>&5 |
| 11647 | ac_status=$? |
| 11648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11649 | (exit $ac_status); } && |
| 11650 | { ac_try='test -s conftest$ac_exeext' |
| 11651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11652 | (eval $ac_try) 2>&5 |
| 11653 | ac_status=$? |
| 11654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11655 | (exit $ac_status); }; }; then |
| 11656 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11657 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11658 | echo "$as_me: failed program was:" >&5 |
| 11659 | cat conftest.$ac_ext >&5 |
| 11660 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11661 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11662 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11663 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11664 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11665 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 11666 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 11667 | if test $ac_cv_lib_util_openpty = yes; then |
| 11668 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11669 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11670 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11671 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11672 | fi |
| 11673 | |
| 11674 | fi |
| 11675 | done |
| 11676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11677 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11678 | for ac_func in forkpty |
| 11679 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11680 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11681 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11682 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11683 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11685 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11686 | cat >conftest.$ac_ext <<_ACEOF |
| 11687 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11688 | #include "confdefs.h" |
| 11689 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11690 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11691 | #include <assert.h> |
| 11692 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11693 | #ifdef __cplusplus |
| 11694 | extern "C" |
| 11695 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11696 | /* 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] | 11697 | builtin and then its argument prototype would still apply. */ |
| 11698 | char $ac_func (); |
| 11699 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11701 | #ifdef F77_DUMMY_MAIN |
| 11702 | # ifdef __cplusplus |
| 11703 | extern "C" |
| 11704 | # endif |
| 11705 | int F77_DUMMY_MAIN() { return 1; } |
| 11706 | #endif |
| 11707 | int |
| 11708 | main () |
| 11709 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11710 | /* The GNU C library defines this for functions which it implements |
| 11711 | to always fail with ENOSYS. Some functions are actually named |
| 11712 | something starting with __ and the normal name is an alias. */ |
| 11713 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11714 | choke me |
| 11715 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11716 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11717 | #endif |
| 11718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11719 | ; |
| 11720 | return 0; |
| 11721 | } |
| 11722 | _ACEOF |
| 11723 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11725 | (eval $ac_link) 2>&5 |
| 11726 | ac_status=$? |
| 11727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11728 | (exit $ac_status); } && |
| 11729 | { ac_try='test -s conftest$ac_exeext' |
| 11730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11731 | (eval $ac_try) 2>&5 |
| 11732 | ac_status=$? |
| 11733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11734 | (exit $ac_status); }; }; then |
| 11735 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11736 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11737 | echo "$as_me: failed program was:" >&5 |
| 11738 | cat conftest.$ac_ext >&5 |
| 11739 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11740 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11741 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11742 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11743 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11744 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11745 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11746 | cat >>confdefs.h <<_ACEOF |
| 11747 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11748 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11749 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11750 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11751 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 11752 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 11753 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 11754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11756 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11757 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11758 | cat >conftest.$ac_ext <<_ACEOF |
| 11759 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11760 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11761 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11762 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11763 | #ifdef __cplusplus |
| 11764 | extern "C" |
| 11765 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11766 | /* 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] | 11767 | builtin and then its argument prototype would still apply. */ |
| 11768 | char forkpty (); |
| 11769 | #ifdef F77_DUMMY_MAIN |
| 11770 | # ifdef __cplusplus |
| 11771 | extern "C" |
| 11772 | # endif |
| 11773 | int F77_DUMMY_MAIN() { return 1; } |
| 11774 | #endif |
| 11775 | int |
| 11776 | main () |
| 11777 | { |
| 11778 | forkpty (); |
| 11779 | ; |
| 11780 | return 0; |
| 11781 | } |
| 11782 | _ACEOF |
| 11783 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11785 | (eval $ac_link) 2>&5 |
| 11786 | ac_status=$? |
| 11787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11788 | (exit $ac_status); } && |
| 11789 | { ac_try='test -s conftest$ac_exeext' |
| 11790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11791 | (eval $ac_try) 2>&5 |
| 11792 | ac_status=$? |
| 11793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11794 | (exit $ac_status); }; }; then |
| 11795 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11796 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11797 | echo "$as_me: failed program was:" >&5 |
| 11798 | cat conftest.$ac_ext >&5 |
| 11799 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11800 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11801 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11802 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11803 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11804 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 11805 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 11806 | if test $ac_cv_lib_util_forkpty = yes; then |
| 11807 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11808 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11809 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11810 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11811 | fi |
| 11812 | |
| 11813 | fi |
| 11814 | done |
| 11815 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11816 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11817 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11818 | |
| 11819 | |
| 11820 | |
| 11821 | |
| 11822 | |
| 11823 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11824 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 11825 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11826 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11827 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11828 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11829 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11831 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11832 | cat >conftest.$ac_ext <<_ACEOF |
| 11833 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11834 | #include "confdefs.h" |
| 11835 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11836 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11837 | #include <assert.h> |
| 11838 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11839 | #ifdef __cplusplus |
| 11840 | extern "C" |
| 11841 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11842 | /* 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] | 11843 | builtin and then its argument prototype would still apply. */ |
| 11844 | char $ac_func (); |
| 11845 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11847 | #ifdef F77_DUMMY_MAIN |
| 11848 | # ifdef __cplusplus |
| 11849 | extern "C" |
| 11850 | # endif |
| 11851 | int F77_DUMMY_MAIN() { return 1; } |
| 11852 | #endif |
| 11853 | int |
| 11854 | main () |
| 11855 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11856 | /* The GNU C library defines this for functions which it implements |
| 11857 | to always fail with ENOSYS. Some functions are actually named |
| 11858 | something starting with __ and the normal name is an alias. */ |
| 11859 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11860 | choke me |
| 11861 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11862 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11863 | #endif |
| 11864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11865 | ; |
| 11866 | return 0; |
| 11867 | } |
| 11868 | _ACEOF |
| 11869 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11871 | (eval $ac_link) 2>&5 |
| 11872 | ac_status=$? |
| 11873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11874 | (exit $ac_status); } && |
| 11875 | { ac_try='test -s conftest$ac_exeext' |
| 11876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11877 | (eval $ac_try) 2>&5 |
| 11878 | ac_status=$? |
| 11879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11880 | (exit $ac_status); }; }; then |
| 11881 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11883 | echo "$as_me: failed program was:" >&5 |
| 11884 | cat conftest.$ac_ext >&5 |
| 11885 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11886 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11887 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11888 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11889 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11890 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11891 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11892 | cat >>confdefs.h <<_ACEOF |
| 11893 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11894 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11895 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11896 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11897 | done |
| 11898 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11900 | |
| 11901 | |
| 11902 | |
| 11903 | |
| 11904 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11905 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11906 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11907 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11908 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11909 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11910 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11913 | cat >conftest.$ac_ext <<_ACEOF |
| 11914 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11915 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11916 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11917 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11918 | #include <assert.h> |
| 11919 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11920 | #ifdef __cplusplus |
| 11921 | extern "C" |
| 11922 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11923 | /* 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] | 11924 | builtin and then its argument prototype would still apply. */ |
| 11925 | char $ac_func (); |
| 11926 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11928 | #ifdef F77_DUMMY_MAIN |
| 11929 | # ifdef __cplusplus |
| 11930 | extern "C" |
| 11931 | # endif |
| 11932 | int F77_DUMMY_MAIN() { return 1; } |
| 11933 | #endif |
| 11934 | int |
| 11935 | main () |
| 11936 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11937 | /* The GNU C library defines this for functions which it implements |
| 11938 | to always fail with ENOSYS. Some functions are actually named |
| 11939 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11940 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11941 | choke me |
| 11942 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11943 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11944 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11945 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11946 | ; |
| 11947 | return 0; |
| 11948 | } |
| 11949 | _ACEOF |
| 11950 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11952 | (eval $ac_link) 2>&5 |
| 11953 | ac_status=$? |
| 11954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11955 | (exit $ac_status); } && |
| 11956 | { ac_try='test -s conftest$ac_exeext' |
| 11957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11958 | (eval $ac_try) 2>&5 |
| 11959 | ac_status=$? |
| 11960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11961 | (exit $ac_status); }; }; then |
| 11962 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11963 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11964 | echo "$as_me: failed program was:" >&5 |
| 11965 | cat conftest.$ac_ext >&5 |
| 11966 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11967 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11968 | 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] | 11969 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11970 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11971 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11972 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11973 | cat >>confdefs.h <<_ACEOF |
| 11974 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11975 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11976 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11978 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11979 | fi |
| 11980 | done |
| 11981 | |
| 11982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11983 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11984 | for ac_func in getpgrp |
| 11985 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11986 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11987 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11988 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11989 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11991 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11992 | cat >conftest.$ac_ext <<_ACEOF |
| 11993 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11994 | #include "confdefs.h" |
| 11995 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11996 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11997 | #include <assert.h> |
| 11998 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11999 | #ifdef __cplusplus |
| 12000 | extern "C" |
| 12001 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12002 | /* 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] | 12003 | builtin and then its argument prototype would still apply. */ |
| 12004 | char $ac_func (); |
| 12005 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12007 | #ifdef F77_DUMMY_MAIN |
| 12008 | # ifdef __cplusplus |
| 12009 | extern "C" |
| 12010 | # endif |
| 12011 | int F77_DUMMY_MAIN() { return 1; } |
| 12012 | #endif |
| 12013 | int |
| 12014 | main () |
| 12015 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12016 | /* The GNU C library defines this for functions which it implements |
| 12017 | to always fail with ENOSYS. Some functions are actually named |
| 12018 | something starting with __ and the normal name is an alias. */ |
| 12019 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12020 | choke me |
| 12021 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12022 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12023 | #endif |
| 12024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12025 | ; |
| 12026 | return 0; |
| 12027 | } |
| 12028 | _ACEOF |
| 12029 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12031 | (eval $ac_link) 2>&5 |
| 12032 | ac_status=$? |
| 12033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12034 | (exit $ac_status); } && |
| 12035 | { ac_try='test -s conftest$ac_exeext' |
| 12036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12037 | (eval $ac_try) 2>&5 |
| 12038 | ac_status=$? |
| 12039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12040 | (exit $ac_status); }; }; then |
| 12041 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12042 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12043 | echo "$as_me: failed program was:" >&5 |
| 12044 | cat conftest.$ac_ext >&5 |
| 12045 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12046 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12047 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12048 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12049 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12050 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12051 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12052 | cat >>confdefs.h <<_ACEOF |
| 12053 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12054 | _ACEOF |
| 12055 | cat >conftest.$ac_ext <<_ACEOF |
| 12056 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12057 | #include "confdefs.h" |
| 12058 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12059 | #ifdef F77_DUMMY_MAIN |
| 12060 | # ifdef __cplusplus |
| 12061 | extern "C" |
| 12062 | # endif |
| 12063 | int F77_DUMMY_MAIN() { return 1; } |
| 12064 | #endif |
| 12065 | int |
| 12066 | main () |
| 12067 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12068 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12069 | ; |
| 12070 | return 0; |
| 12071 | } |
| 12072 | _ACEOF |
| 12073 | rm -f conftest.$ac_objext |
| 12074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12075 | (eval $ac_compile) 2>&5 |
| 12076 | ac_status=$? |
| 12077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12078 | (exit $ac_status); } && |
| 12079 | { ac_try='test -s conftest.$ac_objext' |
| 12080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12081 | (eval $ac_try) 2>&5 |
| 12082 | ac_status=$? |
| 12083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12084 | (exit $ac_status); }; }; then |
| 12085 | |
| 12086 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12087 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12088 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12090 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12092 | echo "$as_me: failed program was:" >&5 |
| 12093 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12094 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12095 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12096 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12097 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12098 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12100 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12101 | for ac_func in setpgrp |
| 12102 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12103 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12104 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12105 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12106 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12109 | cat >conftest.$ac_ext <<_ACEOF |
| 12110 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12111 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12112 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12113 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12114 | #include <assert.h> |
| 12115 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12116 | #ifdef __cplusplus |
| 12117 | extern "C" |
| 12118 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12119 | /* 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] | 12120 | builtin and then its argument prototype would still apply. */ |
| 12121 | char $ac_func (); |
| 12122 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12124 | #ifdef F77_DUMMY_MAIN |
| 12125 | # ifdef __cplusplus |
| 12126 | extern "C" |
| 12127 | # endif |
| 12128 | int F77_DUMMY_MAIN() { return 1; } |
| 12129 | #endif |
| 12130 | int |
| 12131 | main () |
| 12132 | { |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12133 | /* The GNU C library defines this for functions which it implements |
| 12134 | to always fail with ENOSYS. Some functions are actually named |
| 12135 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12136 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12137 | choke me |
| 12138 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | f = $ac_func; |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12140 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12142 | ; |
| 12143 | return 0; |
| 12144 | } |
| 12145 | _ACEOF |
| 12146 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12148 | (eval $ac_link) 2>&5 |
| 12149 | ac_status=$? |
| 12150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12151 | (exit $ac_status); } && |
| 12152 | { ac_try='test -s conftest$ac_exeext' |
| 12153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12154 | (eval $ac_try) 2>&5 |
| 12155 | ac_status=$? |
| 12156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12157 | (exit $ac_status); }; }; then |
| 12158 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12159 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12160 | echo "$as_me: failed program was:" >&5 |
| 12161 | cat conftest.$ac_ext >&5 |
| 12162 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12163 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12164 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12166 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12167 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12168 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12169 | cat >>confdefs.h <<_ACEOF |
| 12170 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12171 | _ACEOF |
| 12172 | cat >conftest.$ac_ext <<_ACEOF |
| 12173 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12174 | #include "confdefs.h" |
| 12175 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12176 | #ifdef F77_DUMMY_MAIN |
| 12177 | # ifdef __cplusplus |
| 12178 | extern "C" |
| 12179 | # endif |
| 12180 | int F77_DUMMY_MAIN() { return 1; } |
| 12181 | #endif |
| 12182 | int |
| 12183 | main () |
| 12184 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12185 | setpgrp(0,0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12186 | ; |
| 12187 | return 0; |
| 12188 | } |
| 12189 | _ACEOF |
| 12190 | rm -f conftest.$ac_objext |
| 12191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12192 | (eval $ac_compile) 2>&5 |
| 12193 | ac_status=$? |
| 12194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12195 | (exit $ac_status); } && |
| 12196 | { ac_try='test -s conftest.$ac_objext' |
| 12197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12198 | (eval $ac_try) 2>&5 |
| 12199 | ac_status=$? |
| 12200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12201 | (exit $ac_status); }; }; then |
| 12202 | |
| 12203 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12204 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12205 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12206 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12207 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12209 | echo "$as_me: failed program was:" >&5 |
| 12210 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12211 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12212 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12213 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12214 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12215 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12217 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12218 | for ac_func in gettimeofday |
| 12219 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12221 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12223 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12226 | cat >conftest.$ac_ext <<_ACEOF |
| 12227 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12228 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12229 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12230 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12231 | #include <assert.h> |
| 12232 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12233 | #ifdef __cplusplus |
| 12234 | extern "C" |
| 12235 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12236 | /* 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] | 12237 | builtin and then its argument prototype would still apply. */ |
| 12238 | char $ac_func (); |
| 12239 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12241 | #ifdef F77_DUMMY_MAIN |
| 12242 | # ifdef __cplusplus |
| 12243 | extern "C" |
| 12244 | # endif |
| 12245 | int F77_DUMMY_MAIN() { return 1; } |
| 12246 | #endif |
| 12247 | int |
| 12248 | main () |
| 12249 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12250 | /* The GNU C library defines this for functions which it implements |
| 12251 | to always fail with ENOSYS. Some functions are actually named |
| 12252 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12253 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12254 | choke me |
| 12255 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12256 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12257 | #endif |
| 12258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12259 | ; |
| 12260 | return 0; |
| 12261 | } |
| 12262 | _ACEOF |
| 12263 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12265 | (eval $ac_link) 2>&5 |
| 12266 | ac_status=$? |
| 12267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12268 | (exit $ac_status); } && |
| 12269 | { ac_try='test -s conftest$ac_exeext' |
| 12270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12271 | (eval $ac_try) 2>&5 |
| 12272 | ac_status=$? |
| 12273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12274 | (exit $ac_status); }; }; then |
| 12275 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12277 | echo "$as_me: failed program was:" >&5 |
| 12278 | cat conftest.$ac_ext >&5 |
| 12279 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12280 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12281 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12282 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12283 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12284 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12285 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12286 | cat >>confdefs.h <<_ACEOF |
| 12287 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12288 | _ACEOF |
| 12289 | cat >conftest.$ac_ext <<_ACEOF |
| 12290 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12291 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12292 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12293 | #ifdef F77_DUMMY_MAIN |
| 12294 | # ifdef __cplusplus |
| 12295 | extern "C" |
| 12296 | # endif |
| 12297 | int F77_DUMMY_MAIN() { return 1; } |
| 12298 | #endif |
| 12299 | int |
| 12300 | main () |
| 12301 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12302 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12303 | ; |
| 12304 | return 0; |
| 12305 | } |
| 12306 | _ACEOF |
| 12307 | rm -f conftest.$ac_objext |
| 12308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12309 | (eval $ac_compile) 2>&5 |
| 12310 | ac_status=$? |
| 12311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12312 | (exit $ac_status); } && |
| 12313 | { ac_try='test -s conftest.$ac_objext' |
| 12314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12315 | (eval $ac_try) 2>&5 |
| 12316 | ac_status=$? |
| 12317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12318 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12319 | : |
| 12320 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12321 | echo "$as_me: failed program was:" >&5 |
| 12322 | cat conftest.$ac_ext >&5 |
| 12323 | |
| 12324 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12325 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12326 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12328 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12329 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12330 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12331 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12332 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12333 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12334 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12335 | |
| 12336 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12337 | # 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] | 12338 | # for [no]getaddrinfo in netdb.h. |
| 12339 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 12340 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 12341 | cat >conftest.$ac_ext <<_ACEOF |
| 12342 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12343 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12344 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12345 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12346 | #include <sys/socket.h> |
| 12347 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12348 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12350 | #ifdef F77_DUMMY_MAIN |
| 12351 | # ifdef __cplusplus |
| 12352 | extern "C" |
| 12353 | # endif |
| 12354 | int F77_DUMMY_MAIN() { return 1; } |
| 12355 | #endif |
| 12356 | int |
| 12357 | main () |
| 12358 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12359 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12360 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12362 | ; |
| 12363 | return 0; |
| 12364 | } |
| 12365 | _ACEOF |
| 12366 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12368 | (eval $ac_link) 2>&5 |
| 12369 | ac_status=$? |
| 12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12371 | (exit $ac_status); } && |
| 12372 | { ac_try='test -s conftest$ac_exeext' |
| 12373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12374 | (eval $ac_try) 2>&5 |
| 12375 | ac_status=$? |
| 12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12377 | (exit $ac_status); }; }; then |
| 12378 | |
| 12379 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12380 | echo "${ECHO_T}yes" >&6 |
| 12381 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 12382 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12383 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12384 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12385 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12386 | buggygetaddrinfo=yes |
| 12387 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12388 | cat >conftest.$ac_ext <<_ACEOF |
| 12389 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12390 | #include "confdefs.h" |
| 12391 | |
| 12392 | #include <sys/types.h> |
| 12393 | #include <netdb.h> |
| 12394 | #include <string.h> |
| 12395 | #include <sys/socket.h> |
| 12396 | #include <netinet/in.h> |
| 12397 | |
| 12398 | main() |
| 12399 | { |
| 12400 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12401 | struct addrinfo hints, *ai, *aitop; |
| 12402 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12403 | |
| 12404 | for (passive = 0; passive <= 1; passive++) { |
| 12405 | memset(&hints, 0, sizeof(hints)); |
| 12406 | hints.ai_family = AF_UNSPEC; |
| 12407 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12408 | hints.ai_socktype = SOCK_STREAM; |
| 12409 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12410 | (void)gai_strerror(gaierr); |
| 12411 | goto bad; |
| 12412 | } |
| 12413 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12414 | if (ai->ai_addr == NULL || |
| 12415 | ai->ai_addrlen == 0 || |
| 12416 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12417 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12418 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12419 | goto bad; |
| 12420 | } |
| 12421 | switch (ai->ai_family) { |
| 12422 | case AF_INET: |
| 12423 | if (strcmp(strport, "54321") != 0) { |
| 12424 | goto bad; |
| 12425 | } |
| 12426 | if (passive) { |
| 12427 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12428 | goto bad; |
| 12429 | } |
| 12430 | } else { |
| 12431 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12432 | goto bad; |
| 12433 | } |
| 12434 | } |
| 12435 | inet4++; |
| 12436 | break; |
| 12437 | case AF_INET6: |
| 12438 | if (strcmp(strport, "54321") != 0) { |
| 12439 | goto bad; |
| 12440 | } |
| 12441 | if (passive) { |
| 12442 | if (strcmp(straddr, "::") != 0) { |
| 12443 | goto bad; |
| 12444 | } |
| 12445 | } else { |
| 12446 | if (strcmp(straddr, "::1") != 0) { |
| 12447 | goto bad; |
| 12448 | } |
| 12449 | } |
| 12450 | inet6++; |
| 12451 | break; |
| 12452 | case AF_UNSPEC: |
| 12453 | goto bad; |
| 12454 | break; |
| 12455 | default: |
| 12456 | /* another family support? */ |
| 12457 | break; |
| 12458 | } |
| 12459 | } |
| 12460 | } |
| 12461 | |
| 12462 | if (!(inet4 == 0 || inet4 == 2)) |
| 12463 | goto bad; |
| 12464 | if (!(inet6 == 0 || inet6 == 2)) |
| 12465 | goto bad; |
| 12466 | |
| 12467 | if (aitop) |
| 12468 | freeaddrinfo(aitop); |
| 12469 | exit(0); |
| 12470 | |
| 12471 | bad: |
| 12472 | if (aitop) |
| 12473 | freeaddrinfo(aitop); |
| 12474 | exit(1); |
| 12475 | } |
| 12476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12477 | _ACEOF |
| 12478 | rm -f conftest$ac_exeext |
| 12479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12480 | (eval $ac_link) 2>&5 |
| 12481 | ac_status=$? |
| 12482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12483 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12485 | (eval $ac_try) 2>&5 |
| 12486 | ac_status=$? |
| 12487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12488 | (exit $ac_status); }; }; then |
| 12489 | echo "$as_me:$LINENO: result: good" >&5 |
| 12490 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12491 | buggygetaddrinfo=no |
| 12492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12493 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12494 | echo "$as_me: failed program was:" >&5 |
| 12495 | cat conftest.$ac_ext >&5 |
| 12496 | ( exit $ac_status ) |
| 12497 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12498 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12499 | buggygetaddrinfo=yes |
| 12500 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12501 | 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] | 12502 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12503 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12504 | echo "$as_me: failed program was:" >&5 |
| 12505 | cat conftest.$ac_ext >&5 |
| 12506 | |
| 12507 | echo "$as_me:$LINENO: result: no" >&5 |
| 12508 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12509 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12510 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12511 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12512 | 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] | 12513 | |
| 12514 | if test "$buggygetaddrinfo" = "yes"; then |
| 12515 | if test "$ipv6" = "yes"; then |
| 12516 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 12517 | echo ' or you can specify "--disable-ipv6"'. |
| 12518 | exit 1 |
| 12519 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12520 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12521 | |
| 12522 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12523 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12524 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12525 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12526 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12527 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12528 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12529 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12530 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12531 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12532 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12533 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12536 | cat >conftest.$ac_ext <<_ACEOF |
| 12537 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12538 | #include "confdefs.h" |
| 12539 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12540 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12541 | #include <assert.h> |
| 12542 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12543 | #ifdef __cplusplus |
| 12544 | extern "C" |
| 12545 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12546 | /* 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] | 12547 | builtin and then its argument prototype would still apply. */ |
| 12548 | char $ac_func (); |
| 12549 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12551 | #ifdef F77_DUMMY_MAIN |
| 12552 | # ifdef __cplusplus |
| 12553 | extern "C" |
| 12554 | # endif |
| 12555 | int F77_DUMMY_MAIN() { return 1; } |
| 12556 | #endif |
| 12557 | int |
| 12558 | main () |
| 12559 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12560 | /* The GNU C library defines this for functions which it implements |
| 12561 | to always fail with ENOSYS. Some functions are actually named |
| 12562 | something starting with __ and the normal name is an alias. */ |
| 12563 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12564 | choke me |
| 12565 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12566 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12567 | #endif |
| 12568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12569 | ; |
| 12570 | return 0; |
| 12571 | } |
| 12572 | _ACEOF |
| 12573 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12575 | (eval $ac_link) 2>&5 |
| 12576 | ac_status=$? |
| 12577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12578 | (exit $ac_status); } && |
| 12579 | { ac_try='test -s conftest$ac_exeext' |
| 12580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12581 | (eval $ac_try) 2>&5 |
| 12582 | ac_status=$? |
| 12583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12584 | (exit $ac_status); }; }; then |
| 12585 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12586 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12587 | echo "$as_me: failed program was:" >&5 |
| 12588 | cat conftest.$ac_ext >&5 |
| 12589 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12590 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12591 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12592 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12593 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12594 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12595 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12596 | cat >>confdefs.h <<_ACEOF |
| 12597 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12598 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12599 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12600 | fi |
| 12601 | done |
| 12602 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12603 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12604 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12605 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 12606 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12607 | if test "${ac_cv_header_time+set}" = set; then |
| 12608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12610 | cat >conftest.$ac_ext <<_ACEOF |
| 12611 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12612 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12613 | #include <sys/types.h> |
| 12614 | #include <sys/time.h> |
| 12615 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12616 | |
| 12617 | #ifdef F77_DUMMY_MAIN |
| 12618 | # ifdef __cplusplus |
| 12619 | extern "C" |
| 12620 | # endif |
| 12621 | int F77_DUMMY_MAIN() { return 1; } |
| 12622 | #endif |
| 12623 | int |
| 12624 | main () |
| 12625 | { |
| 12626 | if ((struct tm *) 0) |
| 12627 | return 0; |
| 12628 | ; |
| 12629 | return 0; |
| 12630 | } |
| 12631 | _ACEOF |
| 12632 | rm -f conftest.$ac_objext |
| 12633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12634 | (eval $ac_compile) 2>&5 |
| 12635 | ac_status=$? |
| 12636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12637 | (exit $ac_status); } && |
| 12638 | { ac_try='test -s conftest.$ac_objext' |
| 12639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12640 | (eval $ac_try) 2>&5 |
| 12641 | ac_status=$? |
| 12642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12643 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12644 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12645 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12646 | echo "$as_me: failed program was:" >&5 |
| 12647 | cat conftest.$ac_ext >&5 |
| 12648 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12649 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12650 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12651 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12652 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12653 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12654 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12655 | |
| 12656 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12657 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12658 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12659 | |
| 12660 | fi |
| 12661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12662 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 12663 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 12664 | if test "${ac_cv_struct_tm+set}" = set; then |
| 12665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12666 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12667 | cat >conftest.$ac_ext <<_ACEOF |
| 12668 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12669 | #include "confdefs.h" |
| 12670 | #include <sys/types.h> |
| 12671 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12672 | |
| 12673 | #ifdef F77_DUMMY_MAIN |
| 12674 | # ifdef __cplusplus |
| 12675 | extern "C" |
| 12676 | # endif |
| 12677 | int F77_DUMMY_MAIN() { return 1; } |
| 12678 | #endif |
| 12679 | int |
| 12680 | main () |
| 12681 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12682 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12683 | ; |
| 12684 | return 0; |
| 12685 | } |
| 12686 | _ACEOF |
| 12687 | rm -f conftest.$ac_objext |
| 12688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12689 | (eval $ac_compile) 2>&5 |
| 12690 | ac_status=$? |
| 12691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12692 | (exit $ac_status); } && |
| 12693 | { ac_try='test -s conftest.$ac_objext' |
| 12694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12695 | (eval $ac_try) 2>&5 |
| 12696 | ac_status=$? |
| 12697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12698 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12699 | ac_cv_struct_tm=time.h |
| 12700 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12701 | echo "$as_me: failed program was:" >&5 |
| 12702 | cat conftest.$ac_ext >&5 |
| 12703 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12704 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12705 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12706 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12707 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 12708 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12709 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12710 | |
| 12711 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12712 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12713 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12714 | |
| 12715 | fi |
| 12716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12717 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 12718 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 12719 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 12720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12722 | cat >conftest.$ac_ext <<_ACEOF |
| 12723 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12724 | #include "confdefs.h" |
| 12725 | #include <sys/types.h> |
| 12726 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12727 | |
| 12728 | |
| 12729 | #ifdef F77_DUMMY_MAIN |
| 12730 | # ifdef __cplusplus |
| 12731 | extern "C" |
| 12732 | # endif |
| 12733 | int F77_DUMMY_MAIN() { return 1; } |
| 12734 | #endif |
| 12735 | int |
| 12736 | main () |
| 12737 | { |
| 12738 | static struct tm ac_aggr; |
| 12739 | if (ac_aggr.tm_zone) |
| 12740 | return 0; |
| 12741 | ; |
| 12742 | return 0; |
| 12743 | } |
| 12744 | _ACEOF |
| 12745 | rm -f conftest.$ac_objext |
| 12746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12747 | (eval $ac_compile) 2>&5 |
| 12748 | ac_status=$? |
| 12749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12750 | (exit $ac_status); } && |
| 12751 | { ac_try='test -s conftest.$ac_objext' |
| 12752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12753 | (eval $ac_try) 2>&5 |
| 12754 | ac_status=$? |
| 12755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12756 | (exit $ac_status); }; }; then |
| 12757 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12758 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12759 | echo "$as_me: failed program was:" >&5 |
| 12760 | cat conftest.$ac_ext >&5 |
| 12761 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12762 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12763 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12764 | fi |
| 12765 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 12766 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 12767 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 12768 | |
| 12769 | cat >>confdefs.h <<_ACEOF |
| 12770 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12771 | _ACEOF |
| 12772 | |
| 12773 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12774 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12776 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12777 | |
| 12778 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12779 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12780 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12781 | |
| 12782 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12783 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 12784 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 12785 | if test "${ac_cv_var_tzname+set}" = set; then |
| 12786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12788 | cat >conftest.$ac_ext <<_ACEOF |
| 12789 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12790 | #include "confdefs.h" |
| 12791 | #include <time.h> |
| 12792 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12793 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12794 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12795 | |
| 12796 | #ifdef F77_DUMMY_MAIN |
| 12797 | # ifdef __cplusplus |
| 12798 | extern "C" |
| 12799 | # endif |
| 12800 | int F77_DUMMY_MAIN() { return 1; } |
| 12801 | #endif |
| 12802 | int |
| 12803 | main () |
| 12804 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12805 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12806 | ; |
| 12807 | return 0; |
| 12808 | } |
| 12809 | _ACEOF |
| 12810 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12812 | (eval $ac_link) 2>&5 |
| 12813 | ac_status=$? |
| 12814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12815 | (exit $ac_status); } && |
| 12816 | { ac_try='test -s conftest$ac_exeext' |
| 12817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12818 | (eval $ac_try) 2>&5 |
| 12819 | ac_status=$? |
| 12820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12821 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12822 | ac_cv_var_tzname=yes |
| 12823 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12824 | echo "$as_me: failed program was:" >&5 |
| 12825 | cat conftest.$ac_ext >&5 |
| 12826 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12827 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12828 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12829 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12830 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 12831 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12832 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12833 | |
| 12834 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12835 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12836 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12837 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12838 | fi |
| 12839 | fi |
| 12840 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12842 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 12843 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 12844 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 12845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12846 | else |
| 12847 | cat >conftest.$ac_ext <<_ACEOF |
| 12848 | #line $LINENO "configure" |
| 12849 | #include "confdefs.h" |
| 12850 | $ac_includes_default |
| 12851 | #ifdef F77_DUMMY_MAIN |
| 12852 | # ifdef __cplusplus |
| 12853 | extern "C" |
| 12854 | # endif |
| 12855 | int F77_DUMMY_MAIN() { return 1; } |
| 12856 | #endif |
| 12857 | int |
| 12858 | main () |
| 12859 | { |
| 12860 | static struct stat ac_aggr; |
| 12861 | if (ac_aggr.st_rdev) |
| 12862 | return 0; |
| 12863 | ; |
| 12864 | return 0; |
| 12865 | } |
| 12866 | _ACEOF |
| 12867 | rm -f conftest.$ac_objext |
| 12868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12869 | (eval $ac_compile) 2>&5 |
| 12870 | ac_status=$? |
| 12871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12872 | (exit $ac_status); } && |
| 12873 | { ac_try='test -s conftest.$ac_objext' |
| 12874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12875 | (eval $ac_try) 2>&5 |
| 12876 | ac_status=$? |
| 12877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12878 | (exit $ac_status); }; }; then |
| 12879 | ac_cv_member_struct_stat_st_rdev=yes |
| 12880 | else |
| 12881 | echo "$as_me: failed program was:" >&5 |
| 12882 | cat conftest.$ac_ext >&5 |
| 12883 | ac_cv_member_struct_stat_st_rdev=no |
| 12884 | fi |
| 12885 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12886 | fi |
| 12887 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 12888 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 12889 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 12890 | |
| 12891 | cat >>confdefs.h <<_ACEOF |
| 12892 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 12893 | _ACEOF |
| 12894 | |
| 12895 | |
| 12896 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12897 | #define HAVE_ST_RDEV 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12898 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12899 | |
| 12900 | fi |
| 12901 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12902 | |
| 12903 | |
| 12904 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 12905 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 12906 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 12907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12908 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12909 | cat >conftest.$ac_ext <<_ACEOF |
| 12910 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12911 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12912 | $ac_includes_default |
| 12913 | #ifdef F77_DUMMY_MAIN |
| 12914 | # ifdef __cplusplus |
| 12915 | extern "C" |
| 12916 | # endif |
| 12917 | int F77_DUMMY_MAIN() { return 1; } |
| 12918 | #endif |
| 12919 | int |
| 12920 | main () |
| 12921 | { |
| 12922 | static struct stat ac_aggr; |
| 12923 | if (ac_aggr.st_blksize) |
| 12924 | return 0; |
| 12925 | ; |
| 12926 | return 0; |
| 12927 | } |
| 12928 | _ACEOF |
| 12929 | rm -f conftest.$ac_objext |
| 12930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12931 | (eval $ac_compile) 2>&5 |
| 12932 | ac_status=$? |
| 12933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12934 | (exit $ac_status); } && |
| 12935 | { ac_try='test -s conftest.$ac_objext' |
| 12936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12937 | (eval $ac_try) 2>&5 |
| 12938 | ac_status=$? |
| 12939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12940 | (exit $ac_status); }; }; then |
| 12941 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12942 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12943 | echo "$as_me: failed program was:" >&5 |
| 12944 | cat conftest.$ac_ext >&5 |
| 12945 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12946 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12948 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12949 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 12950 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 12951 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12953 | cat >>confdefs.h <<_ACEOF |
| 12954 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 12955 | _ACEOF |
| 12956 | |
| 12957 | |
| 12958 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12959 | #define HAVE_ST_BLKSIZE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12960 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12961 | |
| 12962 | fi |
| 12963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12964 | |
| 12965 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 12966 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 12967 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 12968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | cat >conftest.$ac_ext <<_ACEOF |
| 12971 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12972 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12973 | $ac_includes_default |
| 12974 | #ifdef F77_DUMMY_MAIN |
| 12975 | # ifdef __cplusplus |
| 12976 | extern "C" |
| 12977 | # endif |
| 12978 | int F77_DUMMY_MAIN() { return 1; } |
| 12979 | #endif |
| 12980 | int |
| 12981 | main () |
| 12982 | { |
| 12983 | static struct stat ac_aggr; |
| 12984 | if (ac_aggr.st_blocks) |
| 12985 | return 0; |
| 12986 | ; |
| 12987 | return 0; |
| 12988 | } |
| 12989 | _ACEOF |
| 12990 | rm -f conftest.$ac_objext |
| 12991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12992 | (eval $ac_compile) 2>&5 |
| 12993 | ac_status=$? |
| 12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12995 | (exit $ac_status); } && |
| 12996 | { ac_try='test -s conftest.$ac_objext' |
| 12997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12998 | (eval $ac_try) 2>&5 |
| 12999 | ac_status=$? |
| 13000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13001 | (exit $ac_status); }; }; then |
| 13002 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13004 | echo "$as_me: failed program was:" >&5 |
| 13005 | cat conftest.$ac_ext >&5 |
| 13006 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13007 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13008 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13009 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13010 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 13011 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 13012 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 | cat >>confdefs.h <<_ACEOF |
| 13015 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13016 | _ACEOF |
| 13017 | |
| 13018 | |
| 13019 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13020 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13021 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13022 | |
| 13023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13024 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13025 | fi |
| 13026 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13027 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13028 | |
| 13029 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 13030 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 13031 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 13032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13033 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13034 | cat >conftest.$ac_ext <<_ACEOF |
| 13035 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13036 | #include "confdefs.h" |
| 13037 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13038 | #ifdef F77_DUMMY_MAIN |
| 13039 | # ifdef __cplusplus |
| 13040 | extern "C" |
| 13041 | # endif |
| 13042 | int F77_DUMMY_MAIN() { return 1; } |
| 13043 | #endif |
| 13044 | int |
| 13045 | main () |
| 13046 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13047 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13048 | ; |
| 13049 | return 0; |
| 13050 | } |
| 13051 | _ACEOF |
| 13052 | rm -f conftest.$ac_objext |
| 13053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13054 | (eval $ac_compile) 2>&5 |
| 13055 | ac_status=$? |
| 13056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13057 | (exit $ac_status); } && |
| 13058 | { ac_try='test -s conftest.$ac_objext' |
| 13059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13060 | (eval $ac_try) 2>&5 |
| 13061 | ac_status=$? |
| 13062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13063 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13064 | ac_cv_header_time_altzone=yes |
| 13065 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13066 | echo "$as_me: failed program was:" >&5 |
| 13067 | cat conftest.$ac_ext >&5 |
| 13068 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13069 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13070 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13071 | fi |
| 13072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13073 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 13074 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13075 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | |
| 13077 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13078 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13079 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13080 | |
| 13081 | fi |
| 13082 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13083 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13084 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13085 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13086 | cat >conftest.$ac_ext <<_ACEOF |
| 13087 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13088 | #include "confdefs.h" |
| 13089 | |
| 13090 | #include <sys/types.h> |
| 13091 | #include <sys/select.h> |
| 13092 | #include <sys/time.h> |
| 13093 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13094 | #ifdef F77_DUMMY_MAIN |
| 13095 | # ifdef __cplusplus |
| 13096 | extern "C" |
| 13097 | # endif |
| 13098 | int F77_DUMMY_MAIN() { return 1; } |
| 13099 | #endif |
| 13100 | int |
| 13101 | main () |
| 13102 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13103 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13104 | ; |
| 13105 | return 0; |
| 13106 | } |
| 13107 | _ACEOF |
| 13108 | rm -f conftest.$ac_objext |
| 13109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13110 | (eval $ac_compile) 2>&5 |
| 13111 | ac_status=$? |
| 13112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13113 | (exit $ac_status); } && |
| 13114 | { ac_try='test -s conftest.$ac_objext' |
| 13115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13116 | (eval $ac_try) 2>&5 |
| 13117 | ac_status=$? |
| 13118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13119 | (exit $ac_status); }; }; then |
| 13120 | |
| 13121 | |
| 13122 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13123 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13124 | _ACEOF |
| 13125 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13126 | was_it_defined=yes |
| 13127 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13128 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | echo "$as_me: failed program was:" >&5 |
| 13130 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13131 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13132 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13133 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 13134 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13135 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13136 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 13137 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 13138 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 13139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13141 | cat >conftest.$ac_ext <<_ACEOF |
| 13142 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13143 | #include "confdefs.h" |
| 13144 | |
| 13145 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13146 | #ifdef F77_DUMMY_MAIN |
| 13147 | # ifdef __cplusplus |
| 13148 | extern "C" |
| 13149 | # endif |
| 13150 | int F77_DUMMY_MAIN() { return 1; } |
| 13151 | #endif |
| 13152 | int |
| 13153 | main () |
| 13154 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13155 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13156 | ; |
| 13157 | return 0; |
| 13158 | } |
| 13159 | _ACEOF |
| 13160 | rm -f conftest.$ac_objext |
| 13161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13162 | (eval $ac_compile) 2>&5 |
| 13163 | ac_status=$? |
| 13164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13165 | (exit $ac_status); } && |
| 13166 | { ac_try='test -s conftest.$ac_objext' |
| 13167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13168 | (eval $ac_try) 2>&5 |
| 13169 | ac_status=$? |
| 13170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13171 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13172 | ac_cv_struct_addrinfo=yes |
| 13173 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13174 | echo "$as_me: failed program was:" >&5 |
| 13175 | cat conftest.$ac_ext >&5 |
| 13176 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13177 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13178 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13179 | fi |
| 13180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13181 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13182 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13183 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13184 | |
| 13185 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13186 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13187 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13188 | |
| 13189 | fi |
| 13190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13191 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13192 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13193 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13196 | cat >conftest.$ac_ext <<_ACEOF |
| 13197 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13198 | #include "confdefs.h" |
| 13199 | |
| 13200 | # include <sys/types.h> |
| 13201 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13202 | #ifdef F77_DUMMY_MAIN |
| 13203 | # ifdef __cplusplus |
| 13204 | extern "C" |
| 13205 | # endif |
| 13206 | int F77_DUMMY_MAIN() { return 1; } |
| 13207 | #endif |
| 13208 | int |
| 13209 | main () |
| 13210 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13211 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13212 | ; |
| 13213 | return 0; |
| 13214 | } |
| 13215 | _ACEOF |
| 13216 | rm -f conftest.$ac_objext |
| 13217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13218 | (eval $ac_compile) 2>&5 |
| 13219 | ac_status=$? |
| 13220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13221 | (exit $ac_status); } && |
| 13222 | { ac_try='test -s conftest.$ac_objext' |
| 13223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13224 | (eval $ac_try) 2>&5 |
| 13225 | ac_status=$? |
| 13226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13227 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13228 | ac_cv_struct_sockaddr_storage=yes |
| 13229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13230 | echo "$as_me: failed program was:" >&5 |
| 13231 | cat conftest.$ac_ext >&5 |
| 13232 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13234 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13235 | fi |
| 13236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13237 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13238 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13239 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13240 | |
| 13241 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13242 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13243 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13244 | |
| 13245 | fi |
| 13246 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13247 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13248 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13250 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13251 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13252 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13255 | cat >conftest.$ac_ext <<_ACEOF |
| 13256 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13257 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13258 | $ac_includes_default |
| 13259 | #ifdef F77_DUMMY_MAIN |
| 13260 | # ifdef __cplusplus |
| 13261 | extern "C" |
| 13262 | # endif |
| 13263 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13264 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13265 | int |
| 13266 | main () |
| 13267 | { |
| 13268 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13269 | test_array [0] = 0 |
| 13270 | |
| 13271 | ; |
| 13272 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13273 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13274 | _ACEOF |
| 13275 | rm -f conftest.$ac_objext |
| 13276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13277 | (eval $ac_compile) 2>&5 |
| 13278 | ac_status=$? |
| 13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13280 | (exit $ac_status); } && |
| 13281 | { ac_try='test -s conftest.$ac_objext' |
| 13282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13283 | (eval $ac_try) 2>&5 |
| 13284 | ac_status=$? |
| 13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13286 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13287 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13288 | else |
| 13289 | echo "$as_me: failed program was:" >&5 |
| 13290 | cat conftest.$ac_ext >&5 |
| 13291 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13292 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13293 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13294 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13295 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13296 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13297 | 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] | 13298 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13299 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13300 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13301 | |
| 13302 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13304 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13305 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13306 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13308 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13309 | ac_cv_prog_cc_stdc=no |
| 13310 | ac_save_CC=$CC |
| 13311 | cat >conftest.$ac_ext <<_ACEOF |
| 13312 | #line $LINENO "configure" |
| 13313 | #include "confdefs.h" |
| 13314 | #include <stdarg.h> |
| 13315 | #include <stdio.h> |
| 13316 | #include <sys/types.h> |
| 13317 | #include <sys/stat.h> |
| 13318 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 13319 | struct buf { int x; }; |
| 13320 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 13321 | static char *e (p, i) |
| 13322 | char **p; |
| 13323 | int i; |
| 13324 | { |
| 13325 | return p[i]; |
| 13326 | } |
| 13327 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 13328 | { |
| 13329 | char *s; |
| 13330 | va_list v; |
| 13331 | va_start (v,p); |
| 13332 | s = g (p, va_arg (v,int)); |
| 13333 | va_end (v); |
| 13334 | return s; |
| 13335 | } |
| 13336 | int test (int i, double x); |
| 13337 | struct s1 {int (*f) (int a);}; |
| 13338 | struct s2 {int (*f) (double a);}; |
| 13339 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 13340 | int argc; |
| 13341 | char **argv; |
| 13342 | #ifdef F77_DUMMY_MAIN |
| 13343 | # ifdef __cplusplus |
| 13344 | extern "C" |
| 13345 | # endif |
| 13346 | int F77_DUMMY_MAIN() { return 1; } |
| 13347 | #endif |
| 13348 | int |
| 13349 | main () |
| 13350 | { |
| 13351 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 13352 | ; |
| 13353 | return 0; |
| 13354 | } |
| 13355 | _ACEOF |
| 13356 | # Don't try gcc -ansi; that turns off useful extensions and |
| 13357 | # breaks some systems' header files. |
| 13358 | # AIX -qlanglvl=ansi |
| 13359 | # Ultrix and OSF/1 -std1 |
| 13360 | # HP-UX 10.20 and later -Ae |
| 13361 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 13362 | # SVR4 -Xc -D__EXTENSIONS__ |
| 13363 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 13364 | do |
| 13365 | CC="$ac_save_CC $ac_arg" |
| 13366 | rm -f conftest.$ac_objext |
| 13367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13368 | (eval $ac_compile) 2>&5 |
| 13369 | ac_status=$? |
| 13370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13371 | (exit $ac_status); } && |
| 13372 | { ac_try='test -s conftest.$ac_objext' |
| 13373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13374 | (eval $ac_try) 2>&5 |
| 13375 | ac_status=$? |
| 13376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13377 | (exit $ac_status); }; }; then |
| 13378 | ac_cv_prog_cc_stdc=$ac_arg |
| 13379 | break |
| 13380 | else |
| 13381 | echo "$as_me: failed program was:" >&5 |
| 13382 | cat conftest.$ac_ext >&5 |
| 13383 | fi |
| 13384 | rm -f conftest.$ac_objext |
| 13385 | done |
| 13386 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 13387 | CC=$ac_save_CC |
| 13388 | |
| 13389 | fi |
| 13390 | |
| 13391 | case "x$ac_cv_prog_cc_stdc" in |
| 13392 | x|xno) |
| 13393 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 13394 | echo "${ECHO_T}none needed" >&6 ;; |
| 13395 | *) |
| 13396 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 13397 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 13398 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 13399 | esac |
| 13400 | |
| 13401 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 13402 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13403 | if test "${ac_cv_c_const+set}" = set; then |
| 13404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13405 | else |
| 13406 | cat >conftest.$ac_ext <<_ACEOF |
| 13407 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13408 | #include "confdefs.h" |
| 13409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13410 | #ifdef F77_DUMMY_MAIN |
| 13411 | # ifdef __cplusplus |
| 13412 | extern "C" |
| 13413 | # endif |
| 13414 | int F77_DUMMY_MAIN() { return 1; } |
| 13415 | #endif |
| 13416 | int |
| 13417 | main () |
| 13418 | { |
| 13419 | /* FIXME: Include the comments suggested by Paul. */ |
| 13420 | #ifndef __cplusplus |
| 13421 | /* Ultrix mips cc rejects this. */ |
| 13422 | typedef int charset[2]; |
| 13423 | const charset x; |
| 13424 | /* SunOS 4.1.1 cc rejects this. */ |
| 13425 | char const *const *ccp; |
| 13426 | char **p; |
| 13427 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13428 | struct point {int x, y;}; |
| 13429 | static struct point const zero = {0,0}; |
| 13430 | /* AIX XL C 1.02.0.0 rejects this. |
| 13431 | It does not let you subtract one const X* pointer from another in |
| 13432 | an arm of an if-expression whose if-part is not a constant |
| 13433 | expression */ |
| 13434 | const char *g = "string"; |
| 13435 | ccp = &g + (g ? g-g : 0); |
| 13436 | /* HPUX 7.0 cc rejects these. */ |
| 13437 | ++ccp; |
| 13438 | p = (char**) ccp; |
| 13439 | ccp = (char const *const *) p; |
| 13440 | { /* SCO 3.2v4 cc rejects this. */ |
| 13441 | char *t; |
| 13442 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13444 | *t++ = 0; |
| 13445 | } |
| 13446 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13447 | int x[] = {25, 17}; |
| 13448 | const int *foo = &x[0]; |
| 13449 | ++foo; |
| 13450 | } |
| 13451 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13452 | typedef const int *iptr; |
| 13453 | iptr p = 0; |
| 13454 | ++p; |
| 13455 | } |
| 13456 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13457 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13458 | struct s { int j; const int *ap[3]; }; |
| 13459 | struct s *b; b->j = 5; |
| 13460 | } |
| 13461 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13462 | const int foo = 10; |
| 13463 | } |
| 13464 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13466 | ; |
| 13467 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13468 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13469 | _ACEOF |
| 13470 | rm -f conftest.$ac_objext |
| 13471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13472 | (eval $ac_compile) 2>&5 |
| 13473 | ac_status=$? |
| 13474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13475 | (exit $ac_status); } && |
| 13476 | { ac_try='test -s conftest.$ac_objext' |
| 13477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13478 | (eval $ac_try) 2>&5 |
| 13479 | ac_status=$? |
| 13480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13481 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13482 | ac_cv_c_const=yes |
| 13483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13484 | echo "$as_me: failed program was:" >&5 |
| 13485 | cat conftest.$ac_ext >&5 |
| 13486 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13488 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13489 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13490 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 13491 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13492 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13493 | |
| 13494 | cat >>confdefs.h <<\_ACEOF |
| 13495 | #define const |
| 13496 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13497 | |
| 13498 | fi |
| 13499 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13500 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13501 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13502 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 13503 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 13504 | cat >conftest.$ac_ext <<_ACEOF |
| 13505 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13506 | #include "confdefs.h" |
| 13507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13508 | #ifdef F77_DUMMY_MAIN |
| 13509 | # ifdef __cplusplus |
| 13510 | extern "C" |
| 13511 | # endif |
| 13512 | int F77_DUMMY_MAIN() { return 1; } |
| 13513 | #endif |
| 13514 | int |
| 13515 | main () |
| 13516 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13517 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13518 | ; |
| 13519 | return 0; |
| 13520 | } |
| 13521 | _ACEOF |
| 13522 | rm -f conftest.$ac_objext |
| 13523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13524 | (eval $ac_compile) 2>&5 |
| 13525 | ac_status=$? |
| 13526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13527 | (exit $ac_status); } && |
| 13528 | { ac_try='test -s conftest.$ac_objext' |
| 13529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13530 | (eval $ac_try) 2>&5 |
| 13531 | ac_status=$? |
| 13532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13533 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13534 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13536 | echo "$as_me: failed program was:" >&5 |
| 13537 | cat conftest.$ac_ext >&5 |
| 13538 | |
| 13539 | cat >>confdefs.h <<\_ACEOF |
| 13540 | #define volatile |
| 13541 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13542 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13543 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13544 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13545 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13546 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13547 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13548 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13549 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13550 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 13551 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 13552 | cat >conftest.$ac_ext <<_ACEOF |
| 13553 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13554 | #include "confdefs.h" |
| 13555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13556 | #ifdef F77_DUMMY_MAIN |
| 13557 | # ifdef __cplusplus |
| 13558 | extern "C" |
| 13559 | # endif |
| 13560 | int F77_DUMMY_MAIN() { return 1; } |
| 13561 | #endif |
| 13562 | int |
| 13563 | main () |
| 13564 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13565 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13566 | ; |
| 13567 | return 0; |
| 13568 | } |
| 13569 | _ACEOF |
| 13570 | rm -f conftest.$ac_objext |
| 13571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13572 | (eval $ac_compile) 2>&5 |
| 13573 | ac_status=$? |
| 13574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13575 | (exit $ac_status); } && |
| 13576 | { ac_try='test -s conftest.$ac_objext' |
| 13577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13578 | (eval $ac_try) 2>&5 |
| 13579 | ac_status=$? |
| 13580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13581 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13582 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13583 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13584 | echo "$as_me: failed program was:" >&5 |
| 13585 | cat conftest.$ac_ext >&5 |
| 13586 | |
| 13587 | cat >>confdefs.h <<\_ACEOF |
| 13588 | #define signed |
| 13589 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13590 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13591 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13592 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13593 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13594 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13595 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13596 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13597 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13598 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 13599 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 13600 | cat >conftest.$ac_ext <<_ACEOF |
| 13601 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13602 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13603 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13604 | #ifdef F77_DUMMY_MAIN |
| 13605 | # ifdef __cplusplus |
| 13606 | extern "C" |
| 13607 | # endif |
| 13608 | int F77_DUMMY_MAIN() { return 1; } |
| 13609 | #endif |
| 13610 | int |
| 13611 | main () |
| 13612 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13613 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13614 | ; |
| 13615 | return 0; |
| 13616 | } |
| 13617 | _ACEOF |
| 13618 | rm -f conftest.$ac_objext |
| 13619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13620 | (eval $ac_compile) 2>&5 |
| 13621 | ac_status=$? |
| 13622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13623 | (exit $ac_status); } && |
| 13624 | { ac_try='test -s conftest.$ac_objext' |
| 13625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13626 | (eval $ac_try) 2>&5 |
| 13627 | ac_status=$? |
| 13628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13629 | (exit $ac_status); }; }; then |
| 13630 | |
| 13631 | |
| 13632 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13633 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13634 | _ACEOF |
| 13635 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13636 | have_prototypes=yes |
| 13637 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13639 | echo "$as_me: failed program was:" >&5 |
| 13640 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13641 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13642 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13643 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 13644 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13645 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13646 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13647 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 13648 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 13649 | cat >conftest.$ac_ext <<_ACEOF |
| 13650 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13651 | #include "confdefs.h" |
| 13652 | |
| 13653 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13654 | int foo(int x, ...) { |
| 13655 | va_list va; |
| 13656 | va_start(va, x); |
| 13657 | va_arg(va, int); |
| 13658 | va_arg(va, char *); |
| 13659 | va_arg(va, double); |
| 13660 | return 0; |
| 13661 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13663 | #ifdef F77_DUMMY_MAIN |
| 13664 | # ifdef __cplusplus |
| 13665 | extern "C" |
| 13666 | # endif |
| 13667 | int F77_DUMMY_MAIN() { return 1; } |
| 13668 | #endif |
| 13669 | int |
| 13670 | main () |
| 13671 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13672 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13673 | ; |
| 13674 | return 0; |
| 13675 | } |
| 13676 | _ACEOF |
| 13677 | rm -f conftest.$ac_objext |
| 13678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13679 | (eval $ac_compile) 2>&5 |
| 13680 | ac_status=$? |
| 13681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13682 | (exit $ac_status); } && |
| 13683 | { ac_try='test -s conftest.$ac_objext' |
| 13684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13685 | (eval $ac_try) 2>&5 |
| 13686 | ac_status=$? |
| 13687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13688 | (exit $ac_status); }; }; then |
| 13689 | |
| 13690 | |
| 13691 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13692 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13693 | _ACEOF |
| 13694 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13695 | works=yes |
| 13696 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13698 | echo "$as_me: failed program was:" >&5 |
| 13699 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13700 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13701 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13702 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13703 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13704 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13705 | if test "$have_prototypes" = yes; then |
| 13706 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13707 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 13708 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 13709 | cat >conftest.$ac_ext <<_ACEOF |
| 13710 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13711 | #include "confdefs.h" |
| 13712 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13713 | #ifdef F77_DUMMY_MAIN |
| 13714 | # ifdef __cplusplus |
| 13715 | extern "C" |
| 13716 | # endif |
| 13717 | int F77_DUMMY_MAIN() { return 1; } |
| 13718 | #endif |
| 13719 | int |
| 13720 | main () |
| 13721 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13722 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13723 | ; |
| 13724 | return 0; |
| 13725 | } |
| 13726 | _ACEOF |
| 13727 | rm -f conftest.$ac_objext |
| 13728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13729 | (eval $ac_compile) 2>&5 |
| 13730 | ac_status=$? |
| 13731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13732 | (exit $ac_status); } && |
| 13733 | { ac_try='test -s conftest.$ac_objext' |
| 13734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13735 | (eval $ac_try) 2>&5 |
| 13736 | ac_status=$? |
| 13737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13738 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13739 | : |
| 13740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13741 | echo "$as_me: failed program was:" >&5 |
| 13742 | cat conftest.$ac_ext >&5 |
| 13743 | |
| 13744 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13745 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13746 | _ACEOF |
| 13747 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13748 | bad_prototypes=yes |
| 13749 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13750 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13751 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13752 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 13753 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13754 | fi |
| 13755 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13756 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13757 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 13758 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 13759 | cat >conftest.$ac_ext <<_ACEOF |
| 13760 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13761 | #include "confdefs.h" |
| 13762 | #include <sys/types.h> |
| 13763 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13764 | #ifdef F77_DUMMY_MAIN |
| 13765 | # ifdef __cplusplus |
| 13766 | extern "C" |
| 13767 | # endif |
| 13768 | int F77_DUMMY_MAIN() { return 1; } |
| 13769 | #endif |
| 13770 | int |
| 13771 | main () |
| 13772 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13773 | struct sockaddr x; |
| 13774 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13775 | ; |
| 13776 | return 0; |
| 13777 | } |
| 13778 | _ACEOF |
| 13779 | rm -f conftest.$ac_objext |
| 13780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13781 | (eval $ac_compile) 2>&5 |
| 13782 | ac_status=$? |
| 13783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13784 | (exit $ac_status); } && |
| 13785 | { ac_try='test -s conftest.$ac_objext' |
| 13786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13787 | (eval $ac_try) 2>&5 |
| 13788 | ac_status=$? |
| 13789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13790 | (exit $ac_status); }; }; then |
| 13791 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13792 | echo "${ECHO_T}yes" >&6 |
| 13793 | |
| 13794 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13795 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13796 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13797 | |
| 13798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13799 | echo "$as_me: failed program was:" >&5 |
| 13800 | cat conftest.$ac_ext >&5 |
| 13801 | echo "$as_me:$LINENO: result: no" >&5 |
| 13802 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13803 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13804 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13806 | echo "$as_me:$LINENO: checking for bad static forward" >&5 |
| 13807 | echo $ECHO_N "checking for bad static forward... $ECHO_C" >&6 |
| 13808 | if test "${ac_cv_bad_static_forward+set}" = set; then |
| 13809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13810 | else |
| 13811 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13812 | ac_cv_bad_static_forward=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13814 | cat >conftest.$ac_ext <<_ACEOF |
| 13815 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13816 | #include "confdefs.h" |
| 13817 | |
| 13818 | struct s { int a; int b; }; |
| 13819 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13820 | int foobar() { |
| 13821 | static int random; |
| 13822 | random = (int) &foo; |
| 13823 | return random; |
| 13824 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13825 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13826 | main() { |
| 13827 | exit(!((int)&foo == foobar())); |
| 13828 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13829 | _ACEOF |
| 13830 | rm -f conftest$ac_exeext |
| 13831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13832 | (eval $ac_link) 2>&5 |
| 13833 | ac_status=$? |
| 13834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13835 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13837 | (eval $ac_try) 2>&5 |
| 13838 | ac_status=$? |
| 13839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13840 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13841 | ac_cv_bad_static_forward=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13842 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13843 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13844 | echo "$as_me: failed program was:" >&5 |
| 13845 | cat conftest.$ac_ext >&5 |
| 13846 | ( exit $ac_status ) |
| 13847 | ac_cv_bad_static_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13848 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13849 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13850 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13851 | fi |
| 13852 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13853 | echo "$as_me:$LINENO: result: $ac_cv_bad_static_forward" >&5 |
| 13854 | echo "${ECHO_T}$ac_cv_bad_static_forward" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13855 | if test "$ac_cv_bad_static_forward" = yes |
| 13856 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13857 | |
| 13858 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13859 | #define BAD_STATIC_FORWARD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13860 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13861 | |
| 13862 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13863 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13864 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13865 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 13866 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 13867 | cat >conftest.$ac_ext <<_ACEOF |
| 13868 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13869 | #include "confdefs.h" |
| 13870 | |
| 13871 | #ifdef HAVE_STDARG_PROTOTYPES |
| 13872 | #include <stdarg.h> |
| 13873 | #else |
| 13874 | #include <varargs.h> |
| 13875 | #endif |
| 13876 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13877 | #ifdef F77_DUMMY_MAIN |
| 13878 | # ifdef __cplusplus |
| 13879 | extern "C" |
| 13880 | # endif |
| 13881 | int F77_DUMMY_MAIN() { return 1; } |
| 13882 | #endif |
| 13883 | int |
| 13884 | main () |
| 13885 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13886 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13887 | ; |
| 13888 | return 0; |
| 13889 | } |
| 13890 | _ACEOF |
| 13891 | rm -f conftest.$ac_objext |
| 13892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13893 | (eval $ac_compile) 2>&5 |
| 13894 | ac_status=$? |
| 13895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13896 | (exit $ac_status); } && |
| 13897 | { ac_try='test -s conftest.$ac_objext' |
| 13898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13899 | (eval $ac_try) 2>&5 |
| 13900 | ac_status=$? |
| 13901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13902 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13903 | : |
| 13904 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13905 | echo "$as_me: failed program was:" >&5 |
| 13906 | cat conftest.$ac_ext >&5 |
| 13907 | |
| 13908 | |
| 13909 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13910 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13911 | _ACEOF |
| 13912 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13913 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13914 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13915 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13916 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13917 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 13918 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13919 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13920 | # 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] | 13921 | |
| 13922 | |
| 13923 | |
| 13924 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 13925 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 13926 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 13927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13929 | cat >conftest.$ac_ext <<_ACEOF |
| 13930 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13931 | #include "confdefs.h" |
| 13932 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13933 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13934 | #include <assert.h> |
| 13935 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13936 | #ifdef __cplusplus |
| 13937 | extern "C" |
| 13938 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13939 | /* 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] | 13940 | builtin and then its argument prototype would still apply. */ |
| 13941 | char gethostbyname_r (); |
| 13942 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13944 | #ifdef F77_DUMMY_MAIN |
| 13945 | # ifdef __cplusplus |
| 13946 | extern "C" |
| 13947 | # endif |
| 13948 | int F77_DUMMY_MAIN() { return 1; } |
| 13949 | #endif |
| 13950 | int |
| 13951 | main () |
| 13952 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13953 | /* The GNU C library defines this for functions which it implements |
| 13954 | to always fail with ENOSYS. Some functions are actually named |
| 13955 | something starting with __ and the normal name is an alias. */ |
| 13956 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 13957 | choke me |
| 13958 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13959 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13960 | #endif |
| 13961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13962 | ; |
| 13963 | return 0; |
| 13964 | } |
| 13965 | _ACEOF |
| 13966 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13968 | (eval $ac_link) 2>&5 |
| 13969 | ac_status=$? |
| 13970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13971 | (exit $ac_status); } && |
| 13972 | { ac_try='test -s conftest$ac_exeext' |
| 13973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13974 | (eval $ac_try) 2>&5 |
| 13975 | ac_status=$? |
| 13976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13977 | (exit $ac_status); }; }; then |
| 13978 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13979 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13980 | echo "$as_me: failed program was:" >&5 |
| 13981 | cat conftest.$ac_ext >&5 |
| 13982 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13983 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13984 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13985 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13986 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 13987 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 13988 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13990 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13991 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13992 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13994 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 13995 | 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] | 13996 | OLD_CFLAGS=$CFLAGS |
| 13997 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13998 | cat >conftest.$ac_ext <<_ACEOF |
| 13999 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14000 | #include "confdefs.h" |
| 14001 | |
| 14002 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14003 | |
| 14004 | #ifdef F77_DUMMY_MAIN |
| 14005 | # ifdef __cplusplus |
| 14006 | extern "C" |
| 14007 | # endif |
| 14008 | int F77_DUMMY_MAIN() { return 1; } |
| 14009 | #endif |
| 14010 | int |
| 14011 | main () |
| 14012 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14013 | |
| 14014 | char *name; |
| 14015 | struct hostent *he, *res; |
| 14016 | char buffer[2048]; |
| 14017 | int buflen = 2048; |
| 14018 | int h_errnop; |
| 14019 | |
| 14020 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14021 | |
| 14022 | ; |
| 14023 | return 0; |
| 14024 | } |
| 14025 | _ACEOF |
| 14026 | rm -f conftest.$ac_objext |
| 14027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14028 | (eval $ac_compile) 2>&5 |
| 14029 | ac_status=$? |
| 14030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14031 | (exit $ac_status); } && |
| 14032 | { ac_try='test -s conftest.$ac_objext' |
| 14033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14034 | (eval $ac_try) 2>&5 |
| 14035 | ac_status=$? |
| 14036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14037 | (exit $ac_status); }; }; then |
| 14038 | |
| 14039 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14040 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14041 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14043 | |
| 14044 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14045 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14046 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14048 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14049 | echo "${ECHO_T}yes" >&6 |
| 14050 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14051 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14052 | echo "$as_me: failed program was:" >&5 |
| 14053 | cat conftest.$ac_ext >&5 |
| 14054 | |
| 14055 | echo "$as_me:$LINENO: result: no" >&5 |
| 14056 | echo "${ECHO_T}no" >&6 |
| 14057 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 14058 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 14059 | cat >conftest.$ac_ext <<_ACEOF |
| 14060 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14061 | #include "confdefs.h" |
| 14062 | |
| 14063 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14064 | |
| 14065 | #ifdef F77_DUMMY_MAIN |
| 14066 | # ifdef __cplusplus |
| 14067 | extern "C" |
| 14068 | # endif |
| 14069 | int F77_DUMMY_MAIN() { return 1; } |
| 14070 | #endif |
| 14071 | int |
| 14072 | main () |
| 14073 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14074 | |
| 14075 | char *name; |
| 14076 | struct hostent *he; |
| 14077 | char buffer[2048]; |
| 14078 | int buflen = 2048; |
| 14079 | int h_errnop; |
| 14080 | |
| 14081 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14082 | |
| 14083 | ; |
| 14084 | return 0; |
| 14085 | } |
| 14086 | _ACEOF |
| 14087 | rm -f conftest.$ac_objext |
| 14088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14089 | (eval $ac_compile) 2>&5 |
| 14090 | ac_status=$? |
| 14091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14092 | (exit $ac_status); } && |
| 14093 | { ac_try='test -s conftest.$ac_objext' |
| 14094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14095 | (eval $ac_try) 2>&5 |
| 14096 | ac_status=$? |
| 14097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14098 | (exit $ac_status); }; }; then |
| 14099 | |
| 14100 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14101 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14102 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14103 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14104 | |
| 14105 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14106 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14107 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14109 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14110 | echo "${ECHO_T}yes" >&6 |
| 14111 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14113 | echo "$as_me: failed program was:" >&5 |
| 14114 | cat conftest.$ac_ext >&5 |
| 14115 | |
| 14116 | echo "$as_me:$LINENO: result: no" >&5 |
| 14117 | echo "${ECHO_T}no" >&6 |
| 14118 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 14119 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 14120 | cat >conftest.$ac_ext <<_ACEOF |
| 14121 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14122 | #include "confdefs.h" |
| 14123 | |
| 14124 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14125 | |
| 14126 | #ifdef F77_DUMMY_MAIN |
| 14127 | # ifdef __cplusplus |
| 14128 | extern "C" |
| 14129 | # endif |
| 14130 | int F77_DUMMY_MAIN() { return 1; } |
| 14131 | #endif |
| 14132 | int |
| 14133 | main () |
| 14134 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14135 | |
| 14136 | char *name; |
| 14137 | struct hostent *he; |
| 14138 | struct hostent_data data; |
| 14139 | |
| 14140 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14141 | |
| 14142 | ; |
| 14143 | return 0; |
| 14144 | } |
| 14145 | _ACEOF |
| 14146 | rm -f conftest.$ac_objext |
| 14147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14148 | (eval $ac_compile) 2>&5 |
| 14149 | ac_status=$? |
| 14150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14151 | (exit $ac_status); } && |
| 14152 | { ac_try='test -s conftest.$ac_objext' |
| 14153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14154 | (eval $ac_try) 2>&5 |
| 14155 | ac_status=$? |
| 14156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14157 | (exit $ac_status); }; }; then |
| 14158 | |
| 14159 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14160 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14161 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14163 | |
| 14164 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14165 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14166 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14168 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14169 | echo "${ECHO_T}yes" >&6 |
| 14170 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14172 | echo "$as_me: failed program was:" >&5 |
| 14173 | cat conftest.$ac_ext >&5 |
| 14174 | |
| 14175 | echo "$as_me:$LINENO: result: no" >&5 |
| 14176 | echo "${ECHO_T}no" >&6 |
| 14177 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14178 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14179 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14180 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14182 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14183 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14184 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14185 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14186 | CFLAGS=$OLD_CFLAGS |
| 14187 | |
| 14188 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14190 | |
| 14191 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14192 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14193 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14194 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14195 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14196 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14198 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14199 | cat >conftest.$ac_ext <<_ACEOF |
| 14200 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14201 | #include "confdefs.h" |
| 14202 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14203 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14204 | #include <assert.h> |
| 14205 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14206 | #ifdef __cplusplus |
| 14207 | extern "C" |
| 14208 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14209 | /* 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] | 14210 | builtin and then its argument prototype would still apply. */ |
| 14211 | char $ac_func (); |
| 14212 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14213 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14214 | #ifdef F77_DUMMY_MAIN |
| 14215 | # ifdef __cplusplus |
| 14216 | extern "C" |
| 14217 | # endif |
| 14218 | int F77_DUMMY_MAIN() { return 1; } |
| 14219 | #endif |
| 14220 | int |
| 14221 | main () |
| 14222 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14223 | /* The GNU C library defines this for functions which it implements |
| 14224 | to always fail with ENOSYS. Some functions are actually named |
| 14225 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14226 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14227 | choke me |
| 14228 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14229 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14230 | #endif |
| 14231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14232 | ; |
| 14233 | return 0; |
| 14234 | } |
| 14235 | _ACEOF |
| 14236 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14238 | (eval $ac_link) 2>&5 |
| 14239 | ac_status=$? |
| 14240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14241 | (exit $ac_status); } && |
| 14242 | { ac_try='test -s conftest$ac_exeext' |
| 14243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14244 | (eval $ac_try) 2>&5 |
| 14245 | ac_status=$? |
| 14246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14247 | (exit $ac_status); }; }; then |
| 14248 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14249 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14250 | echo "$as_me: failed program was:" >&5 |
| 14251 | cat conftest.$ac_ext >&5 |
| 14252 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14253 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14254 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14255 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14256 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14257 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14258 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14259 | cat >>confdefs.h <<_ACEOF |
| 14260 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14261 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14262 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14263 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14264 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14265 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14266 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14267 | fi |
| 14268 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14269 | |
| 14270 | |
| 14271 | |
| 14272 | |
| 14273 | |
| 14274 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14275 | # checks for system services |
| 14276 | # (none yet) |
| 14277 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14278 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14279 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14280 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14281 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14283 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14284 | cat >conftest.$ac_ext <<_ACEOF |
| 14285 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14286 | #include "confdefs.h" |
| 14287 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14288 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14289 | #include <assert.h> |
| 14290 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14291 | #ifdef __cplusplus |
| 14292 | extern "C" |
| 14293 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14294 | /* 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] | 14295 | builtin and then its argument prototype would still apply. */ |
| 14296 | char __fpu_control (); |
| 14297 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14299 | #ifdef F77_DUMMY_MAIN |
| 14300 | # ifdef __cplusplus |
| 14301 | extern "C" |
| 14302 | # endif |
| 14303 | int F77_DUMMY_MAIN() { return 1; } |
| 14304 | #endif |
| 14305 | int |
| 14306 | main () |
| 14307 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14308 | /* The GNU C library defines this for functions which it implements |
| 14309 | to always fail with ENOSYS. Some functions are actually named |
| 14310 | something starting with __ and the normal name is an alias. */ |
| 14311 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14312 | choke me |
| 14313 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14314 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14315 | #endif |
| 14316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14317 | ; |
| 14318 | return 0; |
| 14319 | } |
| 14320 | _ACEOF |
| 14321 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14323 | (eval $ac_link) 2>&5 |
| 14324 | ac_status=$? |
| 14325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14326 | (exit $ac_status); } && |
| 14327 | { ac_try='test -s conftest$ac_exeext' |
| 14328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14329 | (eval $ac_try) 2>&5 |
| 14330 | ac_status=$? |
| 14331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14332 | (exit $ac_status); }; }; then |
| 14333 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14334 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14335 | echo "$as_me: failed program was:" >&5 |
| 14336 | cat conftest.$ac_ext >&5 |
| 14337 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14338 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14339 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14340 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14341 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14342 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14343 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14344 | : |
| 14345 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14346 | |
| 14347 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14348 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14349 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14351 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14352 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14353 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14354 | cat >conftest.$ac_ext <<_ACEOF |
| 14355 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14356 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14357 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14358 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14359 | #ifdef __cplusplus |
| 14360 | extern "C" |
| 14361 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14362 | /* 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] | 14363 | builtin and then its argument prototype would still apply. */ |
| 14364 | char __fpu_control (); |
| 14365 | #ifdef F77_DUMMY_MAIN |
| 14366 | # ifdef __cplusplus |
| 14367 | extern "C" |
| 14368 | # endif |
| 14369 | int F77_DUMMY_MAIN() { return 1; } |
| 14370 | #endif |
| 14371 | int |
| 14372 | main () |
| 14373 | { |
| 14374 | __fpu_control (); |
| 14375 | ; |
| 14376 | return 0; |
| 14377 | } |
| 14378 | _ACEOF |
| 14379 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14381 | (eval $ac_link) 2>&5 |
| 14382 | ac_status=$? |
| 14383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14384 | (exit $ac_status); } && |
| 14385 | { ac_try='test -s conftest$ac_exeext' |
| 14386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14387 | (eval $ac_try) 2>&5 |
| 14388 | ac_status=$? |
| 14389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14390 | (exit $ac_status); }; }; then |
| 14391 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14393 | echo "$as_me: failed program was:" >&5 |
| 14394 | cat conftest.$ac_ext >&5 |
| 14395 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14396 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14397 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14398 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14399 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14400 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 14401 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 14402 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 14403 | cat >>confdefs.h <<_ACEOF |
| 14404 | #define HAVE_LIBIEEE 1 |
| 14405 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14406 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14407 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14408 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14409 | fi |
| 14410 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14411 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14412 | fi |
| 14413 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14414 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14415 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14416 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 14417 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 14418 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14419 | # Check whether --with-fpectl or --without-fpectl was given. |
| 14420 | if test "${with_fpectl+set}" = set; then |
| 14421 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14422 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14423 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14424 | then |
| 14425 | |
| 14426 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14427 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14428 | _ACEOF |
| 14429 | |
| 14430 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14431 | echo "${ECHO_T}yes" >&6 |
| 14432 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14433 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14434 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14436 | echo "$as_me:$LINENO: result: no" >&5 |
| 14437 | echo "${ECHO_T}no" >&6 |
| 14438 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14439 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14440 | # check for --with-libm=... |
| 14441 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14442 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14443 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14444 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14445 | *) LIBM=-lm |
| 14446 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14447 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 14448 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 14449 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14450 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14451 | if test "${with_libm+set}" = set; then |
| 14452 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14453 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14454 | if test "$withval" = no |
| 14455 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14456 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 14457 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14458 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14459 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14460 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 14461 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 14462 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 14463 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 14464 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14465 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14466 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14467 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 14468 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 14469 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14470 | |
| 14471 | # check for --with-libc=... |
| 14472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14473 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 14474 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 14475 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14476 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14477 | if test "${with_libc+set}" = set; then |
| 14478 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14479 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14480 | if test "$withval" = no |
| 14481 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14482 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 14483 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14484 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14485 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14486 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 14487 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 14488 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 14489 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 14490 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14491 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14493 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 14494 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 14495 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14496 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14497 | # check for hypot() in math library |
| 14498 | LIBS_SAVE=$LIBS |
| 14499 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14500 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14501 | for ac_func in hypot |
| 14502 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14503 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14504 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14505 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14506 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14508 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14509 | cat >conftest.$ac_ext <<_ACEOF |
| 14510 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14511 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14512 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14514 | #include <assert.h> |
| 14515 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14516 | #ifdef __cplusplus |
| 14517 | extern "C" |
| 14518 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14519 | /* 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] | 14520 | builtin and then its argument prototype would still apply. */ |
| 14521 | char $ac_func (); |
| 14522 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14523 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14524 | #ifdef F77_DUMMY_MAIN |
| 14525 | # ifdef __cplusplus |
| 14526 | extern "C" |
| 14527 | # endif |
| 14528 | int F77_DUMMY_MAIN() { return 1; } |
| 14529 | #endif |
| 14530 | int |
| 14531 | main () |
| 14532 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14533 | /* The GNU C library defines this for functions which it implements |
| 14534 | to always fail with ENOSYS. Some functions are actually named |
| 14535 | something starting with __ and the normal name is an alias. */ |
| 14536 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14537 | choke me |
| 14538 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14539 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14540 | #endif |
| 14541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14542 | ; |
| 14543 | return 0; |
| 14544 | } |
| 14545 | _ACEOF |
| 14546 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14548 | (eval $ac_link) 2>&5 |
| 14549 | ac_status=$? |
| 14550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14551 | (exit $ac_status); } && |
| 14552 | { ac_try='test -s conftest$ac_exeext' |
| 14553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14554 | (eval $ac_try) 2>&5 |
| 14555 | ac_status=$? |
| 14556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14557 | (exit $ac_status); }; }; then |
| 14558 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14560 | echo "$as_me: failed program was:" >&5 |
| 14561 | cat conftest.$ac_ext >&5 |
| 14562 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14564 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14565 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14566 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14567 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14568 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14569 | cat >>confdefs.h <<_ACEOF |
| 14570 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14571 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14572 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14573 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14574 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14575 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14576 | done |
| 14577 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14578 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14579 | LIBS=$LIBS_SAVE |
| 14580 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14581 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14582 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 14583 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 14584 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 14585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14586 | else |
| 14587 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14588 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14590 | cat >conftest.$ac_ext <<_ACEOF |
| 14591 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14592 | #include "confdefs.h" |
| 14593 | #include <stdio.h> |
| 14594 | #ifdef HAVE_STDLIB |
| 14595 | #include <stdlib.h> |
| 14596 | #else |
| 14597 | char *malloc(), *realloc(); |
| 14598 | int *free(); |
| 14599 | #endif |
| 14600 | main() { |
| 14601 | char *p; |
| 14602 | p = malloc(0); |
| 14603 | if (p == NULL) exit(1); |
| 14604 | p = realloc(p, 0); |
| 14605 | if (p == NULL) exit(1); |
| 14606 | free(p); |
| 14607 | exit(0); |
| 14608 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14609 | _ACEOF |
| 14610 | rm -f conftest$ac_exeext |
| 14611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14612 | (eval $ac_link) 2>&5 |
| 14613 | ac_status=$? |
| 14614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14615 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14617 | (eval $ac_try) 2>&5 |
| 14618 | ac_status=$? |
| 14619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14620 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14621 | ac_cv_malloc_zero=nonnull |
| 14622 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14624 | echo "$as_me: failed program was:" >&5 |
| 14625 | cat conftest.$ac_ext >&5 |
| 14626 | ( exit $ac_status ) |
| 14627 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14628 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14629 | 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] | 14630 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14631 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14632 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14633 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 14634 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14635 | if test "$ac_cv_malloc_zero" = null |
| 14636 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14637 | |
| 14638 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14639 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14640 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14641 | |
| 14642 | fi |
| 14643 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14644 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14645 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14646 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14647 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14648 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14650 | fi |
| 14651 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14652 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14653 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14654 | # Is the header compilable? |
| 14655 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 14656 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 14657 | cat >conftest.$ac_ext <<_ACEOF |
| 14658 | #line $LINENO "configure" |
| 14659 | #include "confdefs.h" |
| 14660 | $ac_includes_default |
| 14661 | #include <wchar.h> |
| 14662 | _ACEOF |
| 14663 | rm -f conftest.$ac_objext |
| 14664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14665 | (eval $ac_compile) 2>&5 |
| 14666 | ac_status=$? |
| 14667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14668 | (exit $ac_status); } && |
| 14669 | { ac_try='test -s conftest.$ac_objext' |
| 14670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14671 | (eval $ac_try) 2>&5 |
| 14672 | ac_status=$? |
| 14673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14674 | (exit $ac_status); }; }; then |
| 14675 | ac_header_compiler=yes |
| 14676 | else |
| 14677 | echo "$as_me: failed program was:" >&5 |
| 14678 | cat conftest.$ac_ext >&5 |
| 14679 | ac_header_compiler=no |
| 14680 | fi |
| 14681 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14682 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14683 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14684 | |
| 14685 | # Is the header present? |
| 14686 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 14687 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 14688 | cat >conftest.$ac_ext <<_ACEOF |
| 14689 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14690 | #include "confdefs.h" |
| 14691 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14692 | _ACEOF |
| 14693 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14694 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14695 | ac_status=$? |
| 14696 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 14697 | rm -f conftest.er1 |
| 14698 | cat conftest.err >&5 |
| 14699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14700 | (exit $ac_status); } >/dev/null; then |
| 14701 | if test -s conftest.err; then |
| 14702 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14703 | else |
| 14704 | ac_cpp_err= |
| 14705 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14706 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14707 | ac_cpp_err=yes |
| 14708 | fi |
| 14709 | if test -z "$ac_cpp_err"; then |
| 14710 | ac_header_preproc=yes |
| 14711 | else |
| 14712 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14713 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14714 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14715 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14716 | rm -f conftest.err conftest.$ac_ext |
| 14717 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14718 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14719 | |
| 14720 | # So? What about this header? |
| 14721 | case $ac_header_compiler:$ac_header_preproc in |
| 14722 | yes:no ) |
| 14723 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14724 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14725 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14726 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14727 | no:yes ) |
| 14728 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 14729 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 14730 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 14731 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 14732 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14733 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14734 | esac |
| 14735 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14736 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14737 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14739 | else |
| 14740 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14741 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14742 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14743 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 14744 | |
| 14745 | fi |
| 14746 | if test $ac_cv_header_wchar_h = yes; then |
| 14747 | |
| 14748 | |
| 14749 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14750 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14751 | _ACEOF |
| 14752 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14753 | wchar_h="yes" |
| 14754 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14756 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14757 | |
| 14758 | fi |
| 14759 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14761 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14762 | # determine wchar_t size |
| 14763 | if test "$wchar_h" = yes |
| 14764 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14765 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 14766 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 14767 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 14768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14769 | else |
| 14770 | cat >conftest.$ac_ext <<_ACEOF |
| 14771 | #line $LINENO "configure" |
| 14772 | #include "confdefs.h" |
| 14773 | #include <wchar.h> |
| 14774 | |
| 14775 | #ifdef F77_DUMMY_MAIN |
| 14776 | # ifdef __cplusplus |
| 14777 | extern "C" |
| 14778 | # endif |
| 14779 | int F77_DUMMY_MAIN() { return 1; } |
| 14780 | #endif |
| 14781 | int |
| 14782 | main () |
| 14783 | { |
| 14784 | if ((wchar_t *) 0) |
| 14785 | return 0; |
| 14786 | if (sizeof (wchar_t)) |
| 14787 | return 0; |
| 14788 | ; |
| 14789 | return 0; |
| 14790 | } |
| 14791 | _ACEOF |
| 14792 | rm -f conftest.$ac_objext |
| 14793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14794 | (eval $ac_compile) 2>&5 |
| 14795 | ac_status=$? |
| 14796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14797 | (exit $ac_status); } && |
| 14798 | { ac_try='test -s conftest.$ac_objext' |
| 14799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14800 | (eval $ac_try) 2>&5 |
| 14801 | ac_status=$? |
| 14802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14803 | (exit $ac_status); }; }; then |
| 14804 | ac_cv_type_wchar_t=yes |
| 14805 | else |
| 14806 | echo "$as_me: failed program was:" >&5 |
| 14807 | cat conftest.$ac_ext >&5 |
| 14808 | ac_cv_type_wchar_t=no |
| 14809 | fi |
| 14810 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14811 | fi |
| 14812 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 14813 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 14814 | |
| 14815 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 14816 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 14817 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 14818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14819 | else |
| 14820 | if test "$ac_cv_type_wchar_t" = yes; then |
| 14821 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14822 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14823 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14824 | # This bug is HP SR number 8606223364. |
| 14825 | if test "$cross_compiling" = yes; then |
| 14826 | # Depending upon the size, compute the lo and hi bounds. |
| 14827 | cat >conftest.$ac_ext <<_ACEOF |
| 14828 | #line $LINENO "configure" |
| 14829 | #include "confdefs.h" |
| 14830 | #include <wchar.h> |
| 14831 | |
| 14832 | #ifdef F77_DUMMY_MAIN |
| 14833 | # ifdef __cplusplus |
| 14834 | extern "C" |
| 14835 | # endif |
| 14836 | int F77_DUMMY_MAIN() { return 1; } |
| 14837 | #endif |
| 14838 | int |
| 14839 | main () |
| 14840 | { |
| 14841 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 14842 | test_array [0] = 0 |
| 14843 | |
| 14844 | ; |
| 14845 | return 0; |
| 14846 | } |
| 14847 | _ACEOF |
| 14848 | rm -f conftest.$ac_objext |
| 14849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14850 | (eval $ac_compile) 2>&5 |
| 14851 | ac_status=$? |
| 14852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14853 | (exit $ac_status); } && |
| 14854 | { ac_try='test -s conftest.$ac_objext' |
| 14855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14856 | (eval $ac_try) 2>&5 |
| 14857 | ac_status=$? |
| 14858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14859 | (exit $ac_status); }; }; then |
| 14860 | ac_lo=0 ac_mid=0 |
| 14861 | while :; do |
| 14862 | cat >conftest.$ac_ext <<_ACEOF |
| 14863 | #line $LINENO "configure" |
| 14864 | #include "confdefs.h" |
| 14865 | #include <wchar.h> |
| 14866 | |
| 14867 | #ifdef F77_DUMMY_MAIN |
| 14868 | # ifdef __cplusplus |
| 14869 | extern "C" |
| 14870 | # endif |
| 14871 | int F77_DUMMY_MAIN() { return 1; } |
| 14872 | #endif |
| 14873 | int |
| 14874 | main () |
| 14875 | { |
| 14876 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14877 | test_array [0] = 0 |
| 14878 | |
| 14879 | ; |
| 14880 | return 0; |
| 14881 | } |
| 14882 | _ACEOF |
| 14883 | rm -f conftest.$ac_objext |
| 14884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14885 | (eval $ac_compile) 2>&5 |
| 14886 | ac_status=$? |
| 14887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14888 | (exit $ac_status); } && |
| 14889 | { ac_try='test -s conftest.$ac_objext' |
| 14890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14891 | (eval $ac_try) 2>&5 |
| 14892 | ac_status=$? |
| 14893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14894 | (exit $ac_status); }; }; then |
| 14895 | ac_hi=$ac_mid; break |
| 14896 | else |
| 14897 | echo "$as_me: failed program was:" >&5 |
| 14898 | cat conftest.$ac_ext >&5 |
| 14899 | ac_lo=`expr $ac_mid + 1` |
| 14900 | if test $ac_lo -le $ac_mid; then |
| 14901 | ac_lo= ac_hi= |
| 14902 | break |
| 14903 | fi |
| 14904 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14905 | fi |
| 14906 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14907 | done |
| 14908 | else |
| 14909 | echo "$as_me: failed program was:" >&5 |
| 14910 | cat conftest.$ac_ext >&5 |
| 14911 | cat >conftest.$ac_ext <<_ACEOF |
| 14912 | #line $LINENO "configure" |
| 14913 | #include "confdefs.h" |
| 14914 | #include <wchar.h> |
| 14915 | |
| 14916 | #ifdef F77_DUMMY_MAIN |
| 14917 | # ifdef __cplusplus |
| 14918 | extern "C" |
| 14919 | # endif |
| 14920 | int F77_DUMMY_MAIN() { return 1; } |
| 14921 | #endif |
| 14922 | int |
| 14923 | main () |
| 14924 | { |
| 14925 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 14926 | test_array [0] = 0 |
| 14927 | |
| 14928 | ; |
| 14929 | return 0; |
| 14930 | } |
| 14931 | _ACEOF |
| 14932 | rm -f conftest.$ac_objext |
| 14933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14934 | (eval $ac_compile) 2>&5 |
| 14935 | ac_status=$? |
| 14936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14937 | (exit $ac_status); } && |
| 14938 | { ac_try='test -s conftest.$ac_objext' |
| 14939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14940 | (eval $ac_try) 2>&5 |
| 14941 | ac_status=$? |
| 14942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14943 | (exit $ac_status); }; }; then |
| 14944 | ac_hi=-1 ac_mid=-1 |
| 14945 | while :; do |
| 14946 | cat >conftest.$ac_ext <<_ACEOF |
| 14947 | #line $LINENO "configure" |
| 14948 | #include "confdefs.h" |
| 14949 | #include <wchar.h> |
| 14950 | |
| 14951 | #ifdef F77_DUMMY_MAIN |
| 14952 | # ifdef __cplusplus |
| 14953 | extern "C" |
| 14954 | # endif |
| 14955 | int F77_DUMMY_MAIN() { return 1; } |
| 14956 | #endif |
| 14957 | int |
| 14958 | main () |
| 14959 | { |
| 14960 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 14961 | test_array [0] = 0 |
| 14962 | |
| 14963 | ; |
| 14964 | return 0; |
| 14965 | } |
| 14966 | _ACEOF |
| 14967 | rm -f conftest.$ac_objext |
| 14968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14969 | (eval $ac_compile) 2>&5 |
| 14970 | ac_status=$? |
| 14971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14972 | (exit $ac_status); } && |
| 14973 | { ac_try='test -s conftest.$ac_objext' |
| 14974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14975 | (eval $ac_try) 2>&5 |
| 14976 | ac_status=$? |
| 14977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14978 | (exit $ac_status); }; }; then |
| 14979 | ac_lo=$ac_mid; break |
| 14980 | else |
| 14981 | echo "$as_me: failed program was:" >&5 |
| 14982 | cat conftest.$ac_ext >&5 |
| 14983 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14984 | if test $ac_mid -le $ac_hi; then |
| 14985 | ac_lo= ac_hi= |
| 14986 | break |
| 14987 | fi |
| 14988 | ac_mid=`expr 2 '*' $ac_mid` |
| 14989 | fi |
| 14990 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14991 | done |
| 14992 | else |
| 14993 | echo "$as_me: failed program was:" >&5 |
| 14994 | cat conftest.$ac_ext >&5 |
| 14995 | ac_lo= ac_hi= |
| 14996 | fi |
| 14997 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14998 | fi |
| 14999 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15000 | # Binary search between lo and hi bounds. |
| 15001 | while test "x$ac_lo" != "x$ac_hi"; do |
| 15002 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 15003 | cat >conftest.$ac_ext <<_ACEOF |
| 15004 | #line $LINENO "configure" |
| 15005 | #include "confdefs.h" |
| 15006 | #include <wchar.h> |
| 15007 | |
| 15008 | #ifdef F77_DUMMY_MAIN |
| 15009 | # ifdef __cplusplus |
| 15010 | extern "C" |
| 15011 | # endif |
| 15012 | int F77_DUMMY_MAIN() { return 1; } |
| 15013 | #endif |
| 15014 | int |
| 15015 | main () |
| 15016 | { |
| 15017 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15018 | test_array [0] = 0 |
| 15019 | |
| 15020 | ; |
| 15021 | return 0; |
| 15022 | } |
| 15023 | _ACEOF |
| 15024 | rm -f conftest.$ac_objext |
| 15025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15026 | (eval $ac_compile) 2>&5 |
| 15027 | ac_status=$? |
| 15028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15029 | (exit $ac_status); } && |
| 15030 | { ac_try='test -s conftest.$ac_objext' |
| 15031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15032 | (eval $ac_try) 2>&5 |
| 15033 | ac_status=$? |
| 15034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15035 | (exit $ac_status); }; }; then |
| 15036 | ac_hi=$ac_mid |
| 15037 | else |
| 15038 | echo "$as_me: failed program was:" >&5 |
| 15039 | cat conftest.$ac_ext >&5 |
| 15040 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 15041 | fi |
| 15042 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15043 | done |
| 15044 | case $ac_lo in |
| 15045 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 15046 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15047 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15048 | { (exit 1); exit 1; }; } ;; |
| 15049 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15050 | else |
| 15051 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15052 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 15053 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 15054 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15056 | cat >conftest.$ac_ext <<_ACEOF |
| 15057 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15058 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15059 | #include <wchar.h> |
| 15060 | |
| 15061 | long longval () { return (long) (sizeof (wchar_t)); } |
| 15062 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15063 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15064 | #include <stdlib.h> |
| 15065 | #ifdef F77_DUMMY_MAIN |
| 15066 | # ifdef __cplusplus |
| 15067 | extern "C" |
| 15068 | # endif |
| 15069 | int F77_DUMMY_MAIN() { return 1; } |
| 15070 | #endif |
| 15071 | int |
| 15072 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15073 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15074 | |
| 15075 | FILE *f = fopen ("conftest.val", "w"); |
| 15076 | if (! f) |
| 15077 | exit (1); |
| 15078 | if (((long) (sizeof (wchar_t))) < 0) |
| 15079 | { |
| 15080 | long i = longval (); |
| 15081 | if (i != ((long) (sizeof (wchar_t)))) |
| 15082 | exit (1); |
| 15083 | fprintf (f, "%ld\n", i); |
| 15084 | } |
| 15085 | else |
| 15086 | { |
| 15087 | unsigned long i = ulongval (); |
| 15088 | if (i != ((long) (sizeof (wchar_t)))) |
| 15089 | exit (1); |
| 15090 | fprintf (f, "%lu\n", i); |
| 15091 | } |
| 15092 | exit (ferror (f) || fclose (f) != 0); |
| 15093 | |
| 15094 | ; |
| 15095 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15096 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 | _ACEOF |
| 15098 | rm -f conftest$ac_exeext |
| 15099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15100 | (eval $ac_link) 2>&5 |
| 15101 | ac_status=$? |
| 15102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15103 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15105 | (eval $ac_try) 2>&5 |
| 15106 | ac_status=$? |
| 15107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15108 | (exit $ac_status); }; }; then |
| 15109 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15110 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15111 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15112 | echo "$as_me: failed program was:" >&5 |
| 15113 | cat conftest.$ac_ext >&5 |
| 15114 | ( exit $ac_status ) |
| 15115 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15116 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15117 | { (exit 1); exit 1; }; } |
| 15118 | fi |
| 15119 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15120 | fi |
| 15121 | fi |
| 15122 | rm -f conftest.val |
| 15123 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15124 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15125 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15126 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15127 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 15128 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 15129 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15130 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15131 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15132 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15133 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15134 | fi |
| 15135 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15136 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 15137 | 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] | 15138 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15139 | if test "${enable_unicode+set}" = set; then |
| 15140 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15141 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15142 | else |
| 15143 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15144 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15145 | |
| 15146 | if test $enable_unicode = yes |
| 15147 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15148 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15149 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15150 | fi |
| 15151 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15152 | |
| 15153 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15154 | case "$enable_unicode" in |
| 15155 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15157 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15158 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15159 | |
| 15160 | ;; |
| 15161 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15162 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15163 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15164 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15165 | |
| 15166 | ;; |
| 15167 | esac |
| 15168 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15170 | |
| 15171 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15172 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15173 | if test "$enable_unicode" = "no" |
| 15174 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15175 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15176 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15177 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15178 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15179 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15180 | |
| 15181 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15182 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15183 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15184 | |
| 15185 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15186 | then |
| 15187 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15189 | cat >>confdefs.h <<\_ACEOF |
| 15190 | #define HAVE_USABLE_WCHAR_T 1 |
| 15191 | _ACEOF |
| 15192 | |
| 15193 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15194 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15195 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15196 | |
| 15197 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15198 | then |
| 15199 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15200 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15201 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15202 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15203 | |
| 15204 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15205 | then |
| 15206 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15207 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15208 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15209 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15210 | |
| 15211 | else |
| 15212 | PY_UNICODE_TYPE="no type found" |
| 15213 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15214 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15215 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15216 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15217 | |
| 15218 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15219 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15220 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15221 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15223 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15225 | cat >conftest.$ac_ext <<_ACEOF |
| 15226 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15227 | #include "confdefs.h" |
| 15228 | #include <sys/types.h> |
| 15229 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15231 | #ifdef F77_DUMMY_MAIN |
| 15232 | # ifdef __cplusplus |
| 15233 | extern "C" |
| 15234 | # endif |
| 15235 | int F77_DUMMY_MAIN() { return 1; } |
| 15236 | #endif |
| 15237 | int |
| 15238 | main () |
| 15239 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15240 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15241 | bogus endian macros |
| 15242 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15243 | |
| 15244 | ; |
| 15245 | return 0; |
| 15246 | } |
| 15247 | _ACEOF |
| 15248 | rm -f conftest.$ac_objext |
| 15249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15250 | (eval $ac_compile) 2>&5 |
| 15251 | ac_status=$? |
| 15252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15253 | (exit $ac_status); } && |
| 15254 | { ac_try='test -s conftest.$ac_objext' |
| 15255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15256 | (eval $ac_try) 2>&5 |
| 15257 | ac_status=$? |
| 15258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15259 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15260 | # 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] | 15261 | cat >conftest.$ac_ext <<_ACEOF |
| 15262 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15263 | #include "confdefs.h" |
| 15264 | #include <sys/types.h> |
| 15265 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15267 | #ifdef F77_DUMMY_MAIN |
| 15268 | # ifdef __cplusplus |
| 15269 | extern "C" |
| 15270 | # endif |
| 15271 | int F77_DUMMY_MAIN() { return 1; } |
| 15272 | #endif |
| 15273 | int |
| 15274 | main () |
| 15275 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15276 | #if BYTE_ORDER != BIG_ENDIAN |
| 15277 | not big endian |
| 15278 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15279 | |
| 15280 | ; |
| 15281 | return 0; |
| 15282 | } |
| 15283 | _ACEOF |
| 15284 | rm -f conftest.$ac_objext |
| 15285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15286 | (eval $ac_compile) 2>&5 |
| 15287 | ac_status=$? |
| 15288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15289 | (exit $ac_status); } && |
| 15290 | { ac_try='test -s conftest.$ac_objext' |
| 15291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15292 | (eval $ac_try) 2>&5 |
| 15293 | ac_status=$? |
| 15294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15295 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15296 | ac_cv_c_bigendian=yes |
| 15297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15298 | echo "$as_me: failed program was:" >&5 |
| 15299 | cat conftest.$ac_ext >&5 |
| 15300 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15301 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15302 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15304 | echo "$as_me: failed program was:" >&5 |
| 15305 | cat conftest.$ac_ext >&5 |
| 15306 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15307 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15308 | # try to guess the endianess by grep'ing values into an object file |
| 15309 | ac_cv_c_bigendian=unknown |
| 15310 | cat >conftest.$ac_ext <<_ACEOF |
| 15311 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15312 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15313 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15314 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15315 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15316 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15317 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15318 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15319 | #ifdef F77_DUMMY_MAIN |
| 15320 | # ifdef __cplusplus |
| 15321 | extern "C" |
| 15322 | # endif |
| 15323 | int F77_DUMMY_MAIN() { return 1; } |
| 15324 | #endif |
| 15325 | int |
| 15326 | main () |
| 15327 | { |
| 15328 | _ascii (); _ebcdic (); |
| 15329 | ; |
| 15330 | return 0; |
| 15331 | } |
| 15332 | _ACEOF |
| 15333 | rm -f conftest.$ac_objext |
| 15334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15335 | (eval $ac_compile) 2>&5 |
| 15336 | ac_status=$? |
| 15337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15338 | (exit $ac_status); } && |
| 15339 | { ac_try='test -s conftest.$ac_objext' |
| 15340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15341 | (eval $ac_try) 2>&5 |
| 15342 | ac_status=$? |
| 15343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15344 | (exit $ac_status); }; }; then |
| 15345 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15346 | ac_cv_c_bigendian=yes |
| 15347 | fi |
| 15348 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15349 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15350 | ac_cv_c_bigendian=no |
| 15351 | else |
| 15352 | # finding both strings is unlikely to happen, but who knows? |
| 15353 | ac_cv_c_bigendian=unknown |
| 15354 | fi |
| 15355 | fi |
| 15356 | else |
| 15357 | echo "$as_me: failed program was:" >&5 |
| 15358 | cat conftest.$ac_ext >&5 |
| 15359 | fi |
| 15360 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15361 | else |
| 15362 | cat >conftest.$ac_ext <<_ACEOF |
| 15363 | #line $LINENO "configure" |
| 15364 | #include "confdefs.h" |
| 15365 | int |
| 15366 | main () |
| 15367 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15368 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15369 | union |
| 15370 | { |
| 15371 | long l; |
| 15372 | char c[sizeof (long)]; |
| 15373 | } u; |
| 15374 | u.l = 1; |
| 15375 | exit (u.c[sizeof (long) - 1] == 1); |
| 15376 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15377 | _ACEOF |
| 15378 | rm -f conftest$ac_exeext |
| 15379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15380 | (eval $ac_link) 2>&5 |
| 15381 | ac_status=$? |
| 15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15383 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15385 | (eval $ac_try) 2>&5 |
| 15386 | ac_status=$? |
| 15387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15388 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15389 | ac_cv_c_bigendian=no |
| 15390 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15391 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15392 | echo "$as_me: failed program was:" >&5 |
| 15393 | cat conftest.$ac_ext >&5 |
| 15394 | ( exit $ac_status ) |
| 15395 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15396 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15397 | 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] | 15398 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15399 | fi |
| 15400 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15401 | fi |
| 15402 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15403 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 15404 | case $ac_cv_c_bigendian in |
| 15405 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15407 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15408 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15409 | _ACEOF |
| 15410 | ;; |
| 15411 | no) |
| 15412 | ;; |
| 15413 | *) |
| 15414 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 15415 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15416 | echo "$as_me: error: unknown endianess |
| 15417 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15418 | { (exit 1); exit 1; }; } ;; |
| 15419 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15420 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15421 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15422 | # Check whether right shifting a negative integer extends the sign bit |
| 15423 | # 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] | 15424 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 15425 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 15426 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 15427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15429 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15430 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15431 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15432 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15433 | cat >conftest.$ac_ext <<_ACEOF |
| 15434 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15435 | #include "confdefs.h" |
| 15436 | |
| 15437 | int main() |
| 15438 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15439 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15440 | } |
| 15441 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15442 | _ACEOF |
| 15443 | rm -f conftest$ac_exeext |
| 15444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15445 | (eval $ac_link) 2>&5 |
| 15446 | ac_status=$? |
| 15447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15448 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15450 | (eval $ac_try) 2>&5 |
| 15451 | ac_status=$? |
| 15452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15453 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15454 | ac_cv_rshift_extends_sign=yes |
| 15455 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15456 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15457 | echo "$as_me: failed program was:" >&5 |
| 15458 | cat conftest.$ac_ext >&5 |
| 15459 | ( exit $ac_status ) |
| 15460 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15461 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15462 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15463 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15464 | fi |
| 15465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15466 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 15467 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15468 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15469 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15470 | |
| 15471 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15472 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15473 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15474 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15475 | fi |
| 15476 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15477 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15478 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 15479 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 15480 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 15481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15483 | |
| 15484 | cat >conftest.$ac_ext <<_ACEOF |
| 15485 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15486 | #include "confdefs.h" |
| 15487 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15488 | #ifdef F77_DUMMY_MAIN |
| 15489 | # ifdef __cplusplus |
| 15490 | extern "C" |
| 15491 | # endif |
| 15492 | int F77_DUMMY_MAIN() { return 1; } |
| 15493 | #endif |
| 15494 | int |
| 15495 | main () |
| 15496 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15497 | |
| 15498 | FILE *f = fopen("/dev/null", "r"); |
| 15499 | flockfile(f); |
| 15500 | getc_unlocked(f); |
| 15501 | funlockfile(f); |
| 15502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15503 | ; |
| 15504 | return 0; |
| 15505 | } |
| 15506 | _ACEOF |
| 15507 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15509 | (eval $ac_link) 2>&5 |
| 15510 | ac_status=$? |
| 15511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15512 | (exit $ac_status); } && |
| 15513 | { ac_try='test -s conftest$ac_exeext' |
| 15514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15515 | (eval $ac_try) 2>&5 |
| 15516 | ac_status=$? |
| 15517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15518 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15519 | ac_cv_have_getc_unlocked=yes |
| 15520 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15521 | echo "$as_me: failed program was:" >&5 |
| 15522 | cat conftest.$ac_ext >&5 |
| 15523 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15524 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15525 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15526 | fi |
| 15527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15528 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 15529 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15530 | if test "$ac_cv_have_getc_unlocked" = yes |
| 15531 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15532 | |
| 15533 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15534 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15535 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15536 | |
| 15537 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15538 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15539 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15540 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 15541 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 15542 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 15543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15544 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15545 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15546 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15547 | cat >conftest.$ac_ext <<_ACEOF |
| 15548 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15549 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15550 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15551 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15552 | #ifdef __cplusplus |
| 15553 | extern "C" |
| 15554 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15555 | /* 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] | 15556 | builtin and then its argument prototype would still apply. */ |
| 15557 | char rl_pre_input_hook (); |
| 15558 | #ifdef F77_DUMMY_MAIN |
| 15559 | # ifdef __cplusplus |
| 15560 | extern "C" |
| 15561 | # endif |
| 15562 | int F77_DUMMY_MAIN() { return 1; } |
| 15563 | #endif |
| 15564 | int |
| 15565 | main () |
| 15566 | { |
| 15567 | rl_pre_input_hook (); |
| 15568 | ; |
| 15569 | return 0; |
| 15570 | } |
| 15571 | _ACEOF |
| 15572 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15574 | (eval $ac_link) 2>&5 |
| 15575 | ac_status=$? |
| 15576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15577 | (exit $ac_status); } && |
| 15578 | { ac_try='test -s conftest$ac_exeext' |
| 15579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15580 | (eval $ac_try) 2>&5 |
| 15581 | ac_status=$? |
| 15582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15583 | (exit $ac_status); }; }; then |
| 15584 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15585 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15586 | echo "$as_me: failed program was:" >&5 |
| 15587 | cat conftest.$ac_ext >&5 |
| 15588 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15589 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15590 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15591 | LIBS=$ac_check_lib_save_LIBS |
| 15592 | fi |
| 15593 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 15594 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 15595 | 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] | 15596 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15597 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15598 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15599 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15600 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15601 | fi |
| 15602 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15603 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15604 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15605 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 15606 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 15607 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 15608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15610 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15611 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15612 | cat >conftest.$ac_ext <<_ACEOF |
| 15613 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15614 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15615 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15616 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15617 | #ifdef __cplusplus |
| 15618 | extern "C" |
| 15619 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15620 | /* 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] | 15621 | builtin and then its argument prototype would still apply. */ |
| 15622 | char rl_completion_matches (); |
| 15623 | #ifdef F77_DUMMY_MAIN |
| 15624 | # ifdef __cplusplus |
| 15625 | extern "C" |
| 15626 | # endif |
| 15627 | int F77_DUMMY_MAIN() { return 1; } |
| 15628 | #endif |
| 15629 | int |
| 15630 | main () |
| 15631 | { |
| 15632 | rl_completion_matches (); |
| 15633 | ; |
| 15634 | return 0; |
| 15635 | } |
| 15636 | _ACEOF |
| 15637 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15639 | (eval $ac_link) 2>&5 |
| 15640 | ac_status=$? |
| 15641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15642 | (exit $ac_status); } && |
| 15643 | { ac_try='test -s conftest$ac_exeext' |
| 15644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15645 | (eval $ac_try) 2>&5 |
| 15646 | ac_status=$? |
| 15647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15648 | (exit $ac_status); }; }; then |
| 15649 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15651 | echo "$as_me: failed program was:" >&5 |
| 15652 | cat conftest.$ac_ext >&5 |
| 15653 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15654 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15655 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15656 | LIBS=$ac_check_lib_save_LIBS |
| 15657 | fi |
| 15658 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 15659 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 15660 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15662 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15663 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15664 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15665 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15666 | fi |
| 15667 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15669 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 15670 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 15671 | if test "${ac_cv_broken_nice+set}" = set; then |
| 15672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15674 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15675 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15676 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15678 | cat >conftest.$ac_ext <<_ACEOF |
| 15679 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15680 | #include "confdefs.h" |
| 15681 | |
| 15682 | int main() |
| 15683 | { |
| 15684 | int val1 = nice(1); |
| 15685 | if (val1 != -1 && val1 == nice(2)) |
| 15686 | exit(0); |
| 15687 | exit(1); |
| 15688 | } |
| 15689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15690 | _ACEOF |
| 15691 | rm -f conftest$ac_exeext |
| 15692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15693 | (eval $ac_link) 2>&5 |
| 15694 | ac_status=$? |
| 15695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15696 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15698 | (eval $ac_try) 2>&5 |
| 15699 | ac_status=$? |
| 15700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15701 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15702 | ac_cv_broken_nice=yes |
| 15703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15704 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15705 | echo "$as_me: failed program was:" >&5 |
| 15706 | cat conftest.$ac_ext >&5 |
| 15707 | ( exit $ac_status ) |
| 15708 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15709 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15710 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15711 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15712 | fi |
| 15713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15714 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 15715 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15716 | if test "$ac_cv_broken_nice" = yes |
| 15717 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15718 | |
| 15719 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15720 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15721 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15722 | |
| 15723 | fi |
| 15724 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15725 | # 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] | 15726 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 15727 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 15728 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 15729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15731 | cat >conftest.$ac_ext <<_ACEOF |
| 15732 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15733 | #include "confdefs.h" |
| 15734 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15735 | #ifdef F77_DUMMY_MAIN |
| 15736 | # ifdef __cplusplus |
| 15737 | extern "C" |
| 15738 | # endif |
| 15739 | int F77_DUMMY_MAIN() { return 1; } |
| 15740 | #endif |
| 15741 | int |
| 15742 | main () |
| 15743 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15744 | |
| 15745 | int rtn; |
| 15746 | rtn = mvwdelch(0,0,0); |
| 15747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15748 | ; |
| 15749 | return 0; |
| 15750 | } |
| 15751 | _ACEOF |
| 15752 | rm -f conftest.$ac_objext |
| 15753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15754 | (eval $ac_compile) 2>&5 |
| 15755 | ac_status=$? |
| 15756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15757 | (exit $ac_status); } && |
| 15758 | { ac_try='test -s conftest.$ac_objext' |
| 15759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15760 | (eval $ac_try) 2>&5 |
| 15761 | ac_status=$? |
| 15762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15763 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15764 | ac_cv_mvwdelch_is_expression=yes |
| 15765 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15766 | echo "$as_me: failed program was:" >&5 |
| 15767 | cat conftest.$ac_ext >&5 |
| 15768 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15769 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15770 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15771 | fi |
| 15772 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15773 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 15774 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15775 | |
| 15776 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 15777 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15778 | |
| 15779 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15780 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15781 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15782 | |
| 15783 | fi |
| 15784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15785 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 15786 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 15787 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 15788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15790 | cat >conftest.$ac_ext <<_ACEOF |
| 15791 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15792 | #include "confdefs.h" |
| 15793 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15794 | #ifdef F77_DUMMY_MAIN |
| 15795 | # ifdef __cplusplus |
| 15796 | extern "C" |
| 15797 | # endif |
| 15798 | int F77_DUMMY_MAIN() { return 1; } |
| 15799 | #endif |
| 15800 | int |
| 15801 | main () |
| 15802 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15803 | |
| 15804 | WINDOW *w; |
| 15805 | w->_flags = 0; |
| 15806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15807 | ; |
| 15808 | return 0; |
| 15809 | } |
| 15810 | _ACEOF |
| 15811 | rm -f conftest.$ac_objext |
| 15812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15813 | (eval $ac_compile) 2>&5 |
| 15814 | ac_status=$? |
| 15815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15816 | (exit $ac_status); } && |
| 15817 | { ac_try='test -s conftest.$ac_objext' |
| 15818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15819 | (eval $ac_try) 2>&5 |
| 15820 | ac_status=$? |
| 15821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15822 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15823 | ac_cv_window_has_flags=yes |
| 15824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15825 | echo "$as_me: failed program was:" >&5 |
| 15826 | cat conftest.$ac_ext >&5 |
| 15827 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15828 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15829 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15830 | fi |
| 15831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15832 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 15833 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15834 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15835 | |
| 15836 | if test "$ac_cv_window_has_flags" = yes |
| 15837 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15838 | |
| 15839 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15840 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15841 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15842 | |
| 15843 | fi |
| 15844 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15845 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 15846 | # Add sys/socket.h to confdefs.h |
| 15847 | cat >> confdefs.h <<\EOF |
| 15848 | #ifdef HAVE_SYS_SOCKET_H |
| 15849 | #include <sys/socket.h> |
| 15850 | #endif |
| 15851 | EOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15852 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 15853 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 15854 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 15855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15856 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15857 | cat >conftest.$ac_ext <<_ACEOF |
| 15858 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15859 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15860 | $ac_includes_default |
| 15861 | #ifdef F77_DUMMY_MAIN |
| 15862 | # ifdef __cplusplus |
| 15863 | extern "C" |
| 15864 | # endif |
| 15865 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15866 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15867 | int |
| 15868 | main () |
| 15869 | { |
| 15870 | if ((socklen_t *) 0) |
| 15871 | return 0; |
| 15872 | if (sizeof (socklen_t)) |
| 15873 | return 0; |
| 15874 | ; |
| 15875 | return 0; |
| 15876 | } |
| 15877 | _ACEOF |
| 15878 | rm -f conftest.$ac_objext |
| 15879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15880 | (eval $ac_compile) 2>&5 |
| 15881 | ac_status=$? |
| 15882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15883 | (exit $ac_status); } && |
| 15884 | { ac_try='test -s conftest.$ac_objext' |
| 15885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15886 | (eval $ac_try) 2>&5 |
| 15887 | ac_status=$? |
| 15888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15889 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15890 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15892 | echo "$as_me: failed program was:" >&5 |
| 15893 | cat conftest.$ac_ext >&5 |
| 15894 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15895 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15896 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15897 | fi |
| 15898 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 15899 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 15900 | if test $ac_cv_type_socklen_t = yes; then |
| 15901 | : |
| 15902 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15904 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15905 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15906 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15907 | |
| 15908 | fi |
| 15909 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15910 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15911 | #AC_MSG_CHECKING(for Modules/Setup) |
| 15912 | #if test ! -f Modules/Setup ; then |
| 15913 | # if test ! -d Modules ; then |
| 15914 | # mkdir Modules |
| 15915 | # fi |
| 15916 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 15917 | # AC_MSG_RESULT(creating) |
| 15918 | #else |
| 15919 | # AC_MSG_RESULT(already exists) |
| 15920 | #fi |
| 15921 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15922 | |
| 15923 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 15924 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 15925 | do |
| 15926 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 15927 | done |
| 15928 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15929 | |
Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 15930 | SRCDIRS="Parser Grammar Objects Python Modules" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15931 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 15932 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15933 | for dir in $SRCDIRS; do |
| 15934 | if test ! -d $dir; then |
| 15935 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 15936 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15937 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15938 | echo "$as_me:$LINENO: result: done" >&5 |
| 15939 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 15940 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15941 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15942 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
| 15943 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15944 | # This file is a shell script that caches the results of configure |
| 15945 | # 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] | 15946 | # scripts and configure runs, see configure's option --config-cache. |
| 15947 | # It is not useful on other systems. If it contains results you don't |
| 15948 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15949 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15950 | # config.status only pays attention to the cache file if you give it |
| 15951 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15952 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15953 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 15954 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15955 | # following values. |
| 15956 | |
| 15957 | _ACEOF |
| 15958 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15959 | # The following way of writing the cache mishandles newlines in values, |
| 15960 | # but we know of no workaround that is simple, portable, and efficient. |
| 15961 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15962 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15963 | # 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] | 15964 | { |
| 15965 | (set) 2>&1 | |
| 15966 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15967 | *ac_space=\ *) |
| 15968 | # `set' does not quote correctly, so add quotes (double-quote |
| 15969 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15970 | sed -n \ |
| 15971 | "s/'/'\\\\''/g; |
| 15972 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15973 | ;; |
| 15974 | *) |
| 15975 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15976 | sed -n \ |
| 15977 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15978 | ;; |
| 15979 | esac; |
| 15980 | } | |
| 15981 | sed ' |
| 15982 | t clear |
| 15983 | : clear |
| 15984 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15985 | t end |
| 15986 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15987 | : end' >>confcache |
| 15988 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15989 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15990 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15991 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15992 | else |
| 15993 | echo "not updating unwritable cache $cache_file" |
| 15994 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15995 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15996 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15997 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15998 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15999 | # Let make expand exec_prefix. |
| 16000 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16002 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16003 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16004 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16005 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16006 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16007 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16008 | s/:*\$(srcdir):*/:/; |
| 16009 | s/:*\${srcdir}:*/:/; |
| 16010 | s/:*@srcdir@:*/:/; |
| 16011 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16012 | s/:*$//; |
| 16013 | s/^[^=]*=[ ]*$//; |
| 16014 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16015 | fi |
| 16016 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16017 | DEFS=-DHAVE_CONFIG_H |
| 16018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16019 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16020 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16021 | ac_clean_files_save=$ac_clean_files |
| 16022 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16023 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16024 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16025 | cat >$CONFIG_STATUS <<_ACEOF |
| 16026 | #! $SHELL |
| 16027 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16028 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16029 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16030 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16032 | debug=false |
| 16033 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16034 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16036 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16038 | ## --------------------- ## |
| 16039 | ## M4sh Initialization. ## |
| 16040 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16041 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16042 | # Be Bourne compatible |
| 16043 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16044 | emulate sh |
| 16045 | NULLCMD=: |
| 16046 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16047 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16048 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16049 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16050 | # NLS nuisances. |
| 16051 | # Support unset when possible. |
| 16052 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16053 | as_unset=unset |
| 16054 | else |
| 16055 | as_unset=false |
| 16056 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16058 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 16059 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 16060 | { LANG=C; export LANG; } |
| 16061 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 16062 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 16063 | { LC_ALL=C; export LC_ALL; } |
| 16064 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 16065 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 16066 | { LC_TIME=C; export LC_TIME; } |
| 16067 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 16068 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 16069 | { LC_CTYPE=C; export LC_CTYPE; } |
| 16070 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 16071 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 16072 | { LANGUAGE=C; export LANGUAGE; } |
| 16073 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 16074 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 16075 | { LC_COLLATE=C; export LC_COLLATE; } |
| 16076 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 16077 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 16078 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 16079 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 16080 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 16081 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 16082 | |
| 16083 | |
| 16084 | # Name of the executable. |
| 16085 | as_me=`(basename "$0") 2>/dev/null || |
| 16086 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16087 | X"$0" : 'X\(//\)$' \| \ |
| 16088 | X"$0" : 'X\(/\)$' \| \ |
| 16089 | . : '\(.\)' 2>/dev/null || |
| 16090 | echo X/"$0" | |
| 16091 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16092 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16093 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16094 | s/.*/./; q'` |
| 16095 | |
| 16096 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16097 | # Avoid depending upon Character Ranges. |
| 16098 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16099 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16100 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16101 | as_cr_digits='0123456789' |
| 16102 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16103 | |
| 16104 | # The user is always right. |
| 16105 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16106 | echo "#! /bin/sh" >conftest.sh |
| 16107 | echo "exit 0" >>conftest.sh |
| 16108 | chmod +x conftest.sh |
| 16109 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 16110 | PATH_SEPARATOR=';' |
| 16111 | else |
| 16112 | PATH_SEPARATOR=: |
| 16113 | fi |
| 16114 | rm -f conftest.sh |
| 16115 | fi |
| 16116 | |
| 16117 | |
| 16118 | as_lineno_1=$LINENO |
| 16119 | as_lineno_2=$LINENO |
| 16120 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16121 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16122 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16123 | # Find who we are. Look in the path if we contain no path at all |
| 16124 | # relative or not. |
| 16125 | case $0 in |
| 16126 | *[\\/]* ) as_myself=$0 ;; |
| 16127 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16128 | for as_dir in $PATH |
| 16129 | do |
| 16130 | IFS=$as_save_IFS |
| 16131 | test -z "$as_dir" && as_dir=. |
| 16132 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16133 | done |
| 16134 | |
| 16135 | ;; |
| 16136 | esac |
| 16137 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16138 | # in which case we are not to be found in the path. |
| 16139 | if test "x$as_myself" = x; then |
| 16140 | as_myself=$0 |
| 16141 | fi |
| 16142 | if test ! -f "$as_myself"; then |
| 16143 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16144 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16145 | { (exit 1); exit 1; }; } |
| 16146 | fi |
| 16147 | case $CONFIG_SHELL in |
| 16148 | '') |
| 16149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16150 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16151 | do |
| 16152 | IFS=$as_save_IFS |
| 16153 | test -z "$as_dir" && as_dir=. |
| 16154 | for as_base in sh bash ksh sh5; do |
| 16155 | case $as_dir in |
| 16156 | /*) |
| 16157 | if ("$as_dir/$as_base" -c ' |
| 16158 | as_lineno_1=$LINENO |
| 16159 | as_lineno_2=$LINENO |
| 16160 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16161 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16162 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 16163 | CONFIG_SHELL=$as_dir/$as_base |
| 16164 | export CONFIG_SHELL |
| 16165 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16166 | fi;; |
| 16167 | esac |
| 16168 | done |
| 16169 | done |
| 16170 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16171 | esac |
| 16172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16173 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16174 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16175 | # line-number line before each line; the second 'sed' does the real |
| 16176 | # work. The second script uses 'N' to pair each line-number line |
| 16177 | # with the numbered line, and appends trailing '-' during |
| 16178 | # substitution so that $LINENO is not a special case at line end. |
| 16179 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16180 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16181 | sed '=' <$as_myself | |
| 16182 | sed ' |
| 16183 | N |
| 16184 | s,$,-, |
| 16185 | : loop |
| 16186 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16187 | t loop |
| 16188 | s,-$,, |
| 16189 | s,^['$as_cr_digits']*\n,, |
| 16190 | ' >$as_me.lineno && |
| 16191 | chmod +x $as_me.lineno || |
| 16192 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16193 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16194 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16196 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16197 | # (the dirname of $[0] is not the place where we might find the |
| 16198 | # original and so on. Autoconf is especially sensible to this). |
| 16199 | . ./$as_me.lineno |
| 16200 | # Exit status is that of the last command. |
| 16201 | exit |
| 16202 | } |
| 16203 | |
| 16204 | |
| 16205 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16206 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16207 | ' ECHO_T=' ' ;; |
| 16208 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16209 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16210 | esac |
| 16211 | |
| 16212 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16213 | as_expr=expr |
| 16214 | else |
| 16215 | as_expr=false |
| 16216 | fi |
| 16217 | |
| 16218 | rm -f conf$$ conf$$.exe conf$$.file |
| 16219 | echo >conf$$.file |
| 16220 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16221 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16222 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16223 | if test -f conf$$.exe; then |
| 16224 | # Don't use ln at all; we don't have any links |
| 16225 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16227 | as_ln_s='ln -s' |
| 16228 | fi |
| 16229 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16230 | as_ln_s=ln |
| 16231 | else |
| 16232 | as_ln_s='cp -p' |
| 16233 | fi |
| 16234 | rm -f conf$$ conf$$.exe conf$$.file |
| 16235 | |
| 16236 | as_executable_p="test -f" |
| 16237 | |
| 16238 | # Sed expression to map a string onto a valid CPP name. |
| 16239 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16240 | |
| 16241 | # Sed expression to map a string onto a valid variable name. |
| 16242 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16243 | |
| 16244 | |
| 16245 | # IFS |
| 16246 | # We need space, tab and new line, in precisely that order. |
| 16247 | as_nl=' |
| 16248 | ' |
| 16249 | IFS=" $as_nl" |
| 16250 | |
| 16251 | # CDPATH. |
| 16252 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16253 | |
| 16254 | exec 6>&1 |
| 16255 | |
| 16256 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16257 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16258 | # values after options handling. Logging --version etc. is OK. |
| 16259 | exec 5>>config.log |
| 16260 | { |
| 16261 | echo |
| 16262 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16263 | ## Running $as_me. ## |
| 16264 | _ASBOX |
| 16265 | } >&5 |
| 16266 | cat >&5 <<_CSEOF |
| 16267 | |
| 16268 | This file was extended by $as_me, which was |
| 16269 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16270 | |
| 16271 | CONFIG_FILES = $CONFIG_FILES |
| 16272 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16273 | CONFIG_LINKS = $CONFIG_LINKS |
| 16274 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16275 | $ $0 $@ |
| 16276 | |
| 16277 | _CSEOF |
| 16278 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16279 | echo >&5 |
| 16280 | _ACEOF |
| 16281 | |
| 16282 | # Files that config.status was made for. |
| 16283 | if test -n "$ac_config_files"; then |
| 16284 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16285 | fi |
| 16286 | |
| 16287 | if test -n "$ac_config_headers"; then |
| 16288 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16289 | fi |
| 16290 | |
| 16291 | if test -n "$ac_config_links"; then |
| 16292 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16293 | fi |
| 16294 | |
| 16295 | if test -n "$ac_config_commands"; then |
| 16296 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16297 | fi |
| 16298 | |
| 16299 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16300 | |
| 16301 | ac_cs_usage="\ |
| 16302 | \`$as_me' instantiates files from templates according to the |
| 16303 | current configuration. |
| 16304 | |
| 16305 | Usage: $0 [OPTIONS] [FILE]... |
| 16306 | |
| 16307 | -h, --help print this help, then exit |
| 16308 | -V, --version print version number, then exit |
| 16309 | -d, --debug don't remove temporary files |
| 16310 | --recheck update $as_me by reconfiguring in the same conditions |
| 16311 | --file=FILE[:TEMPLATE] |
| 16312 | instantiate the configuration file FILE |
| 16313 | --header=FILE[:TEMPLATE] |
| 16314 | instantiate the configuration header FILE |
| 16315 | |
| 16316 | Configuration files: |
| 16317 | $config_files |
| 16318 | |
| 16319 | Configuration headers: |
| 16320 | $config_headers |
| 16321 | |
| 16322 | Report bugs to <bug-autoconf@gnu.org>." |
| 16323 | _ACEOF |
| 16324 | |
| 16325 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16326 | ac_cs_version="\\ |
| 16327 | config.status |
| 16328 | configured by $0, generated by GNU Autoconf 2.53, |
| 16329 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 16330 | |
| 16331 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16332 | Free Software Foundation, Inc. |
| 16333 | This config.status script is free software; the Free Software Foundation |
| 16334 | gives unlimited permission to copy, distribute and modify it." |
| 16335 | srcdir=$srcdir |
| 16336 | INSTALL="$INSTALL" |
| 16337 | _ACEOF |
| 16338 | |
| 16339 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16340 | # If no file are specified by the user, then we need to provide default |
| 16341 | # value. By we need to know if files were specified by the user. |
| 16342 | ac_need_defaults=: |
| 16343 | while test $# != 0 |
| 16344 | do |
| 16345 | case $1 in |
| 16346 | --*=*) |
| 16347 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16348 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 16349 | shift |
| 16350 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 16351 | shift |
| 16352 | ;; |
| 16353 | -*);; |
| 16354 | *) # This is not an option, so the user has probably given explicit |
| 16355 | # arguments. |
| 16356 | ac_need_defaults=false;; |
| 16357 | esac |
| 16358 | |
| 16359 | case $1 in |
| 16360 | # Handling of the options. |
| 16361 | _ACEOF |
| 16362 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16363 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16364 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 16365 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 16366 | _ACEOF |
| 16367 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16368 | --version | --vers* | -V ) |
| 16369 | echo "$ac_cs_version"; exit 0 ;; |
| 16370 | --he | --h) |
| 16371 | # Conflict between --help and --header |
| 16372 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16373 | Try \`$0 --help' for more information." >&5 |
| 16374 | echo "$as_me: error: ambiguous option: $1 |
| 16375 | Try \`$0 --help' for more information." >&2;} |
| 16376 | { (exit 1); exit 1; }; };; |
| 16377 | --help | --hel | -h ) |
| 16378 | echo "$ac_cs_usage"; exit 0 ;; |
| 16379 | --debug | --d* | -d ) |
| 16380 | debug=: ;; |
| 16381 | --file | --fil | --fi | --f ) |
| 16382 | shift |
| 16383 | CONFIG_FILES="$CONFIG_FILES $1" |
| 16384 | ac_need_defaults=false;; |
| 16385 | --header | --heade | --head | --hea ) |
| 16386 | shift |
| 16387 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 16388 | ac_need_defaults=false;; |
| 16389 | |
| 16390 | # This is an error. |
| 16391 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16392 | Try \`$0 --help' for more information." >&5 |
| 16393 | echo "$as_me: error: unrecognized option: $1 |
| 16394 | Try \`$0 --help' for more information." >&2;} |
| 16395 | { (exit 1); exit 1; }; } ;; |
| 16396 | |
| 16397 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16398 | |
| 16399 | esac |
| 16400 | shift |
| 16401 | done |
| 16402 | |
| 16403 | _ACEOF |
| 16404 | |
| 16405 | |
| 16406 | |
| 16407 | |
| 16408 | |
| 16409 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16410 | for ac_config_target in $ac_config_targets |
| 16411 | do |
| 16412 | case "$ac_config_target" in |
| 16413 | # Handling of arguments. |
| 16414 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 16415 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 16416 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 16417 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16418 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16419 | { (exit 1); exit 1; }; };; |
| 16420 | esac |
| 16421 | done |
| 16422 | |
| 16423 | # If the user did not use the arguments to specify the items to instantiate, |
| 16424 | # then the envvar interface is used. Set only those that are not. |
| 16425 | # We use the long form for the default assignment because of an extremely |
| 16426 | # bizarre bug on SunOS 4.1.3. |
| 16427 | if $ac_need_defaults; then |
| 16428 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16429 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16430 | fi |
| 16431 | |
| 16432 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16433 | $debug || |
| 16434 | { |
| 16435 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16436 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16437 | } |
| 16438 | |
| 16439 | # Create a (secure) tmp directory for tmp files. |
| 16440 | : ${TMPDIR=/tmp} |
| 16441 | { |
| 16442 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 16443 | test -n "$tmp" && test -d "$tmp" |
| 16444 | } || |
| 16445 | { |
| 16446 | tmp=$TMPDIR/cs$$-$RANDOM |
| 16447 | (umask 077 && mkdir $tmp) |
| 16448 | } || |
| 16449 | { |
| 16450 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 16451 | { (exit 1); exit 1; } |
| 16452 | } |
| 16453 | |
| 16454 | _ACEOF |
| 16455 | |
| 16456 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16457 | |
| 16458 | # |
| 16459 | # CONFIG_FILES section. |
| 16460 | # |
| 16461 | |
| 16462 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16463 | # This happens for instance when ./config.status config.h |
| 16464 | if test -n "\$CONFIG_FILES"; then |
| 16465 | # Protect against being on the right side of a sed subst in config.status. |
| 16466 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16467 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16468 | s,@SHELL@,$SHELL,;t t |
| 16469 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16470 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16471 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16472 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16473 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16474 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16475 | s,@exec_prefix@,$exec_prefix,;t t |
| 16476 | s,@prefix@,$prefix,;t t |
| 16477 | s,@program_transform_name@,$program_transform_name,;t t |
| 16478 | s,@bindir@,$bindir,;t t |
| 16479 | s,@sbindir@,$sbindir,;t t |
| 16480 | s,@libexecdir@,$libexecdir,;t t |
| 16481 | s,@datadir@,$datadir,;t t |
| 16482 | s,@sysconfdir@,$sysconfdir,;t t |
| 16483 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16484 | s,@localstatedir@,$localstatedir,;t t |
| 16485 | s,@libdir@,$libdir,;t t |
| 16486 | s,@includedir@,$includedir,;t t |
| 16487 | s,@oldincludedir@,$oldincludedir,;t t |
| 16488 | s,@infodir@,$infodir,;t t |
| 16489 | s,@mandir@,$mandir,;t t |
| 16490 | s,@build_alias@,$build_alias,;t t |
| 16491 | s,@host_alias@,$host_alias,;t t |
| 16492 | s,@target_alias@,$target_alias,;t t |
| 16493 | s,@DEFS@,$DEFS,;t t |
| 16494 | s,@ECHO_C@,$ECHO_C,;t t |
| 16495 | s,@ECHO_N@,$ECHO_N,;t t |
| 16496 | s,@ECHO_T@,$ECHO_T,;t t |
| 16497 | s,@LIBS@,$LIBS,;t t |
| 16498 | s,@VERSION@,$VERSION,;t t |
| 16499 | s,@SOVERSION@,$SOVERSION,;t t |
| 16500 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 16501 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 16502 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 16503 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 16504 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 16505 | s,@MACHDEP@,$MACHDEP,;t t |
| 16506 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 16507 | s,@CXX@,$CXX,;t t |
| 16508 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 16509 | s,@EXEEXT@,$EXEEXT,;t t |
| 16510 | s,@CC@,$CC,;t t |
| 16511 | s,@CFLAGS@,$CFLAGS,;t t |
| 16512 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16513 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16514 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16515 | s,@OBJEXT@,$OBJEXT,;t t |
| 16516 | s,@CPP@,$CPP,;t t |
| 16517 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 16518 | s,@LIBRARY@,$LIBRARY,;t t |
| 16519 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 16520 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 16521 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 16522 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 16523 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 16524 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 16525 | s,@LINKCC@,$LINKCC,;t t |
| 16526 | s,@RANLIB@,$RANLIB,;t t |
| 16527 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 16528 | s,@AR@,$AR,;t t |
| 16529 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 16530 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 16531 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 16532 | s,@LN@,$LN,;t t |
| 16533 | s,@OPT@,$OPT,;t t |
| 16534 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 16535 | s,@SO@,$SO,;t t |
| 16536 | s,@LDSHARED@,$LDSHARED,;t t |
| 16537 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 16538 | s,@CCSHARED@,$CCSHARED,;t t |
| 16539 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 16540 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16541 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16542 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 16543 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 16544 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 16545 | s,@LDLAST@,$LDLAST,;t t |
| 16546 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 16547 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 16548 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 16549 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 16550 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16551 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 16552 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 16553 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 16554 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 16555 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 16556 | s,@LIBM@,$LIBM,;t t |
| 16557 | s,@LIBC@,$LIBC,;t t |
| 16558 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 16559 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 16560 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 16561 | CEOF |
| 16562 | |
| 16563 | _ACEOF |
| 16564 | |
| 16565 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16566 | # Split the substitutions into bite-sized pieces for seds with |
| 16567 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16568 | ac_max_sed_lines=48 |
| 16569 | ac_sed_frag=1 # Number of current file. |
| 16570 | ac_beg=1 # First line for current file. |
| 16571 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16572 | ac_more_lines=: |
| 16573 | ac_sed_cmds= |
| 16574 | while $ac_more_lines; do |
| 16575 | if test $ac_beg -gt 1; then |
| 16576 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16577 | else |
| 16578 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16579 | fi |
| 16580 | if test ! -s $tmp/subs.frag; then |
| 16581 | ac_more_lines=false |
| 16582 | else |
| 16583 | # The purpose of the label and of the branching condition is to |
| 16584 | # speed up the sed processing (if there are no `@' at all, there |
| 16585 | # is no need to browse any of the substitutions). |
| 16586 | # These are the two extra sed commands mentioned above. |
| 16587 | (echo ':t |
| 16588 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16589 | if test -z "$ac_sed_cmds"; then |
| 16590 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16591 | else |
| 16592 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16593 | fi |
| 16594 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16595 | ac_beg=$ac_end |
| 16596 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16597 | fi |
| 16598 | done |
| 16599 | if test -z "$ac_sed_cmds"; then |
| 16600 | ac_sed_cmds=cat |
| 16601 | fi |
| 16602 | fi # test -n "$CONFIG_FILES" |
| 16603 | |
| 16604 | _ACEOF |
| 16605 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16606 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16607 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16608 | case $ac_file in |
| 16609 | - | *:- | *:-:* ) # input from stdin |
| 16610 | cat >$tmp/stdin |
| 16611 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16612 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16613 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16614 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16615 | * ) ac_file_in=$ac_file.in ;; |
| 16616 | esac |
| 16617 | |
| 16618 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16619 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16620 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16621 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16622 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16623 | X"$ac_file" : 'X\(/\)' \| \ |
| 16624 | . : '\(.\)' 2>/dev/null || |
| 16625 | echo X"$ac_file" | |
| 16626 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16627 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16628 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16629 | /^X\(\/\).*/{ s//\1/; q; } |
| 16630 | s/.*/./; q'` |
| 16631 | { case "$ac_dir" in |
| 16632 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16633 | *) as_incr_dir=.;; |
| 16634 | esac |
| 16635 | as_dummy="$ac_dir" |
| 16636 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16637 | case $as_mkdir_dir in |
| 16638 | # Skip DOS drivespec |
| 16639 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16640 | *) |
| 16641 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16642 | test -d "$as_incr_dir" || |
| 16643 | mkdir "$as_incr_dir" || |
| 16644 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16645 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16646 | { (exit 1); exit 1; }; } |
| 16647 | ;; |
| 16648 | esac |
| 16649 | done; } |
| 16650 | |
| 16651 | ac_builddir=. |
| 16652 | |
| 16653 | if test "$ac_dir" != .; then |
| 16654 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16655 | # A "../" for each directory in $ac_dir_suffix. |
| 16656 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16657 | else |
| 16658 | ac_dir_suffix= ac_top_builddir= |
| 16659 | fi |
| 16660 | |
| 16661 | case $srcdir in |
| 16662 | .) # No --srcdir option. We are building in place. |
| 16663 | ac_srcdir=. |
| 16664 | if test -z "$ac_top_builddir"; then |
| 16665 | ac_top_srcdir=. |
| 16666 | else |
| 16667 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16668 | fi ;; |
| 16669 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16670 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16671 | ac_top_srcdir=$srcdir ;; |
| 16672 | *) # Relative path. |
| 16673 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16674 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16675 | esac |
| 16676 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 16677 | # absolute. |
| 16678 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 16679 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 16680 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 16681 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 16682 | |
| 16683 | |
| 16684 | case $INSTALL in |
| 16685 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 16686 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 16687 | esac |
| 16688 | |
| 16689 | if test x"$ac_file" != x-; then |
| 16690 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16691 | echo "$as_me: creating $ac_file" >&6;} |
| 16692 | rm -f "$ac_file" |
| 16693 | fi |
| 16694 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16695 | # use $as_me), people would be surprised to read: |
| 16696 | # /* config.h. Generated by config.status. */ |
| 16697 | if test x"$ac_file" = x-; then |
| 16698 | configure_input= |
| 16699 | else |
| 16700 | configure_input="$ac_file. " |
| 16701 | fi |
| 16702 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16703 | sed 's,.*/,,'` by configure." |
| 16704 | |
| 16705 | # First look for the input files in the build tree, otherwise in the |
| 16706 | # src tree. |
| 16707 | ac_file_inputs=`IFS=: |
| 16708 | for f in $ac_file_in; do |
| 16709 | case $f in |
| 16710 | -) echo $tmp/stdin ;; |
| 16711 | [\\/$]*) |
| 16712 | # Absolute (can't be DOS-style, as IFS=:) |
| 16713 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16714 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16715 | { (exit 1); exit 1; }; } |
| 16716 | echo $f;; |
| 16717 | *) # Relative |
| 16718 | if test -f "$f"; then |
| 16719 | # Build tree |
| 16720 | echo $f |
| 16721 | elif test -f "$srcdir/$f"; then |
| 16722 | # Source tree |
| 16723 | echo $srcdir/$f |
| 16724 | else |
| 16725 | # /dev/null tree |
| 16726 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16727 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16728 | { (exit 1); exit 1; }; } |
| 16729 | fi;; |
| 16730 | esac |
| 16731 | done` || { (exit 1); exit 1; } |
| 16732 | _ACEOF |
| 16733 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16734 | sed "$ac_vpsub |
| 16735 | $extrasub |
| 16736 | _ACEOF |
| 16737 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16738 | :t |
| 16739 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16740 | s,@configure_input@,$configure_input,;t t |
| 16741 | s,@srcdir@,$ac_srcdir,;t t |
| 16742 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16743 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16744 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16745 | s,@builddir@,$ac_builddir,;t t |
| 16746 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16747 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16748 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16749 | s,@INSTALL@,$ac_INSTALL,;t t |
| 16750 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16751 | rm -f $tmp/stdin |
| 16752 | if test x"$ac_file" != x-; then |
| 16753 | mv $tmp/out $ac_file |
| 16754 | else |
| 16755 | cat $tmp/out |
| 16756 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16757 | fi |
| 16758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16759 | done |
| 16760 | _ACEOF |
| 16761 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16763 | # |
| 16764 | # CONFIG_HEADER section. |
| 16765 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16766 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16767 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16768 | # 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] | 16769 | # |
| 16770 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16771 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16772 | ac_dB='[ ].*$,\1#\2' |
| 16773 | ac_dC=' ' |
| 16774 | ac_dD=',;t' |
| 16775 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16776 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16777 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16778 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16779 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16781 | 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] | 16782 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16783 | case $ac_file in |
| 16784 | - | *:- | *:-:* ) # input from stdin |
| 16785 | cat >$tmp/stdin |
| 16786 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16787 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16788 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16789 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16790 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16791 | esac |
| 16792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16793 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16794 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16796 | # First look for the input files in the build tree, otherwise in the |
| 16797 | # src tree. |
| 16798 | ac_file_inputs=`IFS=: |
| 16799 | for f in $ac_file_in; do |
| 16800 | case $f in |
| 16801 | -) echo $tmp/stdin ;; |
| 16802 | [\\/$]*) |
| 16803 | # Absolute (can't be DOS-style, as IFS=:) |
| 16804 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16805 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16806 | { (exit 1); exit 1; }; } |
| 16807 | echo $f;; |
| 16808 | *) # Relative |
| 16809 | if test -f "$f"; then |
| 16810 | # Build tree |
| 16811 | echo $f |
| 16812 | elif test -f "$srcdir/$f"; then |
| 16813 | # Source tree |
| 16814 | echo $srcdir/$f |
| 16815 | else |
| 16816 | # /dev/null tree |
| 16817 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16818 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16819 | { (exit 1); exit 1; }; } |
| 16820 | fi;; |
| 16821 | esac |
| 16822 | done` || { (exit 1); exit 1; } |
| 16823 | # Remove the trailing spaces. |
| 16824 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16825 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16826 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16828 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16829 | # `conftest.undefs', that substitutes the proper values into |
| 16830 | # config.h.in to produce config.h. The first handles `#define' |
| 16831 | # templates, and the second `#undef' templates. |
| 16832 | # And first: Protect against being on the right side of a sed subst in |
| 16833 | # config.status. Protect against being in an unquoted here document |
| 16834 | # in config.status. |
| 16835 | rm -f conftest.defines conftest.undefs |
| 16836 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16837 | # Putting comments in sed scripts is not portable. |
| 16838 | # |
| 16839 | # `end' is used to avoid that the second main sed command (meant for |
| 16840 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16841 | # See the Autoconf documentation for `clear'. |
| 16842 | cat >confdef2sed.sed <<\_ACEOF |
| 16843 | s/[\\&,]/\\&/g |
| 16844 | s,[\\$`],\\&,g |
| 16845 | t clear |
| 16846 | : clear |
| 16847 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16848 | t end |
| 16849 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16850 | : end |
| 16851 | _ACEOF |
| 16852 | # If some macros were called several times there might be several times |
| 16853 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16854 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16855 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16856 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16857 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16858 | |
| 16859 | # This sed command replaces #undef with comments. This is necessary, for |
| 16860 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16861 | # 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] | 16862 | cat >>conftest.undefs <<\_ACEOF |
| 16863 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16864 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16866 | # Break up conftest.defines because some shells have a limit on the size |
| 16867 | # of here documents, and old seds have small limits too (100 cmds). |
| 16868 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16869 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16870 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16871 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16872 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16873 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16874 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16875 | # Write a limited-size here document to $tmp/defines.sed. |
| 16876 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16877 | # Speed up: don't consider the non `#define' lines. |
| 16878 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16879 | # Work around the forget-to-reset-the-flag bug. |
| 16880 | echo 't clr' >>$CONFIG_STATUS |
| 16881 | echo ': clr' >>$CONFIG_STATUS |
| 16882 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16883 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16884 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16885 | rm -f $tmp/in |
| 16886 | mv $tmp/out $tmp/in |
| 16887 | ' >>$CONFIG_STATUS |
| 16888 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16889 | rm -f conftest.defines |
| 16890 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16891 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16892 | rm -f conftest.defines |
| 16893 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 16894 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16896 | # Break up conftest.undefs because some shells have a limit on the size |
| 16897 | # of here documents, and old seds have small limits too (100 cmds). |
| 16898 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16899 | rm -f conftest.tail |
| 16900 | while grep . conftest.undefs >/dev/null |
| 16901 | do |
| 16902 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16903 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16904 | # Speed up: don't consider the non `#undef' |
| 16905 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16906 | # Work around the forget-to-reset-the-flag bug. |
| 16907 | echo 't clr' >>$CONFIG_STATUS |
| 16908 | echo ': clr' >>$CONFIG_STATUS |
| 16909 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16910 | echo 'CEOF |
| 16911 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16912 | rm -f $tmp/in |
| 16913 | mv $tmp/out $tmp/in |
| 16914 | ' >>$CONFIG_STATUS |
| 16915 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16916 | rm -f conftest.undefs |
| 16917 | mv conftest.tail conftest.undefs |
| 16918 | done |
| 16919 | rm -f conftest.undefs |
| 16920 | |
| 16921 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16922 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16923 | # use $as_me), people would be surprised to read: |
| 16924 | # /* config.h. Generated by config.status. */ |
| 16925 | if test x"$ac_file" = x-; then |
| 16926 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16928 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16929 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16930 | cat $tmp/in >>$tmp/config.h |
| 16931 | rm -f $tmp/in |
| 16932 | if test x"$ac_file" != x-; then |
| 16933 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 16934 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16935 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16936 | else |
| 16937 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16938 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16939 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16940 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16941 | X"$ac_file" : 'X\(/\)' \| \ |
| 16942 | . : '\(.\)' 2>/dev/null || |
| 16943 | echo X"$ac_file" | |
| 16944 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16945 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16946 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16947 | /^X\(\/\).*/{ s//\1/; q; } |
| 16948 | s/.*/./; q'` |
| 16949 | { case "$ac_dir" in |
| 16950 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16951 | *) as_incr_dir=.;; |
| 16952 | esac |
| 16953 | as_dummy="$ac_dir" |
| 16954 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16955 | case $as_mkdir_dir in |
| 16956 | # Skip DOS drivespec |
| 16957 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16958 | *) |
| 16959 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16960 | test -d "$as_incr_dir" || |
| 16961 | mkdir "$as_incr_dir" || |
| 16962 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16963 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16964 | { (exit 1); exit 1; }; } |
| 16965 | ;; |
| 16966 | esac |
| 16967 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16969 | rm -f $ac_file |
| 16970 | mv $tmp/config.h $ac_file |
| 16971 | fi |
| 16972 | else |
| 16973 | cat $tmp/config.h |
| 16974 | rm -f $tmp/config.h |
| 16975 | fi |
| 16976 | done |
| 16977 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16979 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16981 | { (exit 0); exit 0; } |
| 16982 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16983 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16984 | ac_clean_files=$ac_clean_files_save |
| 16985 | |
| 16986 | |
| 16987 | # configure is writing to config.log, and then calls config.status. |
| 16988 | # config.status does its own redirection, appending to config.log. |
| 16989 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16990 | # by configure, so config.status won't be able to write to it; its |
| 16991 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16992 | # effectively closing config.log, so it can be properly (re)opened and |
| 16993 | # appended to by config.status. When coming back to configure, we |
| 16994 | # need to make the FD available again. |
| 16995 | if test "$no_create" != yes; then |
| 16996 | ac_cs_success=: |
| 16997 | exec 5>/dev/null |
| 16998 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 16999 | exec 5>>config.log |
| 17000 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17001 | # would make configure fail if this is the last instruction. |
| 17002 | $ac_cs_success || { (exit 1); exit 1; } |
| 17003 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17004 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17005 | |
| 17006 | echo "creating Setup" |
| 17007 | if test ! -f Modules/Setup |
| 17008 | then |
| 17009 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17010 | fi |
| 17011 | |
| 17012 | echo "creating Setup.local" |
| 17013 | if test ! -f Modules/Setup.local |
| 17014 | then |
| 17015 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17016 | fi |
| 17017 | |
| 17018 | echo "creating Makefile" |
| 17019 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17020 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17021 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17022 | mv config.c Modules |